/* ============================================
   ГАЛЕРИЯ - Page Styles
   ============================================ */

/* Gallery Section */
.gallery {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.gallery__item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
}

.gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery__placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-gray-200);
    background-image:
        linear-gradient(135deg, var(--color-gray-200) 0%, var(--color-gray-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery__placeholder::after {
    content: '';
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='1'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.gallery__item:hover img {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery {
        padding: var(--space-xl) 0;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .gallery__item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
