/* Home carousel enhancements apply only after the controls are initialized. */
.gallery [hidden],
.hotels [hidden] {
  display: none;
}

.carousel-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.event-carousel-slides.event-slides-ready {
  grid-template-columns: minmax(0, 1fr);
  touch-action: pan-y pinch-zoom;
}

.event-slides-ready .event-slide {
  grid-area: 1 / 1;
}

.event-slides-ready .event-slide[hidden] {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}

.event-carousel-places button,
.event-carousel-arrows button,
.gallery-arrow,
.hotel-arrow {
  transition: background-color .24s ease, border-color .24s ease, color .24s ease,
    box-shadow .24s ease, opacity .24s ease;
}

.event-carousel-arrows .icon,
.gallery-arrow .icon,
.hotel-arrow .icon {
  transition: transform .24s cubic-bezier(.22, .72, .22, 1);
}

@media (hover: hover) {
  :is(.event-carousel-arrows [data-event-step="-1"], .gallery-arrow.previous, .hotel-arrow:first-child):hover .icon {
    transform: translateX(-2px);
  }

  :is(.event-carousel-arrows [data-event-step="1"], .gallery-arrow.next, .hotel-arrow:last-child):hover .icon {
    transform: translateX(2px);
  }
}

.gallery-track.gallery-track-ready,
.hotel-grid.hotel-grid-ready {
  position: relative;
  grid-template-columns: none;
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track-ready::-webkit-scrollbar,
.hotel-grid-ready::-webkit-scrollbar {
  display: none;
}

.gallery-track.gallery-track-ready {
  grid-auto-columns: 23.8%;
  padding-block: 5px 19px;
  margin-block: -5px -19px;
}

.gallery-track-ready img,
.hotel-grid-ready .hotel-card {
  scroll-snap-align: start;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.carousel-dots button:not(.gallery-playback),
.gallery-dots button[aria-pressed="true"] {
  position: relative;
  inline-size: 24px;
  block-size: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.carousel-dots button:not(.gallery-playback)::before {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 6px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #7b8ea2;
  content: "";
  transition: width .24s ease, background-color .24s ease;
}

.carousel-dots button[aria-pressed="true"]:not(.gallery-playback)::before {
  width: 16px;
  background: var(--accent);
}

.gallery-dots .gallery-playback {
  width: 28px;
  height: 28px;
  margin-left: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  transition: background-color .24s ease;
}

.gallery-playback::before {
  display: none;
}

.gallery-playback .icon {
  width: 13px;
  height: 13px;
}

.gallery-playback:hover,
.hotel-arrow:hover {
  background: var(--surface-tint);
}

.hotel-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.hotel-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
}

.hotel-arrow[aria-disabled="true"] {
  opacity: .45;
  cursor: default;
}

@media (max-width: 660px) {
  .gallery-track.gallery-track-ready {
    grid-auto-columns: calc((100% - 11px) / 2);
  }

  .hotel-grid.hotel-grid-ready {
    --hotel-gap: clamp(13px, 1.65vw, 24px);
    grid-auto-columns: calc((100% - var(--hotel-gap)) / 2);
    padding-block: 5px 16px;
    margin-block: -5px -16px;
  }
}

@media (max-width: 440px) {
  .hotel-grid.hotel-grid-ready {
    grid-auto-columns: 87%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-carousel-arrows .icon,
  .gallery-arrow .icon,
  .hotel-arrow .icon {
    transform: none !important;
  }
}

