/**
 * PhotoSwipe Gallery Styles
 * File: css/pswp-gallery.css
 */

/* Gallery Title */
.pswp-gallery h3,
.gallery-grid h3 {
    color: #4a7c59;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.pswp-gallery > h3 {
    margin-bottom: 5px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 250px));
    gap: 15px;
    justify-content: start;
    max-width: 100%;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.2);
}

/* Gallery Images */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 80, 22, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Zoom Icon */
.zoom-icon {
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ===== RESPONSIVE STYLES ===== */

/* Large screens - Max 4 columns */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, calc(25% - 12px)));
        max-width: 1000px;
    }
}

/* Medium-large screens - Max 3 columns */
@media (min-width: 900px) and (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, calc(33.333% - 10px)));
    }
}

/* Medium screens - Max 2 columns */
@media (min-width: 600px) and (max-width: 899px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, calc(50% - 8px)));
    }
}

/* Small screens - 1-2 columns */
@media (max-width: 599px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 200px));
        gap: 10px;
    }

    .zoom-icon {
        font-size: 1.5rem;
    }
}