/* One gallery frame for every product photo, including images with mixed ratios.
   The foreground stays complete; a subdued copy fills any unused canvas. */
.ls-room22-gallery {
  --ls-gallery-frame-height: 690px;
  --ls-gallery-frame-bg: #080607;
}

.ls-room22-gallery .woocommerce-product-gallery__image {
  position: relative;
  height: var(--ls-gallery-frame-height);
  overflow: hidden;
  isolation: isolate;
  background: var(--ls-gallery-frame-bg);
}

.ls-room22-gallery .woocommerce-product-gallery__image::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -12%;
  background-image: var(--ls-gallery-backdrop, none);
  background-position: center;
  background-size: cover;
  filter: blur(25px) brightness(.28) saturate(.8);
  pointer-events: none;
}

.ls-room22-gallery .woocommerce-product-gallery__image > a {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.ls-room22-gallery .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  .ls-room22-gallery {
    --ls-gallery-frame-height: min(133.333vw, 640px);
    --ls-gallery-frame-height: min(133.333vw, 75svh);
  }

  /* FlexSlider normally writes a height based on the active source image. */
  .ls-room22-gallery .flex-viewport {
    height: var(--ls-gallery-frame-height) !important;
  }
}
