/* Belectric News
----------------------------------------------- */

.belectric-news {
    --news-min-height: 470px;
    --belectric-primary-transparent: hsla(347, 100%, 45%, 0.75);
}

.belectric-news :where(.wp-block-read-more, .wp-block-post-date) {
    font-size: 0.75rem;
}

.belectric-news :where(.wp-block-read-more, .wp-block-post-title a) {
    color: var(--wp--preset--color--base);
}

.belectric-news .belectric-news-entries {
    display: grid;
    min-height: var(--news-min-height);
}

.belectric-news .belectric-news-entry {
    margin-block-start: 10px;
    position: relative;
}

.belectric-news .belectric-news-cover {
    min-height: calc(var(--news-min-height) / 2);
    position: relative;
    display: flex;
    flex-direction: column;
}

.belectric-news .belectric-news-cover:first-child {
    height: 100%;
}

.belectric-news .belectric-news-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

@media (min-width: 800px) {
    .belectric-news .belectric-news-entries {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .belectric-news .belectric-news-entry:first-child {
        grid-row: 1 / span 2;
    }

    .belectric-news .belectric-news-entry{
        margin-block-start: 0;
    }
}

.belectric-news .belectric-news-data {
    background-color: var(--belectric-primary-transparent);
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 10px;
    color: var(--wp--preset--color--base);
}

.belectric-news-link {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: all 0.5s ease-in-out;
    z-index: 3;
}

.belectric-news .belectric-news-cover img {
    transition: filter 0.3s ease-in-out;
}

.belectric-news .belectric-news-entry:hover .belectric-news-cover img {
    filter: brightness(0.8);
}

.belectric-news .belectric-news-title {
    font-size: var(--wp--preset--font-size--medium);
    color: #fff !important;
}

.belectric-news :where(.belectric-news-date, .belectric-news-read-more) {
    font-size: 0.75rem;
}

.belectric-news-read-more a {
    color: var(--wp--preset--color--base) !important;
}