.gallery{
    position: relative;
    background-color: var(--home-gallery-bg-color);
    padding: 25px 0;
}

.gallery__container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 50vw 50vw 75vw;
    gap: 8px;
}

[class^="gallery__image"]{
    position: relative;
    background-image: none;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

[class^="gallery__image"] > img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.gallery__image-5{
    grid-column: 1 / -1;
    grid-row: 1 / 2;
}

.gallery__image-6{
    grid-column: 1 / -1;
    grid-row: 2 / 3;
}

.gallery__image-1{
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.gallery__image-2{
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.gallery__information,
.gallery__image-3,
.gallery__image-4,
.gallery__image-7{
    display: none;
}

@media screen and (min-width: 600px){
    .gallery__container{
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: 25vw 55vw;
        gap: 14px;
    }

    .gallery__image-1{
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }

    .gallery__image-2{
        grid-column: 3 / 5;
        grid-row: 2 / 3;
    }

    .gallery__image-3{
        display: block;
        grid-column: 5 / -1;
        grid-row: 2 / 3;
    }

    .gallery__image-4{
        display: none;
    }

    .gallery__image-5{
        grid-column: 1 / 4;
        grid-row: 1 / 2;
    }

    .gallery__image-6{
        grid-column: 4 / -1;
        grid-row: 1 / 2;
    }
}

@media screen and (min-width: 905px){
    .gallery__container{
        gap: 24px;
    }
}

@media screen and (min-width: 1240px){
    .gallery__container{
        grid-template-rows: 500px 250px 250px 475px;
        gap: 40px;
    }

    .gallery__image-1{
        grid-row: 1 / 2;
    }

    .gallery__image-2{
        grid-row: 1 / 2;
    }

    .gallery__image-3{
        grid-row: 1 / 2;
    }

    .gallery__image-4{
        display: block;
        grid-column: 1 / 4;
        grid-row: 2 / 4;
    }

    .gallery__image-5{
        grid-column: 4 / -1;
        grid-row: 2 / 3;
    }

    .gallery__image-6{
        display: block;
        grid-row: 3 / 4;
    }

    .gallery__image-7{
        display: block;
        grid-column: 1 / -1;
        grid-row: 4 / -1;

        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        background-position: center;
    }

    .gallery__image-7 img{
        display: none;
    }
}