:root {
  --gallery-bg: #d8aec9;
  --gallery-bg-soft: #e4bed3;
  --cream-glass: rgba(255, 244, 230, 0.34);
  --cream-glass-hover: rgba(255, 246, 235, 0.55);
  --gold: #a77927;
  --gold-soft: rgba(167, 121, 39, 0.44);
  --shadow: rgba(93, 54, 71, 0.10);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(238, 210, 218, .58), rgba(216, 174, 201, .96) 68%),
    var(--gallery-bg);
}


.seo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
}

.gallery {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: clamp(52px, 7.2vw, 118px) minmax(0, 1fr) clamp(52px, 7.2vw, 118px);
  align-items: center;
  justify-items: center;
  background:
    linear-gradient(90deg, rgba(210, 166, 195, .92), rgba(226, 190, 208, .88) 15%, rgba(226, 190, 208, .88) 85%, rgba(210, 166, 195, .92));
}

.image-stage {
  position: relative;
  width: min(100%, calc(100vh * 1672 / 941));
  height: min(100vh, calc((100vw - clamp(104px, 14.4vw, 236px)) * 941 / 1672));
  display: grid;
  place-items: center;
}

.image-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.nav {
  position: relative;
  width: clamp(32px, 3.3vw, 50px);
  height: clamp(58px, 6.6vw, 92px);
  border-radius: 999px;
  border: 1px solid rgba(167, 121, 39, 0.38);
  background:
    linear-gradient(180deg, rgba(255,255,255,.36), rgba(255,233,222,.18)),
    rgba(248, 221, 222, .18);
  color: rgba(151, 103, 26, .88);
  font-size: clamp(30px, 3.1vw, 46px);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(.96);
  transition: opacity .45s ease, transform .45s ease, background .3s ease, border-color .3s ease;
  box-shadow: 0 10px 28px var(--shadow), inset 0 0 18px rgba(255,255,255,.16);
  cursor: pointer;
}

.nav::before,
.nav::after {
  content: "✧";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(167, 121, 39, 0.42);
  font-size: 12px;
  line-height: 1;
  opacity: .7;
}

.nav::before { top: -20px; }
.nav::after { bottom: -20px; }

.nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.nav:hover {
  border-color: rgba(167, 121, 39, 0.56);
  background:
    linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,236,226,.28)),
    rgba(248, 221, 222, .28);
}

.nav span {
  transform: translateY(-2px);
}

.nav:focus-visible,
.hotspot:focus-visible {
  outline: 2px solid rgba(167, 121, 39, .45);
  outline-offset: 4px;
}

.hotspot {
  position: absolute;
  display: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.hotspot.is-visible { display: block; }

.enter-hotspot {
  left: 39.5%;
  top: 63.2%;
  width: 21%;
  height: 8.2%;
}

.home-hotspot {
  left: 39.5%;
  top: 72.2%;
  width: 21%;
  height: 7.4%;
}


.download-text-hotspot {
  left: 11.7%;
  top: 60.8%;
  width: 25.8%;
  height: 7.1%;
}

.download-notext-hotspot {
  left: 11.7%;
  top: 70.2%;
  width: 25.8%;
  height: 7.1%;
}

/* Last chamber: visible TERUG NAAR HOME text inside the artwork. */
.home-hotspot.last-page {
  left: 10.5%;
  top: 81.5%;
  width: 27.5%;
  height: 8%;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 0 minmax(0, 1fr) 0;
  }

  .image-stage {
    width: 100vw;
    height: min(100vh, calc(100vw * 941 / 1672));
  }

  .nav {
    position: fixed;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%) scale(.96);
    width: 36px;
    height: 66px;
    font-size: 34px;
  }

  .nav-left { left: 8px; }
  .nav-right { right: 8px; }
  .nav.is-visible { transform: translateY(-50%) scale(1); }
}
