.gallery-item {
    box-shadow: 0 2px 10px rgba(61, 1, 2, 0.3);
    border-radius: 10px;
}

.gallery-item img {
    width: 300px;
    height: 440px;
    object-fit: cover;
    transition-duration: 1s;
}

.full-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 20;
    background: rgba(0, 0, 0, 0.8);
}

.full-image span {
    position: absolute;
    top: 100px;
    right: 50px;
    font-size: 40px;
    font-weight: bolder;
    color: #E00000;
    cursor: pointer;
    z-index: 21;
}

.full-image .content-gallery {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 700px;
    width: 60%;
    min-width: 490px;
    height: 0;
    padding: 30px;
    transform: translate(-50%,-50%);
}

.full-image .content-gallery img {
    width: 60%;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.full-image .content-gallery .caption {
    display: none;
}

.container-gallery img:hover {
    transform: scale(1.03);
    z-index: 2;
    cursor: pointer;
}

.container-gallery {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    min-height: 100%;
}

@media screen and (max-width: 1517px) {
    .gallery-item img {
        width: 280px;
        height: 400px;
    }

    @media screen and (max-width: 1423px) {
        .gallery-item img {
            width: 260px;
            height: 380px;
        }
    }

    @media screen and (max-width: 1329px) {
        .gallery-item img {
            width: 240px;
            height: 360px;
        }
    }

    @media screen and (max-width: 1235px) {
        .gallery-item img {
            width: 220px;
            height: 340px;
        }
    }

    @media screen and (max-width: 1141px) {
        .gallery-item img {
            width: 200px;
            height: 320px;
        }
    }

    @media screen and (max-width: 1047px) {
        .gallery-item img {
            width: 185px;
            height: 270px;
        }
    }

    @media screen and (max-width: 976px) {
        .gallery-item img {
            width: 165px;
            height: 240px;
        }
    }

    @media screen and (max-width: 882px) {
        .gallery-item img {
            width: 185px;
            height: 270px;
        }
    }

    @media screen and (max-width: 768px) {
        .gallery-item img {
            width: 260px;
            height: 380px;
        }
    }

    @media screen and (max-width: 647px) {
        .gallery-item img {
            width: 220px;
            height: 340px;
        }
    }

    @media screen and (max-width: 552px) {
        .gallery-item img {
            width: 190px;
            height: 280px;
        }

            .caption {
                font-size: 14px!important;
            }
    }

    @media screen and (max-width: 482px) {
        .gallery-item img {
            width: 165px;
            height: 250px;
        }
    }


    @media screen and (max-width: 425px) {
        .gallery-item img {
            width: 100%;
            height: auto;
        }

        .container-gallery {
            gap: 20px;
        }

        .caption {
            font-size: 18px!important;
        }
    }

    @media screen and (max-width: 364px) {
        .gallery-item img {
            width: 100%;
            height: auto;
        }

        .caption {
            font-size: 16px!important;
        }
    }
}

.gallery-item .content-gallery:hover {
    cursor: pointer;
}

.gallery-item .content-gallery {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item .content-gallery::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: rgba(0, 0, 0, 0.7);
    transform-origin: center;
    opacity: 0;
    transform: scale(2);
    transition: opacity 300ms;
}

.caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    place-items: center;
    text-align: center;
    padding: 10px;
    color: white;
    font-size: 18px;
    z-index: 1;
    opacity: 0;
    transition: opacity 600ms, transform 600ms;
}

.gallery-item:hover .content-gallery::after {
    opacity: 1;
}

.gallery-item:hover img {
    filter: blur(2px);
}

.gallery-item:hover .caption {
    opacity: 1;
    transition: opacity 600ms;
}
