/* Full browser width + natural aspect ratio from first image */
.his-slider {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: var(--his-aspect, 16 / 9);
    overflow: hidden;
    background: #111;
}

/* Override Elementor / theme constraints */
.elementor-widget-shortcode .his-slider,
.elementor-element .his-slider {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.his-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.his-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.his-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.his-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.his-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Arrows */
.his-prev,
.his-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.his-prev:hover,
.his-next:hover {
    background: rgba(0,0,0,0.85);
}

.his-prev { left: 20px; }
.his-next { right: 20px; }

/* Dots */
.his-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.his-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.his-dot.is-active {
    background: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .his-prev, .his-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
