.rt-home-gallery {
    --gallery-green: #1f654d;
    --gallery-ink: #153f34;
    --gallery-muted: #61746d;
    --gallery-cream: #f7f6ee;
    padding: 76px 0 82px;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 12%, rgba(185, 216, 158, .26), transparent 25%),
        var(--gallery-cream);
}

.rt-home-gallery__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 30px;
}

.rt-home-gallery__intro {
    max-width: 680px;
}

.rt-home-gallery__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #4f846c;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rt-home-gallery h2 {
    margin: 0;
    color: var(--gallery-ink);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.rt-home-gallery__intro p {
    margin: 12px 0 0;
    color: var(--gallery-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.rt-home-gallery__actions,
.rt-home-gallery__nav {
    display: flex;
    align-items: center;
}

.rt-home-gallery__actions {
    flex: 0 0 auto;
    gap: 20px;
}

.rt-home-gallery__all,
.rt-home-gallery__mobile-all {
    color: var(--gallery-green);
    font-weight: 700;
}

.rt-home-gallery__all:hover,
.rt-home-gallery__all:focus,
.rt-home-gallery__mobile-all:hover,
.rt-home-gallery__mobile-all:focus {
    color: #124735;
}

.rt-home-gallery__all i,
.rt-home-gallery__mobile-all i {
    margin-left: 7px;
    font-size: .82em;
}

.rt-home-gallery__nav {
    gap: 8px;
}

.rt-home-gallery__prev,
.rt-home-gallery__next {
    display: inline-grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(31, 101, 77, .24);
    border-radius: 50%;
    color: var(--gallery-green);
    background: rgba(255, 255, 255, .78);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.rt-home-gallery__prev:hover,
.rt-home-gallery__next:hover,
.rt-home-gallery__prev:focus-visible,
.rt-home-gallery__next:focus-visible {
    border-color: var(--gallery-green);
    color: #fff;
    background: var(--gallery-green);
    transform: translateY(-2px);
    outline: none;
}

.rt-home-gallery__prev.swiper-button-disabled,
.rt-home-gallery__next.swiper-button-disabled {
    opacity: .38;
    cursor: default;
    transform: none;
}

.rt-home-gallery__swiper {
    overflow: visible;
    touch-action: pan-y;
}

.rt-home-gallery__item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: #dfe7e1;
    box-shadow: 0 14px 34px rgba(24, 70, 55, .11);
}

.rt-home-gallery__item a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
}

.rt-home-gallery__item a:focus-visible {
    outline: 3px solid #f6bf63;
    outline-offset: -4px;
}

.rt-home-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.rt-home-gallery__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(8, 39, 30, .84) 100%);
}

.rt-home-gallery__caption {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.rt-home-gallery__caption strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.05rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rt-home-gallery__caption small {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .82);
    white-space: nowrap;
}

.rt-home-gallery__caption small i {
    margin-left: 5px;
}

.rt-home-gallery__footer {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .rt-home-gallery__item:hover img {
        transform: scale(1.045);
    }
}

@media (max-width: 767.98px) {
    .rt-home-gallery {
        padding: 50px 0 54px;
    }

    .rt-home-gallery__header {
        margin-bottom: 22px;
    }

    .rt-home-gallery__intro p {
        margin-top: 10px;
        font-size: .98rem;
    }

    .rt-home-gallery__actions {
        display: none;
    }

    .rt-home-gallery__item {
        border-radius: 15px;
        box-shadow: 0 10px 26px rgba(24, 70, 55, .1);
    }

    .rt-home-gallery__caption {
        right: 16px;
        bottom: 15px;
        left: 16px;
    }

    .rt-home-gallery__caption small {
        display: none;
    }

    .rt-home-gallery__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        min-height: 44px;
        margin-top: 20px;
    }

    .rt-home-gallery__pagination {
        position: static;
        display: flex;
        width: auto !important;
        align-items: center;
    }

    .rt-home-gallery__pagination .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
        margin: 0 4px !important;
        background: #8ea39a;
        opacity: .55;
        transition: width .2s ease, border-radius .2s ease, background-color .2s ease, opacity .2s ease;
    }

    .rt-home-gallery__pagination .swiper-pagination-bullet-active {
        width: 22px;
        border-radius: 20px;
        background: var(--gallery-green);
        opacity: 1;
    }

    .rt-home-gallery__mobile-all {
        flex: 0 0 auto;
        font-size: .92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rt-home-gallery__item img,
    .rt-home-gallery__prev,
    .rt-home-gallery__next,
    .rt-home-gallery__pagination .swiper-pagination-bullet {
        transition: none;
    }
}
