* {
  box-sizing: border-box;
}

html,body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #101010;
}

body {
  font-family: Arial,Helvetica,sans-serif;
  color: #fff;
}

.exhibition {
  position: relative;
  height: 100vh;
  height: 100svh;
}

.photographs,.scrim {
  position: absolute;
  inset: 0;
}

.exhibition {
  isolation: isolate;
  overflow: hidden;
}

.photographs {
  z-index: 0;
}

.frame {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #101010;
}

.frame.active {
  display: flex;
}

.frame img {
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex: 1 1 0;
}

.frame.duo img {
  width: 50%;
  flex: 0 0 50%;
}

.scrim {
  z-index: 1;
  pointer-events: none;
  background: rgba(0,0,0,.13);
}

.identity {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: min(78vw,1300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(9px,1.1vw,18px);
  pointer-events: none;
  text-align: center;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 12px rgba(0,0,0,.2));
}

.year {
  color: #ffdb24;
  font-family: Arial,Helvetica,sans-serif;
  font-weight: 800;
  font-size: clamp(23px,3vw,45px);
  line-height: 1;
  letter-spacing: -.05em;
  text-shadow: 0 1px 14px rgba(0,0,0,.3);
}

@media (max-width:600px) {
  .identity {
    width: 92vw;
    gap: 10px;
  }
  .year {
    font-size: 25px;
  }
}

.still-gallery {
  position: relative;
  z-index: 3;
  background: #f1efe9;
  color: #1b1b1b;
  padding: clamp(68px,9vw,150px) clamp(20px,6.5vw,110px) clamp(100px,12vw,180px);
}

.gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  border-bottom: 1.5px solid #151515;
  padding-bottom: 15px;
  margin-bottom: clamp(55px,8vw,125px);
  font: 700 clamp(12px,1.1vw,16px)/1.3 Arial,Helvetica,sans-serif;
  letter-spacing: .01em;
}

.gallery-heading span:last-child {
  font-style: italic;
  font-weight: 400;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  column-gap: clamp(16px,3.5vw,65px);
  row-gap: clamp(80px,11vw,190px);
  align-items: start;
}

.gallery-item {
  grid-column: span 6;
  margin: 0;
  min-width: 0;
}

.gallery-item:nth-child(5n + 1) {
  grid-column: 2 / span 7;
}

.gallery-item:nth-child(5n + 2) {
  grid-column: 9 / span 4;
  margin-top: 16%;
}

.gallery-item:nth-child(5n + 3) {
  grid-column: 1 / span 5;
}

.gallery-item:nth-child(5n + 4) {
  grid-column: 7 / span 6;
  margin-top: 12%;
}

.gallery-item:nth-child(5n) {
  grid-column: 4 / span 6;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width:650px) {
  .still-gallery {
    padding: 72px 20px 100px;
  }
  .gallery-heading {
    margin-bottom: 64px;
    font-size: 11px;
  }
  .gallery-grid {
    grid-template-columns: repeat(6,minmax(0,1fr));
    row-gap: 72px;
    column-gap: 12px;
  }
  .gallery-item,.gallery-item:nth-child(n) {
    grid-column: 1 / span 6;
    margin: 0;
  }
  .gallery-item:nth-child(3n + 2) {
    grid-column: 2 / span 5;
  }
  .gallery-item:nth-child(3n) {
    grid-column: 1 / span 5;
  }
}

.gallery-top-control {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: clamp(72px,9vw,140px);
}

.gallery-top-control .page-back-top {
  display: block;
  width: 66px;
  height: 82px;
  border: 0;
  background: transparent;
}

.gallery-top-control img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
