.service-gallery,
.service-photo-frame {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.service-gallery,
.standalone-service-photo {
  margin-top: 24px;
}

.service-photo-frame {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  aspect-ratio: 4 / 3;
  background: #000;
  border: 1px solid var(--border);
}

.service-photo-frame img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.gallery-frame img {
  opacity: 0;
  transition: opacity 350ms ease;
}

.gallery-frame img[aria-hidden="false"] {
  opacity: 1;
}

.gallery-controls:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.gallery-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gold);
  font: inherit;
  cursor: pointer;
}

.gallery-controls button:is(:hover, :focus-visible) {
  border-color: var(--gold);
}

.gallery-count {
  padding-inline: 4px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-frame img {
    transition: none;
  }
}

.service-detail#flexineb {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

@media (max-width: 760px) {
  .service-detail#flexineb {
    grid-template-columns: minmax(0, 1fr);
  }
}
