/* Photo cards remain a stable surface while their photographs crossfade. */
.photo-carousel {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  background: #dfece8;
  border-radius: inherit;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}
.photo-carousel-viewport {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  aspect-ratio: var(--carousel-ratio, 1.7);
  overflow: hidden;
}
.photo-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 420ms;
}
.photo-carousel-slide:first-child,
.photo-carousel.is-enhanced .photo-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.photo-carousel.is-enhanced .photo-carousel-slide:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.photo-carousel-slide > a { display: block; width: 100%; height: 100%; }
.photo-carousel .photo-carousel-slide img,
.prose .photo-carousel .photo-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  transform: none;
  cursor: inherit;
}
.content-card:hover .photo-carousel .photo-carousel-slide img,
.news-tile:hover .photo-carousel .photo-carousel-slide img,
.route-card:hover .photo-carousel .photo-carousel-slide img,
.excursion-card:hover .photo-carousel .photo-carousel-slide img {
  transform: none;
}
.photo-carousel button { font: inherit; }
.photo-carousel [data-carousel-prev],
.photo-carousel [data-carousel-next],
.photo-carousel [data-carousel-pause],
.photo-carousel-dots {
  display: none;
}
.photo-carousel.is-enhanced [data-carousel-prev],
.photo-carousel.is-enhanced [data-carousel-next],
.photo-carousel.is-enhanced [data-carousel-pause] {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 4;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff99;
  border-radius: 50%;
  background: #fffffff0;
  color: #123340;
  box-shadow: 0 3px 14px #12334014;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.photo-carousel [data-carousel-prev],
.photo-carousel [data-carousel-next] { top: calc(50% - 22px); }
.photo-carousel [data-carousel-prev] { left: 14px; }
.photo-carousel [data-carousel-next] { right: 14px; }
.photo-carousel [data-carousel-pause] {
  right: 14px;
  bottom: 12px;
  width: 44px !important;
  height: 44px !important;
}
.photo-carousel [data-carousel-prev] svg,
.photo-carousel [data-carousel-next] svg { width: 20px; height: 20px; }
.photo-carousel [data-carousel-pause] svg { width: 15px; height: 15px; }
.photo-carousel [data-carousel-counter] {
  position: absolute;
  left: 14px;
  bottom: 15px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 20px;
  background: #102f3dc9;
  color: #fff;
  font: 600 11px/1.6 Arial, sans-serif;
  letter-spacing: .04em;
  pointer-events: none;
}
.photo-carousel.is-enhanced .photo-carousel-dots {
  display: flex;
  position: absolute;
  left: 65px;
  right: 65px;
  bottom: 10px;
  z-index: 4;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  max-height: 44px;
  overflow: hidden;
}
.photo-carousel [data-carousel-dot] {
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.photo-carousel [data-carousel-dot]::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 8px;
  background: #ffffffbf;
  box-shadow: 0 0 0 1px #12334030;
  transition: width 220ms ease, background-color 180ms ease;
}
.photo-carousel [data-carousel-dot].is-active::before { width: 16px; background: #fff; }
.photo-carousel .carousel-icon-play { display: none; }
.photo-carousel.is-paused .carousel-icon-play { display: block; }
.photo-carousel.is-paused .carousel-icon-pause { display: none; }
.photo-carousel [data-carousel-pause]:disabled { opacity: .65; cursor: default; }
.photo-carousel [data-carousel-status] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.photo-carousel button:focus-visible {
  outline: 3px solid #ff8d55;
  outline-offset: 2px;
}
.photo-carousel:focus-visible { outline: 3px solid #ff8d55; outline-offset: -4px; }
.card-media > .photo-carousel,
.news-card-media > .photo-carousel,
.news-tile-image > .photo-carousel,
.route-card-image > .photo-carousel {
  height: 100%;
}
.card-media > .photo-carousel .photo-carousel-viewport,
.news-card-media > .photo-carousel .photo-carousel-viewport,
.news-tile-image > .photo-carousel .photo-carousel-viewport,
.route-card-image > .photo-carousel .photo-carousel-viewport {
  aspect-ratio: auto;
}
.photo-story-card { margin: 28px 0; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid #dce8e8; }
.photo-story-card .photo-carousel { border-radius: 21px; }
.photo-story-card .photo-carousel-viewport { --carousel-ratio: 1.65; }
.prose .photo-story-card { max-width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .photo-carousel [data-carousel-prev]:hover,
  .photo-carousel [data-carousel-next]:hover,
  .photo-carousel [data-carousel-pause]:not(:disabled):hover {
    background: #007c89;
    border-color: #007c89;
    color: #fff;
    box-shadow: 0 4px 15px #12334020;
  }
}
@media (max-width: 700px) {
  .photo-carousel [data-carousel-prev] { left: 10px; }
  .photo-carousel [data-carousel-next] { right: 10px; }
  .photo-carousel [data-carousel-counter] { left: 11px; bottom: 13px; }
  .photo-carousel [data-carousel-pause] { right: 11px; bottom: 10px; }
  .photo-carousel .photo-carousel-dots { left: 58px; right: 58px; bottom: 10px; }
  .photo-story-card .photo-carousel-viewport { --carousel-ratio: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-carousel-slide,
  .photo-carousel [data-carousel-dot]::before,
  .photo-carousel button { transition: none !important; }
}
