.resize-no-transition * {
  transition: none !important;
}

.intro{
display:flex;
/* height:100vh; */
width:100%;
position:relative;
}

.intro img{
/* height:100vh; */
width:100%;
object-fit:cover;
object-position:center;
display:block;
}

body{
margin:0;
}

html, body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--bg: #FFFFFF;
--bg2: #ebebeb;
--ink: #0A0A0A;
--dim: #888888;
--dim2: #d1d1d1;
--type-hero: clamp(72px, 9vw, 120px);
--type-h2: clamp(32px, 4vw, 52px);
--type-body: 12px;
--type-label: 12px;
--type-small: 11px;
--type-xsmall: 10px;
--type-medium: 15px;
}
.site-nav {
  position: fixed;
  top: 5vh;
  left: calc((100vw / 24) * 1);
  width: calc((100vw / 24) * 3);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4vh;
  background: transparent;
}

h2 {
  grid-column: 6 / 22;
  color: var(--ink);
  text-transform: uppercase;

  margin-top: 5vh;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
  line-height: 1.5;
  letter-spacing: 0.05rem;
}

    .home-link {
      color: var(--ink);
      text-decoration: none;
      font-size: var(--type-body);
      letter-spacing: 0.4em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .menu {
      display: flex;
      flex-direction: column;
      gap: 1.2vh;
    }

    .menu a {
      color: var(--dim);
      text-decoration: none;
      font-size: var(--type-label);
      text-transform: lowercase;
      letter-spacing: 0.08em;
      transition: color 0.3s ease;
    }

    .menu a:hover {
      color: var(--ink);
    }

    .menu a.active {
      color: var(--ink);
    }
    .menu-toggle {
      display: none;
    }

    body {
      font-family: "Neue Haas Grotesk Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
      font-size: var(--type-body);
      color: var(--ink);
      background: var(--bg);
    }

    .grid-24 {
      display: grid;
      grid-template-columns: repeat(24, 1fr);
    }

    .grid-24.performances{
      margin-top:8vh;
    }

    .hero {
      height: 100vh;
    }

    .hero-img-wrap {
      grid-column: 6 / 14;
      margin-top: 0vh;
      height: 100vh;
      position: relative;
      overflow: hidden;
      /* outline: 1px solid red; debug */
    }

    .hero-img--placeholder {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top right;
      filter: blur(8px);
      transform: scale(1.05);
    }

    .hero-img-wrap.loaded .hero-img--placeholder {
      display: none;
    }

    .hero-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
    }

    .other-img {
      grid-column: 13 / 22;
    }

    .hero-text {
      grid-column: 15 / 22;
      margin-top: 17vh;
      margin-left: 2vh;
      /* max-width: 35vw; */
      display: block;
      align-items: flex-start;
      font-size: var(--type-body);
      color: var(--ink);
      line-height: 1.5;
    }

    .performances {
      background: var(--bg);
    }
    .news-type{
      padding-right:2vh;
      /* letter-spacing: 0.2rem; */
    }
    .performances-text .news-date{
      display: block;
      text-align: center;
      color: var(--dim);
    }


    .label {
      display: flex;
      margin-bottom: 3vh;
      margin-top: 0vh;
      grid-column: 6 / 7;
      font-size: var(--type-label);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--dim);
      justify-self: start;
    }

    .performances-text {
      grid-column: 6 / 22;
      padding-top:0vh;
      margin: 0 auto;
      font-size: var(--type-body);
      color: var(--ink);
      text-align: center;
      line-height: 1.5;
      letter-spacing: 0.05rem;
      text-transform: uppercase;
    }

    .subpage-content {
      margin-top: 5vh;
      text-align: left;
      margin-left: 0;
      margin-right: 0;
      padding-top: 0;
      text-transform: none;
      letter-spacing: normal;
      line-height: 1.5;
    }

    .contact-email,
    .contact-email:visited,
    .contact-email:focus,
    .contact-email:active {
      color: var(--ink);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .contact-email:hover {
      color: var(--dim);
      text-decoration: none;
    }

    /* Calendar */
    .cal-section {
      margin-top: 5vh;
      padding-bottom: 8vh;
    }

    .cal-col {
      grid-column: 6 / 22;
    }

    .cal-heading {
      font-size: var(--type-label);
      font-weight: 400;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--dim);
      margin-bottom: 1.5vh;
    }

    .cal-heading--past {
      margin-top: 6vh;
    }

    .cal-list {
      list-style: none;
      border-top: 1px solid var(--dim2);
    }

    .cal-item {
      display: flex;
      gap: 2rem;
      padding: 1.2vh 0;
      border-bottom: 1px solid var(--dim2);
      font-size: var(--type-body);
      line-height: 1.5;
      color: var(--ink);
    }

    .cal-date {
      flex-shrink: 0;
      width: 10rem;
      color: var(--dim);
    }

    .cal-list--past .cal-item {
      color: var(--dim);
    }

    .cal-list--past .cal-date {
      color: var(--dim2);
    }

    .cal-venue {
      color: var(--dim);
    }

    .cal-list--past .cal-venue {
      color: var(--dim2);
    }

    @media (max-width: 860px) {
      .cal-col {
        padding: 0 1rem;
      }
      .cal-item {
        flex-direction: column;
        gap: 0.3vh;
      }
      .cal-date {
        width: auto;
      }
      .cal-section {
      margin-top: 8vh;
      
    }
    }

    .text-image {
      /* min-height: 100vh; */
      margin-top: 8vh;
      margin-bottom: 2.5vh;
      align-items: start;
      align-content: start;
    }

    .text-image img {
      grid-column: 13 / 25;
      /* height: 100vh; */
      width: 100%;
      object-fit: cover;
      object-position: center;
      align-self: start;
      display: block;
      margin-bottom: 15vh;
    }

    .text-image img.other-img {
      grid-column: 13 / 22;
      /* height: 100vh; */
      width: 100%;
      object-fit: cover;
      object-position: center;
    }

    .text-image img.other-img2 {
      grid-column: 6 / 22;
      /* height: 100vh; */
      width: 100%;
      object-fit: contain;
      object-position: top;
      margin-bottom: 0;
    }

.text-image .copy {
      grid-column: 6 / 12;
      align-self: start;
      font-size: var(--type-body);
      color: var(--ink);
      line-height: 1.5;
      /* padding: 10vh 5vh 10vh 10vh; */
      display: block;
    }

    .image-caption {
      font-size: var(--type-small);
      color: var(--dim);
      line-height: 1.5;
    }

    .image-caption--index2 {
      grid-column: 6 / 22;
      margin-top: 0.5lh;
    }

    .image-caption--bio2 {
      grid-column: 15 / 22;
      margin-top: 0.5lh;
      margin-left: 2vh;
    }

    .bio-page {
      margin-top: 9vh;
    }

    .bio-img-wrap {
      grid-column: 6 / 14;
      height: 85vh;
      position: relative;
      overflow: hidden;
      /* outline: 1px solid red; debug */
    }

    .bio-img--placeholder {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: top;
      filter: blur(8px);
      transform: scale(1.05);
    }

    .bio-img-wrap.loaded .bio-img--placeholder {
      display: none;
    }

    .bio-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: bottom left;
    }
    .bio-img-2 {
      grid-column: 15 / 22;
      margin-left: 2vh;
      height: auto;
      max-height: 100vh;
      width: 100%;
      object-fit: contain;
      object-position: top;
      display: block;
      margin-bottom: 0;
    }

    .bio-text {
      grid-column: 15 / 22;
      margin-top: 17vh;
      margin-left: 2vh;
      display: block;
      align-items: flex-start;
      font-size: var(--type-body);
      color: var(--ink);
      line-height: 1.5;
    }

    .bio-text p {
      margin-bottom: 2.2vh;
    }

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

    .bio-text-2 p {
      margin-bottom: 2.2vh;
    }

    .bio-page-2 .bio-text-2 {
      grid-column: 6 / 14;
      margin-top: 10vh;
      display: block;
      align-items: flex-start;
      font-size: var(--type-body);
      color: var(--ink);
      line-height: 1.5;
    }

    .bio-page-2 {
      margin-top: 9vh;
      margin-bottom: 2.5vh;
    }

    .bio-page-2 .bio-text {
      margin-top: 0vh;
      transform: none;
    }

/* ============================================================
   RWD — pośredni breakpoint: 860px < szerokość ≤ 1290px
   Obrazy zwężają się symetrycznie (mniej kolumn siatki),
   wysokość 100vh pozostaje bez zmian.
============================================================ */


@media (max-width: 1400px) {
  .image-caption--index2 {
    grid-column: 5 / 22;
  }

  .image-caption--bio2 {
    grid-column: 13 / 22;
    margin-left: 2vh;
  }

  /* index — hero portrait: cofnięcie z obu stron o 1 kolumnę */

    .hero-img {
    object-position: unset;
  }
  
  .hero-img {
    object-fit: cover;
  }
   .hero-img-wrap {
    grid-column: 5 / 15;
  }

  /* index — hero text: przesuwa się razem z obrazem */
  .hero-text {
    grid-column: 15 / 22;
    align-self: start;
  }

  /* index — second image (other-img2): zwężenie z obu stron */
  .text-image img.other-img2 {
    grid-column: 5 / 23;
  }

  /* bio — pierwsza sekcja */
  .bio-page {
    align-items: start;
  }
  .bio-img-wrap {
    grid-column: 5 / 15;
  }

  .bio-img {
    object-fit: cover;
    object-position: bottom;
  }

  .bio-text {
    grid-column: 15 / 22;
    align-self: start;
  }

  /* bio — druga sekcja: znosi ujemny margin-top z desktopa */
  .bio-page-2 {
    margin-top: 9vh;
    align-items: start;
  }
  .bio-page-2 .bio-text-2 {
    margin-top: 5vh;
    grid-column: 5 / 12;
    margin-left: 0vh;
    align-self: start;
  }

  /* bio-img-2 */
  .bio-img-2 {
    grid-column: 13 / 22;
    object-fit: contain;
  }

  /* performances/label — wyrównanie do nowych pozycji kolumn */
  .label {
    grid-column: 5 / 7;
  }
  .performances-text {
    grid-column: 6 / 23;
  }
}

/* ============================================================
   RWD — mobilny breakpoint: ≤ 860px
   Układ zmienia się z siatki na jedną kolumnę.
   Obrazy: pełna szerokość, wysokość skaluje się do 70vh.
============================================================ */
@media (max-width: 1400px) {
  .site-nav {
    position: fixed;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    background: transparent;
    z-index: 1000;
  }

  .menu-toggle {
    display: inline-flex;
    position: fixed;
    top: 5vh;
    right: calc((100vw / 24) * 1);
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 34px;
    height: 24px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transition: transform 0.25s ease;
  }

  .menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    padding: 7.5rem 2rem 2rem 2rem;
    flex-direction: column;
    gap: 1.1rem;
    align-items: center;
    text-align: center;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: 1001;
  }

  .menu a {
    color: var(--dim);
    font-size: clamp(1.2rem, 4.75vw, 2.1rem);
    letter-spacing: 0.01em;
    line-height: 1.06;
    text-transform: uppercase;
  }

  .menu a.active,
  .menu a:hover {
    color: var(--ink);
  }

  .site-nav.menu-open .menu {
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav.menu-open .menu-toggle span:first-child {
    transform: translateY(3.5px) rotate(16deg);
    background: var(--ink);
  }

  .site-nav.menu-open .menu-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-16deg);
    background: var(--ink);
  }

  .bio-page, .hero {
    margin-top: 8vh;
  }
}

@media (max-width: 1180px) {
  .site-nav {
    position: absolute;
  }
}

#project-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1200;
  background: #fff;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
}

#project-overlay.visible {
  display: flex;
}

.project-images {
  width: 78%;
  padding-left: max(0px, calc((100vw - 1200px) / 2));
}

.project-images img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.5s ease, filter 0.25s ease;
}

.project-images .img-wrap {
  overflow: hidden;
}

.project-images .img-wrap:hover img {
  will-change: transform;
  transform: scale(1.02);
  filter: brightness(1.04);
}

.project-images.project-images--contain img {
  object-fit: cover;
}

.project-images.project-images--blue-dawn .img-wrap {
  width: min(70vh, 100%);
  margin-left: auto;
}

.project-images.project-images--blue-dawn img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.project-images.project-images--blue-dawn .img-wrap:nth-child(1) img {
  object-position: center bottom;
}

.project-images.project-images--blue-dawn .img-wrap:nth-child(2) img {
  object-position: center 50%;
}

.project-images.project-images--blue-dawn .img-wrap:nth-child(3) img {
  object-position: center 35%;
}

.project-images.project-images--blue-dawn .img-wrap:nth-child(4) img {
  object-position: center 35%;
}

.project-info {
  width: 30%;
  padding-left: 4vw;
  padding-top: 52px;
  padding-right: max(0px, calc((100vw - 1200px) / 2));
  overflow: hidden;
  height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.media-project-title {
  margin: 0 0 16px;
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}

.project-description {
  margin-top: 20px;
  margin-bottom: 0;
  font-size: var(--type-body);
  color: #333;
  line-height: 1.75;
  font-family: "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.project-description p {
  margin: 0 0 1em;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-description p.image-caption {
  margin-top: 2lh;
}

@media (max-width: 860px) {
  #project-overlay {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .project-info {
    width: 100%;
    height: auto;
    position: static;
    overflow: visible;
    padding: 52px 1rem 2rem;
    order: 1;
  }

  .project-images {
    width: 100%;
    padding-left: 0;
    order: 2;
  }

  .project-images img {
    height: 75vw;
  }

  .project-images.project-images--blue-dawn .img-wrap {
    width: 100%;
    margin-left: 0;
  }

  .project-images.project-images--blue-dawn img {
    height: 75vw;
  }
}

.close-overlay {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1310;
  font-size: 18px;
  cursor: pointer;
  color: #000;
  text-decoration: none;
  border: 0;
  background: transparent;
  line-height: 1;
}

#fullscreen-view {
  --fullscreen-slide-gap: clamp(40px, 8vw, 120px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1250;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
}

#fullscreen-view.visible {
  display: flex;
}

.fullscreen-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.fullscreen-strip {
  display: flex;
  height: 100%;
  column-gap: var(--fullscreen-slide-gap);
  will-change: transform;
}

.fullscreen-slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fullscreen-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1260;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.fullscreen-nav.prev { left: 20px; }
.fullscreen-nav.next { right: 20px; }

.fullscreen-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1270;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 860px) {
  .image-caption--index2 {
    grid-column: 1 / -1;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .image-caption--bio2 {
    grid-column: 1 / -1;
    margin-left: 1rem;
    margin-right: 1rem;
    order: 3;
  }

  /* Nawigacja: przechodzi na górę, poziomo */
  .site-nav {
    left: 0;
    position: absolute;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    gap: 0;
    background: transparent;
    z-index: 1000;
  }

  .menu-toggle {
    display: inline-flex;
    position: fixed;
    top: 5vh;
    right: 1rem;
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 34px;
    height: 24px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transition: transform 0.25s ease;
  }

  .menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    padding: 7.5rem 2rem 2rem 2rem;
    flex-direction: column;
    gap: 1.1rem;
    align-items: center;
    text-align: center;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: 1001;
  }

  .menu a {
    color: var(--dim);
    font-size: clamp(1.2rem, 4.75vw, 2.1rem);
    letter-spacing: 0.01em;
    line-height: 1.06;
    text-transform: uppercase;
  }

  .menu a.active,
  .menu a:hover {
    color: var(--ink);
  }

  .site-nav.menu-open .menu {
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav.menu-open .menu-toggle span:first-child {
    transform: translateY(3.5px) rotate(16deg);
    background: var(--ink);
  }

  .site-nav.menu-open .menu-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-16deg);
    background: var(--ink);
  }

  /* Siatka → jednokolumnowa */
  .grid-24 {
    display: flex;
    flex-direction: column;
  }

  /* Hero: obraz na pełną szerokość, wysokość 70vh */
  .hero {
    height: auto;
    padding-top: 5vh;
  }

  .hero-img-wrap {
    /* width: 100%; */
    height: 70vh;
  }

  .hero-img {
    object-fit: contain;
    object-position: top;
  }

  .hero-text {
    margin-top: 3vh;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  /* text-image sekcja */
  .text-image {
    margin-top: 4vh;
  }

  .text-image img,
  .text-image img.other-img,
  .text-image img.other-img2 {
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
    height: 70vh;
  }

  .text-image img.other-img2 {
    height: auto;
    object-fit: contain;
    margin-bottom: 5vh;
  }

  /* Bio */
  .bio-page {
    margin-top: 12vh;
  }

  .bio-img-wrap,
  .bio-img-2 {
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
    height: 70vh;
    order: 1;
  }

  .bio-img {
    object-fit: cover;
    object-position: bottom;
    margin-top: 0;
    margin-left: 0;
  }

  .bio-img-2 {
    object-fit: cover;
    object-position: bottom;
    margin-top: 0;
    margin-left: 1rem;
    margin-bottom: 0;
  }

  .bio-text,
  .bio-text-2 {
    margin-top: 3vh;
    margin-left: 1rem;
    margin-right: 1rem;
    padding-bottom: 4vh;
    order: 2;
  }

  .bio-page-2 .bio-text-2 {
    margin-top: 3vh;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .bio-page-2 {
    margin-top: 0;
    padding-top: 0.84vh;
  }

  /* Performances / label */
  .label {
    align-items: left;
    margin-top: 0vh;
    margin-left: 1rem;
    padding-top: 0vh;
  }

  .performances-text {
    padding: 1vh 1rem 0vh 0rem;
    text-align: center;
    /* justify-items: left; */
  }

  .venue {
  color: var(--dim);
  font-size: calc(var(--type-body)*0.8);
  }
}

/* Media gallery */
.grid-container.media-gallery {
  position: relative;
  max-width: calc((100vw / 24) * 16);
  margin-left: calc((100vw / 24) * 5);
  margin-right: auto;
  margin-top: 10vh;
  margin-bottom: 2.5vh;
  height: calc(29.08vw + 36.14vw + 31.47vw + 35.56vw + 37.83vw + 0.68vw * 5 + 8vw);
}

.grid-container.media-gallery .grid-item {
  position: absolute;
  overflow: hidden;
  cursor: pointer;
}

.grid-container.media-gallery .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.25s ease;
}

.grid-container.media-gallery .grid-item:hover img {
  will-change: transform;
  transform: scale(1.02);
  filter: brightness(1.05);
}

html {
  scrollbar-gutter: stable;
}

.grid-container.media-gallery .item-1 { left: 0%; top: 0; width: 65.43%; height: 29.08vw; }
.grid-container.media-gallery .item-2 { left: 66.45%; top: 0; width: 31.1%; height: 29.08vw; }
.grid-container.media-gallery .item-3 { left: 0%; top: calc(29.08vw + 0.68vw); width: 97.58%; height: 36.14vw; }
.grid-container.media-gallery .item-4 { left: 0%; top: calc(29.08vw + 36.14vw + 0.68vw * 2); width: 70.45%; height: 31.47vw; }
.grid-container.media-gallery .item-5 { left: 71.5%; top: calc(29.08vw + 36.14vw + 0.68vw * 2); width: 26.05%; height: 31.43vw; }
.grid-container.media-gallery .item-6 { left: 0%; top: calc(29.08vw + 36.14vw + 31.47vw + 0.68vw * 3); width: 48%; height: 35.56vw; }
.grid-container.media-gallery .item-7 { left: 49.1%; top: calc(29.08vw + 36.14vw + 31.47vw + 0.68vw * 3); width: 48.45%; height: 35.57vw; }
.grid-container.media-gallery .item-8 { left: 0%; top: calc(29.08vw + 36.14vw + 31.47vw + 35.56vw + 0.68vw * 4); width: 97.6%; padding-bottom: 8%; overflow: visible; }
.grid-container.media-gallery .item-8 .img-inner { overflow: hidden; width: 100%; height: 37.83vw; }
.grid-container.media-gallery .item-8 .img-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid-container.media-gallery .item-9 { left: 0%; top: calc(29.08vw + 36.14vw + 31.47vw + 35.56vw + 37.83vw + 0.68vw * 5); width: 97.6%; aspect-ratio: 1.72; padding-bottom: 0%; }

.image-caption--media {
  margin-top: 0.5lh;
}

@media (max-width: 1400px) {
  .grid-container.media-gallery {
    max-width: calc((100vw / 24) * 16);
    margin-left: calc((100vw / 24) * 5);
    height: calc(29.08vw + 36.14vw + 31.47vw + 35.56vw + 37.83vw + 0.68vw * 5 + 8vw);
  }
}

@media (max-width: 860px) {
  .grid-container.media-gallery {
    height: auto;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 12vh;
    margin-bottom: 4vh;
    padding: 0 1rem;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .grid-container.media-gallery .grid-item {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 70vw;
    overflow: hidden;
    cursor: pointer;
  }

  .grid-container.media-gallery .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .grid-container.media-gallery .grid-item.item-2 img { object-position: center bottom; }
  .grid-container.media-gallery .grid-item.item-5 { height: 85vw; }
  .grid-container.media-gallery .grid-item.item-5 img { object-position: center 35%; }
  .grid-container.media-gallery .grid-item.item-6 { height: 85vw; }
  .grid-container.media-gallery .grid-item.item-6 img { object-position: center 20%; }
  .grid-container.media-gallery .grid-item.item-7 { height: 85vw; }
  .grid-container.media-gallery .grid-item.item-7 img { object-position: center 20%; }

  .grid-container.media-gallery .grid-item.item-8 {
    padding-bottom: 0;
    overflow: visible;
  }

  .grid-container.media-gallery .grid-item.item-8 .img-inner {
    width: 100%;
    height: 70vw;
  }

  .grid-container.media-gallery .grid-item.item-9 {
    height: auto;
  }

  .grid-container.media-gallery .grid-item .media-ph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.grid-container.media-gallery .grid-item .media-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-container.media-gallery .grid-item.loaded .media-ph {
  display: none;
}

.image-caption a,
.image-caption a:visited,
.image-caption a:hover,
.image-caption a:focus,
.image-caption a:active {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Gallery subpages (akimbo.html, blue-dawn.html)
   Reuses .project-images, .project-info, .project-images--blue-dawn,
   .media-project-title, .project-description, fullscreen-* from above.
============================================================ */

.gallery-page {
  display: flex;
  min-height: 100vh;
  background: #fff;
}

/* Images column */
.gallery-page .project-images {
  /* Override the overlay's padding-left; akimbo and blue-dawn set their own */
  padding-left: 0;
}

/* Both galleries share the same info column width (30%), so text area is equal.
   Akimbo images: left edge at col 5/24, right edge at 70vw (= 100% - 30% info).
   Blue Dawn images: left edge at 0, width 70% — same right edge as Akimbo. */

.gallery-page.gallery-page--akimbo .project-images {
  margin-left: calc((100vw / 24) * 5);
  width: calc(70vw - (100vw / 24) * 5);
  flex-shrink: 0;
  padding-left: 0;
}

.gallery-page.gallery-page--akimbo .project-info {
  width: 30%;
  padding-left: 4vw;
  min-width: 0;
  box-sizing: border-box;
}

/* Blue Dawn: images are portrait, right-aligned within their column */
.gallery-page.gallery-page--blue-dawn .project-images {
  padding-left: 0;
  margin-left: calc((100vw / 24) * 5);
  width: calc(70vw - (100vw / 24) * 5);
  flex-shrink: 0;
}

.gallery-page.gallery-page--blue-dawn .project-info {
  width: 30%;
  padding-left: 4vw;
  min-width: 0;
  box-sizing: border-box;
}

/* Info panel: sticky, same as overlay */
.gallery-page .project-info {
  padding-top: 52px;
  padding-right: calc((100vw / 24) * 1);
  overflow: hidden;
  height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  box-sizing: border-box;
}

.gallery-page .project-info .media-project-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-page .project-images {
  box-sizing: border-box;
}

/* Back link — inline with title in project-info header row */
.gallery-back {
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.gallery-back:hover {
  opacity: 0.5;
}

@media (max-width: 1400px) {
  .gallery-page .project-info {
    padding-top: 12vh;
    padding-right: calc((100vw / 24) * 1);
  }
}

@media (max-width: 860px) {
  .gallery-page {
    flex-direction: column;
    position: relative;
  }

  .gallery-page .project-info {
    width: 100% !important;
    height: auto;
    position: static;
    overflow: visible;
    padding: 12vh 1rem 2rem !important;
    order: 1;
  }

  .gallery-page .project-images {
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem;
    padding-top: 0;
    box-sizing: border-box;
    order: 2;
  }

  .gallery-page .project-images img {
    height: 75vw;
  }

  .gallery-page.gallery-page--blue-dawn .project-images .img-wrap {
    width: 100%;
    margin-left: 0;
  }

  .gallery-page.gallery-page--akimbo .project-images,
  .gallery-page.gallery-page--blue-dawn .project-images {
    margin-left: 0;
    width: 100% !important;
  }

  .gallery-page.gallery-page--blue-dawn .project-images img {
    height: 75vw;
  }
}

/* ============================================================
   Projects listing page (projects.html)
   Grid proportions derived from media.html items 1+2:
   container = col5–col21, image col = 65.43%, text col = 31.35%
============================================================ */

.projects-list {
  margin-left: calc((100vw / 24) * 5);
  max-width: calc((100vw / 24) * 16);
  margin-top: 1vh;
  margin-bottom: 1vh;
}

.project-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 1.5vh;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* Variant A: image left (65.43%), text right (31.35%) */
.project-row--a .project-row__img {
  width: 65.43%;
  flex-shrink: 0;
  overflow: hidden;
}

.project-row--a .project-row__text {
  width: 31.35%;
  margin-left: auto;
  padding-left: 2vw;
  align-self: start;
  padding-top: 8.5vh;
}

/* Variant B: text left (31.35%), image right (65.43%) */
.project-row--b .project-row__text {
  width: 31.35%;
  flex-shrink: 0;
  padding-right: 2vw;
  align-self: start;
  padding-top: 0.2em;
}

.project-row--b .project-row__img {
  width: 65.43%;
  margin-left: auto;
  overflow: hidden;
}

/* Shared image cell */
.project-row__img img {
  width: 100%;
  height: 29.08vw;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.25s ease;
}

.project-row:hover .project-row__img img {
  will-change: transform;
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Text cell */
.project-row__title {
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.project-row__excerpt {
  font-size: var(--type-body);
  color: var(--dim);
  line-height: 1.6;
}

.project-row + .project-row {
  margin-bottom: 1.5vh;
}

@media (max-width: 1400px) {
  .projects-list {
    margin-left: calc((100vw / 24) * 5);
    max-width: calc((100vw / 24) * 16);
  }
}

@media (max-width: 860px) {
  .projects-list {
    margin-left: 0;
    max-width: 100%;
    margin-top: 12vh;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .project-row,
  .project-row--a,
  .project-row--b {
    flex-direction: column;
    margin-bottom: 0.9vh;
  }

  .project-row--a .project-row__img,
  .project-row--b .project-row__img,
  .project-row--a .project-row__text,
  .project-row--b .project-row__text {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .project-row--a .project-row__text,
  .project-row--b .project-row__text {
    order: -1;
  }

  .project-row__img img {
    height: 70vw;
  }

  .project-row--b .project-row__text {
    order: -1;
    margin-bottom: 2vh;
  }

  .project-row__text {
    padding-top: 3vh !important;
  }

  .projects-list .project-row:first-child .project-row__text {
    padding-top: 0 !important;
  }

  .project-row + .project-row {
    margin-bottom: 0.9vh;
  }
}

/* ============================================================
   Project detail subpage
============================================================ */

.project-detail {
  margin-left: calc((100vw / 24) * 5);
  max-width: calc((100vw / 24) * 16);
  margin-top: 10vh;
  margin-bottom: 12vh;
}

.project-detail__intro {
  margin-bottom: 0;
  align-items: flex-start;
}

.project-detail__intro .project-row__text {
  padding-top: 0;
}

.project-detail__header {
  font-size: var(--type-label);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4vh;
}

.project-detail__img {
  width: 100%;
  overflow: hidden;
  margin-bottom: 5vh;
}

.project-detail__img img {
  width: 100%;
  height: 56.25vw;
  max-height: 80vh;
  object-fit: cover;
  display: block;
}

.project-detail__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.project-detail__description {
  width: 100%;
  font-size: var(--type-body);
  color: var(--ink);
  line-height: 1.75;
}

.project-detail__description p {
  margin-bottom: 1.5em;
}

.project-detail__title-row + p {
  margin-top: 20px;
}

.project-detail__description p:last-child {
  margin-bottom: 0;
}

.project-detail__media {
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  padding-top: 0;
  margin-top: 14.4px;
}

.project-detail__embed-placeholder {
  border: 1px solid var(--dim2);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: var(--type-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-detail__media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
}

.project-detail__back {
  position: absolute;
  top: 10vh;
  right: calc((100vw / 24) * 1);
  z-index: 1000;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.project-detail__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project-detail__back:hover {
  opacity: 0.5;
}

@media (max-width: 1600px) {
  .project-detail {
    margin-left: calc((100vw / 24) * 5);
    max-width: calc((100vw / 24) * 16);
  }

  /* Project subpages: left column = image + embed, right column = description */
  .project-detail__intro {
    margin-bottom: 0;
  }

  .project-detail__media {
    width: 100%;
    margin-left: 0;
    margin-top: 14.4px; /* fixed gap so it stays identical while resizing */
  }
}

@media (max-width: 1400px) {
  .project-detail .project-row--a .project-row__text {
    padding-right: calc((100vw / 24) * 1);
  }
}

@media (max-width: 860px) {
  .project-detail__back {
    position: static;
    top: auto;
    right: auto;
  }

  .project-detail .project-detail__intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .project-detail .project-detail__intro .project-row__text {
    padding-top: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .project-detail .project-detail__title-row {
    width: 100%;
  }

  .project-detail {
    margin-left: 0;
    max-width: 100%;
    margin-top: 12vh;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .project-detail__img img {
    height: 70vw;
    max-height: none;
  }

  .project-detail__body {
    flex-direction: column;
  }

  .project-detail__description,
  .project-detail__media {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }

  .project-detail__description {
    order: -2;
    margin-bottom: 20px;
  }

  .project-detail__img {
    order: -1;
  }

  .project-detail__media {
    margin-top: 14.4px;
  }
}


/* projects.html spacing adjustments */
.projects-list .project-row:last-child {
  margin-bottom: 0;
}

.project-detail .project-row:hover .project-row__img img {
  transform: none;
  filter: none;
}

/* ============================================================
   Mobile landscape: low viewport height (phones rotated)
   Targets height ≤ 500px regardless of width, so it fires
   on landscape phones (~750–900px wide) that miss max-width:860px.
============================================================ */
@media (orientation: landscape) and (max-height: 500px) {
  /* Nav: bring closer to top edge, shrink gap */
  .site-nav {
    top: 3vh;
    gap: 2vh;
  }

  .menu-toggle {
    top: 3vh;
  }

  /* Menu overlay: reduce top padding so links are reachable */
  .menu {
    padding-top: 4rem;
    gap: 0.6rem;
  }

  /* Hero: replace fixed 100vh with auto so image isn't cropped to a sliver */
  .hero {
    height: auto;
    min-height: 100svh;
  }

  /* Hero image wrapper: cap height to something usable in landscape */
  .hero-img-wrap {
    height: 85vh;
  }

  /* Bio page: reduce large top margin */
  .bio-page {
    margin-top: 5vh;
  }

  /* Bio image wrapper: keep image visible but not full-screen tall */
  .bio-img-wrap {
    height: 80vh;
  }

  /* Section spacing: tighten vertical rhythm */
  .text-image {
    margin-top: 4vh;
  }

  .cal-section {
    margin-top: 3vh;
  }

  .grid-24.performances {
    margin-top: 4vh;
  }
}
