.sa-service-gallery {
    --sa-service-gallery-gap: 12px;
    width: 100%;
}

.sa-service-gallery__title {
    margin: 0 0 14px;
    color: #142d59;
    font-family: var(--e-global-typography-primary-font-family, Georgia), serif;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 1.2;
}

.sa-service-gallery__controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.sa-service-gallery .sa-service-gallery__button {
    display: grid !important;
    place-items: center;
    box-sizing: border-box;
    flex: 0 0 36px;
    width: 36px !important;
    min-width: 36px;
    height: 36px !important;
    min-height: 36px;
    padding: 0 !important;
    border: 1px solid #dceffa !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #142d59 !important;
    box-shadow: none !important;
    font: inherit;
    line-height: 1;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
}

.sa-service-gallery .sa-service-gallery__button:hover:not(:disabled),
.sa-service-gallery .sa-service-gallery__button:focus-visible {
    background: #dceffa !important;
    color: #142d59 !important;
}

.sa-service-gallery .sa-service-gallery__button:focus-visible {
    outline: 2px solid #7565a6;
    outline-offset: 2px;
}

.sa-service-gallery .sa-service-gallery__button:disabled {
    opacity: .35;
    cursor: default;
}

.sa-service-gallery .sa-service-gallery__button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sa-service-gallery__track {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-flow: column dense;
    grid-auto-columns: calc((100% - 5 * var(--sa-service-gallery-gap)) / 6);
    gap: var(--sa-service-gallery-gap);
    height: 360px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sa-service-gallery__track::-webkit-scrollbar {
    display: none;
}

.sa-service-gallery__track:focus-visible {
    outline: 2px solid #7565a6;
    outline-offset: 3px;
}

.sa-service-gallery__slide {
    min-width: 0;
    min-height: 0;
    grid-row: span 2;
    scroll-snap-align: start;
}

.sa-service-gallery__slide--landscape {
    grid-row: span 1;
}

.sa-service-gallery .sa-service-gallery__slide img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: 14px;
}

@media (max-width: 1100px) {
    .sa-service-gallery__track {
        grid-auto-columns: calc((100% - 2 * var(--sa-service-gallery-gap)) / 3);
        height: 320px;
    }
}

@media (max-width: 767px) {
    .sa-service-gallery__track {
        grid-auto-columns: calc((100% - var(--sa-service-gallery-gap)) / 2);
        height: 300px;
    }
}

@media (max-width: 520px) {
    .sa-service-gallery__track {
        grid-auto-columns: calc((100% - var(--sa-service-gallery-gap)) / 2);
        height: 390px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sa-service-gallery__track {
        scroll-behavior: auto;
    }
}
