/* ============================================
   WEDDING EXPRESS - Portfolio Page Styles (v2)
   ============================================ */

.portfolio-filters {
  padding: 55px 0 22px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  padding: 10px 22px;
  border: 1.5px solid rgba(200, 169, 81, 0.4);
  background: #FFFDF8;
  color: var(--espresso);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--crimson), var(--gold-deep));
  color: #FFF;
  border-color: var(--crimson);
  box-shadow: 0 6px 18px rgba(139, 26, 26, 0.25);
}

.gallery-section {
  padding: 25px 0 90px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(200, 169, 81, 0.32);
  box-shadow: 0 10px 28px rgba(44, 24, 16, 0.08);
  aspect-ratio: 4/3;
}

.gallery-item.hidden { display: none; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 12, 7, 0.1) 35%, rgba(23, 12, 7, 0.88) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 { color: var(--gold-pale); margin-bottom: 2px; }
.gallery-overlay p { color: var(--gold-bright); font-size: 0.86rem; font-style: italic; margin: 0; }

.zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  background: rgba(23, 12, 7, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 1.15rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 7, 4, 0.94);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active { display: flex; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: rgba(23, 12, 7, 0.7);
  color: var(--gold-pale);
  font-size: 1.35rem;
}

.lightbox-content {
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 76vh;
  margin: 0 auto;
  border-radius: 14px;
  border: 2px solid rgba(200, 169, 81, 0.55);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65);
}

.lightbox-caption {
  margin-top: 14px;
  color: var(--gold-pale);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
}
