/* ==========================================================
   АкваПрофі
   Gallery
========================================================== */

.gallery-page {
    padding: 20px 0;
    background: #f7f7f7;
}

.gallery-page .container {
    max-width: 1320px;
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 1600px) {
    .gallery-page .container {
        max-width: 1360px;
        padding-left: 20px;
        padding-right: 20px;
    }
}
.gallery-header {
    text-align: center;
    margin-bottom: 48px;
}

.gallery-header h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.gallery-header p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #666;
}

.gallery-empty {
    padding: 80px 20px;
    text-align: center;
    color: #777;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 28px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transition:
            transform .25s ease,
            box-shadow .25s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 170px;   /* або 160px */
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Планшети */

@media (max-width: 992px) {

    .gallery-page {
        padding: 64px 0;
    }

    .gallery-grid {
        gap: 20px;
    }

}

/* Телефони */

@media (max-width: 576px) {

    .gallery-page {
        padding: 48px 0;
    }

    .gallery-header {
        margin-bottom: 36px;
    }

    .gallery-header p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-item {
        border-radius: 10px;
    }

}