/* WordPress block compatibility only; the approved v58 geometry stays in the
   two preceding stylesheets. Nothing here targets the active theme footer. */
.ktplp { width: 100%; max-width: none; }
.ktplp > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.ktplp :where(.is-layout-constrained) > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: none; }

/* Core gallery styles otherwise place captions over a fixed-height image. */
.ktplp .ktplp-gallery__grid figure.wp-block-image {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}
.ktplp .ktplp-gallery__grid figure.wp-block-image::before { display: none !important; content: none !important; }
.ktplp .ktplp-gallery__grid figure.wp-block-image > img,
.ktplp .ktplp-gallery__grid figure.wp-block-image > a {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: none !important;
  aspect-ratio: 9 / 8;
  object-fit: cover !important;
  object-position: center;
}
.ktplp .ktplp-gallery__grid figure.wp-block-image > a > img { display: block; width: 100% !important; height: 100% !important; object-fit: cover !important; }
.ktplp .ktplp-gallery__grid figure.wp-block-image figcaption {
  position: static !important;
  inset: auto !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 18px 12px 0 !important;
  overflow: visible !important;
  background: none !important;
  color: inherit !important;
  font-size: 14px;
  line-height: 1.6;
  text-align: center !important;
}
/* Captions sit below images, so Core's overlay text shadow is unnecessary.
   Include saved inline formatting and classic captions, without restyling text. */
.ktplp figcaption,
.ktplp .wp-caption-text,
.ktplp figcaption *,
.ktplp .wp-caption-text * {
  text-align: center !important;
  text-shadow: none !important;
}

/* The LP header is a sibling of .ktplp, not a descendant. Keep this override
   limited to its reservation button; theme link hover colours stay elsewhere. */
.ktplp-header a.ktplp-header__contact {
  color: #fff !important;
  background-color: transparent;
  transition: background-color .2s ease;
}
.ktplp-header a.ktplp-header__contact .ktplp-contact-label,
.ktplp-header a.ktplp-header__contact .ktplp-contact-label span {
  color: inherit !important;
}
.ktplp-header a.ktplp-header__contact:hover,
.ktplp-header a.ktplp-header__contact:focus-visible {
  color: #fff !important;
  background-color: rgba(255,255,255,.12) !important;
}
.ktplp-header a.ktplp-header__contact:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.ktplp .ktplp-summary__table :is(td, th) { background: transparent; color: inherit; }
.ktplp .ktplp-summary__table :is(td, th):first-child { color: rgba(245,243,237,.62); }

/* Only the newly entered viewing subcopy; blank existing LPs are unchanged. */
.ktplp .ktplp-viewing__lead { max-width: 100%; margin: 0 0 32px; font-size: clamp(15px, 1.3vw, 19px); line-height: 2; }

/* The uploaded poster is behind genuine video clips, never a slideshow. */
.ktplp .ktplp-hero__media { background: #3b3c38; }
.ktplp .ktplp-hero__media .ktplp-hero__image { margin: 0; }
.ktplp .ktplp-hero__media .ktplp-hero__image img { height: 100%; }
.ktplp .ktplp-hero--video-fallback .ktplp-hero__video { opacity: 0 !important; }
.ktplp .ktplp-hero--video-fallback .ktplp-hero__transition { opacity: 0 !important; }

/* Only overflowed, user-authored LOCATION text expands; the ordinary approved
   vertical layout and spacing are not changed. Long lines remain vertical. */
.ktplp .ktplp-location-story--long-copy .ktplp-location-story__copy { height: auto; }
.ktplp .ktplp-location-story--long-copy .ktplp-location-story__copy-inner {
  height: auto;
  max-height: none;
  overflow: visible;
  flex-wrap: wrap;
}
.ktplp .ktplp-location-story--long-copy .ktplp-location-story__copy p {
  flex-wrap: wrap;
  height: auto;
  max-height: none;
  max-width: 100%;
}
.ktplp .ktplp-location-story--long-copy .ktplp-location-story__copy p span { flex: 0 0 auto; }

@media (min-width: 768px) {
  .ktplp .ktplp-carousel .ktplp-gallery__grid > figure[aria-hidden="true"] { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ktplp .ktplp-hero__video { display: none; }
  .ktplp-header a.ktplp-header__contact { transition: none; }
}
