/* ========================================
   GALLERY COMPONENT STYLES
   ======================================== */

/* Masonry container */
.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
    margin: 2rem 0;
    padding: 0;
}

/* Gallery items */
.gallery-item {
    position: relative;
    border-radius: 8px;
    background: transparent !important;
    background-color: transparent !important;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    break-inside: avoid; /* Prevent items from breaking across columns */
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image containers */
.gallery-item figure {
    border-radius: 8px;
    overflow: hidden;
    background: transparent !important;
    background-color: transparent !important;
    margin: 0;
    position: relative;
}

.gallery-img {
    border-radius: 8px !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.3s ease;
    display: block;
    width: 100%;
    height: auto;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

/* Simple hover overlay */
.gallery-hover-info {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

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

/* Lightbox integration */
.lightbox-image {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 0;
    overflow: hidden;
}

.lightbox-image:hover {
    text-decoration: none;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .gallery-masonry {
        column-count: 2;
        column-gap: 15px;
        margin: 1.5rem 0;
    }
    
    .gallery-item {
        margin-bottom: 15px;
    }
    
    .gallery-item:hover {
        transform: translateY(-4px);
    }
    
    .gallery-hover-info {
        top: 5px;
        left: 5px;
        right: 5px;
        padding: 8px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-masonry {
        column-count: 1;
        column-gap: 12px;
        margin: 1rem 0;
    }
    
    .gallery-item {
        margin-bottom: 12px;
    }
}

@media screen and (min-width: 1200px) {
    .gallery-masonry {
        column-count: 4;
        column-gap: 24px;
    }
    
    .gallery-item {
        margin-bottom: 24px;
    }
} 