@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@200;300;400;500;600&display=swap');

:root {
    --container: 90%;
    --gap: 2.3vw;
    --edge: 0.57vw;
    --text: #111;
    --muted: #444;
    --brand: rgba(173, 12, 12, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Geologica, Arial, sans-serif;
    height: 100%;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.events {
    width: 90%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    margin-bottom: 5.2vw;
}

.events__head {
    margin-bottom: 3.1vw;
}



.title-glav {
    color: #6B6B6B;
    text-decoration: none;
    transition: color .18s ease;
}



.events__title {
    margin: 0;
    /*font-size: 2.6vw;*/
    font-size: 4.5vw;
    font-weight: 200;
    font-family: Geologica, sans-serif;
    line-height: 105%;
}

.events__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--gap);
}

.event {
    background: #fff;
    overflow: hidden;
    transition: transform .25s ease;
    cursor: pointer;

}


.btn_more:hover {
    background: black;
    color: white;
}
.event__inner {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.event__media {
    display: block;
    width: 100%;
    overflow: hidden;
}

.event__media img {
    display: block;
    width: 100%;
    height: 30vw;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.event:hover .event__media img {
    transform: scale(1.05);
}

.event__content {
    padding: 1.04vw 0;
}

.event__title {
    margin: 0 0 0.52vw;
    line-height: 1.35;
    font-size: 1.25vw;
    font-weight: 300;
    font-family: Geologica, sans-serif;
}

.event__meta {
    margin: 0;
    color: var(--text);
    font-size: 1.25vw;
    font-weight: 300;
    font-family: Geologica, sans-serif;
}

.event__lg {
    flex: 1 1 calc(50% - var(--gap));
    grid-column: span 2;
}

.event__sm {
    flex: 1 1 calc(25% - var(--gap));
}

.event__lg .event__content {
    width: 70%;
}

.event__sm .event__content {
    width: 100%;
}

.events__more {
    text-align: end;
    width: 23%;
    margin-left: auto;
    margin-top: 2.1vw;
    margin-bottom: 5.2vw;
}

.btn_more {
    width: 100%;
    appearance: none;
    border: 1px solid var(--text);
    background: #fff;
    height: 3.1vw;
    font-size: 1.04vw;
    font-weight: 300;
    font-family: Geologica, Arial, sans-serif;
    cursor: pointer;
    transition: all .18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-transform: uppercase;
}

.btn_more:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

@media (max-width: 767px) {
    :root {
        --container: 90%;
        --gap: 4vw;
        --edge: 5.56vw;
    }

    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .events {
        width: 90%;
        padding: 0;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 12.8vw;
    }

    .events__title {
        font-size: 8vw;
        padding: 0;
        font-weight: 200;
    }
    .events__head {
        margin-bottom: 8vw;
    }



    .events__list {
        grid-template-columns: 1fr 1fr;
        gap: 5.5vw;
        grid-auto-flow: dense;
    }

    .events__list > li.event {
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        background: #fff;
        overflow: hidden;
        font-size: 16px;
    }

    .events__list > li.event.event__lg {
        flex: 0 0 100% !important;
        width: 100% !important;
    }


    .event__media img {
        width: 100%;
        height: 66vw;
        object-fit: cover;
    }

    .event.event__lg .event__content {
        width: 100% !important;
        box-sizing: border-box;
        padding: 10px 8px 12px;
    }

    .event.event__sm .event__content {
        width: 100% !important;
        box-sizing: border-box;
        padding: 8px 0 10px;
    }

    .event__title {
        font-size: 16px;
        margin: 0 0 6px;
        font-weight: 300;
    }

    .event__meta {
        font-size: 16px;
        color: black;
        margin: 0;
        font-weight: 300;
    }

    .events__more {
        margin: 5.5vw 0 16.7vw;
        text-align: center;
        width: 100%;
    }

    .btn_more {
        width: 100%;
        height: 40px;
        font-size: 3.5vw;
    }

}
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --container1: 100%;
        --gap: 2.3vw;
        --edge: 2.5vw;
        --image-height: 25vw;
    }

    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .events {
        max-width: 100%;
        width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10.4vw;
    }

    .events__title {
        font-size: 9.30vw;
        margin-bottom: 4vw;
        font-weight: 200;
    }


    .event__lg {
        flex: 1 1 calc(50% - var(--gap));
    }

    .event__sm {
        flex: 1 1 calc(25% - var(--gap));
    }


    .event__content {
        padding: 1.5vw 0;
    }

    .event__title {
        font-size: 1.6vw;
        line-height: 1.35;
    }

    .event__meta {
        font-size: 1.5vw;
    }

    .event__lg .event__content {
        width: 70%;
    }

    .event__sm .event__content {
        width: 100%;
    }

    .events__more {
        width: calc(50% - (var(--gap) / 2));
        margin-top: 3.1vw;
        text-align: end;
    }
    .event__media img{
        width: 46.2vw;
        height: 32.2vw;

    }
    .btn_more {
        height: 4vw;
        font-size: 1.3vw;
    }
}



.event__inner {
    position: relative;
}

.event__inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.event:hover .event__inner::after {
    opacity: 1;
}

.event,
.event__media img,
.btn_more,
.title-glav {
    transition: all .25s ease;
}

@media (min-width: 1440px) {


    .event__title {
        font-size: 1.1vw;
    }

    .event__meta {
        font-size: 1.1vw;
    }
}

