/* Homepage exhibition: calm, full-viewport field for the existing project imagery. */
body:has(.exhibition-home) {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html:has(.exhibition-home) {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body:has(.exhibition-home)::-webkit-scrollbar,
html:has(.exhibition-home)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body:has(.exhibition-home) .content.container {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
}

body:has(.exhibition-home) .sidebar {
  width: 17.5rem;
  padding: 1.5rem 1.25rem;
  color: #f4f2ed;
  /* Background wordt nu bepaald door theme.css */
  border-right: 1px solid rgba(244, 242, 237, 0.12);
  z-index: 20;
  will-change: transform;
}

body:has(.exhibition-home) .sidebar .container {
  max-width: none;
  padding: 0;
}

body:has(.exhibition-home) .sidebar-sticky {
  top: 1.5rem;
  right: 1.25rem;
  bottom: 1.5rem;
  left: 1.25rem;
}

body:has(.exhibition-home) .sidebar-about h1 {
  margin: 0;
  color: inherit;
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

body:has(.exhibition-home) .sidebar-about .lead {
  display: none;
}

body:has(.exhibition-home) .sidebar-nav {
  max-height: calc(100svh - 12rem);
  margin: 3rem 0 0;
  padding: 0;
}

body:has(.exhibition-home) .sidebar a,
body:has(.exhibition-home) .sidebar-parent,
body:has(.exhibition-home) .sidebar summary {
  color: inherit;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

body:has(.exhibition-home) .sidebar a:hover,
body:has(.exhibition-home) .sidebar a:focus,
body:has(.exhibition-home) .sidebar a.active {
  display: block;
  letter-spacing: 0.1em;
  transform: none;
}

body:has(.exhibition-home) .sidebar .parent-item {
  padding: 0.36rem 0;
}

body:has(.exhibition-home) .sidebar .sidebar-child {
  padding: 0.2rem 0;
  color: rgba(244, 242, 237, 0.7);
}

body:has(.exhibition-home) .sidebar .sidebar-child:hover,
body:has(.exhibition-home) .sidebar .sidebar-child:focus,
body:has(.exhibition-home) .sidebar .sidebar-child.active {
  max-width: 100%;
  overflow: hidden;
  color: #ffffff;
  background: transparent;
  transform: none;
  white-space: nowrap;
}

body:has(.exhibition-home) .sidebar .dropdown-icon {
  color: currentColor;
}

body:has(.exhibition-home) .sidebar p {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  color: rgba(244, 242, 237, 0.45);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
}

body:has(.exhibition-home) .theme-btn {
  color: #f4f2ed;
  z-index: 30;
}

.exhibition-home {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #161616;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.exhibition-home::before,
.exhibition-home::after {
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.exhibition-home::before {
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.76) 0%, rgba(10, 10, 10, 0.14) 44%, rgba(10, 10, 10, 0.08) 100%);
}

.exhibition-home::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 28%;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.45));
}

.home-float-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-float-card {
  position: absolute;
  overflow: hidden;
  isolation: isolate;
  color: #f4f2ed;
  background: var(--page);
  box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.24);
  text-decoration: none;
  /* The position is changed by JavaScript every frame. The theme's generic
     link transition must never animate a card from left back to right. */
  transition: none !important;
  will-change: left, top;
}

.home-float-card:hover,
.home-float-card:focus-visible {
  color: #f4f2ed;
  letter-spacing: normal;
  transform: var(--float-position);
}

.home-float-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  opacity: var(--float-image-opacity, 1);
  transform: translateZ(0);
}

.home-float-card span {
  position: absolute;
  z-index: 2;
  right: 0.7rem;
  bottom: 0.6rem;
  left: 0.7rem;
  overflow: hidden;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px #000;
  white-space: nowrap;
}

.home-hero {
  position: relative;
  z-index: 3;
  display: flex;
  width: min(38rem, 45vw);
  height: 100%;
  min-height: 0;
  margin-left: clamp(19.5rem, 27vw, 29rem);
  padding: clamp(2rem, 7vh, 5rem) 2rem 3rem;
  align-items: center;
  pointer-events: none;
}

.home-hero__content {
  max-width: 29rem;
  pointer-events: auto;
}

.home-hero__label {
  margin: 0 0 1.25rem;
  color: rgba(244, 242, 237, 0.7);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.home-hero h1 {
  margin: 0;
  color: #f4f2ed;
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(3.4rem, 7.2vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.84;
}

.home-hero__intro {
  max-width: 28rem;
  margin: 2rem 0 0;
  color: #f4f2ed;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 700;
  line-height: 1.55;
}

.home-hero__note {
  display: block;
  margin-top: 2.25rem;
  color: rgba(244, 242, 237, 0.68);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.exhibition-projects {
  position: relative;
  z-index: 4;
}

.project-stage {
  position: relative;
  display: grid;
  min-height: 20svh;
  overflow: hidden;
  background: #111111;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.project-stage__link {
  position: relative;
  display: grid;
  min-height: 20svh;
  overflow: hidden;
  color: #f4f2ed;
  background: #1a1a1a;
  isolation: isolate;
  text-decoration: none;
}

.project-stage__link::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 40%, rgba(0, 0, 0, 0.55));
}

.project-stage__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.project-stage__caption {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: end;
  gap: 0.2rem;
  width: min(100% - 3rem, 68rem);
  margin: 0 1.5rem 0.85rem auto;
  text-align: right;
}

.project-stage__number,
.project-stage__category {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.project-stage__category {
  color: rgba(244, 242, 237, 0.76);
}

.project-stage__title {
  color: #f4f2ed;
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(1.1rem, 2.1vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.project-stage__link:hover,
.project-stage__link:focus-visible,
.project-stage__link.active {
  display: grid;
  letter-spacing: normal;
  transform: none;
}

@media (max-width: 62rem) {
  .home-hero {
    width: min(33rem, 55vw);
    margin-left: 18.5rem;
  }

  .home-float-card span {
    display: none;
  }
}

@media (max-width: 47.99rem) {
  body:has(.exhibition-home) {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: none;
  }

  body:has(.exhibition-home) .sidebar {
    display: none;
  }

  body:has(.exhibition-home) .theme-btn {
    top: 1rem;
    right: 1rem;
  }

  .exhibition-home::before {
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.68), rgba(10, 10, 10, 0.18));
  }

  .home-hero {
    width: min(31rem, 100%);
    margin: 0;
    padding: 1.5rem;
  }

  .home-hero h1 {
    font-size: clamp(3.8rem, 17vw, 6rem);
  }

  .home-hero__intro {
    max-width: 21rem;
    margin-top: 1.4rem;
  }

  .project-stage,
  .project-stage__link {
    min-height: 33.333svh;
  }

  .project-stage__caption {
    width: calc(100% - 2rem);
    margin: 0 1rem 1.25rem;
    text-align: left;
  }

  .project-stage__title {
    font-size: clamp(1.45rem, 7vw, 2.4rem);
  }
}
