/**
 * Smort Logo Scroll Block Styles
 */

.smort-logo-scroll {
  position: relative;
  width: 100%;
  padding: 3rem 0 4rem;
  overflow: visible;
  background-color: #fff;
}

.smort-logo-scroll--scroll {
  background-color: var(--secondary-foreground);
}

.smort-logo-scroll--grid {
  background-color: #fff;
}

.smort-logo-scroll__container {
  position: relative;
}

/* Title */
.smort-logo-scroll-title {
  text-align: center;
  font-size: var(--h2-lg-size);
  font-weight: var(--font-weight-heading);
  margin-bottom: 2.5rem;
  color: var(--text);
}

.smort-logo-scroll__wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.smort-logo-scroll__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: smort-logo-scroll-marquee 28s linear infinite;
}

.smort-logo-scroll__wrapper:hover .smort-logo-scroll__track {
  animation-play-state: paused;
}

.smort-logo-scroll__item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 160px;
  height: 84px;
}

.smort-logo-scroll__image {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 64px;
  object-fit: contain;
}

@keyframes smort-logo-scroll-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.smort-logo-scroll__grid,
.smort-logo-scroll-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .smort-logo-scroll__grid,
  .smort-logo-scroll-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) {
  .smort-logo-scroll__grid,
  .smort-logo-scroll-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.smort-logo-scroll__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

.smort-logo-scroll__card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 0;
}

.smort-logo-scroll__card-main-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.smort-logo-scroll__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background-color: #313131;
  padding: 1rem;
  overflow: hidden;
}

.smort-logo-scroll__image {
  width: 100%;
  height: 100%;

  display: block;
}

.smort-logo-scroll__card-title {
  margin: 0;
  font-size: clamp(1.25rem, 1.1vw + 1rem, 1.75rem);
  line-height: 1.1;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: var(--text);
}

.smort-logo-scroll__card-text {
  color: #6b7280;
  line-height: 1.7;
  font-size: 0.98rem;
}

.smort-logo-scroll__card-text p:last-child {
  margin-bottom: 0;
}

.smort-logo-scroll__button {
  margin-top: auto;
}

.smort-logo-scroll__card-link:hover .smort-logo-scroll__image-wrap {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .smort-logo-scroll {
    padding: 2rem 0;
  }

  .smort-logo-scroll-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }

  .smort-logo-scroll__track {
    gap: 2rem;
  }

  .smort-logo-scroll__item {
    min-width: 120px;
    height: 64px;
  }

  .smort-logo-scroll__image {
    max-width: 140px;
    max-height: 48px;
  }

  .smort-logo-scroll__grid,
  .smort-logo-scroll-grid {
    gap: 1.5rem;
  }

  .smort-logo-scroll__card-link {
    gap: 0.85rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .smort-logo-scroll__track {
    gap: 2.5rem;
  }

  .smort-logo-scroll__item {
    min-width: 140px;
  }

  .smort-logo-scroll__grid,
  .smort-logo-scroll-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smort-logo-scroll__image-wrap {
    max-width: 180px;
  }
}

@media (min-width: 1025px) {
  .smort-logo-scroll-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .smort-logo-scroll__image-wrap {
    max-width: 220px;
  }
}

/* smort-logo-scroll unified heading scale */
.smort-logo-scroll h1 {
  font-size: var(--h1-lg-size);
  line-height: var(--h1-lg-height);
}

.smort-logo-scroll h2 {
  font-size: var(--h2-lg-size);
  font-weight: 600;
  line-height: var(--h2-lg-height);
}

.smort-logo-scroll h3 {
  font-size: var(--h3-lg-size);
  line-height: var(--h3-lg-height);
  text-transform: uppercase;
}

.smort-logo-scroll h4 {
  font-size: var(--h4-lg-size);
  line-height: var(--h4-lg-height);
}

@media (width <= 768px) {
  .smort-logo-scroll h1 {
    font-size: var(--h1-sm-size);
    line-height: var(--h1-sm-height);
  }

  .smort-logo-scroll h2 {
    font-size: var(--h2-sm-size);
    line-height: var(--h2-sm-height);
  }

  .smort-logo-scroll h3 {
    font-size: var(--h3-sm-size);
    line-height: var(--h3-sm-height);
  }

  .smort-logo-scroll h4 {
    font-size: var(--h4-sm-size);
    line-height: var(--h4-sm-height);
  }
}
