.article-detail__content .content-image-layout-carousel-two,
.article-detail__content .content-image-layout-carousel-three {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 14px) / 2);
  align-items: start;
  gap: 14px;
  max-width: 100%;
  margin: 14px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}

.article-detail__content .content-image-layout-carousel-three {
  grid-auto-columns: calc((100% - 28px) / 3);
}

.article-detail__content .content-image-layout-carousel-two > figure,
.article-detail__content .content-image-layout-carousel-three > figure {
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.article-detail__content .content-image-layout-carousel-two > figure img,
.article-detail__content .content-image-layout-carousel-three > figure img {
  width: 100%;
  height: auto;
  margin: 0;
}

.content-image-carousel.is-scrollable {
  cursor: grab;
}

.article-detail__content .content-image-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.content-image-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -4px 0 14px;
}

.content-image-carousel-controls[hidden] {
  display: none;
}

.content-image-carousel-controls button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #c5dce5;
  border-radius: 50%;
  background: #fff;
  color: #007ca8;
  font-family: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.content-image-carousel-controls button:disabled {
  opacity: .45;
  cursor: default;
}

.content-image-carousel-controls button:focus-visible,
.content-image-carousel:focus-visible {
  outline: 2px solid #007ca8;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .article-detail__content .content-image-layout-carousel-two,
  .article-detail__content .content-image-layout-carousel-three {
    grid-auto-columns: 100%;
  }

}