/* ============================================================
   PHOTOGRAPHY PAGE — overrides and extensions for light bg
   Loaded after style.css on photography.html only
============================================================ */

:root {
  --page-bg:  #FAFAF8;
  --page-mid: #F4F0EB;
  --text:     #0F0F0F;
  --text-dim: rgba(15, 15, 15, 0.55);
}

/* ============================================================
   BODY / PAGE BASE
============================================================ */
body.page-light {
  background-color: var(--page-bg);
  color: var(--text);
}

/* ============================================================
   NAV — dark text on light background
============================================================ */
.page-light .nav-logo {
  color: var(--text);
}

.page-light .nav-links a {
  color: var(--text-dim);
}

.page-light .nav-links a:hover {
  color: var(--text);
}

.page-light .nav-burger span {
  background: var(--text);
}

.page-light .nav-links .lang-btn {
  color: var(--text-dim);
}

.page-light .nav-links .lang-btn:hover {
  color: var(--text);
}

.page-light .nav-links .lang-btn.active {
  color: var(--amber);
}

.page-light .nav-links .lang-sep {
  color: var(--text-dim);
}

.page-light .nav.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ============================================================
   PAGE INTRO
============================================================ */
.page-intro {
  background-color: var(--page-bg);
  padding: 16rem 0 8rem;
  text-align: center;
}

.page-intro .eyebrow {
  color: var(--amber);
}

.page-intro-headline {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(2.75rem, 6vw, 6.5rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 2rem;
}

.page-intro-headline em {
  color: var(--text);
}

.page-intro-body {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   IMAGE BREAK — decorative full-bleed pause between light sections
============================================================ */
.image-break {
  width: 100%;
  height: clamp(280px, 40vw, 640px);
  overflow: hidden;
}

.image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*
  Parallax variant — photography.html cover break. The image is
  painted as a fixed background instead of an <img>, so it stays
  anchored to the viewport while the section scrolls past it (a
  "pinned" background, not a subtle drift). Requires no transform/
  filter/perspective on any ancestor — see body/html in style.css —
  since that would force background-attachment back to scroll
  behavior.
*/
.image-break--parallax {
  height: clamp(360px, 55vw, 780px);
  background-image: url('../images/photography/ciao/ciao-4.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .image-break--parallax {
    height: clamp(320px, 70vw, 560px);
  }
}

/* ============================================================
   PROJECT SECTIONS
============================================================ */
.project-section {
  padding: 8rem 0 9rem;
  background-color: var(--page-bg);
}

.project-section--alt {
  background-color: var(--page-mid);
}

.project-divider {
  position: relative;
  height: 1px;
  max-width: 1120px;
  margin: 0 auto;
  background-color: rgba(15, 15, 15, 0.08);
}

.project-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--amber);
  transform: translate(-50%, -50%);
}

.project-inner {
  display: flex;
  gap: 5rem;
  align-items: flex-start;
}

.project-section--reverse .project-inner {
  flex-direction: row-reverse;
}

/* Text column */
.project-text {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
}

.project-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  display: block;
}

.project-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(3.5rem, 5vw, 5.5rem);
  line-height: 0.93;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.project-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-dim);
  margin-bottom: 2.25rem;
  display: block;
}

.project-desc {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 380px;
  margin-bottom: 2.5rem;
}

.project-cta {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s, letter-spacing 0.2s;
}

.project-cta:hover {
  color: var(--text);
  letter-spacing: 0.22em;
}

/* Image column */
.project-images {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Hero image placeholder
   To swap in a real image: replace the inner <div class="ph-inner">
   with <img src="path/to/image.jpg" alt="description"> directly
   inside .project-hero-ph. Remove the ph-inner div entirely.   */
.project-hero-ph {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-hero-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background-color: rgba(15, 15, 15, 0.8);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

/* Support image row (3 items) */
.project-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}

/* To swap in a real image: replace the inner <div class="ph-inner">
   with <img src="path/to/image.jpg" alt="description"> directly
   inside .project-support-item. Remove the ph-inner div.        */
.project-support-item {
  aspect-ratio: 1;
  background-color: #DDD9D4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#ciao .project-support-item {
  aspect-ratio: 4 / 3;
}

.project-support-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shared placeholder label */
.ph-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.ph-inner span {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.3);
  user-select: none;
  pointer-events: none;
}

/* ============================================================
   BIO
============================================================ */
.bio {
  background-color: var(--page-mid);
  padding: 8rem 0 9rem;
}

.bio .eyebrow {
  color: var(--amber);
}

.bio-headline {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 3rem;
}

/*
  Layout — full-height portrait running alongside the whole text +
  timeline block. align-items defaults to stretch, so .bio-portrait
  matches .bio-content's natural height instead of a fixed one.
*/
.bio-layout {
  display: flex;
  gap: 3.5rem;
}

.bio-portrait {
  flex: 0 0 32%;
  overflow: hidden;
  border-left: 3px solid var(--amber);
}

.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.6s ease;
}

.bio-portrait:hover img {
  filter: grayscale(0%);
}

.bio-content {
  flex: 1;
  min-width: 0;
}

.bio-text p {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

.bio-text em {
  color: var(--text);
  font-style: italic;
}

.bio-text a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 0.15em;
}

.bio-text a:hover {
  color: var(--amber);
}

/*
  Credentials strip — timeline + prints callout, run as one compact
  row below the portrait/text block rather than a tall side column.
*/
.bio-credentials {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(15, 15, 15, 0.1);
}

.bio-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.bio-timeline-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bio-timeline-year {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--amber);
}

.bio-timeline-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/*
  Prints — full-width banner rather than a narrow side card, so it
  reads as a second, more assertive call to action beneath the
  timeline instead of a footnote next to it.
*/
.bio-prints {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  border-left: 4px solid var(--amber);
  background-color: var(--page-bg);
  padding: 2.25rem 2.75rem;
}

.bio-prints-copy {
  max-width: 640px;
}

.bio-prints-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

.bio-prints-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.bio-prints-cta {
  flex-shrink: 0;
}

/* ============================================================
   RECENT WORK — 12-image grid
============================================================ */
.recent-work {
  background-color: var(--page-bg);
  padding: 8rem 0 11rem;
}

.recent-work .eyebrow {
  color: var(--amber);
  text-align: center;
}

.recent-work-headline {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
  margin-bottom: 4rem;
}

.recent-work-headline em {
  color: var(--text);
}

/*
  12-image grid
  ─────────────
  To swap a placeholder for a real image:
  Replace the <div class="rwi-ph"><span>NN</span></div> inside
  .recent-work-item with:
    <img src="images/recent/filename.jpg" alt="brief description">
  and remove the rwi-ph div entirely. The item's aspect-ratio and
  overflow:hidden ensure the image fills the cell correctly.
*/
.recent-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}

.recent-work-item {
  aspect-ratio: 4 / 5;
  background-color: #E8E4DF;
  overflow: hidden;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 0;
  transition: outline-color 0.18s ease, transform 0.18s ease;
}

.recent-work-item:hover {
  outline-color: var(--amber);
  transform: scale(1.025);
}

.recent-work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Social cards — Flickr / Instagram link-outs, styled like .award-callout */
.social-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.social-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-left: 3px solid var(--amber);
  background-color: var(--page-mid);
  padding: 1.5rem 2rem;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}

.social-card:hover {
  color: var(--amber);
}

.social-card:hover .social-card-arrow {
  color: var(--text);
}

.social-card-text {
  flex: 1;
}

.social-card-label {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.6rem;
}

.social-card-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

.social-card-arrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--amber);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.rwi-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rwi-ph span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(15, 15, 15, 0.25);
  user-select: none;
  pointer-events: none;
}

/* ============================================================
   PORTFOLIO LIGHTBOX — shared overlay for any grid on a
   .page-light page (watches portfolio grid, recent work grid)
============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(100% - 3rem);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox.open .lightbox-image {
  opacity: 1;
  transform: scale(1);
}

.lightbox-counter {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--cream-dim);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--cream-dim);
  font-family: var(--sans);
  transition: color 0.2s ease;
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  color: var(--amber);
}

.lightbox-close {
  top: 1.75rem;
  right: 2rem;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.6rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
  padding: 0.9rem 1rem;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .page-intro {
    padding: 12rem 0 6rem;
  }

  /* Stack both project sections: text → hero → support grid */
  .project-inner,
  .project-section--reverse .project-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .project-text {
    flex: 0 0 auto;
    width: 100%;
  }

  .project-images {
    width: 100%;
  }

  .project-section {
    padding: 6rem 0;
  }

  .bio {
    padding: 6rem 0;
  }

  .bio-layout {
    flex-direction: column;
    gap: 2.5rem;
  }

  .bio-portrait {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 5;
  }

  .bio-headline {
    margin-bottom: 2.5rem;
  }

  .bio-credentials {
    margin-top: 3rem;
    padding-top: 2.5rem;
  }

  .bio-timeline {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .bio-timeline-item {
    padding-top: 0;
    padding-bottom: 1.1rem;
    border-top: none;
    border-bottom: 1px solid rgba(15, 15, 15, 0.1);
  }

  .bio-timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .bio-prints {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
  }

  .recent-work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-work {
    padding: 6rem 0 8rem;
  }

  .social-cards {
    grid-template-columns: 1fr;
  }

  /* Lightbox */
  .lightbox-stage {
    padding: 3rem 1rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.5rem;
    padding: 0.8rem 0.5rem;
  }

  .lightbox-counter {
    font-size: 0.62rem;
  }
}

@media (max-width: 480px) {
  .page-intro {
    padding: 10rem 0 5rem;
  }

  .project-section {
    padding: 5rem 0;
  }

  .recent-work {
    padding: 5rem 0 7rem;
  }

  .recent-work-grid {
    gap: 0.5rem;
  }

  .social-cards {
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .social-card {
    padding: 1.25rem 1.5rem;
  }
}
