/* Modulul Front al Liceului Tehnologic de Servicii Bistrița. */
.jm-hero:has(> #mod-custom222 .migration-carousel[data-source-module="222"]) {
    min-height: 0;
    background-color: #f6f6f6;
}

#mod-custom222 .stefan-slideshow {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
}

#mod-custom222 .migration-carousel[data-source-module="222"] {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1920px;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

#mod-custom222 .migration-carousel > figure {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    opacity: 1;
    visibility: hidden;
    transition: none;
}

/* Prima imagine se vede și înainte ca șablonul să inițializeze comenzile. */
#mod-custom222 .migration-carousel:not([data-stefan-ready]) > figure:first-of-type,
#mod-custom222 .migration-carousel > figure.is-current {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
}

#mod-custom222 .migration-carousel > figure img {
    display: block;
    box-sizing: border-box;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(545px, 100vh);
    margin: 0 auto;
    border: 1px solid #e3e3e3;
    object-fit: contain;
}

#mod-custom222 .stefan-slide-dots {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

#mod-custom222 .stefan-slide-dot {
    position: relative;
    width: 16px;
    min-width: 16px;
    height: 16px;
    padding: 0;
    border: 3px solid white;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    font-size: 0;
}

#mod-custom222 .stefan-slide-dot::after {
    content: "";
    position: absolute;
    inset: -7px;
}

#mod-custom222 .stefan-slide-dot[aria-current="true"] {
    background: white;
}

#mod-custom222 .stefan-slide-arrow {
    display: grid;
    place-items: center;
    top: 34.8624%;
    transform: none;
    width: 80px;
    height: 80px;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 0;
    color: #e7e7e7;
    background: white;
}

#mod-custom222 .stefan-slide-prev { left: 6px; }
#mod-custom222 .stefan-slide-next { right: 6px; }

#mod-custom222 .stefan-slide-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transform: rotate(45deg);
}

#mod-custom222 .stefan-slide-prev::before {
    transform: rotate(-135deg);
}

#mod-custom222 .stefan-slide-arrow,
#mod-custom222 .stefan-slide-play {
    opacity: 0;
    transition: opacity .2s ease;
}

#mod-custom222 .stefan-slideshow:is(:hover, :focus-within) .stefan-slide-arrow {
    opacity: .5;
}

#mod-custom222 .stefan-slideshow:is(:hover, :focus-within) .stefan-slide-play,
#mod-custom222 .stefan-slideshow .stefan-slide-arrow:is(:hover, :focus-visible) {
    opacity: 1;
}

#mod-custom222 .stefan-slide-arrow:is(:hover, :focus-visible) {
    color: #364e72;
}

#mod-custom222 .stefan-slideshow button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #005b93;
}

@media (pointer: coarse) {
    #mod-custom222 .stefan-slide-arrow { width: 44px; height: 44px; }
    #mod-custom222 .stefan-slide-play { opacity: .75; }
}

@media (prefers-reduced-motion: reduce) {
    #mod-custom222 .stefan-slideshow button { transition: none; }
}
