/* =========================================================
   PHOTOGRAPHY.CSS — Photography page styles
   Requires theme.css and nav.css to be loaded first
   ========================================================= */

/* ---------------------------------------------------------
   Hero Section
   --------------------------------------------------------- */
.photo-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.photo-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.65) brightness(0.9);
  transition: filter 0.8s ease;
}

.photo-hero:hover .photo-hero__img {
  filter: saturate(1) brightness(1);
}

.photo-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.2) 0%,
    rgba(10, 10, 15, 0.5) 50%,
    rgba(10, 10, 15, 1) 100%
  );
}

.photo-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 max(2rem, 8vw) 4rem;
  max-width: 900px;
}

.photo-hero__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent-2);
  margin-bottom: 1rem;
}

.photo-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ---------------------------------------------------------
   Intro / Philosophy Section
   --------------------------------------------------------- */
.photo-intro {
  max-width: 700px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}

.photo-intro p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.photo-intro blockquote {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-text-primary);
  border-left: 3px solid var(--color-accent-1);
  padding: 0.75rem 1.5rem;
  margin: 2rem auto;
  text-align: left;
  background: var(--color-surface);
  border-radius: 0 6px 6px 0;
}

/* ---------------------------------------------------------
   Gallery Section
   --------------------------------------------------------- */
.gallery-section {
  padding: 2rem max(2rem, 5vw) 6rem;
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-section__header {
  margin-bottom: 2rem;
}

.gallery-section__more {
  text-align: center;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.gallery-section__more a {
  color: var(--color-accent-2);
  transition: opacity 0.2s;
}

.gallery-section__more a:hover {
  opacity: 0.75;
}

/* ---------------------------------------------------------
   Gallery Mosaic Grid
   --------------------------------------------------------- */
.gallery-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 0.75rem;
}

.gallery-item:first-child {
  grid-column: 1 / -1;
}

.gallery-item:first-child .gallery-image-wrap {
  aspect-ratio: 16 / 7;
}

.gallery-image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.7) brightness(0.85);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

/* Caption overlay */
.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, transparent 100%);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: stack all */
@media (max-width: 640px) {
  .gallery-mosaic {
    grid-template-columns: 1fr;
  }

  .gallery-item:first-child {
    grid-column: 1;
  }

  .gallery-item:first-child .gallery-image-wrap {
    aspect-ratio: 16 / 9;
  }
}
