/* Gallery Main Styles */
.gallery-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
}

.gallery-content {
    padding: 15px;
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.gallery-meta {
    font-size: 0.85rem;
    color: #777;
}

/* Single Gallery Specific */
.image-grid {
    column-count: 4;
    column-gap: 15px;
}

@media (max-width: 1200px) { .image-grid { column-count: 3; } }
@media (max-width: 992px) { .image-grid { column-count: 2; } }
@media (max-width: 576px) { .image-grid { column-count: 1; } }

.image-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    cursor: pointer;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.image-item:hover img {
    opacity: 0.9;
}

.masonry-item {
    break-inside: avoid;
}

/* Slider Overrides if needed */
.gallery-slider .carousel-item {
    height: 500px;
}
.gallery-slider img {
    height: 100%;
    object-fit: contain;
    background: #000;
}
