/* ============ SLIDER SHELL ============ */
.gslider{
    position: relative;
    width: 100%;
    height: 100%;
    /* Responsive height: falls back to viewport-based sizing.
       If the parent already sets a height, this respects it. */
    min-height: 500px;
    height: clamp(500px, 60vw, 670px);
    overflow: hidden;
    background-color: #2E3136;
    user-select: none;
}
.gslider__track{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ============ SLIDES ============ */
.gslide{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2E3136;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
    z-index: 1;
}
.gslide.is-active{
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ============ VIDEO SLIDE ============ */
.gslide--video iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media(min-width: 960px){
    .gslide--video iframe{
        width: 170%;
        height: 170%;
        left: -35%;
        top: -35%;
    }
}


@media(min-width: 2500px){
    .gslider{
        height: clamp(900px, 900px, 900px);
    }

    .gslide--video iframe{
        width: 200%;
        height: 200%;
        left: -50%;
        top: -50%;
    }
}

/* ============ IMAGE SLIDE CAPTION ============ */
.gslide__content{
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: #fff;
}
/* subtle dark overlay so text is readable over any image */
.gslide--image::after{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 0;
}
.gslide__title{
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    font-weight: 800;
    margin: 0 0 .5rem;
    line-height: 1.1;
}
.gslide__text{
    font-size: clamp(.95rem, 2vw, 1.25rem);
    font-weight: 300;
    max-width: 640px;
    margin: 0;
    opacity: .9;
}

/* ============ NAV ARROWS ============ */
.gslider__nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s ease, background .3s ease;
}
.gslider:hover .gslider__nav{ opacity: 1; }
.gslider__nav:hover{ background: rgba(0,0,0,.65); }
.gslider__nav--prev{ left: 20px; }
.gslider__nav--next{ right: 20px; }

/* ============ DOTS ============ */
.gslider__dots{
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity .3s ease;
}
.gslider:hover .gslider__dots{ opacity: 1; }
.gslider__dot{
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
}
.gslider__dot.is-active{
    background: #fff;
    transform: scale(1.15);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px){ 
    .gslider{ min-height:unset !important; height: clamp(450px, 70vw, 550px);  } 
    .gslide{
        background-size: contain;
    } 

    .gslide--video iframe{
        width: 150%;
        height: 150%;
        left: -25%;
        top: -25%;
    }
}
@media (max-width: 575px){
    .gslider{ height: 280px; }
    .gslider__nav{ width: 38px; height: 38px; }
    .gslider__nav--prev{ left: 10px; }
    .gslider__nav--next{ right: 10px; }
}