/* =====================================================================
   Gallery page parts: control bar (arrows, counter, thumbnail strip),
   the cover slide (two chapel arches + heading), mobile and no-JS rules.
   ===================================================================== */
.gx-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--gx-bar);
  padding: 0 32px;
  background:
    linear-gradient(to bottom, rgba(26, 5, 6, 0.78), rgba(18, 3, 4, 0.94)),
    #3e0a0c var(--gx-velvet) 0 0 / 512px 512px repeat;
  border-top: 1px solid rgba(211, 193, 129, 0.38);
}

.gx-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(211, 193, 129, 0.7);
  border-radius: 50%;
  background: rgba(11, 7, 6, 0.35);
  color: var(--gx-gold-hi);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.gx-btn:hover {
  background: rgba(88, 14, 17, 0.85);
  border-color: var(--gx-gold-hi);
}

.gx-bar :focus-visible,
.gx-begin:focus-visible {
  outline: 2px solid var(--gx-gold-hi);
  outline-offset: 3px;
}

.gx-count {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 92px;
  justify-content: center;
  color: var(--pearl);
  font: 400 15px/1 var(--ff-sans);
  letter-spacing: 0.24em;
}

.gx-count__now {
  font: 400 30px/1 var(--ff-display);
  letter-spacing: 0.04em;
  color: var(--gx-gold-hi);
}

.gx-count__sep {
  color: var(--gx-gold);
}

.gx-strip {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  margin: 0 0 0 12px;
  padding: 10px 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.gx-strip::-webkit-scrollbar {
  display: none;
}

.gx-thumb {
  position: relative;
  display: block;
  width: 48px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(211, 193, 129, 0.35);
  border-radius: 24px 24px 3px 3px;
  background: var(--gx-dark);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.gx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gx-thumb:hover,
.gx-thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--gx-gold-hi);
}

.gx-thumb[aria-current="true"] {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--gx-gold), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.gx-thumb--soon {
  display: grid;
  place-items: center;
  color: var(--gx-gold);
  font-size: 14px;
  background: radial-gradient(80% 70% at 50% 40%, rgba(120, 28, 32, 0.7), rgba(30, 6, 7, 0.95));
  border-style: dashed;
}

/* ---- cover: two chapel arches + heading ----------------------------- */
.gx-arch {
  position: absolute;
  left: 0;
  top: 0;
}

.gx-arch__ph {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--gx-dark);
}

.js .gx-arch__ph {
  visibility: hidden;
}

/* until the script has set the first states, nothing flashes */
.js .gx:not(.gx-on):not(.gx-failed) .gx-cover__text {
  opacity: 0;
}

.gx-arch__ph img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  max-width: none;
  will-change: transform;
}

.gx-arch__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.gx-arch__line path {
  fill: none;
}

.gx-arch__glow {
  stroke: rgba(239, 226, 176, 0.3);
  stroke-width: 9;
}

.gx-arch__stroke {
  stroke: #e6d398;
  stroke-width: 2.4;
  stroke-dasharray: 1 1;
}

.gx-arch__glint {
  stroke: #fffaf0;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 0.07 0.93;
  opacity: 0;
}

.gx-cover__text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gx-cover .gx-script {
  font-size: 92px;
  line-height: 1.15;
  margin: 2px 0 6px -6px;
}

.gx-h1 {
  font: 400 48px/1.12 var(--ff-display);
  letter-spacing: 0.02em;
  color: var(--pearl);
  max-width: 13em;
}

.gx-lede {
  margin-top: 16px;
  max-width: 24em;
  font: italic 400 23px/1.45 var(--ff-serif);
  color: rgba(239, 236, 227, 0.86);
}

.gx-begin {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 30px;
  padding: 0 22px 0 28px;
  border: 1px solid var(--gx-gold);
  border-radius: 999px;
  background: rgba(88, 14, 17, 0.75);
  color: var(--gx-gold-hi);
  font: 500 13px/1 var(--ff-sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.gx-begin:hover {
  background: var(--gx-wine);
}

.gx-hint {
  display: none;
  margin-top: 14px;
  font: 500 11px/1 var(--ff-sans);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(239, 226, 176, 0.75);
}

/* ---- phones and portrait screens (js/gx-layout.js uses the same test) -- */
@media (max-width: 767px), (max-aspect-ratio: 4/5) {
  :root {
    --gx-bar: 84px;
  }

  .gx-bar {
    gap: 10px;
    padding: 0 16px;
    /* the header's Book button sits bottom right on phones */
    padding-right: 150px;
  }

  .gx-btn {
    width: 48px;
    height: 48px;
  }

  .gx-count {
    min-width: 76px;
  }

  .gx-count__now {
    font-size: 26px;
  }

  .gx-strip {
    display: none;
  }

  .gx-script {
    font-size: 42px;
  }

  .gx-slide--pair .gx-script {
    font-size: 46px;
    margin-bottom: 4px;
  }

  .gx-slide--pair .gx-text,
  .gx-text {
    font-size: 18px;
  }

  .gx-card {
    padding: 18px 20px 16px;
  }

  .gx-cover .gx-script {
    font-size: 48px;
  }

  .gx-h1 {
    font-size: 32px;
  }

  .gx-lede {
    margin-top: 10px;
    font-size: 18px;
  }

  .gx-begin {
    margin-top: 18px;
  }

  .gx-hint {
    display: block;
  }
}

/* ---- no JS: the cover stays, the bar hides, the photos list below ---- */
html:not(.js) .gx {
  height: auto;
  min-height: 0;
  overflow: visible;
}

html:not(.js) .gx-stage {
  position: relative;
  height: 100vh;
}

html:not(.js) .gx-bar,
html:not(.js) .gx-begin,
html:not(.js) .gx-arch {
  display: none;
}

html:not(.js) .gx-cover__text {
  left: 24px;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.gx-noscript {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  padding: 32px 16px 64px;
  list-style: none;
}

.gx-noscript img {
  width: 100%;
  height: auto;
  display: block;
}

.gx-noscript figcaption {
  margin-top: 8px;
  color: var(--pearl);
  font: italic 400 18px/1.4 var(--ff-serif);
}
