.service-gallery { position: relative; width: 100%; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #eef2ef; isolation: isolate; }
.service-gallery__viewport { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.service-gallery__viewport::-webkit-scrollbar { display: none; }
.service-gallery__slide { flex: 0 0 100%; min-width: 0; height: 100%; overflow: hidden; scroll-snap-align: center; }
.service-gallery .service-gallery__slide img { display: block; width: 100%; height: 100%; object-fit: cover; transform: none; }
.service-gallery__controls { position: absolute; inset: 0; pointer-events: none; }
.service-gallery .service-gallery__controls button { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; min-width: 44px; min-height: 44px; padding: 0; margin: 0; border: 1px solid var(--accent, var(--primary, #333)); border-radius: 50%; background: var(--accent, var(--primary, #333)); color: var(--accent-ink, #fff); box-shadow: 0 2px 8px #0002; font: 32px/1 sans-serif; cursor: pointer; pointer-events: auto; }
.service-gallery [data-service-gallery-step="-1"] { inset-inline-start: 10px; }
.service-gallery [data-service-gallery-step="1"] { inset-inline-end: 10px; }
.service-gallery .service-gallery__controls button:hover { filter: brightness(1.12); }
.service-gallery .service-gallery__controls button[aria-disabled="true"] { opacity: .45; cursor: default; filter: none; }
.service-gallery__count { position: absolute; inset-inline-end: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: var(--c-surface, #fff); color: var(--c-text, var(--ink, #333)); opacity: .9; text-align: center; white-space: nowrap; font: 600 12px/1.4 system-ui, sans-serif; }
.service-gallery[dir="rtl"] .service-gallery__controls button span { transform: scaleX(-1); }
.service-gallery__viewport:focus-visible { outline: 3px solid var(--accent, var(--primary, #333)); outline-offset: -4px; }
.service-gallery .service-gallery__controls button:focus-visible { outline: 2px solid var(--accent-ink, #fff); outline-offset: -4px; }
.mq-service__media, .mq-detail__media { min-width: 0; }
.mq-detail__media .service-gallery { aspect-ratio: 16 / 10; }
.mq-detail__media .service-gallery img { object-fit: contain; }
.service-card figure:has(> .service-gallery) { height: auto; aspect-ratio: auto; }
@media (min-width: 900px) {
  .mq-services--rituals .mq-service__media .service-gallery { height: 100%; min-height: 220px; }
}
@media (min-width: 820px) {
  .mq-detail__media .service-gallery { height: 100%; min-height: 460px; }
}
