.gallery {
    padding: 20px 20px 60px;
}

.gallery-content {
    max-width: 1200px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.gallery-content .item {
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}
.gallery-content .item:hover {
    opacity: 0.8;
}

.gallery-content .item img {
    height: 100%;
    object-fit: cover;
}


@media screen and (max-width:992px) {
    .gallery-content {

        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (max-width:768px) {
    .gallery-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width:576px) {
    .gallery-content {
        grid-template-columns: 1fr;
    }

    .gallery-content .item {
        height: 400px;
        overflow: hidden;
    }

}









/* =========================
   Lightbox
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);

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

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, visibility 0.3s ease;

    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Image container */

.lightbox-content {
    width: 90%;
    height: 90%;

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

    padding: 20px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    border-radius: 5px;

    user-select: none;

    animation: lightboxImage 0.3s ease;
}

@keyframes lightboxImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Buttons */

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;

    border: none;
    background: rgba(255, 255, 255, 0.12);

    color: white;

    width: 50px;
    height: 50px;

    border-radius: 50%;

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

    cursor: pointer;

    font-size: 28px;

    transition: background 0.2s ease, transform 0.2s ease;

    z-index: 2;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

/* Close */

.lightbox-close {
    top: 25px;
    right: 25px;

    font-size: 35px;
    line-height: 1;
}

/* Previous */

.lightbox-prev {
    left: 25px;
    top: 50%;

    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.08);
}

/* Next */

.lightbox-next {
    right: 25px;
    top: 50%;

    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

    .lightbox-content {
        width: 100%;
        height: 85%;
        padding: 10px;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;

        font-size: 22px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }
}