.am-pin-showcase {
  background: #0d0d0d;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 80px 0;
  overflow: hidden;
}

.am-pin-showcase__inner {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

.am-pin-showcase__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 38px;
}

.am-pin-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.am-pin-showcase h2 {
  margin: 0;
  max-width: 860px;
  color: #fff;
  font-size: clamp(34px, 6vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.am-pin-showcase__header > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 15px;
  line-height: 1.55;
}

.am-pin-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 330px);
  gap: 24px;
  overflow-x: auto;
  padding: 2px 0 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.am-pin-card {
  min-width: 0;
  scroll-snap-align: start;
}

.am-pin-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(145deg, #181818, #070707);
}

.am-pin-frame > span,
.am-pin-frame iframe,
.am-pin-frame [data-pin-href] {
  max-width: 100%;
}

.am-pin-frame > span[class*="_embed_pin"] {
  position: absolute !important;
  inset: -10px -12px !important;
  width: calc(100% + 24px) !important;
  height: calc(100% + 20px) !important;
  max-width: none !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  transform: none !important;
}

.am-pin-frame span[class*="_pages"],
.am-pin-frame span[class*="_page"],
.am-pin-frame span[class*="_blocks"] {
  width: 100% !important;
  height: 100% !important;
}

.am-pin-frame span[class*="_footer"],
.am-pin-frame span[class*="_repin"],
.am-pin-frame span[class*="_progress"] {
  display: none !important;
}

.am-pin-frame span[class*="_controls"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

.am-pin-frame iframe {
  border-radius: 8px;
}

.am-pin-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.am-pin-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  padding: 14px 2px 0;
}

.am-pin-meta span {
  grid-row: span 2;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.am-pin-meta strong {
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.am-pin-meta small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.35;
}

.am-pin-empty {
  width: calc(100% - 34px);
  height: calc(100% - 34px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.am-pin-empty span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.am-pin-empty strong {
  max-width: 130px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .am-pin-showcase {
    padding: 112px 0;
  }
}

@media (max-width: 767px) {
  .am-pin-showcase {
    padding: 72px 0;
  }

  .am-pin-showcase__inner {
    width: min(100% - 32px, 540px);
  }

  .am-pin-showcase__header {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }

  .am-pin-showcase h2 {
    font-size: 42px;
  }

  .am-pin-rail {
    grid-auto-columns: minmax(280px, 46vw);
    gap: 18px;
    margin-right: -16px;
    padding-right: 16px;
  }
}

@media (max-width: 560px) {
  .am-pin-rail {
    grid-auto-columns: minmax(250px, 82vw);
  }
}
