/**
 * Homepage offset cards
 */
:root {
    --homepage-offset-inline: 20px;
    --homepage-offset-block: 45px;
    --layout-homepage-offset-card-padding: 20px;
}

.homepage-offset-cards {}

.homepage-offset-cards .block-blurb--card {
    display: inline-block;
    width: 100%;
    width: fit-content;
    width: -webkit-fill-available;
}


.homepage-offset-cards .blurb__content {
    padding-top: 1px;
    color: var(--white);
    background-color: var(--secondary);
    padding: var(--layout-homepage-offset-card-padding);
    margin-bottom: calc(var(--layout-card-padding) * -1);
}

.homepage-offset-cards .blurb__content .block-title {
    margin-top: 0;
    font-family: var(--font-family-base);
    font-size: 16px;
    margin-bottom: -5px;
}

.homepage-offset-cards .blurb__content h2 {
    font-size: 60px;
    margin-bottom: 30px;
}

.homepage-offset-cards img {
    width: 100%;
    /* Fills the width of the parent container */
    height: auto;
    /* Allows the height to be calculated automatically */
    aspect-ratio: 16 / 9;
    /* Forces a 16:9 widescreen ratio */
    object-fit: cover;
    /* Crops excess edges so the image does not distort */
}

.homepage-offset-cards .blurb__content .field--name-field-link {
    margin-bottom: 20px;
}



@media only screen and (min-width: 768px) {
    :root {
        --homepage-offset-inline: 40px;
        --homepage-offset-block: 90px;
    }

    .homepage-offset-cards .blurb__row {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
    }


    .homepage-offset-cards .blurb__media {}

    .homepage-offset-cards .blurb__media,
    .homepage-offset-cards .blurb__content {
        margin-block: calc(var(--layout-card-padding) * -1);
    }

    .homepage-offset-cards .card__header {
        border-start-end-radius: var(--card-border-radius);
        border-start-end-radius: 0;
    }

    .homepage-offset-cards img {
        aspect-ratio: 3 / 3;
    }

    .homepage-offset-cards .blurb__content .field--name-field-link {
        margin-bottom: 0px;
    }
}



@media only screen and (min-width: 992px) {

    :root {
        --layout-homepage-offset-card-padding: 40px;
    }

    .homepage-offset-cards .block-blurb--card {
        position: relative;
        margin-block: var(--homepage-offset-block);
        margin-inline: var(--homepage-offset-inline);
        overflow: initial;
    }

    .homepage-offset-cards .blurb__media {
        border-radius: var(--card-border-radius);
        overflow: hidden;
    }

    .homepage-offset-cards .blurb__content {
        border-radius: var(--card-border-radius);
        left: calc(var(--homepage-offset-inline) * -1);
        top: calc(var(--homepage-offset-block) * -1 + 40px);
        right: auto;
        position: absolute;
        width: 46%;
    }

    .homepage-offset-cards .blurb--flip .blurb__content {
        left: initial;
        right: calc(var(--homepage-offset-inline) * -1);
    }

    .homepage-offset-cards img {
        aspect-ratio: 16 / 9;
    }



}