/* GLOBAL */
body {
  margin: 0;
  padding: 0;
  background: #f5f3f1;
  color: #2a2a2a;
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.6;
}

/* HEADER */
/* ===========================
   SUBPAGE HEADER (clean + stable)
   =========================== */

.subpage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 3rem;
  background: var(--bg-main);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Site identity behaves like the homepage hero version */
.subpage-header .site-identity {
  display: inline-block;
  flex: 0 0 auto;
}

.subpage-header .site-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
}

/* Navigation — consistent spacing + alignment */
.subpage-header .nav {
  display: flex;
  gap: 1.8rem;
  flex: 0 0 auto;
}

.subpage-header .nav-link {
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: relative;
}

.subpage-header .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.2s ease;
}

.subpage-header .nav-link:hover::after {
  width: 100%;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  .subpage-header {
    padding: 1.4rem 1.6rem;
  }

  .subpage-header .nav {
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  .subpage-header .site-name {
    font-size: 1.4rem;
  }
}

}

/* CATEGORY INTRO */
.category-intro {
  max-width: 800px;
  margin: 4rem auto 3rem;
  padding: 0 2rem;
  text-align: center;
}

/* GALLERY WALL GRID */
.gallery {
  max-width: 1400px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-item {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}


/* FULLSCREEN OVERLAY */
.fullscreen-view {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92); /* darker, richer backdrop */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.8s ease; /* smoother fade */
  z-index: 999;
}

.fullscreen-view.show {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-view img {
  max-height: 85vh;
  max-width: 90vw;
  object-fit: contain;
  cursor: zoom-out;
  animation: fadeZoom 0.45s ease; /* subtle zoom-in */
}

.fullscreen-view {
  transition: opacity 1.0s ease; /* or even 0.8s for a very slow dissolve */
}

.fullscreen-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: -1;
}


/* Caption styling */
.fullscreen-caption {
  margin-top: 1rem;
  color: #e8e6e3;
  font-size: 1.1rem;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* Fade + slight zoom animation */
@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
