.block--page-hero-featured {
    background-color: var(--wp--preset--color--sw-blue);
    min-height: 800px;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    padding-top: 40px;
}

@media screen and (max-width: 768px) {
    .block--page-hero-featured {
        min-height: auto;
    }
}

@media screen and (max-width: 640px) {
    .block--page-hero-featured {
        padding-top: 64px;
    }
}

.block--page-hero-featured--main {
    padding: 48px 0 0;
}

.block--page-hero-featured--content {
    margin-top: 80px;
    grid-column: 1 / 5;
}

@media screen and (max-width: 768px) {
    .block--page-hero-featured--content {
        margin-top: 0px;
        grid-column: 1 / 13;
    }
}

.block--page-hero-featured--content mark {
    font-family: var(--wp--preset--font-family--ibm-plex-serif);
    font-weight: 400;
}

.block--page-hero-featured--content .wp-block-buttons {
    margin-top: 40px;
}

.block--page-hero-featured--media {
    grid-column: 5 / 13;
    max-height: 680px;
}

@media screen and (max-width: 768px) {

    .block--page-hero-featured--media {
        grid-column: 1 / 13;
        max-height: 680px;
    }
}

.block--page-hero-featured--media--gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 300px 1fr;
    gap: 48px;
    width: min(120%, 1200px);
}

.block--page-hero-featured--media--gallery figure {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.block--page-hero-featured--media--gallery figure:nth-child(1) {
    left:  48px;
    margin-left: 25%;
}

.block--page-hero-featured--media--gallery figure:nth-child(2) {
    left:  48px;
    height: 120%;
}

.block--page-hero-featured--media--gallery figure:nth-child(4) {
    top: 64px;
    margin-right: 25%;
}

.block--page-hero-featured--media--gallery figure img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1024px) {    
    .block--page-hero-featured--media--gallery {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 24px;
        width: 120%;
    }

    .block--page-hero-featured--media--gallery figure:nth-child(4) {
        top: 48px;
        margin-right: 64px;
    }
}

@media screen and (max-width: 640px) {    
    .block--page-hero-featured--media--gallery figure {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
    }
    .block--page-hero-featured--media--gallery figure:nth-child(4) {
        top: 24px;
        margin-right: 15%;
    }

    .block--page-hero-featured--main {
        padding: 0;
    }

    .block--page-hero-featured--media {
        transform: translateX(-20px);
    }

    .block--page-hero-featured--media--gallery {
        grid-template-rows: 120px 185px;
    }
}