.lathra-gallery-source-hidden {
  display: none !important;
}

.lathra-gallery-marquee {
  position: relative;
  overflow: hidden;
  background: #343935;
  padding: clamp(28px, 4vw, 58px) 0;
}

.lathra-gallery-marquee--top {
  padding-top: clamp(34px, 5vw, 72px);
  padding-bottom: clamp(28px, 4.5vw, 62px);
}

.lathra-gallery-marquee--before-reviews {
  padding-top: clamp(16px, 2.8vw, 34px);
  padding-bottom: clamp(8px, 1.8vw, 18px);
}

.lathra-gallery-marquee__rail {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.lathra-gallery-marquee__track {
  --lathra-gallery-gap: clamp(12px, 1.45vw, 22px);
  display: flex;
  width: max-content;
  gap: var(--lathra-gallery-gap);
  animation-duration: var(--lathra-gallery-duration, 320s);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: transform;
}

.lathra-gallery-marquee--left .lathra-gallery-marquee__track {
  animation-name: lathra-gallery-marquee-left;
}

.lathra-gallery-marquee--right .lathra-gallery-marquee__track {
  animation-name: lathra-gallery-marquee-right;
}

.lathra-gallery-marquee:hover .lathra-gallery-marquee__track,
.lathra-gallery-marquee:focus-within .lathra-gallery-marquee__track,
.lathra-gallery-marquee.is-paused .lathra-gallery-marquee__track {
  animation-play-state: paused;
}

.lathra-gallery-marquee__item {
  display: block;
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 390px);
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid rgba(217, 179, 123, 0.18);
  border-radius: 8px;
  background: rgba(26, 31, 27, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.lathra-gallery-marquee--top .lathra-gallery-marquee__item {
  width: clamp(210px, 19vw, 330px);
  aspect-ratio: 3 / 4;
}

.lathra-gallery-marquee__item:hover,
.lathra-gallery-marquee__item:focus-visible {
  border-color: rgba(244, 214, 132, 0.68);
  outline: none;
  transform: translateY(-2px);
}

.lathra-gallery-marquee__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.lathra-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
  background: rgba(16, 20, 17, 0.82);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.lathra-gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.lathra-gallery-lightbox__image {
  display: block;
  max-width: min(1120px, 94vw);
  max-height: min(760px, 88vh);
  max-height: min(760px, 88dvh);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
  object-fit: contain;
}

.lathra-gallery-lightbox__close {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: calc(14px + env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #f7eed7;
  cursor: pointer;
  font: 400 28px/1 Arial, sans-serif;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lathra-gallery-lightbox__close:hover,
.lathra-gallery-lightbox__close:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.24);
}

@keyframes lathra-gallery-marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - var(--lathra-gallery-gap) / 2), 0, 0);
  }
}

@keyframes lathra-gallery-marquee-right {
  from {
    transform: translate3d(calc(-50% - var(--lathra-gallery-gap) / 2), 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 560px) {
  .lathra-gallery-marquee {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .lathra-gallery-marquee--before-reviews {
    padding-top: 14px;
    padding-bottom: 6px;
  }

  .lathra-gallery-marquee__rail {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  .lathra-gallery-marquee__item {
    width: min(74vw, 300px);
  }

  .lathra-gallery-marquee--top .lathra-gallery-marquee__item {
    width: min(64vw, 250px);
  }

  .lathra-gallery-lightbox {
    padding: 12px;
  }

  .lathra-gallery-lightbox__image {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lathra-gallery-marquee__track {
    animation: none;
  }

  .lathra-gallery-marquee__rail {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .lathra-gallery-marquee__item {
    transition: none;
  }
}
