
.roma382-gallery{position:relative;width:100%;height:auto;min-height:0;overflow:hidden;background:#ece9e3;outline:none}
.roma382-gallery__track{position:relative;width:100%;height:auto;min-height:0}
.roma382-gallery__slide{position:absolute;inset:0;margin:0;width:100%;height:auto;opacity:0;visibility:hidden;transform:scale(1.015);transition:opacity .65s cubic-bezier(.2,.72,.2,1),transform 1.2s cubic-bezier(.2,.72,.2,1),visibility .65s}
.roma382-gallery__slide.is-active{position:relative;inset:auto;opacity:1;visibility:visible;transform:scale(1);z-index:1}
.roma382-gallery__slide img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;object-position:center}

.roma382-gallery__dots{position:absolute;z-index:5;left:50%;bottom:18px;display:flex;align-items:center;justify-content:center;gap:8px;transform:translateX(-50%)}
.roma382-gallery__dot{display:block;width:28px;height:5px;padding:0;margin:0;background:transparent;border:1px solid rgba(255,255,255,.95);border-radius:0;box-shadow:none;overflow:hidden;cursor:pointer;transition:width .42s cubic-bezier(.2,.75,.2,1),background-color .32s ease,border-color .32s ease}
.roma382-gallery__dot span{display:block;width:0;height:100%;background:#fff;transition:width .42s cubic-bezier(.2,.75,.2,1)}
.roma382-gallery__dot.is-active{width:52px;border-color:#fff}
.roma382-gallery__dot.is-active span{width:100%}
.roma382-gallery__dot:focus-visible{outline:2px solid rgba(255,255,255,.9);outline-offset:4px}

.roma382-gallery-empty{padding:18px;border:1px dashed #aaa;font:13px sans-serif}

@media(max-width:1024px){
    .roma382-gallery__dots{bottom:14px;gap:7px}
}
@media(max-width:767px){
    .roma382-gallery__dots{bottom:10px;gap:5px}
  .roma382-gallery__dot{width:22px;height:4px}
  .roma382-gallery__dot.is-active{width:40px}
}
@media(prefers-reduced-motion:reduce){
  .roma382-gallery__slide,.roma382-gallery__dot,.roma382-gallery__dot span{transition:none!important}
}


/* ==========================================================
   v1.0.2 — ALTURA MÁXIMA 750PX
   Si la imagen supera esa altura, se recorta arriba y abajo
   manteniendo el centro visible.
========================================================== */
.roma382-gallery {
    max-height: 750px;
}

.roma382-gallery__track {
    max-height: 750px;
}

.roma382-gallery__slide.is-active {
    max-height: 750px;
    overflow: hidden;
}

.roma382-gallery__slide.is-active img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    display: block;
}

/* Solo cuando la proporción natural hace que supere 750px,
   JS añade esta clase y centramos el recorte vertical. */
.roma382-gallery.is-capped {
    height: 750px;
}

.roma382-gallery.is-capped .roma382-gallery__track,
.roma382-gallery.is-capped .roma382-gallery__slide.is-active {
    height: 750px;
    max-height: 750px;
}

.roma382-gallery.is-capped .roma382-gallery__slide.is-active img {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
}

/* v1.1.6 — hover suave blanco semitransparente */
.roma382-gallery__dot:hover,
.roma382-gallery__dot:focus,
.roma382-gallery__dot:active{
  background-color:rgba(255,255,255,.22)!important;
  border-color:rgba(255,255,255,.72)!important;
  opacity:.78;
  transform:scale(1.06);
  box-shadow:none!important;
  transition:width .42s cubic-bezier(.2,.75,.2,1),background-color .25s ease,border-color .25s ease,opacity .25s ease,transform .25s ease!important;
}
.roma382-gallery__dot.is-active:hover,
.roma382-gallery__dot.is-active:focus,
.roma382-gallery__dot.is-active:active{background-color:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.8)!important}
