.stacking-cards-container{
    display: flex;
    flex-direction: column;
    color: white;
    height: 100vh;
    position: relative;
    width: 100%;
    & .stacking-cards-wrapper{
        position: absolute;
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
        max-width: 1080px;
        height: 600px;
        top: 150%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: var(--wp--preset--color--noir);
        border-radius: 30px;
        gap: 4%;
        & .stacking-cards-content{
            display: flex;
            width: 100%;
            gap: 1rem;
            overflow: auto;
            align-items: center;
            justify-content: space-between;
            & h3, h2{
                margin: 0;
            }
            & h2{
                margin-top: 0.5rem;
            }
            & .stacking-cards-btn-container{
                font-size: var(--wp--preset--font-size--l-title);
                font-weight: 700;
            }
        }
        & .stacking-cards-image{
            display: flex;
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
            border-radius: 20px;
            & img{
                min-width: 200%;
                min-height: 120%;
                object-fit: cover;
                object-position: center;
                border-radius: 20px;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }
            & .stacking-card-image-mobile{
                display: none;
            }
        }
    }
    & .stacking-cards-wrapper:first-child{
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        .stacking-cards-image{
            & img{
                min-width: 100%;
                min-height: 100%;
            }
        }
    }
}
.stacking-cards-container.blue-cards{
    & .stacking-cards-wrapper{
        background: var(--wp--preset--color--bleu);
    }
}
@media (max-width: 1024px) {
    .stacking-cards-container{
        & .stacking-cards-wrapper{
            width: 90%;
        }
    }
}
@media (max-width: 576px) {
    .stacking-cards-container{
        overflow: hidden;
        & .stacking-cards-wrapper{
            flex-direction: column;
            height: 450px;
            max-width: 300px;
            & .stacking-cards-image{
                width: 100%;
                & .stacking-card-image{
                    display: none;
                }
                & .stacking-card-image-mobile{
                    min-width: 200%;
                    min-height: 120%;
                    object-fit: cover;
                    object-position: center;
                    border-radius: 20px;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    display: flex;
                }
            }
            & .stacking-cards-content{
                position: absolute;
                top: unset;
                bottom: 0;
                left: 50%;
                transform: translate(-50%, 0%);
                width: 100%;
                padding: 1rem;
                max-width: 300px;
                max-height: 400px;
                z-index: 2;
                overflow: auto;
                flex-direction: column;
                gap: 0;
                & div{
                    & p{
                        & span{
                            font-size: 16px!important;
                        }
                    }
                }
                & .stacking-cards-btn-container {
                    display: none;
                }
            }
        }
    }
}