/* Optional service gallery, shared by service levels 2–4. */
.service-gallery {
    position: relative;
    width: 100%;
    margin: 0 0 72px;
    padding: 0;
    overflow: visible;
}

.service-gallery__title {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto 28px;
    color: var(--color-dark, #201c18);
    font-family: var(--font-heading, "Oswald", sans-serif);
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.1;
    text-transform: uppercase;
}

.service-gallery__track {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    width: 100%;
    box-sizing: border-box;
    padding: 8px 28px 22px 25vw;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 25vw;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    touch-action: pan-x pan-y;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}

.service-gallery--single .service-gallery__track {
    justify-content: center;
    padding: 8px 24px 22px;
    overflow-x: hidden;
    scroll-padding-left: 0;
}

.service-gallery--single .service-gallery__controls {
    display: none !important;
}

.service-gallery__track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.service-gallery__viewport {
    position: relative;
    width: 100%;
}

.service-gallery__track:active,
.service-gallery__track.is-dragging {
    cursor: grabbing;
}

.service-gallery__track:focus-visible {
    outline: 2px solid var(--color-accent, #2e4a3f);
    outline-offset: -2px;
}

.service-gallery__item {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    max-width: min(82vw, 920px);
    max-height: min(68vh, 680px);
    margin: 0;
    scroll-snap-align: start;
}

.service-gallery__open {
    display: block;
    max-width: 100%;
    cursor: zoom-in;
}

.service-gallery__open:focus-visible {
    outline: 3px solid var(--color-accent, #2e4a3f);
    outline-offset: 4px;
}

.service-gallery__open img {
    pointer-events: none;
}

.service-gallery__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(82vw, 920px);
    max-height: min(68vh, 680px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.service-gallery__controls {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 24px;
    display: none;
    gap: 8px;
    transform: translateY(-50%);
}

.service-gallery.is-reversing .service-gallery__controls {
    right: auto;
    left: 24px;
}

.service-gallery.is-enhanced .service-gallery__controls {
    display: flex;
}

.service-gallery__arrow {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    background: var(--color-accent, #2e4a3f);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.service-gallery__arrow:disabled {
    opacity: 0.45;
    cursor: default;
}

.service-gallery__arrow:focus-visible {
    outline: 2px solid var(--color-dark, #201c18);
    outline-offset: 3px;
}

.service-gallery__arrow img {
    display: block;
    width: 48px;
    height: 48px;
}

.service-gallery__arrow img.is-reversed {
    transform: rotate(180deg);
}

.service-gallery__lightbox {
    position: relative;
    box-sizing: border-box;
    width: min(96vw, 1440px);
    height: min(94vh, 1000px);
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #151513;
    color: #fff;
}

.service-gallery__lightbox[open] {
    position: fixed;
    inset: 0;
    margin: auto;
}

.service-gallery__lightbox::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.service-gallery__lightbox-toolbar {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-gallery__counter {
    margin-right: auto;
    color: #fff;
    font: 500 14px/1.2 var(--font-base, Arial, sans-serif);
}

.service-gallery__lightbox-close {
    display: grid;
    min-width: 48px;
    height: 48px;
    place-items: center;
    padding: 0 12px;
    border: 0;
    background: rgba(233, 230, 225, 0.95);
    color: #111;
    font: 600 14px/1 var(--font-base, Arial, sans-serif);
    cursor: pointer;
}

.service-gallery__lightbox-close {
    width: 48px;
    padding: 0;
    font-size: 30px;
}

.service-gallery__lightbox-image-wrap {
    display: grid;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    place-items: center;
    padding: 74px 82px 28px;
    overflow: auto;
    overscroll-behavior: contain;
}

.service-gallery__lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(96vw - 164px);
    max-height: calc(94vh - 112px);
    object-fit: contain;
    cursor: zoom-in;
}

.service-gallery__lightbox-image.is-zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

.service-gallery__lightbox-arrow {
    position: absolute;
    z-index: 1;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
}

.service-gallery__lightbox-arrow[hidden] {
    display: none;
}

.service-gallery__lightbox-arrow img {
    display: block;
    width: 48px;
    height: 48px;
}

.service-gallery__lightbox-arrow--previous {
    left: 16px;
}

.service-gallery__lightbox-arrow--previous img {
    transform: rotate(180deg);
}

.service-gallery__lightbox-arrow--next {
    right: 16px;
}

.service-gallery__lightbox-arrow:focus-visible,
.service-gallery__lightbox-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .service-gallery {
        margin-bottom: 48px;
    }

    .service-gallery__title {
        width: calc(100% - 40px);
        margin-bottom: 20px;
    }

    .service-gallery__track {
        gap: 12px;
        padding: 8px 20px 18px;
        scroll-padding-left: 20px;
    }

    .service-gallery__item,
    .service-gallery__image {
        max-width: calc(100vw - 40px);
        max-height: 58vh;
    }

    .service-gallery__controls {
        right: 12px;
    }

    .service-gallery.is-reversing .service-gallery__controls {
        right: auto;
        left: 12px;
    }

    .service-gallery__arrow {
        width: 38px;
        height: 38px;
    }

    .service-gallery__arrow img {
        width: 38px;
        height: 38px;
    }

    .service-gallery__lightbox {
        width: 100vw;
        height: 100dvh;
    }

    .service-gallery__lightbox-toolbar {
        top: 12px;
        right: 12px;
        left: 12px;
        gap: 8px;
    }

    .service-gallery__lightbox-close {
        min-width: 44px;
        height: 44px;
    }

    .service-gallery__lightbox-close {
        width: 44px;
    }

    .service-gallery__lightbox-image-wrap {
        padding: 70px 58px 22px;
    }

    .service-gallery__lightbox-image {
        max-width: calc(100vw - 116px);
        max-height: calc(100dvh - 112px);
    }

    .service-gallery__lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .service-gallery__lightbox-arrow img {
        width: 40px;
        height: 40px;
    }

    .service-gallery__lightbox-arrow--previous {
        left: 4px;
    }

    .service-gallery__lightbox-arrow--next {
        right: 4px;
    }
}

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