.home-gallery-section {
    position: relative;
    width: 100%;
    padding: 85px 0 75px;
    overflow: hidden;
    background: #fff5f8;
}

.home-gallery-section .gallery-heading {
    margin-bottom: 38px;
    padding: 0 20px;
}

.home-gallery-section .gallery-subtitle {
    max-width: 620px;
    margin: 12px auto 0;
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

.home-gallery-scroll-shell {
    position: relative;
}

.home-gallery-track {
    display: flex;
    gap: 22px;
    width: 100%;
    padding: 10px max(24px, calc((100vw - 1170px) / 2)) 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-gallery-track::-webkit-scrollbar {
    display: none;
}

.home-gallery-item {
    position: relative;
    flex: 0 0 clamp(285px, 31vw, 430px);
    height: 325px;
    margin: 0;
    overflow: hidden;
    scroll-snap-align: start;
    background: #1d2b4f;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(29, 43, 79, 0.13);
}

.home-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-gallery-item:hover img {
    transform: scale(1.06);
}

.home-gallery-item figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 46px 24px 22px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    pointer-events: none;
    background: linear-gradient(to top, rgba(29, 43, 79, 0.94), transparent);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #fa4580;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(29, 43, 79, 0.24);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus {
    background: #1d2b4f;
    outline: none;
    transform: translateY(-50%) scale(1.06);
}

.gallery-arrow:disabled {
    opacity: 0.38;
    cursor: default;
}

.gallery-arrow:disabled:hover {
    background: #fa4580;
    transform: translateY(-50%);
}

.gallery-arrow-prev {
    left: 20px;
}

.gallery-arrow-next {
    right: 20px;
}

.gallery-scroll-note {
    margin: 13px 0 0;
    color: #777;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0.3px;
}

@media (max-width: 767.98px) {
    .home-gallery-section {
        padding: 65px 0 55px;
    }

    .home-gallery-track {
        gap: 15px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .home-gallery-item {
        flex-basis: 82vw;
        height: 280px;
    }

    .gallery-arrow {
        width: 42px;
        height: 42px;
    }

    .gallery-arrow-prev {
        left: 9px;
    }

    .gallery-arrow-next {
        right: 9px;
    }
}
