/*   Prefix --news-ribbon-   */

body {
    --news-ribbon-image-overlay: rgb(0, 6, 24, 0.3); 
    --news-ribbon-image-overlay-hover: rgb(0, 6, 24, 0.3); 

    --news-ribbon-title-background: #004785;
}

.news-ribbon-total-container {
    display: flex;
    flex-direction: column;
    font-family: Commissioner; 
    margin: 16px 16px;
    margin-bottom: 32px;
}

.news-ribbon-total-container-recommendations {
    display: flex;
    flex-direction: column;
    font-family: Commissioner; 
    margin-top: 48px;
    margin-bottom: 16px;
}

.news-ribbon-title {
    width: min-content;
    white-space: nowrap;
    margin-bottom: 8px;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

.news-ribbon-title:hover, .news-ribbon-title:focus {
    color: #000;
    text-decoration: none;
}

.news-ribbon-title:after {
    position: relative; 
    bottom: 0px;
    left: 0;
    display: block;
    content: '';
    width: 100%; 
    height: 3px;
    background-color: transparent;
}

.news-ribbon-title:hover:after {
    background-color: #000;
}

.news-ribbon-list {
    box-sizing: border-box !important;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    max-width: 100%;
    max-height: 196px;
    padding: 8px;
    overflow-y: hidden;
    overflow-x: auto;
    box-shadow: 0 0 8px var(--base-box-shadow-color);
}

.news-ribbon-list::-webkit-scrollbar {
    display: none;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.news-ribbon-list:hover::-webkit-scrollbar {
    display: unset; 
    -ms-overflow-style: unset;  /* IE and Edge */
    scrollbar-width: unset;  /* Firefox */
}

.news-ribbon-element {
    position: relative;
    display: block;
    height: 180px;
    min-width: 240px;
    width: min-content;
    max-width: 380px;
    border-radius: 3px;
    overflow: hidden;
}

@media (min-width: 1024px) and (max-width: 1335.98px) {
    .news-ribbon-total-container .news-ribbon-element {
        flex-basis: 25%;
    }

    .news-ribbon-total-container .news-ribbon-element:nth-child(n+5) {
        display: none;
    }
}

@media (min-width: 1336px) {
    .news-ribbon-total-container .news-ribbon-element {
        flex-basis: 20%;
    }
}

.news-ribbon-element-image-block img {
    position: absolute;
    object-fit: cover;
    height: 100% !important;
    width: 100%;
    background-color: #ccc;
    -webkit-filter: brightness(50%);
    filter: brightness(50%);
}

.news-ribbon-element:hover .news-ribbon-element-image-block img {
    -webkit-filter: brightness(70%);
    filter: brightness(70%);
}

.news-ribbon-element-image-block img:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "\2639" " NO PHOTO";
    color: #fff;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-ribbon-element-title {
    pointer-events: none;
    box-sizing: border-box !important;
    position: absolute;
    bottom: 0;
    color: #fff;
    text-shadow: 0 0 4px var(--base-text-shadow-color);
    margin: 8px;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.news-ribbon-element-date {
    pointer-events: none;
    box-sizing: border-box !important;
    position: absolute;
    top: 0;
    right: 0;
    margin: 8px;
    color: #fff;
    text-shadow: 0 0 4px var(--base-text-shadow-color);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}