﻿.gallery-grid {
    column-count: 2;
    column-gap: 1rem;
    column-fill: balance;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .gallery-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.02);
    }

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item.hidden {
    display: none;
}

.show-more-container {
    text-align: center;
    margin: 2rem 0;
}


/* Responsive adjustments */
@media (max-width: 640px) {
    .gallery-grid {
        column-count: 1;
    }
    .gallery-item {
        margin-bottom: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (min-width: 1025px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (min-width: 1280px) {
    .gallery-grid {
        column-count: 3;
    }
    .gallery-grid-1 {
        column-count: 1;
    }
    .gallery-grid-2 {
        column-count: 2;
    }
    .gallery-grid-3 {
        column-count: 3;
    }
    .gallery-grid-4 {
        column-count: 4;
    }
}
