/* ==========================================================================
   SEVANA — Editorial Gallery & Photography
   Clean, authentic craftsmanship • 100% Uncropped Aspect Ratios
   ========================================================================== */

/* Section Container */
.gallery-c2-section {
  position: relative;
  background-color: var(--background, #faf8f5);
  padding: 2.5rem 0 6rem 0;
}

/* Category Filter Toolbar */
.gallery-c2-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.75rem;
}

/* Refined Minimalist Filter Pills (Organic, Human, Tasteful) */
.gallery-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ede8df;
  padding: 0.3rem 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--border, #ded8cc);
}

.gallery-filter-btn {
  background: transparent;
  border: none;
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  font-family: var(--font-sans, "Manrope", sans-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bottle, #163b2f);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-filter-btn:hover {
  color: var(--bottle-deep, #0f2a20);
  background: rgba(22, 59, 47, 0.06);
}

.gallery-filter-btn.is-active {
  background: var(--bottle, #163b2f);
  color: var(--cream, #f5f0e6);
  box-shadow: 0 2px 6px rgba(22, 59, 47, 0.15);
}

/* ==========================================================================
   Curated Balanced Salon (Justified Rows)
   - Every row spans 100% width
   - All rows have identical uniform height
   - Left, right, top & bottom are 100% razor aligned
   - 0% cropping: every image preserves 100% original aspect ratio
   ========================================================================== */
.gallery-c2-stage {
  position: relative;
  z-index: 2;
}

.gallery-c2-salon {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.gallery-c2-salon.is-animating {
  opacity: 0;
  transform: translateY(6px);
}

.gallery-c2-row {
  display: flex;
  gap: 1.35rem;
  width: 100%;
  align-items: stretch;
}

.gallery-c2-row.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Pure-Image Photography Card
   ========================================================================== */
.gallery-c2-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ede8df;
  box-shadow: 0 6px 20px rgba(22, 59, 47, 0.07);
  cursor: zoom-in;
  display: block;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-c2-salon .gallery-c2-card {
  flex: var(--ratio) 1 0px;
  aspect-ratio: var(--ratio);
}

.gallery-c2-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(22, 59, 47, 0.13);
}

.gallery-c2-media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-c2-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-c2-card:hover .gallery-c2-media img {
  transform: scale(1.03);
}

/* Zoom Icon - Minimalist and subtle */
.gallery-c2-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(22, 59, 47, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gallery-c2-card:hover .gallery-c2-zoom-btn {
  opacity: 1;
  transform: scale(1);
}

.gallery-c2-zoom-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .gallery-c2-salon {
    gap: 1rem;
  }

  .gallery-c2-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .gallery-c2-salon .gallery-c2-card {
    flex: calc(var(--ratio) * 100) 1 45%;
  }
}

@media (max-width: 580px) {
  .gallery-c2-toolbar {
    margin-bottom: 2rem;
  }

  .gallery-filter-pills {
    gap: 0.25rem;
    padding: 0.25rem;
  }

  .gallery-filter-btn {
    padding: 0.45rem 1rem;
    font-size: 0.7rem;
  }

  .gallery-c2-row {
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-c2-salon .gallery-c2-card {
    width: 100%;
    flex: none;
  }
}

/* ==========================================================================
   Fullscreen Lightbox Modal (Clean, Minimal, Non-distracting)
   ========================================================================== */
.gallery-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 34, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.gallery-lightbox-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-dialog {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.gallery-lightbox-overlay.is-active .gallery-lightbox-dialog {
  transform: scale(1);
}

.gallery-lightbox-media-wrap {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.gallery-lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.gallery-lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100000;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.gallery-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100000;
}

.gallery-lightbox-prev { left: 1.5rem; }
.gallery-lightbox-next { right: 1.5rem; }

.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.08);
}
