/* =========================================================
   PROJECT PAGE
   Archivo completo: /assets/css/project.css
========================================================= */


/* =========================================================
   01. PAGE BASE
========================================================= */

.project-page {
  background: #ffffff;
  color: var(--color-primary);
}

.project-page-main {
  width: 100%;
}

.project-page .site-footer {
  margin-top: 0;
}


/* =========================================================
   02. MAIN CONTAINER
========================================================= */

.project-container {
  width: min(100%, var(--container-max, 1280px));
  margin-inline: auto;
  padding:
    clamp(28px, 3.5vw, 48px)
    var(--container-padding)
    0;
}


/* =========================================================
   03. HERO
========================================================= */

#project-hero {
  position: relative;
  width: 100%;
  margin: 0;
}

.project-hero-media {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(360px, 56vw, 720px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.project-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(5, 10, 15, 0.55) 0%,
      rgba(5, 10, 15, 0.25) 18%,
      rgba(5, 10, 15, 0.05) 40%,
      rgba(5, 10, 15, 0.15) 70%,
      rgba(5, 10, 15, 0.35) 100%
    );
  pointer-events: none;
}

.project-hero-overlay {
  position: relative;
  z-index: 2;
  width: min(100%, var(--container-max, 1280px));
  margin-inline: auto;
  padding:
    clamp(94px, 10vw, 132px)
    var(--container-padding)
    clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
}

.project-hero-heading-row {
  display: block;
}

.project-hero-title-wrap {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.project-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  text-wrap: balance;
  color: #ffffff;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.project-hero-cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.project-hero-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}


/* =========================================================
   04. INTRO / ABSTRACT + EDITORIAL FACT SHEET
========================================================= */

#project-intro {
  padding-top: 26px;
}

.project-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.project-abstract {
  max-width: 65ch;
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.68;
  font-weight: 300;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.project-abstract p {
  margin: 0;
}

.project-intro-meta-panel {
  display: grid;
  gap: 24px;
  align-content: start;
}

.project-meta-block {
  display: grid;
  gap: 6px;
}

.project-meta-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(5, 55, 82, 0.46);
}

.project-meta-value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.28rem, 2vw, 1.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.project-meta-list {
  display: grid;
  gap: 8px;
}

.project-meta-list .project-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 500;
  color: #ffffff;
}


/* =========================================================
   05. STICKY NAV
========================================================= */

#project-nav {
  position: sticky;
  top: 20px;
  z-index: 40;
  display: flex;
  justify-content: center;
  margin: 50px 0 44px;
  pointer-events: none;
}

.project-nav-inner {
  display: inline-flex;
  gap: 5px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.project-nav-inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.project-nav-inner a:hover,
.project-nav-inner a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}


/* =========================================================
   06. SECTIONS - GENERAL LAYOUT
========================================================= */

#project-sections {
  counter-reset: project-section;
}

.project-section {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 16px;
  align-items: start;
  margin-bottom: 84px;
}

.project-section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.project-section-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-section-number {
  position: relative;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.project-section-number::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 18px);
  width: 52px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
  transform: translateY(-50%);
}

.project-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.4vw, 3.9rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 24ch;
  color: var(--color-primary);
}

.project-section-copy {
  display: grid;
  gap: 16px;
}

.project-section-intro {
  max-width: 820px;
}

.project-section-content {
  display: grid;
  gap: 18px;
}

.project-block {
  width: 100%;
}

.project-block--intro {
  margin-bottom: 2px;
}

.project-block--body {
  margin-top: 2px;
}

.project-block--media {
  margin: 8px 0 20px;
  width: 100%;
  display: block;
}

.project-block--media .project-media {
  width: 100%;
  margin: 16px 0 20px;
}

.project-section-intro p {
  max-width: 72ch;
  margin: 0;
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--color-text-secondary);
}

.project-section-body {
  display: grid;
  gap: 12px;
}

.project-section-body p {
  max-width: 72ch;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.74;
  color: var(--color-text-secondary);
}

.project-section-body--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.project-section-body--split p {
  max-width: none;
}


/* =========================================================
   07. SECTION THEMES
========================================================= */

.project-section.section--soft {
  padding: 28px;
  background: #f6f6f3;
}

.project-section.section--dark {
  padding: 28px;
  background: #07131b;
}

.project-section.section--dark .project-section-number {
  color: rgba(255, 255, 255, 0.62);
}

.project-section.section--dark .project-section-number::before {
  background: rgba(255, 255, 255, 0.62);
}

.project-section.section--dark .project-section-title,
.project-section.section--dark .project-section-intro p,
.project-section.section--dark .project-section-body p {
  color: #ffffff;
}


/* =========================================================
   08. MEDIA - GLOBAL RULES
========================================================= */

.project-media {
  margin-top: 2px;
}

.project-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.project-media-caption {
  margin-top: 12px;
  max-width: 54ch;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(5, 55, 82, 0.62);
}


/* =========================================================
   09. MEDIA - FULL / CONTAINED
========================================================= */

.media-full {
  width: 100%;
}

.media-contained {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.media-contained img {
  width: 70%;
  height: auto;
  margin-top: -60px;
  margin-bottom: -60px;
}


/* =========================================================
   10. MEDIA - GRID 2
========================================================= */

.media-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.media-grid-2 img,
.media-grid-2 picture {
  display: block;
  width: 100%;
  height: 100%;
}

.media-grid-2 img {
  object-fit: cover;
}


/* =========================================================
   11. MEDIA - GRID 3
========================================================= */

.media-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.media-grid-3 img,
.media-grid-3 picture {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================================
   12. MEDIA - PAIR OFFSET
========================================================= */

.media-pair-offset {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.media-pair-offset img:last-child {
  transform: translateY(28px);
}


/* =========================================================
   13. MEDIA - STORY
========================================================= */

.media-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.media-story-main img,
.media-story-side img {
  width: 100%;
}

.media-story-side {
  display: grid;
  gap: 16px;
}


/* =========================================================
   14. MEDIA - BAND
========================================================= */

.media-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding:
    clamp(22px, 3vw, 40px)
    var(--container-padding);
  background: #f6f6f3;
}

.media-band__inner {
  width: min(100%, var(--container-max, 1280px));
  margin-inline: auto;
}

.media-band--dark {
  background: #07131b;
}

.media-band--dark .project-media-caption {
  color: rgba(255, 255, 255, 0.72);
}


/* =========================================================
   15. MEDIA - FEATURE LEFT
========================================================= */

.media-feature-left {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.media-feature-main img {
  width: 100%;
  height: auto;
  display: block;
}

.media-feature-side {
  display: grid;
  gap: 16px;
}

.media-feature-side img {
  width: 100%;
  height: auto;
  display: block;
}


/* =========================================================
   16. MEDIA - MOSAIC
========================================================= */

.media-mosaic-fluid {
  column-count: 3;
  column-gap: 16px;
}

.media-mosaic-item {
  break-inside: avoid;
  margin-bottom: 16px;
}

.media-mosaic-item img {
  width: 100%;
  display: block;
}


/* =========================================================
   17. MEDIA - MASONRY
========================================================= */

.media-masonry {
  column-count: 3;
  column-gap: 16px;
}

.media-masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
}

.media-masonry-item img {
  width: 100%;
  display: block;
}


/* =========================================================
   18. MEDIA - SLIDER (legacy)
========================================================= */

.media-slider {
  position: relative;
  overflow: hidden;
}

.media-slider-track {
  display: flex;
}

.media-slider-item {
  min-width: 100%;
  display: none;
}

.media-slider-item.is-active {
  display: block;
}

.media-slider-item img {
  width: 100%;
  height: auto;
  display: block;
}

.media-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.media-slider-btn--prev { left: 10px; }
.media-slider-btn--next { right: 10px; }


/* =========================================================
   19. MEDIA - FEATURE SLIDERS
========================================================= */

.media-feature-sliders {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 16px;
  align-items: stretch;
}

.media-feature-sliders-main img {
  width: 100%;
  height: auto;
  display: block;
}

.media-feature-sliders-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.media-feature-sliders-side .media-before-after {
  flex: 1;
  min-height: 0;
}

.media-feature-sliders-side .ba-before,
.media-feature-sliders-side .ba-after {
  height: 100%;
}

.media-feature-sliders-side .ba-before img,
.media-feature-sliders-side .ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================================================
   20. CREDITS
========================================================= */

#project-credits {
  max-width: 980px;
  margin: 14px 0 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(5, 55, 82, 0.12);
}

.project-credits-eyebrow {
  margin: 0 0 14px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(5, 55, 82, 0.56);
}

.project-credits-grid {
  display: grid;
  gap: 8px;
}

.project-credits-grid p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--color-text-secondary);
}

.project-credits-grid strong {
  color: var(--color-primary);
  font-weight: 600;
}

.project-credits-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}


/* =========================================================
   21. REVEAL
========================================================= */

.project-page .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.project-page .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   22. CAROUSEL
========================================================= */

.media-carousel {
  position: relative;
  overflow: hidden;
}

.media-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.media-carousel-item {
  flex: 0 0 25%;
  min-width: 0;
  padding: 0 6px;
  box-sizing: border-box;
}

.media-carousel-item img,
.media-carousel-item picture,
.media-carousel-item picture img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.media-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.media-carousel-btn--prev { left: 12px; }
.media-carousel-btn--next { right: 12px; }

.media-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.media-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(5, 55, 82, 0.2);
  cursor: pointer;
  transition: background 0.2s;
}

.media-carousel-dot.is-active {
  background: var(--color-primary, #053752);
}


/* =========================================================
   23. FULL WIDTH BLEED
========================================================= */

/* Higher specificity (0,3,0) beats .project-block--media .project-media (0,2,0) */
.project-block--media .project-media.media-full--bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.media-full--bleed img,
.media-full--bleed picture,
.media-full--bleed picture img {
  width: 100%;
  display: block;
}

.media-full--bleed img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}



/* =========================================================
   24. BEFORE / AFTER
========================================================= */

.media-before-after {
  position: relative;
  overflow: hidden;
  user-select: none;
}

.ba-before,
.ba-after {
  width: 100%;
}

.ba-before img,
.ba-before picture,
.ba-after img,
.ba-after picture {
  width: 100%;
  display: block;
}

.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  clip-path: inset(0 0 0 50%);
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: ew-resize;
  z-index: 3;
}

.ba-handle-line {
  width: 2px;
  flex: 1;
  background: white;
}

.ba-handle-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}


/* =========================================================
   25. GRID SQUARES
========================================================= */

.media-grid-squares {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.media-grid-square-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.media-grid-square-item img,
.media-grid-square-item picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================================================
   26. ABSTRACT MEDIA
========================================================= */

.project-abstract-media {
  margin-top: clamp(20px, 3vw, 40px);
}

.project-abstract-media .media-contained,
.project-block--media .media-contained {
  justify-content: center;
}

.project-abstract-media .media-contained img,
.project-block--media .media-contained img {
  width: 100%;
  height: auto;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 2px;
}

/* Size modifier — higher specificity to override the 100% rule above */
.project-block--media .project-media.media-contained.media-contained--sm img {
  width: 65%;
}

.project-abstract-media .media-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.2vw, 16px);
}

.project-abstract-media .media-grid-2 picture {
  display: block;
  width: 100%;
}

.project-abstract-media .media-grid-2 img,
.project-abstract-media .media-grid-2 picture img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}


/* =========================================================
   27. CALLOUT
========================================================= */

.project-block--callout {
  margin-left: calc(50% - 50vw);
  width: 100vw;
  background: #07131b;
}

.project-callout-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.project-callout-inner .section-kicker--light {
  color: rgba(255, 255, 255, 0.46);
  margin-bottom: 20px;
  display: block;
}

.project-callout-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.45;
  color: #fff;
  font-weight: 400;
  font-style: normal;
  border: none;
  padding: 0;
}


/* =========================================================
   28. RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1100px) {
  .project-intro-layout,
  .media-story {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-section-title {
    max-width: 100%;
  }

  .project-intro-meta-panel {
    gap: 20px;
  }

  .project-section-body--split {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 980px) {
  .project-container {
    padding-top: 22px;
  }
}


/* =========================================================
   29. RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 720px) {
  .project-hero-media {
    min-height: clamp(300px, 76vw, 420px);
  }

  .project-hero-overlay {
    padding-top: 92px;
    padding-bottom: 24px;
  }

  .project-hero-title {
    font-size: clamp(3rem, 12vw, 4.8rem);
    max-width: 100%;
  }

  .project-hero-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.66rem;
  }

  .project-abstract {
    font-size: 1.12rem;
    line-height: 1.68;
  }

  #project-nav {
    top: 62px;
    margin: 18px 0 42px;
  }

  .project-nav-inner {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .project-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .project-section {
    row-gap: 12px;
    margin-bottom: 70px;
  }

  .project-section-title {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    max-width: 100%;
  }

  .project-section-intro p,
  .project-section-body p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .project-section.section--soft,
  .project-section.section--dark {
    padding: 20px;
  }

  .media-grid-2,
  .media-grid-3,
  .media-pair-offset,
  .media-story {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .media-pair-offset img:last-child {
    transform: none;
  }

  .media-band {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #project-credits {
    margin-bottom: 40px;
  }

  .project-section-body--split {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* =========================================================
   30. LIGHTBOX
========================================================= */

#project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

#project-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0s linear 0s;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 15, 0.94);
  cursor: zoom-out;
}

.lightbox-img-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  transition: opacity 0.18s ease;
}

.lightbox-img.is-loading {
  opacity: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: scale(1.08);
}

.lightbox-close {
  top: 18px;
  right: 18px;
  font-size: 1.2rem;
}

.lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.52);
}

.media-carousel-item img,
.media-masonry-item img,
.media-grid-square-item img,
.media-grid-3 img {
  cursor: zoom-in;
}

/* =========================================================
   MEDIA - VIDEO LOOP
========================================================= */

.media-video-loop {
  width: 100%;
}

.media-video-loop video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* =========================================================
   MEDIA - VIDEO
========================================================= */

.media-video {
  position: relative;
}

.media-video-cover {
  position: relative;
  cursor: pointer;
}

.media-video-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.media-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 68px;
  height: 68px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  pointer-events: none;
}

.media-video-cover:hover .media-video-play {
  background: rgba(0, 0, 0, 0.80);
  transform: translate(-50%, -50%) scale(1.08);
}

.media-video-play-icon {
  color: #fff;
  font-size: 1.4rem;
  margin-left: 5px;
  line-height: 1;
}

/* =========================================================
   VIDEO LIGHTBOX
========================================================= */

#project-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

#project-video-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0s linear 0s;
}

.vlb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.vlb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.vlb-close:hover {
  color: #fff;
}

.vlb-frame-wrap {
  position: relative;
  z-index: 1;
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 9;
  background: #000;
}

.vlb-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
