.single-service-gallery {
    width: 100%;
}

.service-gallery {
    position: relative;
}

.service-gallery__stage {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    transition: height 0.35s ease;
}

.service-gallery__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.01);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.service-gallery__slide.is-active,
.service-gallery__slide.is-exiting {
    visibility: visible;
}

.service-gallery__slide.is-active {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}

.service-gallery__slide.is-exiting {
    opacity: 0;
    z-index: 1;
}

.service-gallery__slide img {
    display: block;
    width: 100%;
    height: auto;
}

.service-gallery__stage .service-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}
.service-gallery__stage .service-gallery__nav svg {
    width: 30px;
}

.service-gallery__stage .service-gallery__nav span {
    display: flex;
    justify-content: center;
    align-items: center;
}
.service-gallery__nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.service-gallery__nav--prev {
    left: 16px;
}

.service-gallery__nav--next {
    right: 16px;
}

.service-gallery__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 16px;
}

.service-gallery__thumb {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.service-gallery__thumb img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.service-gallery__thumb.is-active {
    border-color: var(--e-global-color-primary, #2563eb);
    opacity: 1;
}

.service-gallery__thumb:not(.is-active) {
    opacity: 0.6;
    border-color: #ccc;
    padding: .5rem;
}

@media (max-width: 900px) {
    .service-gallery__thumb img {
        width: 64px;
        height: 64px;
    }
}
