/* ── Portfolio Section ── */
.portfolio { background: var(--cream); }

.portfolio__filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  background: transparent;
  color: var(--gray-400);
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.filter-btn:hover {
  background: var(--gray-100);
  color: var(--charcoal);
}

.filter-btn.active {
  background: var(--royal-blue);
  color: var(--white);
  border-color: var(--royal-blue);
}

/* ── Gallery Carousel ── */
.gallery__carousel {
  position: relative;
  overflow: hidden;
  padding: var(--space-lg) 0;
  margin: 0 -2vw;
}

.gallery__track {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: var(--space-md) 4vw;
  will-change: transform;
}

.gallery__slide {
  flex: 0 0 calc(33.333% - var(--space-lg));
  cursor: pointer;
  text-align: center;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery__slide:hover {
  transform: translateY(-6px);
}

.gallery__slide.hidden-slide {
  display: none;
}

/* Classic Photo Frame */
.gallery__frame {
  position: relative;
  background: #fff;
  padding: 12px 12px 32px 12px;
  border-radius: 2px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.08),
    0 8px 32px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(201,168,76,0.15);
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.gallery__frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1.5px solid rgba(201,168,76,0.25);
  border-radius: 1px;
  pointer-events: none;
  z-index: 1;
}

.gallery__slide:hover .gallery__frame {
  box-shadow:
    0 4px 16px rgba(0,0,0,0.12),
    0 12px 48px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(201,168,76,0.3);
}

.gallery__frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  transition: transform 0.5s ease;
}

.gallery__slide:hover .gallery__frame img {
  transform: scale(1.03);
}

.gallery__slide-label {
  display: block;
  margin-top: var(--space-sm);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Carousel Arrows ── */
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.95);
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--royal-blue);
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.gallery__arrow:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}

.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }

/* ── Carousel Dots ── */
.gallery__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-xl);
}

.gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.gallery__dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.gallery__dot:hover {
  background: var(--royal-blue-light);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,9,8,0.96);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  transition: background var(--duration-fast) ease;
  border: none;
  cursor: pointer;
}

.lightbox__close:hover { background: var(--error); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  transition: background var(--duration-fast) ease;
  border: none;
  cursor: pointer;
}

.lightbox__nav:hover { background: var(--royal-blue-light); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray-300);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .gallery__slide {
    flex: 0 0 calc(50% - var(--space-lg));
  }
}

@media (max-width: 768px) {
  .gallery__slide {
    flex: 0 0 calc(50% - var(--space-md));
  }
  .gallery__track {
    gap: var(--space-md);
    padding: var(--space-sm) 8vw;
  }
  .gallery__frame {
    padding: 8px 8px 24px 8px;
  }
}

@media (max-width: 480px) {
  .gallery__slide {
    flex: 0 0 85%;
  }
  .gallery__track {
    padding: var(--space-sm) 10vw;
  }
  .gallery__arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}
