.showcase-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  margin-inline-end: 20px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: #302a70;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.showcase-toggle:hover,
.showcase-toggle:focus-visible {
  background: #d63342;
  transform: translateY(-2px);
}

.pinterest-showcase.is-expanded .showcase-rail {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-columns: auto;
  grid-auto-flow: row;
  overflow: visible;
  scroll-snap-type: none;
}

.pinterest-showcase.is-expanded .showcase-card {
  scroll-snap-align: none;
}

.pinterest-showcase.is-expanded .showcase-card-caption small {
  white-space: normal;
}

.pinterest-showcase.is-expanded .showcase-controls {
  visibility: hidden;
}

@media (max-width: 1000px) {
  .pinterest-showcase.is-expanded .showcase-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .pinterest-showcase.is-expanded .showcase-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pinterest-showcase.is-expanded .showcase-card-caption {
    padding: 11px 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-toggle {
    transition: none;
  }
}
