.gallery-wrapper-cnt { border-radius: 4px; overflow: hidden; }

.gallery {
    display: flex;
    flex-wrap: wrap;
    /* grid-template-columns: repeat(3, 1fr); */
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    background-color: #3B424A;
    /* padding: 4px; */
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    width: auto;
    height: 200px;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
    /* box-shadow: 0 0 2 rgba(0, 0, 0, 1); */
}

.gallery-item img {
    height: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item video {
    height: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover video {
    transform: scale(1.05);
}


/* --------------------
   LIGHTBOX
-------------------- */

.lightbox {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.9);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease;

    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 85vw;
    max-height: 85vh;

    object-fit: contain;

    user-select: none;
}


/* Close */

.lightbox-close {
    position: absolute;

    top: 25px;
    right: 35px;

    background: none;
    border: none;

    color: white;
    font-size: 45px;

    cursor: pointer;

    z-index: 2;
}
.lightbox-close img { width: 24px; height: 24px; }


/* Previous / Next */

.lightbox-prev,
.lightbox-next {
    position: absolute; display: flex; justify-content: center; align-items: center;

    top: 50%;
    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.2);

    border: none;

    color: white;

    font-size: 35px;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    cursor: pointer;

    transition: background 0.2s ease;
}

.lightbox-prev img,
.lightbox-next img { width: 24px; height: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}


/* Mobile */

@media (max-width: 768px) {

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 80vh;
    }

    .lightbox-prev {
        left: 35%; transform: translateX(-50%);
    }

    .lightbox-next {
        right: 35%; transform: translateX(50%);
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 25px;
        top: unset;
        bottom: 10px;
        transform: unset;
    }

    
    .lightbox-prev img,
    .lightbox-next img { width: 24px; height: 24px; }
}


@media (max-width:500px) {

    .gallery-wrapper-cnt { border-radius: 0; }
    .gallery-item { border-radius: 2px; }

}