.gallery {
    column-count: 4;
    column-gap: 15px;
    padding: 20px 0px 0px 0px;
}

@media (max-width: 1200px) {
    .gallery {
        column-count: 3;
    }
}
@media (max-width: 768px) {
    .gallery {
        column-count: 2;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.gallery-thumb {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.caption {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.gallery-lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 0px;
    color: white;
    cursor: pointer;
}

.lightbox-img {
    max-width: 80%;
    max-height: 80%;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.lightbox-caption {
    color: white;
    font-size: 1.1rem;
    max-width: 80%;
    text-align: center;
}

/* Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
    border: none;
    outline: none;
    padding: 20px;
}

.gallery-arrow:focus {
    outline: none;
}

.gallery-left {
    left: 20px;
}

.gallery-right {
    right: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

