.op-service-gallery {
    --op-work-brand: #008bff;
    --op-work-text: #183950;
    --op-work-border: #d8e5f0;
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--op-work-text);
}
.op-service-gallery *, .op-work-viewer * { box-sizing: border-box; }
.op-service-gallery .container { min-width: 0; }
.op-service-gallery__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.op-service-gallery__heading h2 {
    flex: 1 1 10rem;
    min-width: 0;
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-align: left;
    color: var(--op-work-text);
}
.op-service-gallery__controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}
.op-service-gallery__controls[hidden] { display: none; }
.op-service-gallery__arrow {
    display: inline-flex;
    flex: 0 0 3rem;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    min-height: 3rem;
    margin: 0;
    padding: 0;
    border: 1px solid var(--op-work-border);
    border-radius: .875rem;
    background: #fff;
    color: var(--op-work-text);
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
    -webkit-tap-highlight-color: transparent;
}
.op-service-gallery__arrow svg { width: 1.5rem; height: 1.5rem; color: inherit; }
.op-service-gallery__arrow:disabled { opacity: .38; cursor: default; }
.op-service-gallery__arrow:focus-visible, .op-service-gallery__photo:focus-visible {
    outline: 3px solid var(--op-work-brand);
    outline-offset: 3px;
}
.op-service-gallery__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: .875rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .25rem .25rem .75rem;
    margin: -.25rem -.25rem -.75rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.op-service-gallery__track::-webkit-scrollbar { display: none; }
.op-service-gallery__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.op-service-gallery__track.is-dragging * { cursor: grabbing; user-select: none; }
.op-service-gallery__item { min-width: 0; scroll-snap-align: start; scroll-margin-inline: .25rem; }
.op-service-gallery__photo {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--op-work-border);
    border-radius: 1rem;
    background: #edf3f8;
    color: #fff;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}
.op-service-gallery__photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .24s ease;
}
.op-service-gallery__zoom {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: .75rem;
    background: rgba(12,31,47,.68);
    color: #fff;
    pointer-events: none;
    backdrop-filter: blur(8px);
}
.op-service-gallery__zoom svg { display: block; width: 1.375rem; height: 1.375rem; color: #fff; }
.op-service-gallery .op-service-gallery__zoom svg path { stroke: #fff; }
.op-service-gallery__sr, .op-work-viewer__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (min-width: 640px) {
    .op-service-gallery__track { grid-auto-columns: calc((100% - 1rem) / 2); gap: 1rem; }
}
@media (min-width: 1024px) {
    .op-service-gallery__track { grid-auto-columns: calc((100% - 2rem) / 3); }
}
@media (hover: hover) {
    .op-service-gallery__arrow:not(:disabled):hover { background: #edf6ff; border-color: #aacff1; color: #006bcd; }
    .op-service-gallery__photo:hover img { transform: scale(1.025); }
    .op-service-gallery__photo:hover .op-service-gallery__zoom { background: rgba(0,104,199,.9); }
}

.op-work-viewer {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #091925;
    color: #fff;
    z-index: 2147483000;
}
.op-work-viewer:not([open]) { display: none; }
.op-work-viewer::backdrop { background: rgba(5,14,23,.92); }
.op-work-viewer__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1rem calc(5rem + env(safe-area-inset-bottom, 0px));
    touch-action: pan-y pinch-zoom;
}
.op-work-viewer__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    user-select: none;
}
.op-work-viewer__image[hidden] { display: none; }
.op-work-viewer__button {
    display: inline-flex;
    flex: 0 0 3rem;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    min-height: 3rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: .875rem;
    background: rgba(255,255,255,.09);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.op-work-viewer__button svg { width: 1.5rem; height: 1.5rem; color: #fff; }
.op-work-viewer .op-work-viewer__button svg path { stroke: #fff; }
.op-work-viewer__button:hover { background: rgba(255,255,255,.18); }
.op-work-viewer__button:focus-visible { outline: 3px solid #8dcfff; outline-offset: 3px; }
.op-work-viewer__button:disabled { opacity: .3; cursor: default; }
.op-work-viewer__close { position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: calc(1rem + env(safe-area-inset-right, 0px)); }
.op-work-viewer__controls {
    position: absolute;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    display: flex;
    align-items: center;
    gap: .75rem;
    transform: translateX(-50%);
}
.op-work-viewer__controls[hidden] { display: none; }
.op-work-viewer__loading {
    position: absolute;
    left: calc(50% - 1rem);
    top: calc(50% - 1rem);
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(255,255,255,.22);
    border-top-color: #fff;
    border-radius: 50%;
    animation: op-work-spin .8s linear infinite;
    pointer-events: none;
}
.op-work-viewer__loading[hidden] { display: none; }
.op-work-viewer__error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 5rem 1.5rem; font-size: 1rem; line-height: 1.5; }
.op-work-viewer__error[hidden] { display: none; }
@keyframes op-work-spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) {
    .op-work-viewer__stage { padding-inline: 5rem; }
    .op-work-viewer__controls { inset: 50% 1rem auto; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
    .op-work-viewer__controls .op-work-viewer__button { pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .op-service-gallery__arrow, .op-service-gallery__photo img { transition: none; }
    .op-service-gallery__photo:hover img { transform: none; }
    .op-work-viewer__loading { animation: none; }
}
