/* Photography portfolio — photography.html (styled like Affiches de Voyage) */
#photography { background: var(--cream); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.pfg-page {
  position: relative;
}

.pfg-page--intro {
  padding: calc(var(--nav-h) + 1.25rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--cream-dark);
}

.pfg-page--catalog {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--cream);
}

.pfg-page .container {
  max-width: 56rem;
  text-align: center;
}

.pfg-page__head {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.pfg-page__eyebrow {
  font-style: italic;
  color: var(--terracotta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 0.65rem;
}

.pfg-page__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.08;
  color: var(--cobalt);
  margin: 0 0 0.65rem;
}

.pfg-page__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 auto;
  max-width: 48ch;
}

.pfg-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 0.7rem;
  margin: clamp(1.5rem, 3.5vw, 2.15rem) auto 0;
  max-width: 52rem;
}

.pfg-pill {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.82rem, 1.6vw, 0.92rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.58rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 72, 48, 0.32);
  background: var(--cream);
  color: var(--cobalt);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pfg-pill:hover {
  border-color: rgba(168, 72, 48, 0.55);
  box-shadow: 0 4px 14px rgba(26, 34, 56, 0.08);
}

.pfg-pill.is-active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 72, 48, 0.22);
}

.pfg-pill:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.pfg-project.is-hidden {
  display: none;
}

.pfg-project {
  padding: 0;
  margin: 0;
}

.pfg-project__title {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--terracotta);
  margin: 0 auto 0.45rem;
  display: block;
  text-align: center;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(26, 34, 56, 0.1);
  max-width: min(28rem, 92%);
}

.pfg-project__place {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 1.35rem;
}

.pfg-masonry {
  columns: 2;
  column-gap: clamp(0.65rem, 2vw, 1rem);
  column-fill: balance;
  text-align: left;
}

@media (min-width: 700px) {
  .pfg-masonry { columns: 3; }
}

@media (min-width: 1100px) {
  .pfg-masonry { columns: 4; }
}

.pfg-tile {
  display: inline-block;
  width: 100%;
  margin: 0 0 0.65rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-dark, #ebe2d4);
  padding: 0;
  border: none;
  cursor: pointer;
  line-height: 0;
  vertical-align: top;
  box-shadow: 0 10px 26px rgba(26, 34, 56, 0.1);
}

@media (min-width: 700px) {
  .pfg-tile { margin-bottom: 0.75rem; }
}

.pfg-tile:hover img {
  transform: scale(1.02);
}

.pfg-tile--portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pfg-tile img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  transition: transform 0.45s var(--ease, ease);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 34, 56, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox__inner { position: relative; max-width: 90vw; width: 36rem; padding: 1rem; }

.lightbox--portrait .lightbox__inner { width: min(90vw, 32rem); }

.lightbox--portrait .lightbox__placeholder { aspect-ratio: 2 / 3; max-height: 85vh; }

.lightbox--portrait .lightbox__photo { aspect-ratio: auto; max-height: 85vh; width: auto; max-width: 100%; margin: 0 auto; }

.lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  color: #fff;
  font-size: 1.5rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__placeholder { aspect-ratio: 1; border-radius: 3px; max-height: 70vh; width: 100%; }

.lightbox__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 3px;
  max-height: 70vh;
  display: block;
  background: #1a2238;
}

.lightbox__caption { color: #fff; text-align: center; margin-top: 0.75rem; font-style: italic; }

.lightbox__counter { color: rgba(255, 255, 255, 0.6); text-align: center; font-size: 0.85rem; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem;
  opacity: 0.7;
}

.lightbox__prev { left: 0.25rem; }

.lightbox__next { right: 0.25rem; }
