.gallery-page {
    margin-bottom: 100px;
}

.gallery-page-image-big {
    margin-bottom: 20px;
}

.gallery-page__items {
    display: grid;
    gap: 20px;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 20px;
}

.gallery-page-image-big img {
    width: 100%;
    object-fit: cover;
    max-height: 1121px;
    height: 100%;
}

.gallery-page__items2 {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 2fr;
    margin-bottom: 20px;
}

.gallery-page-image-big2 {
    margin-bottom: 20px;
}

.gallery-page-image-big2 img {
    width: 100%;
    object-fit: cover;
    max-height: 765px;
    height: 100%;
}

.gallery-page__items3 {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 2fr;
    margin-bottom: 20px;
}

.gallery-page-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.big-image {
    width: 100%;
    max-width: 1798px;
    max-height: 1121px;
    height: 100%;
    object-fit: cover;
}

.medium-image {
    max-width: 1185px;
    max-height: 758px;
    height: 100%;
    width: 100%;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 23px;
}





/* Описание расположения карточек */
.card-1 {
    grid-column: span 5;
    grid-row: span 1;
    max-height: 1121px;
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-2 {
    grid-column: span 3;
    grid-row: span 1;
    max-height: 680.76px;
}
.card-3 {
    grid-column: span 2;
    grid-row: span 1;
    max-height: 680.76px;
}

.card-4 {
    grid-column: span 2;
    grid-row: span 1;
    max-height: 831.78px;
}
.card-5 {
    grid-column: span 3;
    grid-row: span 1;
    max-height: 831.78px;
}

.card-6 {
    grid-column: span 5;
    grid-row: span 1;
    max-height: 765.86px;
}

.card-7 {
    grid-column: span 3;
    grid-row: span 1;
    max-height: 765.86px;
}
.card-8 {
    grid-column: span 2;
    grid-row: span 1;
    max-height: 765.86px;
}
.card-9 {
    grid-column: span 2;
    grid-row: span 1;
    max-height: 831.78px;
}
.card-10 {
    grid-column: span 3;
    grid-row: span 1;
    max-height: 831.78px;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .card {
        grid-column: span 1;
        grid-row: span 1;
    }
}
@media (max-width: 600px) {
    .gallery-page {
        margin-bottom: 20px;
    }

    .card-grid{
        gap: 4px;
        margin-bottom: 4px;
    }

    .card-1 {
        max-height: 299px;
    }
    .card-2 {
        max-height: 338px;
    }
    .card-3 {
        max-height: 362px;
    }

    .card-4 {
        max-height: 276px;
    }
    .card-5 {
        max-height: 362px;
    }

    .card-6 {
        max-height: 362px;

    }

    .card-7 {
        max-height: 268px;
    }
    .card-8 {
        max-height: 362px;

    }
    .card-9 {
        max-height: 344px;
    }
    .card-10 {
        max-height: 323px;
    }
}