.news-group {
    min-height: 100vh;
    padding: 0 0 80px;
    background-color: #fff;

    * {
        box-sizing: border-box;
    }

    .file_module-wrapper,
    .newsy,
    .newsy .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .page-foto {
        display: none;
    }
}

.newsy {
    .news-events-stage {
        height: 100vh;
        height: 100svh;
    }

    .news-events-layout {
        position: sticky;
        top: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, min(45.3vw, 652px)) minmax(0, 1fr);
        gap: clamp(24px, 4vw, 56px);
        align-items: stretch;
        width: min(92vw, 1500px);
        height: 100vh;
        height: 100svh;
        margin: 0 auto;
    }

    .news-events-list,
    .news-events-dates {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        font-family: "Chivo Mono", monospace;
        font-size: 22.5px;
        line-height: 1.6;
        text-transform: uppercase;
    }

    .news-events-list {
        .module-title {
            margin: 0 0 12px;
            padding: 0;
        }

        .module-title-text {
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 0;
            color: #171717;
            font-family: inherit;
            font-size: inherit;
            font-weight: 500;
            line-height: inherit;
            text-align: left;
            text-transform: uppercase;

            &::before {
                width: 6px;
                height: 6px;
                flex: 0 0 6px;
                background-color: #171717;
                content: "";
            }
        }

        ol,
        li {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        ol {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        li {
            opacity: 0.24;
            transition: opacity 0.2s ease;

            &.is-active,
            &:hover,
            &:focus-within {
                opacity: 1;
            }
        }

        button {
            display: flex;
            align-items: baseline;
            gap: 7px;
            width: 100%;
            padding: 0;
            border: 0;
            background: none;
            color: #171717;
            font: inherit;
            text-align: left;
            text-transform: inherit;
            cursor: pointer;
            outline: none !important;
        }

        .news-event__number {
            flex: 0 0 auto;
        }

        .news-event__title {
            min-width: 0;
        }

        .is-active .news-event__title::before {
            display: inline-block;
            width: 6px;
            height: 6px;
            margin: 0 6px 1px 0;
            background-color: #e83e36;
            content: "";
        }
    }

    .news-events-viewport {
        height: 100vh;
        height: 100svh;
        overflow: hidden;

        &.is-carousel {
            touch-action: pan-x pinch-zoom;
        }
    }

    .news-events-images {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
        transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
    }

    .news-event {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        color: inherit;
        text-decoration: none;

        &:focus-visible {
            outline: 2px solid #292b31;
            outline-offset: 6px;
        }

        &:hover .news-event__image img {
            transform: scale(1.025);
        }
    }

    .news-event__card {
        width: 100%;
        opacity: 0.25;
        transition: opacity 0.5s ease;
    }

    .news-event.is-active .news-event__card {
        opacity: 1;
    }

    .news-event__image {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 2;
        height: auto;
        overflow: visible;
        border: 1px solid #cfd3e5;
        padding: 9px;
        background-color: #f3f4f8;

        &::after {
            position: absolute;
            inset: -1px;
            background:
                linear-gradient(#292b31, #292b31) left top / 14px 1px no-repeat,
                linear-gradient(#292b31, #292b31) left top / 1px 14px no-repeat,
                linear-gradient(#292b31, #292b31) right top / 14px 1px no-repeat,
                linear-gradient(#292b31, #292b31) right top / 1px 14px no-repeat,
                linear-gradient(#292b31, #292b31) left bottom / 14px 1px no-repeat,
                linear-gradient(#292b31, #292b31) left bottom / 1px 14px no-repeat,
                linear-gradient(#292b31, #292b31) right bottom / 14px 1px no-repeat,
                linear-gradient(#292b31, #292b31) right bottom / 1px 14px no-repeat;
            content: "";
            pointer-events: none;
        }

        figure {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        img {
            display: block;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        figcaption {
            display: none;
        }
    }

    .news-event__details {
        display: none;
    }

    .news-events-dates {
        h2 {
            margin: 0 0 12px;
            color: #171717;
            font: inherit;
            line-height: inherit;
            text-align: right;
            text-transform: uppercase;
        }

        ol,
        li {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        ol {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        li {
            opacity: 0.24;
            text-align: right;
            transition: opacity 0.2s ease;

            &.is-active,
            &:hover,
            &:focus-within {
                opacity: 1;
            }
        }

        button {
            width: 100%;
            padding: 0;
            border: 0;
            background: none;
            color: #171717;
            font: inherit;
            text-align: right;
            text-transform: inherit;
            cursor: pointer;
            outline: none !important;
        }

        time {
            white-space: nowrap;
        }
    }

    .buttons {
        display: flex;
        justify-content: center;
        margin-top: clamp(48px, 8vw, 96px);

        .btn-primary {
            background-color: var(--element1-btn1-bg);
            color: var(--element1-btn1-text);
            border-color: var(--element1-btn1-border);

            &:hover {
                background-color: var(--element1-btn1-bg-hover) !important;
                color: var(--element1-btn1-text-hover) !important;
                border-color: var(--element1-btn1-border-hover) !important;
            }
        }

        .btn-secondary {
            background-color: var(--element1-btn2-bg);
            color: var(--element1-btn2-text);
            border-color: var(--element1-btn2-border);

            &:hover {
                background-color: var(--element1-btn2-bg-hover) !important;
                color: var(--element1-btn2-text-hover) !important;
                border-color: var(--element1-btn2-border-hover) !important;
            }
        }
    }

}

@media (min-width: 768px) and (max-width: 1439.98px) {
    .newsy .news-events-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, min(38vw, 520px)) minmax(0, 1fr);
        gap: clamp(16px, 2.5vw, 36px);
        width: min(92vw, 1200px);
    }

    .newsy .news-events-list,
    .newsy .news-events-dates {
        font-size: clamp(13px, 1.35vw, 18px);
    }
}

@media (max-width: 767.5px) {
    .newsy .news-events-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        width: min(90vw, 540px);
    }

    .newsy .news-events-list {
        position: absolute;
        top: 12px;
        left: 0;
        z-index: 1;
        font-size: 15px;
    }

    .newsy .news-events-list ol {
        display: none;
    }

    .newsy .news-events-images {
        gap: 24px;
    }

    .newsy .news-event__details {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: baseline;
        column-gap: 10px;
        row-gap: 4px;
        padding-top: 10px;
        font-family: "Chivo Mono", monospace;
        font-size: 15px;
        line-height: 1.5;
        text-transform: uppercase;
    }

    .newsy .news-event__details .news-event__number {
        grid-row: span 2;
    }

    .newsy .news-event__details h3 {
        margin: 0;
        color: #171717;
        font: inherit;
        font-weight: 500;
    }

    .newsy .news-event__details time {
        color: #171717;
    }

    .newsy .news-events-dates {
        display: none;
    }
}
