.journey-gallery {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: clamp(12px, 2vh, 22px);
  padding: clamp(22px, 3.5vh, 42px) clamp(22px, 4vw, 76px);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  background: linear-gradient(180deg, rgb(74 5 18 / 65%), rgb(74 5 18 / 16%) 28%, rgb(74 5 18 / 12%) 65%, rgb(74 5 18 / 72%));
  color: #fff;
}
.journey-gallery__head, .journey-gallery__caption, .journey-gallery__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.journey-gallery__head { align-items: flex-end; }
.journey-gallery__eyebrow, .journey-gallery__collection,
.journey-gallery__continue, .journey-gallery__steps button, .journey-gallery__count {
  font: 500 10px/1.4 var(--font-sans, Arial, sans-serif);
  letter-spacing: .18em;
}
.journey-gallery__eyebrow { display: block; margin-bottom: 7px; color: rgb(255 255 255 / 80%); }
.journey-gallery__eyebrow::before { content: ""; display: inline-block; width: 24px; height: 2px; margin: 0 10px 3px 0; background: #b51e36; }
.journey-gallery__head h2 {
  margin: 0;
  font: 400 clamp(1.8rem, 3.3vw, 3.6rem)/1.05 var(--font-display, Georgia, serif);
  letter-spacing: -.035em;
}
.journey-gallery__head, .journey-gallery__caption, .journey-gallery__foot { text-shadow: 0 2px 15px rgb(55 0 12 / 70%); }
.journey-gallery__collection { padding-bottom: 4px; color: rgb(255 255 255 / 80%); }
.journey-gallery__pictures { position: relative; min-height: 0; overflow: hidden; }
.journey-gallery__photo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 8px; opacity: 0; }
.journey-gallery__photo img,
.journey-gallery__photo video { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border: 6px solid #fff; box-shadow: 0 12px 40px rgb(56 4 15 / 26%); }
.journey-gallery__photo video { aspect-ratio: 16 / 9; background: #13202b; }
.journey-gallery__name { margin: 0; font: 400 clamp(1.25rem, 2vw, 2rem)/1.2 var(--font-display, Georgia, serif); }
.journey-gallery__controls { display: flex; align-items: center; gap: 16px; flex: none; }
.journey-gallery button { cursor: pointer; color: inherit; background: transparent; border: 0; }
.journey-gallery button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.journey-gallery__controls button { width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 65%); border-radius: 50%; font: 22px/1 Arial, sans-serif; background: #7a0b1e; }
.journey-gallery__controls button:hover:not(:disabled) { background: #fff; color: #7a0b1e; }
.journey-gallery__controls button:disabled { opacity: .25; cursor: default; }
.journey-gallery__count { min-width: 60px; text-align: center; font-variant-numeric: tabular-nums; color: #fff; }
.journey-gallery__steps { display: flex; gap: clamp(5px, 1.2vw, 20px); }
.journey-gallery__steps button { position: relative; min-width: 44px; min-height: 44px; padding: 12px 4px 0; color: rgb(255 255 255 / 70%); }
.journey-gallery__steps button::before, .journey-gallery__steps button::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgb(255 255 255 / 35%); }
.journey-gallery__steps button::after { background: #fff; transform: scaleX(var(--photo-progress, 0)); transform-origin: left; }
.journey-gallery__steps button[aria-pressed="true"] { color: #fff; background: #7a0b1e; }
.journey-gallery .journey-gallery__continue { min-height: 44px; padding: 0 18px; background: #fff; color: #7a0b1e; text-shadow: none; text-transform: uppercase; white-space: nowrap; }
.journey-gallery__continue span { margin-left: 12px; }
@media (max-width: 640px) {
  .journey-gallery { padding: 26px 20px 20px; gap: 16px; }
  .journey-gallery__collection { display: none; }
  .journey-gallery__photo { padding: 4px; }
  .journey-gallery__photo img,
  .journey-gallery__photo video { border-width: 4px; }
  .journey-gallery__caption { align-items: flex-start; flex-direction: column; gap: 14px; }
  .journey-gallery__controls { width: 100%; justify-content: space-between; }
  .journey-gallery__foot { align-items: stretch; flex-direction: column; gap: 4px; }
  .journey-gallery__steps { gap: 4px; justify-content: space-between; }
  .journey-gallery__steps button { min-width: 0; flex: 1; min-height: 44px; }
  .journey-gallery__continue { align-self: flex-end; }
}
@media (max-height: 500px) and (min-width: 641px) {
  .journey-gallery { padding: 12px 30px; gap: 6px; }
  .journey-gallery__head h2 { font-size: 1.5rem; }
  .journey-gallery__eyebrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-gallery__photo { transform: none !important; }
}
