.short-videos-section {
  background: var(--bg-alt);
}

.short-videos-header h2 {
  margin-bottom: 0.65rem;
}

.short-videos-header p {
  margin: 0;
}

.short-videos-header::after {
  display: block;
  width: 72px;
  height: 4px;
  margin: 1.25rem auto 0;
  border-radius: 999px;
  background: var(--accent-gradient);
  content: "";
}

.short-videos-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.short-videos-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 0 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
  cursor: grab;
}

.short-videos-grid::-webkit-scrollbar {
  display: none;
}

.short-videos-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.short-video-card {
  flex: 0 0 calc((100% - 4rem) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.short-videos-arrow {
  position: absolute;
  top: calc((100% - 12px) / 2);
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%);
  cursor: pointer;
}

.short-videos-arrow[hidden] {
  display: none;
}

.short-videos-arrow:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}

.short-videos-arrow:disabled {
  opacity: 0.55;
  cursor: default;
}

.short-videos-arrow-prev {
  left: -24px;
}

.short-videos-arrow-next {
  right: -24px;
}

.short-video-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
  box-shadow: var(--shadow-md);
}

.short-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.short-video-frame > .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
}

.short-video-frame > .instagram-media iframe {
  width: 100% !important;
  height: 100% !important;
}

.short-video-frame > .instagram-media a {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 1rem;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.short-video-title {
  margin: 0.85rem 0 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .short-video-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 540px) {
  .short-videos-carousel {
    max-width: 340px;
  }

  .short-video-card {
    flex-basis: 100%;
  }

  .short-videos-arrow-prev {
    left: -18px;
  }

  .short-videos-arrow-next {
    right: -18px;
  }
}
