/* Elasc motion: shared origin, soft settlement, fast acknowledgement. */
html {
  scrollbar-gutter: stable;
}
:root {
  --soft-spring: cubic-bezier(0.2, 1.3, 0.4, 1);
}
.button,
.preview-date,
.icon-button,
.gallery-open {
  transition:
    transform 260ms var(--soft-spring),
    background 180ms ease,
    box-shadow 220ms ease;
}
.button:active,
.preview-date:active,
.icon-button:active {
  transform: scale(0.976);
  transition-duration: 90ms;
}
.service-choice,
.date-choice,
.time-choice {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.stage-content {
  animation: none;
}
.booking-stage {
  position: relative;
  isolation: isolate;
}
.stage-departing {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
  z-index: -1;
}
.faq-body {
  overflow: clip;
}
.faq summary:after {
  transition: transform 220ms var(--soft-spring);
}
.faq summary[aria-expanded="true"]:after {
  transform: rotate(180deg);
}
.gallery-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  border-radius: 3px;
  color: var(--plum);
}
.gallery-caption {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  margin-top: 16px;
}
.gallery-open:active {
  transform: scale(0.985);
  transition-duration: 90ms;
}
.gallery-open:focus-visible {
  outline: 3px solid #8a4a69;
  outline-offset: 6px;
}
.gallery-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 28px;
  border: 0;
  background: transparent;
  overflow: hidden;
  overscroll-behavior: contain;
  color: var(--plum);
}
.gallery-dialog[open] {
  display: grid;
  place-items: center;
}
.gallery-dialog:not([open]) {
  display: none;
}
.gallery-dialog::backdrop {
  background: rgb(35 20 28 / 0.36);
  backdrop-filter: blur(3px);
  animation: elasc-veil-in 260ms ease both;
}
.gallery-dialog[data-phase="closing"]::backdrop {
  animation: elasc-veil-out 240ms ease both;
}
.gallery-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(800px, 100%);
  max-height: calc(100dvh - 56px);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgb(30 15 22 / 0.22);
  overflow: auto;
  overscroll-behavior: contain;
  transform-origin: top left;
}
.gallery-detail-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}
.gallery-detail-copy {
  padding: 52px 32px 30px;
  align-self: center;
}
.gallery-detail-copy h2 {
  font-size: 37px;
}
.gallery-detail-copy p {
  font-size: 14px;
  margin-top: 20px;
}
.gallery-detail-copy .small-print {
  font-size: 12px;
  line-height: 1.7;
}
.gallery-detail-copy .button {
  margin-top: 27px;
  gap: 12px;
  padding: 14px 20px;
  font-size: 12px;
  width: 100%;
}
.gallery-return {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}
.gallery-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  background: var(--paper);
  border: 0;
  width: 44px;
  height: 44px;
  box-shadow: 0 3px 12px #47263520;
}
.handoff > svg path {
  stroke-dasharray: 28;
  stroke-dashoffset: 0;
  animation: elasc-check 350ms var(--ease) both;
}
@keyframes elasc-check {
  from {
    stroke-dashoffset: 28;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes elasc-veil-in {
  from {
    background: rgb(35 20 28 / 0);
    backdrop-filter: blur(0);
  }
  to {
    background: rgb(35 20 28 / 0.36);
    backdrop-filter: blur(3px);
  }
}
@keyframes elasc-veil-out {
  from {
    background: rgb(35 20 28 / 0.36);
    backdrop-filter: blur(3px);
  }
  to {
    background: rgb(35 20 28 / 0);
    backdrop-filter: blur(0);
  }
}
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-2px) scale(1.01);
  }
  .gallery-open:hover {
    transform: translateY(-3px);
  }
  .preview-date:hover,
  .icon-button:hover {
    transform: translateY(-2px);
  }
  .button:active,
  .preview-date:active,
  .icon-button:active {
    transform: scale(0.976);
  }
  .gallery-open:active {
    transform: scale(0.985);
  }
}
@media (max-width: 780px) {
  .gallery-caption {
    font-size: 18px;
  }
}
@media (max-width: 600px) {
  .gallery-dialog {
    padding: 20px;
  }
  .gallery-panel {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 40px);
    width: min(440px, 100%);
  }
  .gallery-detail-image {
    height: min(35dvh, 280px);
    min-height: 0;
    object-position: center;
  }
  .gallery-detail-copy {
    padding: 25px;
  }
  .gallery-detail-copy h2 {
    font-size: 30px;
  }
  .gallery-detail-copy p {
    margin-top: 13px;
    font-size: 13px;
  }
  .gallery-detail-copy .small-print {
    font-size: 11px;
  }
  .gallery-detail-copy .button {
    margin-top: 20px;
  }
}
@media (max-width: 480px) {
  .gallery-caption {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .button:active,
  .preview-date:hover,
  .preview-date:active,
  .icon-button:hover,
  .icon-button:active,
  .gallery-open:hover,
  .gallery-open:active {
    transform: none;
  }
  .gallery-dialog::backdrop {
    animation: none !important;
    backdrop-filter: none;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
