.gallery-page {
    background: var(--paper);
}

.gallery-hero {
    padding: 120px 0 50px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, .10), rgba(255, 255, 255, .85)),
        var(--paper);
}

.gallery-hero h1 {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: .95;
    letter-spacing: -0.06em;
    color: var(--ink);
}

.gallery-hero p {
    max-width: 720px;
    font-size: 20px;
    line-height: 1.8;
    color: var(--muted);
}

.gallery-section {
    padding: 50px 0 90px;
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.gallery-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, .12);
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .06);
    transition: .2s ease;
}

.gallery-tab:hover,
.gallery-tab.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(17, 24, 39, .10);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.gallery-more-btn {
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--dark);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.gallery-more-btn:hover {
    background: var(--orange);
}

.gallery-more-btn:disabled {
    opacity: .7;
    cursor: wait;
}

.gallery-empty {
    grid-column: 1 / -1;
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 100px 0 35px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-card {
        border-radius: 18px;
    }

    .gallery-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .gallery-tab {
        white-space: nowrap;
    }
}