.calio-post-carousel {
  --calio-carousel-gap: 24px;
  --calio-carousel-slides: 3;
  display: grid;
  gap: 20px;
}

.calio-post-carousel.is-dragging {
  cursor: grabbing;
}

.calio-post-carousel-viewport {
  overflow: hidden;
  cursor: grab;
}

.calio-post-carousel.has-peek-slides .calio-post-carousel-viewport {
  padding-inline: clamp(12px, 4vw, 48px);
}

.calio-post-carousel-track {
  display: flex;
  gap: var(--calio-carousel-gap);
  transition: transform .35s ease;
  will-change: transform;
}

.calio-post-carousel-card {
  display: flex;
  flex: 0 0 calc((100% - (var(--calio-carousel-gap) * (var(--calio-carousel-slides) - 1))) / var(--calio-carousel-slides));
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #fff;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.calio-post-carousel-card:hover,
.calio-post-carousel-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.calio-post-carousel.is-center-mode .calio-post-carousel-card {
  opacity: .62;
  transform: scale(.96);
}

.calio-post-carousel-card.is-active-slide {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 30px 64px rgba(37, 99, 235, 0.14);
  opacity: 1;
  transform: translateY(-6px) scale(1.01);
}

.calio-post-carousel-media {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}

.calio-post-carousel-media img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform .35s ease;
}

.calio-post-carousel-card:hover .calio-post-carousel-media img,
.calio-post-carousel-card:focus-within .calio-post-carousel-media img {
  transform: scale(1.04);
}

.calio-post-carousel.ratio-square .calio-post-carousel-media { aspect-ratio: 1 / 1; }
.calio-post-carousel.ratio-landscape .calio-post-carousel-media { aspect-ratio: 4 / 3; }
.calio-post-carousel.ratio-portrait .calio-post-carousel-media { aspect-ratio: 3 / 4; }
.calio-post-carousel.ratio-auto .calio-post-carousel-media { aspect-ratio: auto; }

.calio-post-carousel-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.calio-post-carousel.skin-editorial .calio-post-carousel-card {
  border-radius: 30px;
}

.calio-post-carousel.skin-editorial .calio-post-carousel-title {
  font-size: 1.45rem;
}

.calio-post-carousel-category-row,
.calio-post-carousel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.calio-post-carousel-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.calio-post-carousel-meta {
  color: #64748b;
  font-size: 12px;
}

.calio-post-carousel-meta-item + .calio-post-carousel-meta-item::before {
  content: '/';
  margin-right: 12px;
  color: rgba(100, 116, 139, 0.6);
}

.calio-post-carousel-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.calio-post-carousel-title a {
  color: #0f172a;
  text-decoration: none;
}

.calio-post-carousel-excerpt {
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.calio-post-carousel-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  width: -moz-fit-content;
  width: fit-content;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}

.calio-post-carousel-button::after {
  content: '->';
  transition: transform .2s ease;
}

.calio-post-carousel-button:hover,
.calio-post-carousel-button:focus-visible {
  background: #2563eb;
}

.calio-post-carousel-button:hover::after,
.calio-post-carousel-button:focus-visible::after {
  transform: translateX(2px);
}

.calio-post-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.calio-post-carousel-arrows,
.calio-post-carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.calio-post-carousel-arrow,
.calio-post-carousel-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.calio-post-carousel-arrow:hover,
.calio-post-carousel-arrow:focus-visible,
.calio-post-carousel-dot:hover,
.calio-post-carousel-dot:focus-visible,
.calio-post-carousel-dot.is-active {
  border-color: rgba(37, 99, 235, 0.22);
  background: #eff6ff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

.calio-post-carousel-arrow[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.calio-post-carousel-arrow:focus-visible,
.calio-post-carousel-dot:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

.calio-post-carousel-empty {
  padding: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 18px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 767px) {
  .calio-post-carousel.has-peek-slides .calio-post-carousel-viewport {
    padding-inline: 12px;
  }

  .calio-post-carousel-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

