/* Customer graphics: premium crossfade carousel, no product/banner styling changes. */
.viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight-custom__dialog{
  display:flex!important;flex-direction:column!important;
  height:min(57vw,76vh,670px)!important;min-height:300px!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:hidden!important;position:relative!important;
}
.viviliv-custom-gallery__stage{position:relative;flex:1 1 auto;min-height:0;background:#05150c;overflow:hidden}
.viviliv-custom-gallery__slide{position:absolute;inset:0;opacity:0;pointer-events:none;visibility:visible;z-index:1;transition:opacity 1.4s ease-in-out}
.viviliv-custom-gallery__slide.is-active{opacity:1;pointer-events:auto;z-index:2}
.viviliv-custom-gallery__visual,.viviliv-custom-gallery__picture{width:100%;height:100%;display:block}
.viviliv-custom-gallery__visual.is-static{cursor:default}
.viviliv-custom-gallery__picture img{width:100%!important;height:100%!important;max-height:none!important;display:block!important;object-fit:contain!important;object-position:center!important;background:#06150d}
.viviliv-custom-gallery__controls{position:relative;z-index:4;flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:18px;min-height:58px;padding:8px 62px;background:#081e13;border-top:1px solid rgba(216,178,74,.30)}
.viviliv-custom-gallery__arrow{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(216,178,74,.55);border-radius:50%;background:#092317;color:#f3d77a;font:26px/1 Arial,sans-serif;cursor:pointer;transition:background .2s ease}
.viviliv-custom-gallery__arrow:hover,.viviliv-custom-gallery__arrow:focus-visible{background:#19442c;outline:2px solid rgba(243,215,122,.48);outline-offset:2px}
.viviliv-custom-gallery__dots{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px}
.viviliv-custom-gallery__dot{width:10px;height:10px;padding:0;border:1px solid #d8b24a;border-radius:50%;background:transparent;cursor:pointer}
.viviliv-custom-gallery__dot.is-active{background:#f3d77a;box-shadow:0 0 0 3px rgba(243,215,122,.12)}
.viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight__close{z-index:10!important}
@media(max-width:700px){
 .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight-custom__dialog{
  height:min(76dvh,680px)!important;min-height:min(360px,calc(100dvh - 20px))!important;max-height:calc(100dvh - 12px)!important;
 }
 .viviliv-custom-gallery__controls{min-height:51px;padding:8px 48px;gap:10px}
 .viviliv-custom-gallery__dots{gap:7px}
 .viviliv-custom-gallery__dot{width:9px;height:9px}
}
@media(prefers-reduced-motion:reduce){.viviliv-custom-gallery__slide{transition-duration:.15s}}

/* .416.5.53 — shared mixed graphic / product / video slides */
.viviliv-custom-gallery__video{
 display:block;width:100%;height:100%;max-height:100%;object-fit:contain;background:#06150d;
}
.viviliv-custom-gallery__product-overlay{
 position:absolute;bottom:0;left:0;right:0;z-index:4;
 display:grid;gap:8px;padding:28px 30px 20px;
 background:linear-gradient(0deg,rgba(4,17,10,.98) 3%,rgba(5,21,12,.95) 67%,rgba(5,21,12,0));
 color:#faf8ef;pointer-events:auto;
}
.viviliv-custom-gallery__badge{justify-self:start;padding:5px 11px;border:1px solid rgba(243,215,122,.68);border-radius:999px;background:rgba(7,29,17,.88);color:#f3d77a;font-size:11px;font-weight:800}
.viviliv-custom-gallery__product-name{font-size:clamp(19px,2.8vw,28px);font-weight:800;line-height:1.13;letter-spacing:-.02em}
.viviliv-custom-gallery__product-overlay p{margin:0;font-size:13px;color:#deded2;line-height:1.4}
.viviliv-custom-gallery__product-actions{display:flex;gap:14px;align-items:center;justify-content:space-between}
.viviliv-custom-gallery__price{font-weight:800;color:#f3d77a;font-size:17px}
.viviliv-custom-gallery__price *{color:inherit}
.viviliv-custom-gallery__product-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border-radius:12px;border:1px solid #f3d77a;background:linear-gradient(135deg,#f3d77a,#d8b24a);color:#06150d!important;font-size:13px;font-weight:800;text-decoration:none!important}
.viviliv-custom-gallery__product-actions a:hover{filter:brightness(1.08)}
.viviliv-custom-gallery__slide:not(.is-active) video{pointer-events:none}
@media(max-width:700px){
 .viviliv-custom-gallery__product-overlay{padding:22px 16px 12px;gap:6px}
 .viviliv-custom-gallery__badge{font-size:10px}
 .viviliv-custom-gallery__product-name{font-size:19px}
 .viviliv-custom-gallery__price{font-size:14px}
 .viviliv-custom-gallery__product-overlay p{font-size:11px}
 .viviliv-custom-gallery__product-actions a{min-height:36px;padding:7px 11px;font-size:11px}
}

/* .416.5.54 — popup close control: centered X, smaller button */
.viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight__close,
.viviliv-spotlight.viviliv-spotlight--custom .viviliv-spotlight__close{
  right:12px!important;
  top:12px!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:12px!important;
  background:rgba(4,18,11,.88)!important;
  color:#f3d77a!important;
  border:1px solid rgba(243,215,122,.72)!important;
  font-size:22px!important;
  line-height:1!important;
  text-align:center!important;
  box-shadow:0 6px 18px rgba(0,0,0,.28)!important;
}
@media(max-width:700px){
  .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight__close,
  .viviliv-spotlight.viviliv-spotlight--custom .viviliv-spotlight__close{
    right:8px!important;
    top:8px!important;
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    border-radius:10px!important;
    font-size:19px!important;
  }
}

/* .416.5.54 — UI-only repair for custom graphic/product/video slides.
   Preserve natural image proportions. Unused letterbox space, frames and
   the opaque green backplates are removed from THIS gallery only. */
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight-custom__dialog {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-custom-gallery__stage,
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-custom-gallery__slide,
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-custom-gallery__visual,
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-custom-gallery__picture,
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-custom-gallery__picture img,
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-custom-gallery__video {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-custom-gallery__picture img {
  object-fit: contain !important;
  object-position: center !important;
}
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-custom-gallery__controls {
  background: rgba(0,0,0,.34) !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-custom-gallery__product-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.83) 0%, rgba(0,0,0,.49) 48%, transparent 100%) !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Close control: a true geometrical X in the center, not a text glyph
   whose font baseline varies between browsers. */
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight__close {
  display:block !important;
  position:absolute !important;
  top:11px !important;
  right:11px !important;
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:50% !important;
  border:1px solid rgba(243,215,122,.83) !important;
  background:rgba(4,18,11,.84) !important;
  font-size:0 !important;
  line-height:0 !important;
  text-indent:-9999px !important;
  overflow:hidden !important;
  transform:none !important;
  z-index:15 !important;
  cursor:pointer !important;
}
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight__close::before,
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight__close::after {
  content:"" !important;
  display:block !important;
  position:absolute !important;
  width:13px !important;
  height:2px !important;
  left:calc(50% - 6.5px) !important;
  top:calc(50% - 1px) !important;
  background:#f3d77a !important;
  border-radius:2px !important;
  pointer-events:none !important;
}
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight__close::before{transform:rotate(45deg) !important}
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight__close::after{transform:rotate(-45deg) !important}
html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight__close:focus-visible {
  outline:2px solid #f3d77a !important;
  outline-offset:2px !important;
}
@media(max-width:700px){
  html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight__close {
    top:8px !important;
    right:8px !important;
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    min-height:32px !important;
  }
}


/* .416.5.55 — Desktop-only photo-aligned caption and calmer gallery width.
   The mobile and tablet layouts from .54 are intentionally unchanged. */
@media (min-width: 901px) {
  html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-spotlight-custom__dialog {
    width: min(900px, calc(100vw - 48px)) !important;
    max-width: 900px !important;
  }
  html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-custom-gallery__slide .viviliv-custom-gallery__product-overlay {
    /* JS calculates the blank space on each side of object-fit:contain.
       The fallback keeps captions away from the outer edge if the image is loading. */
    left: var(--vv-gallery-photo-inset, 11%) !important;
    right: var(--vv-gallery-photo-inset, 11%) !important;
    padding: 25px 19px 14px !important;
    gap: 5px !important;
    background: linear-gradient(to top, rgba(0,0,0,.83) 0%, rgba(0,0,0,.46) 55%, transparent 100%) !important;
  }
  html body .viviliv-spotlight.viviliv-spotlight--custom-gallery .viviliv-custom-gallery__product-name {
    font-size: clamp(19px, 2.1vw, 25px) !important;
    text-wrap: balance;
  }
}
