.service-gallery {
    padding: 5.25rem 0 5.5rem;
    background: #f3f5f7;
}

.service-gallery__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    gap: 1rem 4rem;
    align-items: end;
    max-width: none;
    margin-bottom: 2.5rem;
}

.service-gallery__intro p {
    grid-column: 1 / -1;
    color: var(--red);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.service-gallery__intro h2 {
    font-size: clamp(3rem, 5.1vw, 5.35rem);
}

.service-gallery__intro > span {
    max-width: 510px;
    padding-bottom: .25rem;
    color: var(--muted);
}

.service-gallery__grid {
    display: grid;
    grid-template-columns: 1.22fr .9fr .9fr;
    gap: clamp(1rem, 2vw, 1.8rem);
    align-items: start;
}

.service-gallery figure {
    min-width: 0;
    margin: 0;
    background: #fff;
    box-shadow: 0 12px 28px rgba(2, 28, 61, .11);
}

.service-gallery img {
    width: 100%;
    height: auto;
}

.service-gallery figcaption {
    display: grid;
    gap: .35rem;
    padding: 1rem 1.1rem 1.1rem;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
}

.service-gallery figcaption strong {
    color: var(--navy);
    font: 700 1.15rem/1.15 var(--serif);
}

.service-gallery__feature {
    margin-top: 0 !important;
}

.service-gallery__feature figcaption {
    padding: 1.1rem 1.2rem 1.2rem;
    font-size: .86rem;
}

.service-gallery__feature figcaption strong {
    font-size: 1.25rem;
}

.service-gallery__controls {
    display: none;
}

@media (min-width: 901px) {
    .service-gallery__council img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: 65% center;
    }
}

@media (max-width: 900px) {
    .service-gallery__intro {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-gallery__intro p {
        grid-column: auto;
    }

    .service-gallery__grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 1.5rem;
    }

    .service-gallery__feature {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: 1.08fr .92fr;
        margin-top: 0 !important;
    }

    .service-gallery__feature figcaption {
        align-content: center;
    }

    .service-gallery__council img {
        aspect-ratio: auto;
        object-fit: fill;
    }
}

@media (max-width: 580px) {
    .service-gallery {
        padding: 4rem 0 4.25rem;
    }

    .service-gallery__intro {
        margin-bottom: 1.4rem;
    }

    .service-gallery__intro h2 {
        font-size: clamp(2.3rem, 9.7vw, 3.2rem);
        line-height: 1.02;
    }

    .service-gallery__grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding: 0 .15rem .8rem 0;
        scroll-padding-left: 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .service-gallery__grid::-webkit-scrollbar {
        display: none;
    }

    .service-gallery__grid figure {
        flex: 0 0 min(84vw, 380px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .service-gallery__grid img {
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .service-gallery__feature {
        display: block;
        grid-column: auto;
    }

    .service-gallery__feature figcaption {
        padding: 1.15rem 1.2rem 1.3rem;
        font-size: .82rem;
    }

    .service-gallery__feature figcaption strong {
        font-size: 1.15rem;
    }

    .service-gallery__controls {
        display: flex;
        width: min(100%, 380px);
        align-items: center;
        justify-content: space-between;
        margin-top: .25rem;
    }

    .service-gallery__arrow {
        display: grid;
        width: 2.5rem;
        height: 2.5rem;
        place-items: center;
        border: 1px solid #9baebe;
        color: var(--navy);
        background: transparent;
    }

    .service-gallery__arrow svg {
        width: 1.1rem;
        height: 1.1rem;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }

    .service-gallery__arrow:hover {
        border-color: var(--navy);
        color: #fff;
        background: var(--navy);
    }

    .service-gallery__dots {
        display: flex;
        gap: .6rem;
        align-items: center;
        justify-content: center;
    }

    .service-gallery__dots button {
        width: .5rem;
        height: .5rem;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #9baebe;
        transition: background-color .18s ease, transform .18s ease;
    }

    .service-gallery__dots button[aria-pressed="true"] {
        background: var(--red);
        transform: scale(1.45);
    }

    .service-gallery__controls button:focus-visible {
        outline: 3px solid rgba(183, 31, 38, .38);
        outline-offset: 2px;
    }
}
