.photography-project {
  --photography-gutter: clamp(0.8rem, 1.5vw, 1.35rem);
  overflow: clip;
  background:
    radial-gradient(circle at 15% 25%, rgba(212, 162, 76, 0.07), transparent 34rem),
    #050607;
}

.photography-project-hero {
  position: relative;
  min-height: clamp(570px, 78vh, 900px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: #0a0c10;
}

.photography-project-hero-media, 
.photography-project-hero-media::before,
.photography-project-hero-media::after {
  position: absolute;
  inset: 0;
}

.photography-project-hero-media {
  z-index: -2;
}

.photography-project-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photography-project-hero-media::before {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.96) 0%, rgba(4, 5, 7, 0.68) 42%, rgba(4, 5, 7, 0.1) 78%),
    linear-gradient(0deg, rgba(4, 5, 7, 0.94) 0%, transparent 58%);
}

.photography-project-hero-media::after {
  content: "";
  z-index: 2;
  box-shadow: inset 0 -140px 120px -110px #050607;
}

.photography-project-hero-shell {
  width: 100%;
  padding-top: clamp(5rem, 11vw, 9rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.photography-project-hero-copy {
  max-width: 720px;
}

.photography-project-back,
.photography-project-view-photo,
.photography-project-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.photography-project-back {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.photography-project-back:hover,
.photography-project-instagram:hover {
  color: var(--accent);
}

.photography-project-hero h1 {
  max-width: 860px;
  margin: 0.45rem 0 1rem;
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: clamp(3rem, 7.5vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-wrap: balance;
}

.photography-project-lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.photography-project-lead p {
  margin: 0;
}

.photography-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.photography-project-meta span + span::before {
  content: "·";
  margin-right: 1.2rem;
  color: var(--accent);
}

.photography-project-actions,
.photography-project-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.photography-project-view-photo {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  top: clamp(1rem, 3vw, 2.5rem);
  z-index: 4;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.62);
  color: #fff;
  backdrop-filter: blur(12px);
}

.photography-project-view-photo:hover {
  border-color: rgba(212, 162, 76, 0.7);
  background: rgba(5, 6, 7, 0.88);
}

.photography-project-gallery-section {
  scroll-margin-top: 5rem;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.photography-project-gallery-section--continuation {
  padding-top: 0;
}

.photography-project-section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.photography-project-section-head h2,
.photography-project-story h2 {
  margin: 0.35rem 0 0;
  color: var(--text);
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  text-wrap: balance;
}

.photography-project-section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.photography-project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--photography-gutter);
}

.photography-project-tile {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(10px, 1.5vw, 18px);
  background: #11141a;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
}

.photography-project-tile--wide {
  grid-column: span 12;
  height: clamp(420px, 58vw, 760px);
}

.photography-project-tile--half {
  grid-column: span 6;
  height: clamp(360px, 46vw, 640px);
}

.photography-project-tile--major {
  grid-column: span 7;
  height: clamp(390px, 50vw, 680px);
}

.photography-project-tile--minor {
  grid-column: span 5;
  height: clamp(390px, 50vw, 680px);
}

.photography-project-image-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.photography-project-image-link::after {
  content: "View";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.7);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.photography-project-image-link:hover::after,
.photography-project-image-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.photography-project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 300ms ease;
}

.photography-project-image-link:hover img {
  filter: brightness(0.88);
  transform: scale(1.018);
}

.photography-project-story {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-block: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 162, 76, 0.09), transparent 28rem),
    rgba(255, 255, 255, 0.018);
}

.photography-project-story-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.photography-project-story-copy {
  max-width: 760px;
}

.photography-project-prose {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}

.photography-project-prose > :first-child {
  margin-top: 0;
}

.photography-project-prose > :last-child {
  margin-bottom: 0;
}

.photography-project-brief {
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border: 1px solid rgba(212, 162, 76, 0.42);
  border-radius: var(--radius-lg);
  background: rgba(8, 10, 14, 0.86);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
}

.photography-project-brief h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.photography-project-brief > p {
  color: var(--muted);
}

.photography-project-instagram {
  margin-top: 1.35rem;
}

.photography-project-related {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.014);
}

.photography-project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.photography-project-lightbox:target {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.photography-project-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.photography-project-lightbox figure {
  position: relative;
  z-index: 2;
  max-width: min(94vw, 1600px);
  max-height: 90vh;
  margin: 0;
}

.photography-project-lightbox img {
  max-width: 94vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.photography-project-lightbox figcaption {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.photography-project-lightbox-close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 3;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
}

@media (min-width: 760px) {
  .photography-project-section-head {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
    align-items: end;
  }

  .photography-project-section-head > p {
    justify-self: end;
  }
}

@media (min-width: 980px) {
  .photography-project-story-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  }

  .photography-project-brief {
    position: sticky;
    top: 7rem;
  }

  .photography-project-related .journal-grid-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .photography-project-hero {
    min-height: 680px;
  }

  .photography-project-hero-media::before {
    background:
      linear-gradient(0deg, rgba(4, 5, 7, 0.98) 0%, rgba(4, 5, 7, 0.7) 52%, rgba(4, 5, 7, 0.22) 100%);
  }

  .photography-project-hero-shell {
    padding-bottom: 2.5rem;
  }

  .photography-project-hero h1 {
    font-size: clamp(2.85rem, 15vw, 4.5rem);
  }

  .photography-project-actions,
  .photography-project-brief-actions {
    flex-direction: column;
  }

  .photography-project-actions .btn,
  .photography-project-brief-actions .btn {
    width: 100%;
    text-align: center;
  }

  .photography-project-view-photo {
    top: 0.85rem;
    right: 0.85rem;
  }

  .photography-project-grid {
    display: block;
  }

  .photography-project-tile,
  .photography-project-tile--wide,
  .photography-project-tile--half,
  .photography-project-tile--major,
  .photography-project-tile--minor {
    width: 100%;
    height: auto;
    margin-bottom: var(--photography-gutter);
  }

  .photography-project-tile img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .photography-project-image-link::after {
    opacity: 1;
    transform: none;
  }

  .photography-project-meta span + span::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photography-project-image-link::after,
  .photography-project-tile img,
  .photography-project-lightbox {
    transition: none;
  }
}
