/* ======================================================================= */
/* ФАЙЛ: case-template.css (Стили для страницы детального кейса)      */
/* ======================================================================= */

.case-header {
    text-align: center;
    margin-bottom: 2rem;
}

.case-content {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

.case-gallery {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* Desktop */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    }
}

.gallery-grid img {
    width: 100%;
    /* height: 200px; */
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.case-navigation {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem; /* Add some padding for smaller screens */
    box-sizing: border-box;
}