/*
|--------------------------------------------------------------------------
| HOME — HISTORIAS / SLIDER
|--------------------------------------------------------------------------
*/


.amoladero-stories {
    position: relative;

    width: 100%;

    overflow: hidden;

    background:
        var(--amoladero-deep);
}


.amoladero-stories__slider {
    position: relative;

    width: 100%;

    min-height:
        clamp(420px, 48vw, 720px);

    overflow: hidden;

    background:
        var(--amoladero-deep);
}



/* ==========================================================================
   GALLERY
   ========================================================================== */

.amoladero-stories__gallery {
    position: absolute !important;

    inset: 0;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-height: inherit;

    margin: 0 !important;

    padding: 0 !important;

    gap: 0 !important;
}


/* ==========================================================================
   SLIDES
   ========================================================================== */

.amoladero-stories__gallery
> .wp-block-image {
    position: absolute !important;

    inset: 0;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    margin: 0 !important;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 520ms ease,
        visibility 0s linear 520ms;
}


.amoladero-stories__gallery
> .wp-block-image.is-active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transition-delay: 0s;
}


/* ==========================================================================
   IMAGE
   ========================================================================== */

.amoladero-stories__gallery
> .wp-block-image
> img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;

    object-position: center;
}



/* ==========================================================================
   OVERLAY VERDE
   ========================================================================== */

.amoladero-stories__slider::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 2;

    pointer-events: none;

   background: rgba(1, 103, 72, 0.38);
}


/* ==========================================================================
   CTA ÚNICO
   ========================================================================== */

.amoladero-stories__actions {
    position: absolute;

    z-index: 5;

    left: 50%;

    bottom:
        clamp(24px, 5vw, 66px);

    display: flex;

    justify-content: center;

    width: auto;

    margin: 0;

    transform:
        translateX(-50%);
}


.amoladero-stories__button {
    margin: 0;
}


.amoladero-stories__button
.wp-block-button__link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width:
        clamp(140px, 12vw, 190px);

    min-height: 42px;

    padding:
        11px 30px;

    border: 0;

    border-radius:
        var(--amoladero-radius-pill);

    background:
        var(--amoladero-light);

    color:
        var(--amoladero-deep);

    font-family:
        var(--amoladero-font-heavy);

    font-size:
        0.78rem;

    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        background 200ms ease,
        transform 200ms ease;
}


.amoladero-stories__button
.wp-block-button__link:hover {
    background:
        var(--amoladero-white);

    transform:
        translateY(-2px);
}


/* ==========================================================================
   ARROWS
   ========================================================================== */

.amoladero-stories__arrow {
    position: absolute;

    z-index: 6;

    top: 50%;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width:
        clamp(42px, 4vw, 58px);

    height:
        clamp(42px, 4vw, 58px);

    padding: 0;

    border: 0;

    background:
        transparent;

    color:
        var(--amoladero-white);

    font-size:
        clamp(2.6rem, 4vw, 4.3rem);

    line-height: 1;

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        opacity 180ms ease;
}


.amoladero-stories__arrow:hover {
    opacity: 0.7;
}


.amoladero-stories__arrow--prev {
    left:
        clamp(8px, 2vw, 34px);
}


.amoladero-stories__arrow--next {
    right:
        clamp(8px, 2vw, 34px);
}


/* ==========================================================================
   DOTS
   ========================================================================== */

.amoladero-stories__dots {
    position: absolute;

    z-index: 6;

    left: 50%;

    bottom:
        clamp(76px, 9vw, 112px);

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    transform:
        translateX(-50%);
}


.amoladero-stories__dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border:
        1px solid
        var(--amoladero-deep);

    border-radius: 50%;

    background:
        transparent;

    cursor: pointer;
}


.amoladero-stories__dot.is-active {
    background:
        var(--amoladero-deep);
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    .amoladero-stories__slider {
        min-height:
            clamp(420px, 110vw, 620px);
    }


    .amoladero-stories__arrow {
        width: 42px;
        height: 42px;

        font-size: 2.8rem;
    }


    .amoladero-stories__arrow--prev {
        left: 4px;
    }


    .amoladero-stories__arrow--next {
        right: 4px;
    }


    .amoladero-stories__actions {
        bottom: 24px;
    }


    .amoladero-stories__dots {
        bottom: 78px;
    }

}