:root {
  --background: #eeeeec;
  --text: #242424;
  --muted: #6f6f6a;
  --soft: #d8d8d3;
  --overlay: rgba(238, 238, 236, 0.96);
  --content-width: 1180px;
  --sidebar-width: 220px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.landing-page {
  min-height: 100vh;
}

.landing-slideshow {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: min(72vh, 760px);
  background: var(--soft);
}

.landing-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.landing-slideshow img.is-active {
  opacity: 1;
}

.landing-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  width: min(100% - 48px, 1480px);
  margin: 0 auto;
  padding: 42px 0 0;
}

.landing-header .site-title {
  margin: 0;
}

.landing-nav {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 150px);
  width: min(100% - 48px, 1480px);
  margin: 0 auto;
}

.landing-main p {
  max-width: 420px;
  margin: 0;
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.38;
}

.landing-footer {
  position: relative;
  z-index: 1;
}

.site-shell {
  width: calc(100% - 128px);
  margin: 0 auto;
  padding: 64px 0 72px;
}

.site-sidebar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(52px, 8vw, 96px);
}

.site-title,
.site-nav,
h1,
h2,
.artwork-title,
.project-title,
.small-label,
.site-footer {
  font-family: "Montserrat", Arial, sans-serif;
}

.site-title {
  display: inline-block;
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 11px 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-main {
  width: 100%;
  max-width: none;
}

.page-header {
  margin: 0 0 44px;
}

.gallery-section {
  margin-top: clamp(52px, 7vw, 92px);
}

.gallery-section:first-of-type {
  margin-top: 0;
}

.gallery-section h2 {
  margin-bottom: 22px;
}

h1 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 58px) clamp(22px, 3vw, 42px);
  align-items: start;
}

.artwork-grid-home {
  padding-top: 2px;
}

.artwork-card {
  grid-column: span 4;
  color: var(--text);
}

.artwork-card--large {
  grid-column: span 6;
}

.artwork-card--panoramic {
  grid-column: span 12;
}

.artwork-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: end;
}

.artwork-group {
  grid-column: 1 / -1;
}

.artwork-group h3 {
  margin: 0 0 16px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.artwork-row:not(.artwork-row--mixed) .artwork-card {
  grid-column: auto;
}

.artwork-row--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stained-glass-page .artwork-row--pair {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artwork-row--mixed {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.artwork-row--mixed .artwork-card {
  grid-column: span 3;
}

.artwork-row--mixed .artwork-card--large {
  grid-column: span 6;
}

.artwork-row--mixed .artwork-card--panoramic {
  grid-column: span 12;
}

.artwork-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.artwork-card img {
  width: 100%;
  height: auto;
  background: var(--soft);
  transition: opacity 160ms ease;
}

.artwork-button:hover img {
  opacity: 0.82;
}

.artwork-meta {
  margin-top: 12px;
}

.artwork-title {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.artwork-details {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.empty-state {
  max-width: 520px;
  color: var(--muted);
}

.text-page,
.cv-page {
  max-width: none;
}

.text-page p {
  margin: 22px 0 0;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
}

.text-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cv-page section {
  margin-top: 34px;
}

.cv-page p {
  margin: 8px 0;
}

.cv-page span {
  display: inline-block;
  min-width: 136px;
  color: var(--muted);
}

.cv-page a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.project-list {
  display: grid;
  gap: 72px;
  max-width: none;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 52px);
}

.project--curation {
  display: block;
}

.project--scene-design {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.project-title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

.project-meta,
.project-description,
.project-link,
.project-press {
  margin: 8px 0 0;
  color: var(--muted);
}

.project-link a,
.project-press a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.project-editions {
  display: grid;
  gap: 64px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.project-edition {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  column-gap: clamp(24px, 4vw, 52px);
  row-gap: 18px;
  align-items: start;
}

.project-edition-info {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.project-edition--with-poster .project-edition-info {
  display: contents;
}

.project-edition--with-poster .project-edition-text {
  grid-column: 1;
  grid-row: 1;
}

.project-edition--with-poster .project-edition-poster {
  grid-column: 1;
  grid-row: 2;
}

.project-edition--with-poster .project-edition-images {
  grid-column: 2;
  grid-row: 2;
}

.project-edition-text {
  display: grid;
  gap: 2px;
}

.project-editions span,
.project-editions em {
  color: var(--muted);
  font-style: normal;
}

.project-editions span,
.project-editions strong {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.project-editions em {
  font-size: 13px;
}

.project-edition-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-edition-poster,
.project-edition-images {
  min-width: 0;
}

.project-edition-image {
  margin: 0;
}

.project-edition-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.project-edition-poster .project-edition-image img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.project-media {
  display: grid;
  gap: 24px;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-image {
  margin: 0;
}

.project-image--featured {
  grid-column: 1 / -1;
}

.project-images img {
  width: 100%;
  height: auto;
  background: var(--soft);
}

.project-image figcaption,
.project-video figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.project-videos {
  display: grid;
  gap: 24px;
}

.project-video {
  margin: 0;
}

.project-video video,
.project-video-placeholder {
  width: 100%;
  background: var(--soft);
}

.project-video video {
  display: block;
}

.project-video-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  text-align: center;
}

.scene-project-intro,
.scene-project-video,
.scene-project-images {
  grid-column: 1 / -1;
}

.scene-project-intro {
  max-width: none;
}

.scene-project-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.scene-performances {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene-performances li {
  display: grid;
  gap: 2px;
}

.scene-performances span,
.scene-performances strong {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.scene-performances span,
.scene-performances em {
  color: var(--muted);
  font-style: normal;
}

.scene-performances em {
  font-size: 13px;
}

.scene-project-hero,
.scene-project-images .project-image,
.scene-project-video .project-video {
  margin: 0;
}

.scene-project-hero img,
.scene-project-images img {
  width: 100%;
  height: auto;
  background: var(--soft);
}

.scene-project-hero figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.scene-project-video video,
.scene-project-video .project-video-placeholder {
  width: 100%;
}

.scene-project-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}


.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vw, 56px);
  background: var(--overlay);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(220px, 320px);
  gap: clamp(22px, 4vw, 46px);
  align-items: end;
  max-width: min(100%, 1320px);
}

.lightbox[data-caption-placement="bottom"] .lightbox-inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: min(100%, 1120px);
}

.lightbox img {
  width: var(--lightbox-image-width, 72vw);
  max-width: 100%;
  max-height: var(--lightbox-max-height, 82vh);
  object-fit: var(--lightbox-object-fit, contain);
  background: var(--soft);
}

.lightbox-caption {
  max-width: 330px;
}

.lightbox[data-caption-placement="bottom"] .lightbox-caption {
  max-width: 780px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
}

.lightbox-wide img {
  width: min(86vw, 1280px);
}

.lightbox-vertical img {
  width: min(58vw, 720px);
}

.site-footer {
  width: calc(100% - 128px);
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 11px;
}

.landing-footer {
  width: min(100% - 48px, 1480px);
}

@media (max-width: 920px) {
  .landing-header {
    display: block;
    padding-top: 28px;
  }

  .landing-nav {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .site-shell {
    display: block;
    padding-top: 28px;
  }

  .site-sidebar {
    position: static;
    min-height: 0;
    margin-bottom: 44px;
  }

  .site-title {
    margin-bottom: 20px;
  }

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 11px 18px;
  }

  .artwork-card,
  .artwork-card--large,
  .artwork-card--panoramic {
    grid-column: span 6;
  }

  .artwork-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project--scene-design,
  .scene-project-lead {
    grid-template-columns: 1fr;
  }

  .scene-project-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-edition {
    grid-template-columns: 1fr;
  }

  .project-edition-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 620px) {
  .site-shell,
  .site-footer,
  .landing-header,
  .landing-main {
    width: min(100% - 32px, 1480px);
  }

  .landing-main {
    min-height: calc(100vh - 170px);
  }

  .landing-slideshow {
    min-height: 54vh;
  }

  .artwork-grid {
    grid-template-columns: 1fr;
  }

  .project-edition-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-project-images {
    grid-template-columns: 1fr;
  }

  .artwork-card,
  .artwork-card--large,
  .artwork-card--panoramic,
  .artwork-row,
  .artwork-group {
    grid-column: 1;
  }

  .artwork-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artwork-row--mixed {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .artwork-row--mixed .artwork-card {
    grid-column: span 3;
  }

  .artwork-row--mixed .artwork-card--large {
    grid-column: span 6;
  }

  .lightbox {
    padding: 50px 18px 24px;
  }

  .lightbox-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lightbox img {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .landing-main {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }
}
