@layer blocks {
  .how-to-carousel-cards {
    overflow-x: clip;
    background-color: var(--theme-surface-secondary);
    padding-block: 4rem;
    --card-image-width: 18.4375rem;
  }
  @media (min-width: 1024px) {
    .how-to-carousel-cards {
      padding-block: 6.5rem;
      --card-image-width: 23.3125rem;
    }
  }
  .how-to-carousel-cards__editorial {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-block-end: 1.5rem;
  }
  @media (min-width: 1024px) {
    .how-to-carousel-cards__editorial {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      margin-block-end: 2rem;
    }
  }
  .how-to-carousel-cards__heading {
    color: var(--theme-text-primary);
  }
  @media (min-width: 1024px) {
    .how-to-carousel-cards__heading {
      grid-column: 1/span 10;
    }
  }
  .how-to-carousel-cards__description {
    color: var(--theme-text-secondary);
  }
  @media (min-width: 1024px) {
    .how-to-carousel-cards__description {
      grid-column: 1/span 5;
      display: flex;
      flex-direction: column;
    }
  }
  .how-to-carousel-cards__carousel-wrapper {
    --carousel-slide-width: min(calc(100vw - 3rem), calc(var(--card-image-width) + 2rem));
  }
  @media (min-width: 768px) {
    .how-to-carousel-cards__carousel-wrapper {
      --carousel-slide-width: min(
        calc((100vw - 6rem + 1rem - 2.5rem) / 2),
        calc(var(--card-image-width) + 2rem)
      );
    }
  }
  @media (min-width: 1024px) {
    .how-to-carousel-cards__carousel-wrapper {
      --carousel-slide-width: min(
        calc((min(100vw, 120rem) - 10rem - 1rem) / 2),
        calc(var(--card-image-width) + 3rem)
      );
    }
  }
  .how-to-carousel-cards__skeleton {
    display: flex;
    gap: 1rem;
    overflow: hidden;
  }
  @media (min-width: 1024px) {
    .how-to-carousel-cards__skeleton {
      gap: 1.5rem;
    }
  }
  .how-to-carousel-cards__skeleton-tile {
    flex: 0 0 var(--carousel-slide-width);
    aspect-ratio: 3/4;
    background-color: var(--theme-surface-tertiary);
    border-radius: 1rem;
    animation: how-to-carousel-cards-pulse 1.5s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    .how-to-carousel-cards__skeleton-tile {
      animation: none;
    }
  }
  .how-to-carousel-cards__card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    width: calc(var(--card-image-width) + 2rem);
    background-color: var(--theme-surface-primary);
    border-radius: 1rem;
    text-decoration: none;
    color: var(--theme-text-primary);
    height: 100%;
  }
  .how-to-carousel-cards__card.focus, .how-to-carousel-cards__card:focus-visible {
    outline: 0.125rem solid var(--theme-focus-primary);
    outline-offset: 0.25rem;
  }
  @media (min-width: 1024px) {
    .how-to-carousel-cards__card {
      padding: 1.5rem;
      width: calc(var(--card-image-width) + 3rem);
    }
  }
  .how-to-carousel-cards__card-media {
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
  }
  .how-to-carousel-cards__card-image {
    width: var(--card-image-width);
  }
  .how-to-carousel-cards__card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--theme-surface-secondary);
    color: var(--theme-text-secondary);
    border-radius: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
  }
  .how-to-carousel-cards__card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background-color: var(--theme-surface-secondary);
    border-radius: 9999px;
  }
  @media (min-width: 1024px) {
    .how-to-carousel-cards__card-play {
      padding: 1rem;
    }
  }
  .how-to-carousel-cards__card-play .icon {
    width: 1rem;
    height: 1rem;
  }
  @media (min-width: 1024px) {
    .how-to-carousel-cards__card-play .icon {
      width: 1.5rem;
      height: 1.5rem;
    }
  }
  .how-to-carousel-cards__card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
  }
  @media (min-width: 1024px) {
    .how-to-carousel-cards__card-content {
      gap: 0.75rem;
    }
  }
  .how-to-carousel-cards__card-meta {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--theme-text-secondary);
    margin: 0;
  }
  .how-to-carousel-cards__card-title {
    color: var(--theme-text-primary);
  }
  .how-to-carousel-cards__card-description {
    display: none;
    color: var(--theme-text-secondary);
  }
  @media (min-width: 768px) {
    .how-to-carousel-cards__card-description {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      overflow: hidden;
    }
  }
  @keyframes how-to-carousel-cards-pulse {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
  }
}