:root {
  --gold: #d7b66f;
  --gold-light: #f1d99b;
  --gold-dark: #9a7436;
  --black: #050505;
  --panel: rgba(18, 18, 19, 0.96);
  --text: #ffffff;
  --text-muted: #999999;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  overflow-anchor: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 50% -10%,
      #424242 0,
      #171718 29%,
      #090909 58%,
      #030303 100%
    );

  color: var(--text);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}


/* =========================================================
   LOADING
   ========================================================= */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  background:
    radial-gradient(
      circle at 50% 38%,
      #242424 0,
      #0e0e0f 34%,
      #050505 72%
    );

  transition:
    opacity .4s ease,
    visibility .4s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  width: min(390px, 84vw);
  text-align: center;
}

.loading-brand {
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .22em;
}

.loading-title {
  margin: 14px 0 22px;
  color: #ddd;
  font-size: 14px;
  line-height: 1.5;
}

.loading-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}

.loading-progress {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--gold-dark),
      var(--gold),
      var(--gold-light)
    );

  box-shadow:
    0 0 16px
    rgba(215,182,111,.45);

  transition: width .22s ease;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: relative;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 19px 28px 12px;
}

.site-header h1 {
  margin: 3px 0 0;
  color: #fff;

  font-size:
    clamp(
      21px,
      2.3vw,
      33px
    );

  font-weight: 700;
  letter-spacing: -.025em;
}

.eyebrow {
  margin: 0;

  color: var(--gold);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .19em;
}

.header-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 0 21px;

  border:
    1px solid
    rgba(255,231,173,.3);

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #dec17e,
      #a47d3c
    );

  color: #fff;

  box-shadow:
    0 10px 30px
    rgba(0,0,0,.32);

  text-decoration: none;

  font-size: 13px;
  font-weight: 800;
}


/* =========================================================
   VIEWER
   ========================================================= */

.viewer-shell {
  width: 100%;
  padding: 0 14px 96px;
}

.book-stage {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 1500px;
  min-height: 720px;

  margin: 0 auto;
  overflow: hidden;

  border-radius: 26px;
}

.book-stage::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 48%;

  width: min(1100px, 82vw);
  height: 75%;

  transform:
    translate(-50%, -50%);

  pointer-events: none;

  background:
    radial-gradient(
      ellipse,
      rgba(255,255,255,.065) 0%,
      rgba(215,182,111,.025) 42%,
      transparent 73%
    );

  filter: blur(12px);
}

.zoom-container {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: max-content;

  min-width: 100%;
  min-height: 100%;
}

#book {
  position: relative;
  max-width: 100%;

  filter:
    drop-shadow(
      0 30px 40px
      rgba(0,0,0,.78)
    );
}

.page {
  overflow: hidden;
  background: #101010;
}

.page img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  background: #101010;

  user-select: none;
  -webkit-user-drag: none;
}


/* =========================================================
   MOBILE SINGLE PAGE / PDF.JS
   ========================================================= */

.mobile-book {
  width: 100%;
  height: 100%;

  max-width: 100%;

  filter:
    drop-shadow(
      0 18px 26px
      rgba(0,0,0,.72)
    );
}

.mobile-page-frame,
.mobile-page-host {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
}

.mobile-page-frame {
  position: relative;
  overflow: hidden;
}

.mobile-page-host {
  min-width: 0;
  min-height: 0;
}

.mobile-page-image,
.mobile-pdf-canvas {
  display: block;

  max-width: 100%;
  max-height: 100%;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.mobile-page-image {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.mobile-pdf-canvas {
  width: auto;
  height: auto;

  background: #fff;
}


/* =========================================================
   DESKTOP EDGE BUTTONS
   ========================================================= */

.edge-button {
  position: absolute;

  top: 50%;

  z-index: 25;

  display: grid;
  place-items: center;

  width: 52px;
  height: 76px;

  padding: 0;

  border:
    1px solid
    rgba(255,255,255,.12);

  border-radius: 999px;

  background:
    rgba(12,12,12,.68);

  color: #fff;

  box-shadow:
    0 12px 32px
    rgba(0,0,0,.42);

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);

  font-size: 39px;

  cursor: pointer;

  transform:
    translateY(-50%);
}

.edge-previous {
  left: 16px;
}

.edge-next {
  right: 16px;
}

.edge-button:disabled {
  opacity: .22;

  cursor: default;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.progress-wrap {
  width:
    min(
      760px,
      72%
    );

  height: 2px;

  margin:
    4px auto 14px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(255,255,255,.09);
}

.page-progress {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--gold-dark),
      var(--gold-light)
    );

  transition:
    width .3s ease;
}


/* =========================================================
   MOBILE THUMBNAILS
   ========================================================= */

.mobile-thumbnail-launcher,
.mobile-thumbnail-tray,
.mobile-thumbnail-handle,
.mobile-thumbnail-tray-handle {
  display: none;
}

.mobile-thumbnails {
  display: flex;

  gap: 7px;

  width: 100%;

  overflow-x: auto;

  padding:
    0 4px 5px;

  scroll-behavior: smooth;

  scroll-snap-type:
    x proximity;

  overscroll-behavior-x:
    contain;

  -webkit-overflow-scrolling:
    touch;

  scrollbar-width: none;
}

.mobile-thumbnails::-webkit-scrollbar {
  display: none;
}

.mobile-thumbnail-button {
  position: relative;

  flex:
    0 0 auto;

  width: 50px;

  padding: 2px;

  border:
    1px solid
    rgba(255,255,255,.1);

  border-radius: 8px;

  background: #111;

  cursor: pointer;

  scroll-snap-align:
    center;
}

.mobile-thumbnail-button img {
  display: block;

  width: 44px;
  height: 62px;

  object-fit: cover;

  border-radius: 5px;

  background: #202020;
}

.mobile-thumbnail-number {
  position: absolute;

  right: 4px;
  bottom: 4px;

  min-width: 17px;
  min-height: 17px;

  display: grid;
  place-items: center;

  padding:
    0 4px;

  border-radius: 999px;

  background:
    rgba(0,0,0,.78);

  color: #fff;

  font-size: 9px;
  font-weight: 800;
}

.mobile-thumbnail-button.active {
  border-color:
    var(--gold-light);

  box-shadow:
    0 0 0 1px
    rgba(215,182,111,.42);

  transform:
    translateY(-2px);
}


/* =========================================================
   CONTROL BAR
   ========================================================= */

.control-bar {
  position: sticky;

  bottom:
    calc(
      12px +
      var(--safe-bottom)
    );

  z-index: 120;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  width: fit-content;

  max-width:
    calc(
      100% - 20px
    );

  margin:
    0 auto;

  padding: 6px;

  border:
    1px solid
    rgba(255,255,255,.12);

  border-radius: 999px;

  background:
    rgba(12,12,13,.94);

  box-shadow:
    0 18px 55px
    rgba(0,0,0,.64);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);
}

.control-bar button {
  min-height: 43px;

  border:
    1px solid
    transparent;

  border-radius: 999px;

  padding:
    0 15px;

  background: transparent;

  color: #e8e8e8;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.control-bar .primary-nav {
  display: grid;
  place-items: center;

  width: 45px;
  min-width: 45px;

  padding: 0;

  background:
    linear-gradient(
      135deg,
      var(--gold-light),
      var(--gold-dark)
    );

  color: #fff;

  font-size: 28px;
}

.control-bar button:disabled {
  opacity: .28;

  cursor: default;
}

.page-status {
  min-width: 100px;

  padding:
    0 9px;

  color:
    var(--gold-light);

  text-align: center;

  font-size: 12px;
  font-weight: 800;
}


/* =========================================================
   DRAWERS
   ========================================================= */

.drawer {
  position: fixed;

  left: 50%;

  bottom:
    calc(
      77px +
      var(--safe-bottom)
    );

  z-index: 220;

  width:
    min(
      820px,
      calc(
        100% - 24px
      )
    );

  max-height: 68vh;

  overflow: auto;

  transform:
    translateX(-50%);

  border:
    1px solid
    rgba(255,255,255,.11);

  border-radius: 22px;

  background:
    rgba(18,18,19,.98);

  box-shadow:
    0 30px 90px
    rgba(0,0,0,.78);

  padding: 16px;

  backdrop-filter:
    blur(20px);

  -webkit-backdrop-filter:
    blur(20px);

  overscroll-behavior:
    contain;

  -webkit-overflow-scrolling:
    touch;
}

.drawer[hidden],
.modal[hidden] {
  display: none;
}

.drawer-heading {
  position: sticky;

  top: 0;

  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 14px;

  padding:
    2px 2px 10px;

  border-bottom:
    1px solid
    rgba(255,255,255,.08);

  background:
    rgba(22,22,23,.94);
}

.drawer-heading > button,
.modal-close {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  padding: 0;

  border:
    1px solid
    rgba(255,255,255,.08);

  border-radius: 50%;

  background:
    rgba(255,255,255,.07);

  color: #fff;

  font-size: 24px;

  cursor: pointer;
}

.thumbnails {
  display: flex;

  gap: 13px;

  overflow-x: auto;

  padding:
    7px 4px 15px;

  scroll-behavior: smooth;
}

.thumbnail-button {
  flex:
    0 0 auto;

  padding: 3px;

  border:
    1px solid
    rgba(255,255,255,.09);

  border-radius: 10px;

  background: #101010;

  cursor: pointer;
}

.thumbnail-button.active {
  border-color:
    var(--gold);
}

.thumbnail-button img {
  display: block;

  width: 76px;

  aspect-ratio:
    210 / 297;

  object-fit: cover;

  border-radius: 7px;

  background: #181818;
}

.option-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  gap: 9px;
}

.option-grid button {
  min-height: 50px;

  padding:
    10px 12px;

  border:
    1px solid
    rgba(255,255,255,.09);

  border-radius: 13px;

  background: #252525;

  color: #fff;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}


/* =========================================================
   CONTENTS
   ========================================================= */

.contents-panel {
  width:
    min(
      900px,
      calc(
        100% - 24px
      )
    );

  max-height: 72vh;
}

.contents-home {
  margin-bottom: 17px;
}

.contents-section +
.contents-section {
  margin-top: 18px;

  padding-top: 17px;

  border-top:
    1px solid
    rgba(255,255,255,.075);
}

.contents-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin:
    0 3px 9px;
}

.contents-section-title {
  margin: 0;

  color: var(--gold);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: .14em;

  text-transform: uppercase;
}

.contents-section-range {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;
}

.contents-section-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 8px;
}

.contents-button {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  width: 100%;
  min-height: 62px;

  padding:
    11px 13px 11px 15px;

  border:
    1px solid
    rgba(255,255,255,.085);

  border-radius: 13px;

  background:
    rgba(255,255,255,.04);

  color: #fff;

  text-align: left;

  cursor: pointer;
}

.contents-button.active {
  border-color:
    rgba(215,182,111,.72);

  background:
    rgba(215,182,111,.13);

  box-shadow:
    inset 3px 0 0
    var(--gold);
}

.contents-item-copy strong {
  display: block;

  font-size: 13px;
  line-height: 1.3;
}

.contents-item-copy small {
  display: block;

  margin-top: 4px;

  color:
    var(--gold);

  font-size: 10px;
  font-weight: 700;
}

.contents-item-arrow {
  color:
    var(--gold-light);

  font-size: 25px;
}


/* =========================================================
   ENQUIRY
   ========================================================= */

.floating-enquire {
  position: fixed;

  right: 19px;

  bottom:
    calc(
      20px +
      var(--safe-bottom)
    );

  z-index: 160;

  min-height: 48px;

  border: 0;

  border-radius: 999px;

  padding:
    0 22px;

  background:
    linear-gradient(
      135deg,
      #e0c47f,
      #9d7638
    );

  color: #fff;

  font-size: 13px;
  font-weight: 800;

  cursor: pointer;
}

.modal {
  position: fixed;

  inset: 0;

  z-index: 500;

  display: grid;
  place-items: center;

  padding: 20px;
}

.modal-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(0,0,0,.8);
}

.modal-card {
  position: relative;

  z-index: 1;

  width:
    min(
      510px,
      100%
    );

  border:
    1px solid
    rgba(255,255,255,.12);

  border-radius: 24px;

  background: #171717;

  padding: 30px;
}

.modal-close {
  position: absolute;

  top: 13px;
  right: 13px;
}

.contact-actions {
  display: grid;

  gap: 9px;

  margin-top: 23px;
}

.contact-actions a,
.contact-actions button {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 49px;

  border:
    1px solid
    rgba(255,255,255,.08);

  border-radius: 999px;

  padding:
    0 18px;

  background:
    linear-gradient(
      135deg,
      var(--gold),
      var(--gold-dark)
    );

  color: #fff;

  text-decoration: none;

  font-size: 13px;
  font-weight: 800;
}


/* =========================================================
   DEDICATED ZOOM READER
   ========================================================= */

.image-zoom-viewer {
  position: fixed;
  inset: 0;

  z-index: 10000;

  display: block;

  overflow: hidden;

  background: #020202;

  isolation: isolate;

  pointer-events:
    auto !important;
}

.image-zoom-viewer[hidden] {
  display: none;
}

.image-zoom-toolbar {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 10050;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 58px;

  padding:
    calc(
      8px +
      env(
        safe-area-inset-top,
        0px
      )
    )
    10px
    8px;

  background:
    linear-gradient(
      rgba(0,0,0,.97),
      rgba(0,0,0,.64)
    );

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);

  pointer-events:
    auto !important;

  touch-action:
    manipulation;
}

.image-zoom-toolbar > span {
  color:
    var(--gold-light);

  font-size: 12px;
  font-weight: 800;

  white-space: nowrap;

  pointer-events: none;
}

.image-zoom-actions {
  position: relative;

  z-index: 10051;

  display: flex;
  align-items: center;

  gap: 5px;

  pointer-events:
    auto !important;
}

.image-zoom-toolbar button {
  position: relative;

  z-index: 10052;

  display: grid;
  place-items: center;

  min-width: 40px;
  height: 40px;

  padding:
    0 10px;

  border:
    1px solid
    rgba(255,255,255,.13);

  border-radius: 999px;

  background:
    rgba(255,255,255,.1);

  color: #fff;

  font-weight: 800;

  cursor: pointer;

  pointer-events:
    auto !important;

  touch-action:
    manipulation;

  -webkit-user-select:
    none;

  user-select:
    none;
}

.image-zoom-toolbar button:disabled {
  opacity: .35;
}

.image-zoom-reset {
  min-width:
    58px !important;

  font-size: 11px;
}

#closeImageZoom {
  width: 40px;
  min-width: 40px;

  padding: 0;

  border-radius: 50%;

  font-size: 25px;
}

.image-zoom-scroll {
  position: fixed;

  left: 0;
  right: 0;

  top:
    calc(
      58px +
      env(
        safe-area-inset-top,
        0px
      )
    );

  bottom:
    calc(
      42px +
      env(
        safe-area-inset-bottom,
        0px
      )
    );

  z-index: 10010;

  overflow: auto;

  background: #020202;

  overscroll-behavior:
    contain;

  -webkit-overflow-scrolling:
    touch;

  touch-action:
    pan-x pan-y;

  pointer-events: auto;

  scrollbar-width: none;
}

.image-zoom-scroll::-webkit-scrollbar {
  display: none;
}

.image-zoom-canvas {
  position: relative;

  width: 100%;
  height: 100%;

  min-width: 100%;
  min-height: 100%;
}

.image-zoom-canvas img,
.image-zoom-canvas canvas {
  position: absolute;

  display: block;

  max-width: none;

  margin: 0;

  user-select: none;

  -webkit-user-select: none;

  -webkit-user-drag: none;

  pointer-events: none;
}

.image-zoom-canvas img[hidden],
.image-zoom-canvas canvas[hidden] {
  display: none !important;
}

.zoom-pdf-canvas {
  background: #fff;
}

.image-zoom-scroll.is-zoomed {
  cursor: grab;
}

.image-zoom-help {
  position: fixed;

  left: 50%;

  bottom:
    calc(
      7px +
      env(
        safe-area-inset-bottom,
        0px
      )
    );

  z-index: 10040;

  transform:
    translateX(-50%);

  width: max-content;

  max-width:
    calc(
      100% - 18px
    );

  margin: 0;

  padding:
    6px 10px;

  border:
    1px solid
    rgba(255,255,255,.08);

  border-radius: 999px;

  background:
    rgba(0,0,0,.78);

  color: #ddd;

  font-size: 10px;

  text-align: center;

  pointer-events: none;
}

body.zoom-viewer-open {
  overflow: hidden;
}

body.zoom-viewer-open
.book-stage,

body.zoom-viewer-open
.mobile-thumbnail-launcher,

body.zoom-viewer-open
.mobile-thumbnail-tray,

body.zoom-viewer-open
.control-bar {
  pointer-events:
    none !important;
}


/* =========================================================
   ERROR / FOOTER
   ========================================================= */

.error-message {
  max-width: 680px;

  margin:
    30px auto;

  padding: 20px;

  border-radius: 14px;

  background: #281318;

  line-height: 1.5;
}

.site-footer {
  padding:
    8px 12px 26px;

  text-align: center;
}

.site-footer a {
  color: var(--gold);

  text-decoration: none;

  font-size: 12px;
}

body.fullscreen-mode
.site-header,

body.fullscreen-mode
.site-footer {
  display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media
  (max-width: 900px) {

  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .book-stage {
    min-height: 660px;
  }

  .edge-button {
    width: 46px;
    height: 68px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media
  (max-width: 700px) {

  body {
    background:
      linear-gradient(
        #171717,
        #050505 42%,
        #020202
      );
  }

  .site-header {
    min-height: 48px;

    justify-content: flex-start;

    gap: 8px;

    padding:
      8px 12px 5px;
  }

  .header-copy {
    display: none;
  }

  .header-enquire {
    flex:
      0 0 auto;

    min-height: 34px;

    padding:
      0 14px;

    font-size: 10px;
  }

  .viewer-shell {
    padding:
      0 3px
      calc(
        67px +
        var(--safe-bottom)
      );
  }

  .book-stage {
    width: 100%;

    min-height: 0;
    max-height: none;

    height:
      min(
        141.4vw,
        calc(
          100dvh - 132px
        )
      );

    margin:
      0 auto;

    padding: 0;

    overflow: hidden;

    border-radius: 0;

    touch-action: pan-y;
  }

  .book-stage::before {
    width: 100vw;
    height: 90%;
  }

  .zoom-container {
    width: 100%;

    min-width: 0;
    min-height: 0;

    height: 100%;

    padding: 0;
  }

  #book,
  .mobile-book {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;
  }

  .mobile-page-host {
    overflow: hidden;
  }

  .edge-button {
    display: none;
  }

  .progress-wrap {
    width: 62%;

    margin:
      4px auto 2px;
  }


  /* Swipe up for pages */

  .mobile-thumbnail-launcher {
    position: fixed;

    left: 50%;

    bottom:
      calc(
        58px +
        var(--safe-bottom)
      );

    z-index: 191;

    display: block;

    width: 138px;
    height: 29px;

    transform:
      translateX(-50%);

    transition:
      opacity .16s ease,
      transform .18s ease;

    pointer-events: auto;
  }

  .mobile-thumbnail-launcher.tray-open {
    opacity: 0;

    transform:
      translate(
        -50%,
        8px
      );

    pointer-events: none;
  }

  .mobile-thumbnail-handle {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 29px;

    padding: 0;

    border: 0;

    border-radius:
      12px 12px 0 0;

    background:
      rgba(4,4,4,.72);

    color:
      var(--gold-light);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .025em;

    line-height: 1;

    cursor: pointer;

    touch-action: none;

    backdrop-filter:
      blur(8px);

    -webkit-backdrop-filter:
      blur(8px);
  }

  .mobile-thumbnail-grip {
    display: block;

    width: 46px;
    height: 4px;

    margin-bottom: 4px;

    border-radius: 999px;

    background:
      linear-gradient(
        90deg,
        var(--gold-dark),
        var(--gold-light)
      );

    box-shadow:
      0 0 8px
      rgba(215,182,111,.24);
  }


  /* Thumbnail tray */

  .mobile-thumbnail-tray {
    position: fixed;

    left: 50%;

    bottom:
      calc(
        58px +
        var(--safe-bottom)
      );

    z-index: 190;

    display: block;

    width:
      calc(
        100% - 10px
      );

    max-width: 620px;

    height: 108px;

    padding:
      0 5px 6px;

    transform:
      translate(
        -50%,
        calc(
          100% + 20px
        )
      );

    opacity: 0;

    pointer-events: none;

    visibility: hidden;

    border:
      1px solid
      rgba(255,255,255,.12);

    border-radius:
      16px 16px 12px 12px;

    background:
      linear-gradient(
        180deg,
        rgba(28,28,29,.985),
        rgba(8,8,8,.99)
      );

    box-shadow:
      0 -8px 30px
      rgba(0,0,0,.48);

    backdrop-filter:
      blur(16px);

    -webkit-backdrop-filter:
      blur(16px);

    transition:
      transform .22s ease,
      opacity .16s ease,
      visibility 0s linear .22s;

    overflow: hidden;
  }

  .mobile-thumbnail-tray.open {
    transform:
      translate(
        -50%,
        0
      );

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transition-delay: 0s;
  }

  .mobile-thumbnail-tray-handle {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 31px;

    padding:
      2px 0 3px;

    border: 0;

    background: transparent;

    color:
      var(--gold-light);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .03em;

    cursor: pointer;

    touch-action: none;
  }

  .mobile-thumbnail-tray
  .mobile-thumbnails {
    height: 70px;

    opacity: 1;

    pointer-events: auto;
  }


  /* Bottom controls */

  .control-bar {
    position: fixed;

    left: 50%;

    bottom:
      calc(
        6px +
        var(--safe-bottom)
      );

    z-index: 200;

    display: grid;

    grid-template-columns:
      39px
      minmax(
        44px,
        1fr
      )
      64px
      minmax(
        42px,
        1fr
      )
      minmax(
        42px,
        1fr
      )
      39px;

    width:
      calc(
        100% - 10px
      );

    max-width: 620px;

    gap: 2px;

    padding: 5px;

    transform:
      translateX(-50%);

    border-radius: 17px;
  }

  .control-bar button {
    min-width: 0;
    min-height: 40px;

    padding:
      0 4px;

    font-size: 10px;
  }

  .control-bar .primary-nav {
    width: 39px;
    min-width: 39px;

    font-size: 24px;
  }

  .page-status {
    min-width: 0;

    padding:
      0 1px;

    font-size: 9px;
    line-height: 1.1;

    white-space: normal;
  }

  .floating-enquire {
    display: none;
  }

  .drawer {
    bottom:
      calc(
        60px +
        var(--safe-bottom)
      );

    width:
      calc(
        100% - 10px
      );

    max-height:
      calc(
        100dvh - 104px
      );

    padding: 12px;

    border-radius: 18px;
  }

  .thumbnail-button img {
    width: 64px;
  }

  .option-grid {
    grid-template-columns:
      repeat(
        2,
        1fr
      );
  }

  .contents-panel {
    max-height:
      calc(
        100dvh - 104px
      );
  }

  .contents-section-grid {
    grid-template-columns:
      1fr;
  }

  .contents-button {
    min-height: 56px;

    padding:
      9px 11px 9px 13px;
  }

  .modal {
    padding: 12px;
  }

  .modal-card {
    max-height:
      calc(
        100dvh - 24px
      );

    overflow: auto;

    padding:
      27px 20px 22px;
  }

  .site-footer {
    display: none;
  }


  /* Dedicated zoom reader toolbar */

  .image-zoom-toolbar {
    padding-left: 8px;
    padding-right: 8px;
  }

  .image-zoom-toolbar > span {
    font-size: 10px;
  }

  .image-zoom-actions {
    gap: 4px;
  }

  .image-zoom-toolbar button {
    min-width: 36px;
    height: 36px;

    padding:
      0 8px;
  }

  .image-zoom-reset {
    min-width:
      50px !important;

    font-size: 10px;
  }

  #closeImageZoom {
    width: 36px;
    min-width: 36px;
    height: 36px;

    font-size: 23px;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media
  (max-width: 390px) {

  .site-header h1 {
    font-size: 15px;
  }

  .header-enquire {
    padding:
      0 9px;

    font-size: 9px;
  }

  .mobile-thumbnail-launcher {
    width: 132px;
  }

  .mobile-thumbnail-button {
    width: 47px;
  }

  .mobile-thumbnail-button img {
    width: 41px;
    height: 58px;
  }

  .control-bar {
    grid-template-columns:
      37px
      minmax(
        40px,
        1fr
      )
      58px
      minmax(
        38px,
        1fr
      )
      minmax(
        38px,
        1fr
      )
      37px;
  }

  .control-bar button {
    padding:
      0 2px;

    font-size: 9px;
  }

  .control-bar .primary-nav {
    width: 37px;
    min-width: 37px;
  }

  .page-status {
    font-size: 8px;
  }

  .image-zoom-toolbar > span {
    max-width: 72px;

    overflow: hidden;

    text-overflow: ellipsis;
  }
}


/* =========================================================
   SHORT PHONE SCREENS
   ========================================================= */

@media
  (max-height: 640px)
  and
  (max-width: 700px) {

  .site-header {
    min-height: 42px;

    padding-top: 5px;
  }

  .site-header h1 {
    font-size: 14px;
  }

  .header-enquire {
    min-height: 30px;
  }

  .book-stage {
    height:
      calc(
        100dvh - 120px
      );
  }

  .mobile-thumbnail-tray {
    height: 100px;
  }

  .mobile-thumbnail-tray
  .mobile-thumbnails {
    height: 65px;
  }

  .mobile-thumbnail-button img {
    height: 54px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media
  (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior:
      auto !important;

    transition-duration:
      .01ms !important;

    animation-duration:
      .01ms !important;
  }
}
