
/* events styles
--------------------------------------------- */
.events {
    margin-top: 80px;
    overflow: hidden;
}

.events:first-child {
    margin-top: 80px;
}

.events .section__title {
    font-family: Montserrat;
    font-size: 60px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.9px;
    max-width: 930px;
    margin-bottom: 32px;
}

.events .button__custom {
    height: 48px;
    min-width: 255px;
}

.events__gallery {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 60px;
    display: flex;
    align-items: flex-start;
}

.events__gallery-item {
    width: 435px;
    min-width: 435px;
    aspect-ratio: 435/287;
    border-radius: 24px;
    overflow: hidden;
    margin-right: 110px;
    position: relative;
    padding-bottom: 1px;
}

.events__gallery-item img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-width: none;
}

.events__gallery-item:nth-child(1) {
    margin-bottom: 95px;
}

.events__gallery-item:nth-child(2) {
    top: -144px;
}

.events__gallery-item:nth-child(3) {
    transform: translate(-20px, -83%);
}

.events__gallery-item:nth-child(4) {
    transform: translate(-140%, 95px);
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    /**/
}

@media screen and (max-width: 1199px) {
    .events .section__title {
        font-size: 45px;
    }
    .events__gallery-item {
        width: 30.2083333333vw;
        min-width: 30.2083333333vw;
        margin-right: 5vw;
    }
    .events__gallery-item:nth-child(1) {
        margin-bottom: 140px;
        margin-bottom: 150px;
    }
    .events__gallery-item:nth-child(2) {
        top: -5vw;
    }
    .events__gallery-item:nth-child(3) {
        transform: translate(0, -50%);
    }
    .events__gallery-item:nth-child(4) {
        transform: translate(-127%, 150px);
    }
}

@media screen and (max-width: 991px) {
    .events {
        margin-top: 40px;
    }
    .events:first-child {
        margin-top: 40px;
    }
    .events .section__title {
        font-size: 49px;
    }
    .events__gallery {
        margin-top: 138px;
        flex-wrap: wrap;
        width: 900px;
        padding-bottom: 135px;
    }
    .events__gallery-item {
        width: 407px;
        min-width: 407px;
        margin-right: 27px;
        margin-bottom: 30px;
    }
    .events__gallery-item:nth-child(1) {
        transform: none;
        margin-bottom: 30px;
    }
    .events__gallery-item:nth-child(2) {
        top: 135px;
    }
    .events__gallery-item:nth-child(3) {
        transform: none;
    }
    .events__gallery-item:nth-child(4) {
        top: 135px;
        transform: none;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .events .section__title {
        font-size: 49px;
    }
}

@media screen and (max-width: 768px) {
    .events .section__title-additional {
        display: block;
    }
}

@media screen and (max-width: 767px) {
    /**/
}

@media screen and (max-width: 576px) {
    .events {
        margin-top: 40px;
        padding-bottom: 60px;
        position: relative;
    }
    .events:first-child {
        margin-top: 40px;
    }
    .events .section__title {
        font-family: Montserrat;
        font-size: 24px;
        font-style: normal;
        font-weight: 400;
        line-height: 32px;
        /* 133.333% */
        margin-bottom: 30px;
    }
    .events .button__custom {
        position: absolute;
        left: 20px;
        bottom: 0;
        right: 20px;
    }
    .events__gallery {
        margin-top: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 0;
    }
    .events__gallery-item {
        width: 100%;
        min-width: 0;
        margin-right: 0;
        margin-bottom: 16px;
        height: 180px;
        aspect-ratio: initial;
    }
    .events__gallery-item:nth-child(1) {
        margin-bottom: 16px;
        order: 4;
    }
    .events__gallery-item:nth-child(2) {
        top: 0;
        order: 2;
    }
    .events__gallery-item:nth-child(3) {
        transform: none;
        order: 1;
        max-width: 275px;
    }
    .events__gallery-item:nth-child(4) {
        top: 0;
        transform: none;
        order: 3;
        max-width: 275px;
        align-self: flex-end;
    }
}
