/* DYS Slider — Frontend Styles — all rules scoped under .dys-slider */

.dys-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #000;
    -webkit-user-select: none;
    user-select: none;
}

.dys-slider__track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    height: 100%;
}

.dys-slider__slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.dys-slider__slide .dys-slide-img,
.dys-slider__slide .dys-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* YouTube / Vimeo iframe wrapper — 16:9 ratio */
.dys-slider__iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.dys-slider__iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Slide link wrapper */
.dys-slider__slide .dys-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Arrows */
.dys-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    padding: 0.15em 0.45em;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
    border-radius: 3px;
}

.dys-slider__arrow:hover,
.dys-slider__arrow:focus {
    background: rgba(0, 0, 0, 0.75);
    outline: none;
}

.dys-slider__arrow--prev { left: 12px; }
.dys-slider__arrow--next { right: 12px; }

/* Dots */
.dys-slider__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dys-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.25s ease;
    border: none;
}

.dys-slider__dot.active,
.dys-slider__dot:hover {
    background: rgba(255, 255, 255, 1);
}

/* Loading overlay */
.dys-slider__loader {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.4s ease;
}

.dys-slider__loader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.dys-slider__spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dys-spin 0.75s linear infinite;
}

@keyframes dys-spin {
    to { transform: rotate(360deg); }
}

/* Visibility controlled by data attributes */
.dys-slider[data-arrows="0"] .dys-slider__arrow { display: none !important; }
.dys-slider[data-dots="0"]   .dys-slider__dots   { display: none !important; }
