.news-container {
    position: relative;
    max-height: 70vh;
    aspect-ratio: 16 / 18;
    overflow: hidden;
    top: 0;
    user-select: none;
    margin: 0 auto;
}

.news-container a {
    text-decoration: none;
}

.news-container h2 {
    transition: color 0.2s ease, transform 0.2s ease;
}

.news-container h2:hover {
    color: var(--wp--preset--color--custom-color-5) !important;
    transform: scale(1.03);
}

.news-container .wp-block-button {
    transition: transform 0.2s ease;
}

.news-container .wp-block-button:hover {
    transform: scale(1.05);
}

.news-container .wp-block-button a {
    transition: color 0.2s ease;
}

.news-container .wp-block-button a:hover {
    color: var(--wp--preset--color--custom-color-5) !important;
}


.wp-block-post-featured-image img {
    border-radius: 0;
}

.news-item {
    position: absolute;
    flex: 0 0 100%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: clip-path;
}

.news-item img {
    position: absolute;
    top: 0;
    width: 100%;
    aspect-ratio: 16 / 18;
    object-fit: cover;
}
@media (pointer: coarse) {
    @media (min-width: 500px) {
        .news-container {
            aspect-ratio: 16 / 12;
        }

        .news-item img {
            aspect-ratio: 16 / 12;
        }
    }

    @media (min-width: 750px) {
        .news-container {
            aspect-ratio: 16 / 8;
        }

        .news-item img {
            aspect-ratio: 16 / 8;
        }
    }

    @media (min-width: 1130px) {
        .news-container {
            aspect-ratio: 16 / 6;
        }

        .news-item img {
            aspect-ratio: 16 / 6;
        }

    }

    @media (min-width: 1500px) {
        .news-container {
            max-height: 70vh;
            aspect-ratio: 16 / 5;
        }

        .news-item img {
            aspect-ratio: 16 / 5;
        }

    }

}

.news-item .title-box {
    position: absolute;
    bottom: 20px;
    z-index: 20;
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
}

@media (pointer: fine) {
    .news-container {
        aspect-ratio: 16 / 9;
        max-width: 1550px;
        width: 100%;
    }

    .news-item {
        filter: grayscale(1);
        transition: all 0.75s ease;
        margin: 0;
        overflow: hidden;
    }

    .news-item img {
        aspect-ratio: auto;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-40%);
    }

    .news-item.focused {
        filter: grayscale(0);
    }

    .news-item .title-box {
        position: absolute;
        bottom: 20px;
        z-index: 20;
        opacity: 0;
        transition: opacity 0.3s ease;
        transform: translateX(0%);
        width: auto;

    }

    .news-item-0 .title-box {
        left: 5%;
    }

    .news-item-1 .title-box {
        left: 25%;
    }

    .news-item-2 .title-box {
        left: 40%;
    }

    .focused .title-box {
        opacity: 1;
    }
}
