/* Image Gallery Component */

.image-gallery {
    background: var(--secondary-color-700);
}

.image-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
}

@media (min-width: 768px) {
    .image-gallery__grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 220px);
        gap: 1.5rem;
    }
}

/* Gallery Item */
.image-gallery__item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.image-gallery__item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.image-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--animation-easing, cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

.image-gallery__item:hover img {
    transform: scale(1.1);
}

/* Overlay */
.image-gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(64, 50, 38, 0.9) 0%, rgba(64, 50, 38, 0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.image-gallery__item:hover .image-gallery__overlay {
    opacity: 1;
}

.image-gallery__category {
    color: var(--secondary-color-100);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.image-gallery__title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.image-gallery__item--large .image-gallery__title {
    font-size: 1.25rem;
}

.image-gallery__item--large .image-gallery__overlay {
    padding: 2rem;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .image-gallery__grid {
        grid-template-rows: repeat(3, 180px);
    }
    
    .image-gallery__item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .image-gallery__overlay {
        padding: 1rem;
    }
    
    .image-gallery__title {
        font-size: 0.9rem;
    }
}

/* Focus States */
.image-gallery__item:focus-within {
    outline: 2px solid var(--secondary-color-100);
    outline-offset: 4px;
}

