.gallery {
    flex-wrap: wrap;
    gap: 25px;
    margin: 20px;
    padding: 0 40px;
}

.gallery-image-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: transform 0.2s;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
}

/* POPUP */
.gallery-popup {
    display: none;
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    animation: popupShow 0.3s ease-in-out;
}

.gallery-popup img {
    max-width: 85%;
    max-height: 80%;
    border-radius: 5px;
    position: relative;
}

.gallery-close-btn,
.gallery-prev-btn,
.gallery-next-btn {
    position: absolute;
    cursor: pointer;
    color: white;
}

.gallery-close-btn {
    font-size: 28px;
    top: 10px;
    right: 20px;
}

.gallery-prev-btn,
.gallery-next-btn {
    font-size: 34px;
}

.gallery-prev-btn {
    top: 45%;
    left: 25px;
}

.gallery-next-btn {
    top: 45%;
    right: 25px;
}

@keyframes popupShow {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}