/* Sequential Zoom Cards Widget Styles */

.wml-sequential-zoom-cards {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50vh;
    overflow: hidden;
}

.wml-zoom-cards-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.wml-zoom-card {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0%;
    height: 0%;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    border: 3em solid #0F0F0F;
    border-style: solid;
}

.wml-zoom-card span {
    position: absolute;
    display: flex;
    margin: 0;
    padding: 0;
    color: #EAEAE8;
    align-items: center;
    text-align: center;
    font-size: clamp(2rem, 5vw, 8rem);
    text-transform: uppercase;
    font-family: "Playfair Display", serif;
    font-weight: 900;
}

/* Responsive Design */

/* Tablets and small devices */
@media (max-width: 1024px) {
    .wml-zoom-card {
        border-width: 2em;
    }

    .wml-zoom-card span {
        font-size: clamp(1.5rem, 4vw, 6rem);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .wml-zoom-card {
        border-width: 1.5em;
    }

    .wml-zoom-card span {
        font-size: clamp(1rem, 6vw, 4rem);
        padding: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .wml-zoom-card {
        border-width: 1em;
    }

    .wml-zoom-card span {
        font-size: clamp(0.875rem, 8vw, 3rem);
        padding: 0.5rem;
    }

    /* Disable fixed background on mobile for better performance */
    .wml-zoom-card {
        background-attachment: scroll !important;
    }
}

/* High resolution screens */
@media (min-width: 1920px) {
    .wml-zoom-card span {
        font-size: clamp(3rem, 5vw, 10rem);
    }
}