.social-reels {
  padding: 48px 0;

  * {
    box-sizing: border-box;
  }

  &__container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 16px;
  }

  &__heading {
    margin-bottom: 24px;
    text-align: center;

    &--left {
      text-align: left;
    }

    &--right {
      text-align: right;
    }
  }

  &__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  &__card {
    border-radius: 16px;
    overflow: hidden;
    background: #000;

    &--cta {
      .social-reels__cta-overlay {
        position: absolute;
        inset: 0;
        background: red;
        opacity: 1;
      }
    }
  }

  &__media {
    aspect-ratio: 9 / 16;
    position: relative;
  }

  &__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  &__placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    background: #222;
    color: #fff;
    font-size: 14px;
  }

  &__cta-label {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: #000;
    font-weight: 700;
  }

  &__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;

    button {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      border: none;
      background: #ccc;
    }
  }

  &__mobile-cta {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 12px;
    border-radius: 999px;
    background: red;
    color: #000;
    font-weight: 700;
    text-decoration: none;
  }
}

.sr-only-mobile {
  display: none;
}

.sr-only-desktop {
  display: block;
}

@media (max-width: 700px) {
  .sr-only-desktop {
    display: none;
  }

  .sr-only-mobile {
    display: block;
  }

  .social-reels {
    &__grid {
      grid-auto-flow: column;
      grid-auto-columns: calc(100% - 32px);
      overflow-x: auto;
      scroll-snap-type: x mandatory;
    }

    &__card {
      scroll-snap-align: center;
    }
  }
}
