.laguna-gallery--slider {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  overscroll-behavior-x: none;
  border-radius: var(--laguna-gallery-radius, 0px);
  max-width: min(100%, var(--laguna-gallery-slider-max-width, 1600px));
  margin-inline: auto;
}
.laguna-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--laguna-gallery-grid-item-width, 180px), 1fr));
  gap: 10px;
  max-width: min(100%, var(--laguna-gallery-slider-max-width, 1600px));
  margin-inline: auto;
}
.laguna-gallery__item img {
  width: 100%;
  height: var(--laguna-gallery-grid-item-height, 180px);
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.laguna-gallery__stage {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16/8;
  overflow: hidden;
  background: var(--laguna-gallery-stage-bg, #ffffff);
  touch-action: pan-y;
  border-radius: var(--laguna-gallery-radius, 0px);
}
/* Шорткод главной: высота сцены = половина ширины минус trim (как у темы), без полосы под картинкой */
.laguna-gallery-home-slider-wrap .laguna-gallery__stage {
  aspect-ratio: unset;
  height: 0;
  box-sizing: content-box;
  padding-bottom: max(0px, calc(50% - var(--la-gallery-trim-mobile, 0px)));
}
@media (min-width: 861px) {
  .laguna-gallery-home-slider-wrap .laguna-gallery__stage {
    padding-bottom: max(
      0px,
      calc(50% - var(--la-gallery-trim-desktop, var(--la-gallery-trim-mobile, 0px)))
    );
  }
}
.laguna-gallery--fit-contain .laguna-gallery__stage {
  background-color: var(--laguna-gallery-matte, #000);
}
.laguna-gallery--fit-contain .laguna-gallery__slide {
  object-fit: contain;
}
.laguna-gallery--fit-contain .laguna-gallery__slide-img {
  object-fit: contain;
}
.laguna-gallery__slide--video {
  height: 100%;
}
.laguna-gallery__slide--video.is-active {
  pointer-events: auto;
  cursor: pointer;
}
.laguna-gallery__slide--video.is-active .laguna-gallery__play {
  cursor: pointer;
}
.laguna-gallery__slide--video-noposter {
  background: #111;
}
.laguna-gallery__thumb--noposter .laguna-gallery__thumb-noposter {
  display: block;
  width: 72px;
  height: 50px;
  background: #222;
}
.laguna-gallery__item--video-noposter .laguna-gallery__grid-noposter {
  display: block;
  width: 100%;
  height: var(--laguna-gallery-grid-item-height, 180px);
  background: #111;
}
.laguna-gallery__slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
}
.laguna-gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  pointer-events: auto;
}
.laguna-gallery__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.laguna-gallery__play-icon {
  display: flex;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85));
}
.laguna-gallery__thumb--video {
  position: relative;
}
.laguna-gallery__thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.laguna-gallery__thumb-play::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}
.laguna-gallery__item--video {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
}
.laguna-gallery__item--video img {
  border-radius: 4px;
}
.laguna-gallery__play--grid {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.laguna-gallery__iframe {
  border-radius: 4px;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}
.laguna-gallery__video-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  z-index: 4;
  pointer-events: none;
  animation: laguna-gallery-spin 0.8s linear infinite;
}
.laguna-gallery__video-spinner[hidden] {
  display: none !important;
}
.laguna-gallery__iframe.is-buffering {
  opacity: 0.76;
}
.laguna-gallery__zones {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}
.laguna-gallery__zone {
  position: absolute;
  top: 50%;
  height: var(--laguna-gallery-zone-height, 220px);
  transform: translateY(-50%);
  margin: 0;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.15s ease;
}
.laguna-gallery__zone--prev {
  left: 0;
  justify-content: flex-start;
}
.laguna-gallery__zone--next {
  right: 0;
  justify-content: flex-end;
}
.laguna-gallery__zone:hover,
.laguna-gallery__zone:focus-visible {
  background: rgba(0, 0, 0, 0.18);
  outline: none;
  color: #fff;
}
.laguna-gallery__zone-icon {
  display: flex;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75));
}
.laguna-gallery__zone-icon svg {
  display: block;
}
.laguna-gallery__slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.laguna-gallery__slide.is-active {
  opacity: 1;
  z-index: 1;
}
.laguna-gallery__thumbs {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 8px 0;
  scroll-behavior: smooth;
  background-color: var(--laguna-gallery-thumbs-bg, var(--laguna-gallery-matte, #000000));
  -webkit-overflow-scrolling: touch;
  border-radius: var(--laguna-gallery-radius, 0px);
}
.laguna-gallery__thumb {
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.laguna-gallery__thumb.is-active { border-color: #fff; }
.laguna-gallery__thumb img {
  width: 72px;
  height: 50px;
  object-fit: cover;
  display: block;
}
.laguna-booking-card__gallery > .laguna-gallery--slider {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-width: 0;
}
.laguna-booking-card__gallery .laguna-gallery__stage {
  min-height: 220px;
  border-radius: 0;
}
.laguna-booking-card__gallery .laguna-gallery__thumbs {
  padding-inline: 8px;
  border-radius: 0;
}
.laguna-booking-card__gallery .laguna-gallery__thumb,
.laguna-booking-card__gallery .laguna-gallery__thumb--noposter {
  flex: 0 0 auto;
}
.laguna-booking-card__gallery .laguna-gallery__thumb img,
.laguna-booking-card__gallery .laguna-gallery__thumb-noposter {
  display: block;
  max-width: none;
}
.laguna-booking-card__gallery .laguna-gallery__zone {
  height: min(var(--laguna-gallery-zone-height, 220px), 100%);
}
.laguna-booking-card__gallery .laguna-gallery__iframe,
.laguna-booking-card__gallery .laguna-gallery__slide,
.laguna-booking-card__gallery .laguna-gallery__slide-img {
  border-radius: 0;
}
.laguna-gallery__local-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--laguna-gallery-stage-bg, #ffffff);
}

.laguna-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1305;
  display: flex;
  align-items: center;
  justify-content: center;
}
.laguna-gallery-lightbox[hidden] {
  display: none;
}
.laguna-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
}
.laguna-gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 24px));
  height: min(88vh, 860px);
  display: block;
}
.laguna-gallery-lightbox__content {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding-top: 54px;
  box-sizing: border-box;
  touch-action: pan-y;
}
.laguna-gallery-lightbox__media {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  min-width: 0;
  min-height: 0;
}
.laguna-gallery-lightbox__video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.laguna-gallery-lightbox__video-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
}
.laguna-gallery-lightbox__iframe {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
}
.laguna-gallery-lightbox__prev,
.laguna-gallery-lightbox__next,
.laguna-gallery-lightbox__close,
.laguna-gallery-lightbox__cross {
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.laguna-gallery-lightbox__prev,
.laguna-gallery-lightbox__next {
  position: absolute;
  top: 50%;
  height: var(--laguna-gallery-zone-height, 220px);
  transform: translateY(calc(-50% + 27px));
  width: 18%;
  border-radius: 0;
  font-size: 44px;
  line-height: 1;
  background: transparent;
}
.laguna-gallery-lightbox__prev { left: 0; }
.laguna-gallery-lightbox__next { right: 0; }
.laguna-gallery-lightbox__close {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  min-width: 140px;
  height: 38px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--laguna-gallery-lightbox-close-text, var(--laguna-gallery-lightbox-close-color, #ffffff));
  background: var(--laguna-gallery-lightbox-close-bg, rgba(0, 0, 0, 0.58));
}
.laguna-gallery-lightbox__cross {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--laguna-gallery-lightbox-close-text, var(--laguna-gallery-lightbox-close-color, #ffffff));
  background: var(--laguna-gallery-lightbox-close-bg, rgba(0, 0, 0, 0.58));
}
.la-slide {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}
.la-slide--video {
  width: 100% !important;
  height: 100% !important;
}
.la-slide--video.is-active {
  pointer-events: auto;
  cursor: pointer;
}
.la-slide--video.is-active .la-slide__play {
  cursor: pointer;
}
.la-slide--video-noposter {
  background: #111;
}
.la-slide__poster {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
}
.la-hero--contain .la-slide__poster {
  object-fit: contain;
}
.la-slide__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  pointer-events: auto;
}
.la-slide__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.la-slide__play-icon {
  display: flex;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85));
}
.la-thumb--video {
  position: relative;
}
.la-thumb__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.la-thumb__play::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}
.la-thumb--noposter .la-thumb__noposter {
  display: block;
  width: 74px;
  height: 52px;
  background: #222;
}
@keyframes laguna-gallery-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .laguna-gallery__slide {
    transition: none;
  }
  .laguna-gallery__video-spinner {
    animation: none;
  }
}
@media (max-width: 860px) {
  .laguna-booking-card__gallery .laguna-gallery__thumb img,
  .laguna-booking-card__gallery .laguna-gallery__thumb-noposter {
    width: 56px;
    height: 40px;
  }
}
