.shelterluv-image-carousel {
  width: 100%;
  position: relative;
  --shelterluv-carousel-height: 280px;
}

.shelterluv-image-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.shelterluv-image-carousel--multi .shelterluv-carousel-viewport {
  width: 100%;
  height: var(--shelterluv-carousel-height);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shelterluv-image-carousel--single {
  position: relative;
  height: var(--shelterluv-carousel-height);
  overflow: hidden;
}

.shelterluv-image-carousel--single .shelterluv-image-carousel-img {
  height: 100%;
}

.shelterluv-image-carousel--multi .shelterluv-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  gap: var(--shelterluv-carousel-gap, 16px);
}

.shelterluv-image-carousel--multi .shelterluv-carousel-slide {
  position: relative;
  flex: 0 0 calc((100% - var(--shelterluv-carousel-gap, 16px)) / 2);
  width: calc((100% - var(--shelterluv-carousel-gap, 16px)) / 2);
  height: var(--shelterluv-carousel-height);
  min-height: 0;
  max-height: var(--shelterluv-carousel-height);
  overflow: hidden;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.shelterluv-carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-45%);
  z-index: 2;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--shelterluv-carousel-arrow-bg, rgba(0,0,0,0.5));
  color: var(--shelterluv-carousel-arrow-color, #fff);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  /* keep existing requested size; SVG will scale to its own width/height */
  font-size: 26px;
}

.shelterluv-carousel-chevron,
.shelterluv-lightbox-chevron {
  width: 26px;
  height: 26px;
  display: block;
  color: inherit;
}

.shelterluv-carousel-chevron path,
.shelterluv-lightbox-chevron path {
  stroke: var(--e-global-color-accent, currentColor);
}

.shelterluv-carousel-prev {
  left: 10px;
}

.shelterluv-carousel-next {
  right: 10px;
}

.shelterluv-carousel-arrow:hover {
  background: var(--shelterluv-carousel-arrow-bg-hover, rgba(0,0,0,0.65));
}

.shelterluv-carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.shelterluv-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: var(--shelterluv-carousel-dot-bg, rgba(0,0,0,0.08));
  cursor: pointer;
  text-decoration: none;
}

.shelterluv-carousel-dot.is-active {
  background: #57B8B5;
  border: 0;
}

.shelterluv-carousel-arrow:focus,
.shelterluv-carousel-arrow:focus-visible,
.shelterluv-carousel-dot:focus,
.shelterluv-carousel-dot:focus-visible,
.shelterluv-image-carousel:focus,
.shelterluv-image-carousel:focus-visible,
.shelterluv-lightbox-close:focus,
.shelterluv-lightbox-close:focus-visible,
.shelterluv-lightbox-nav:focus,
.shelterluv-lightbox-nav:focus-visible,
.shelterluv-lightbox-overlay:focus,
.shelterluv-lightbox-overlay:focus-visible,
.shelterluv-image-carousel-img:focus,
.shelterluv-image-carousel-img:focus-visible {
  outline: none;
  box-shadow: none;
}

.shelterluv-image-carousel--multi .shelterluv-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.shelterluv-image-carousel--multi .shelterluv-carousel-viewport {
  scrollbar-width: none;
}

/* Lightbox */
.shelterluv-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.shelterluv-lightbox-overlay.is-open {
  display: flex;
}

.shelterluv-lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shelterluv-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-radius: 8px;
}

.shelterluv-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 2;
}

.shelterluv-lightbox-prev {
  left: 12px;
}

.shelterluv-lightbox-next {
  right: 12px;
}

.shelterluv-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 10px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}

.shelterluv-lightbox-close:hover {
  color: #fff;
  opacity: 0.85;
}

.shelterluv-image-carousel-img.shelterluv-lightbox-trigger {
  cursor: pointer;
}

.shelterluv-image-carousel-img.shelterluv-lightbox-trigger:hover {
  filter: brightness(0.7);
}

.shelterluv-image-carousel--single .shelterluv-image-carousel-img.shelterluv-lightbox-trigger:hover {
  transform: scale(1.01);
}

.shelterluv-carousel-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #111;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.shelterluv-image-carousel--single .shelterluv-carousel-video,
.shelterluv-carousel-slide .shelterluv-carousel-video {
  width: 100%;
  height: 100%;
}

.shelterluv-carousel-video .shelterluv-image-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}

.shelterluv-carousel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: background 0.2s ease;
}

.shelterluv-carousel-video:hover .shelterluv-carousel-play {
  background: rgba(0, 0, 0, 0.5);
}

.shelterluv-carousel-play svg {
  width: 56px;
  height: 56px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.shelterluv-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.shelterluv-video-lightbox.is-open {
  display: flex;
}

.shelterluv-video-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.shelterluv-video-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.shelterluv-video-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--e-global-color-accent, #ffc969);
  color: var(--e-global-color-text, #222);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
}

.shelterluv-video-lightbox-close:hover {
  background: var(--e-global-color-secondary, #fff);
  color: var(--e-global-color-text, #222);
}

.shelterluv-video-lightbox-player {
  position: absolute;
  inset: 0;
}

.shelterluv-video-lightbox-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

