Top Destinations to Explore

escape the ordinary

<style>
/* -- The root styles must go in the element of the structure with the name "Card". --*/

/* Cards container styles */
.card-destinations__wrapper {

    /* Styles of the first element */
    &:nth-of-type(1) {
        grid-column: span 2;
        grid-row: span 2;

        /* Tablet styles */
        @media(max-width: 991px) {
            grid-row: auto;
        }

        /* Mobile styles */
        @media(max-width: 767px) {
            grid-column: auto;
        }
    }

    /* Styles of the fourth element */
    &:nth-of-type(4) {
        grid-column: span 2;
        aspect-ratio: 2 / 1;

        /* Mobile styles */
        @media(max-width: 767px) {
            grid-column: auto;
            aspect-ratio: 1 / 1;
        }
    }

    /* Hover and focus styles */
    &:hover,
    &:focus-within {

        .card-destinations__heading {
            color: var(--white);
        }

        .card-destinations__description,
        .card-destinations__btn {
            opacity: 1;
        }

        .card-destinations__img {
            opacity: 1;
        }

    }

    @media(max-width: 991px) {
        .card-destinations__heading {
            color: var(--white);
        }

        .card-destinations__description,
        .card-destinations__btn {
            opacity: 1;
        }

        .card-destinations__img {
            opacity: 0.5;
        }
    }
}

</style>