.article-carousel {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-carousel-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: #080808;
  overflow: hidden;
}

.article-carousel-stage img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.article-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.article-carousel-prev {
  left: 12px;
}

.article-carousel-next {
  right: 12px;
}

.article-carousel figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.article-carousel figcaption small {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--accent);
}

.article-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.article-carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfcfcf;
  cursor: pointer;
}

.article-carousel-dots button.is-active {
  background: var(--accent);
}

.admin-carousel-helper {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-carousel-helper p {
  margin: 0;
  color: #5e6974;
}

.admin-carousel-helper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow: auto;
}

.admin-carousel-helper-item {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dbe2e8;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.admin-carousel-helper-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.admin-carousel-helper-item span {
  min-width: 0;
  overflow: hidden;
  color: #424d58;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .article-carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .article-carousel-stage img {
    max-height: 72vh;
  }
}
