﻿.gallery-header {
    padding: 8% 0;
}

/* ===== MAIN GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

/* ===== CARD ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    height: 260px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* ===== IMAGE ===== */
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    /* Hover */
    .gallery-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    }

        .gallery-item:hover img {
            transform: scale(1.05);
        }

/* ===== OVERLAY ===== */
.overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: white;
}

    .overlay h5 {
        margin: 0;
        font-size: 1rem;
    }

    .overlay p {
        margin: 0;
        font-size: 0.85rem;
        opacity: 0.8;
    }

/* ===== IMAGE CREDIT (NEW) ===== */
.image-credit {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.75rem;
    color: #ffffff;
    background: rgba(0,0,0,0.5);
    padding: 3px 6px;
    border-radius: 4px;
    line-height: 1;
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
