/* Modulul Slidere al Liceului Tehnologic Carsium. */
.jm-hero > #mod-custom124:has(.migration-carousel[data-source-module="124"]) {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    padding: 30px 0;
    background: #f6f6f6;
}

#mod-custom124 .stefan-slideshow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

#mod-custom124 .migration-carousel[data-source-module="124"] {
    grid-area: 1 / 1 / 2 / 2;
    display: block;
    position: relative;
    width: 100%;
    max-width: 1920px;
    min-height: 0;
    height: auto;
    aspect-ratio: 1920 / 450;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

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

#mod-custom124 .migration-carousel:not([data-stefan-ready]) > figure:first-child,
#mod-custom124 .migration-carousel > figure.is-current {
    visibility: visible;
}

#mod-custom124 .migration-carousel > figure img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border: 1px solid #e3e3e3;
}

#mod-custom124 .stefan-slide-dots {
    grid-area: 2 / 1;
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 14px;
    margin-top: 20px;
    counter-reset: imagine;
}

#mod-custom124 .stefan-slide-dot {
    counter-increment: imagine;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #151414;
    font: 400 14px/30px Roboto, Arial, sans-serif;
}

#mod-custom124 .stefan-slide-dot::before { content: counter(imagine); }

#mod-custom124 .stefan-slide-dot:is([aria-current="true"], :hover) {
    color: #fff;
    background: #0091ea;
}

#mod-custom124 :is(.stefan-slide-arrow, .stefan-slide-play) {
    grid-area: 1 / 1 / 2 / 2;
    position: absolute;
    top: 11.111%;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    transform: none;
    color: #fff;
    background: rgb(0 0 0 / 80%);
    font-size: 0;
    opacity: 0;
    transition: opacity .2s ease;
}

#mod-custom124 .stefan-slide-prev { left: 16px; }
#mod-custom124 .stefan-slide-next { right: 16px; }
#mod-custom124 .stefan-slide-play { left: calc(50% - 42px); right: auto; }

#mod-custom124 .stefan-slide-arrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 3px solid currentColor;
    border-top: 3px solid currentColor;
    transform: rotate(45deg);
}
#mod-custom124 .stefan-slide-prev::before { transform: rotate(-135deg); }
#mod-custom124 .stefan-slide-play::before {
    content: "";
    box-sizing: border-box;
    width: 10px;
    height: 12px;
    border-inline: 3px solid currentColor;
}
#mod-custom124 .stefan-slide-play[aria-pressed="true"]::before {
    width: 0;
    height: 0;
    border: solid transparent;
    border-width: 7px 0 7px 11px;
    border-left-color: currentColor;
}

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

@media (max-width: 320px) {
    #mod-custom124 .stefan-slide-dots { visibility: hidden; }
}

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