.cats-article-body {
  margin-top: 22px;
}

.cats-gallery {
  margin-block: 22px 26px;
}

.cats-gallery-slide {
  margin: 0;
}

.cats-gallery-slides {
  touch-action: pan-y pinch-zoom;
}

.cats-gallery-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--dark-blue);
  box-shadow: var(--shadow-sm);
}

.cats-gallery-slide figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.cats-gallery-controls:not([hidden]) {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.cats-gallery-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--deep-blue);
  font: inherit;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .cats-gallery-controls button:hover {
    border-color: currentColor;
  }
}

.cats-gallery-controls button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
