.sppg-gallery,
.sppg-gallery * {
  box-sizing: border-box;
}

.sppg-gallery {
  --sppg-row-height: 280px;
  --sppg-gap: 12px;
  --sppg-radius: 16px;

  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}

.sppg-header {
  position: relative;
  z-index: 2;
  width: calc(100% - 40px);
  max-width: 1312px;
  margin: 0 auto 34px;
}

.sppg-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #262626;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.sppg-title {
  max-width: 100%;
  margin: 16px 0 0;
  padding: 0;
  color: #262626;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(34px, 4.3vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.sppg-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.sppg-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.sppg-group {
  display: flex;
  flex: none;
  align-items: stretch;
  gap: var(--sppg-gap);
  padding-right: var(--sppg-gap);
}

.sppg-item {
  position: relative;
  flex: none;
  width: max-content;
  height: var(--sppg-row-height);
  margin: 0;
  overflow: hidden;
  border-radius: var(--sppg-radius);
  background: #f1f1f1;
  line-height: 0;
  transform: translateZ(0);
}

.sppg-link {
  display: block;
  width: max-content;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.sppg-image {
  display: block;
  width: auto !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: inherit;
  transform: scale(1.001);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.sppg-gallery[data-hover-zoom="yes"] .sppg-item:hover .sppg-image {
  transform: scale(1.045);
}

.sppg-gallery[data-autoplay="yes"] .sppg-track,
.sppg-gallery[data-autoplay="yes"] .sppg-image {
  backface-visibility: hidden;
}

.sppg-gallery.sppg-is-static .sppg-track {
  transform: none !important;
}

.sppg-gallery.sppg-reduced-motion .sppg-viewport {
  overflow-x: auto;
  scrollbar-width: thin;
}

.sppg-gallery.sppg-reduced-motion .sppg-track {
  transform: none !important;
}

.sppg-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  width: 100%;
  padding: 28px;
  border: 1px dashed #c9c9c9;
  border-radius: 16px;
  background: #f7f7f7;
  color: #555;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1024px) {
  .sppg-gallery {
    --sppg-row-height: 220px;
  }

  .sppg-title {
    font-size: clamp(32px, 5.2vw, 48px);
  }
}

@media (max-width: 767px) {
  .sppg-gallery {
    --sppg-row-height: 170px;
    --sppg-gap: 9px;
    --sppg-radius: 12px;
  }

  .sppg-header {
    margin-bottom: 24px;
  }

  .sppg-eyebrow {
    min-height: 25px;
    padding: 5px 11px;
    font-size: 11px;
  }

  .sppg-title {
    margin-top: 12px;
    font-size: clamp(28px, 8.5vw, 40px);
    line-height: 1.12;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sppg-gallery *,
  .sppg-gallery *::before,
  .sppg-gallery *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sppg-gallery[data-autoplay="no"] .sppg-viewport {
  overflow-x: auto;
  scrollbar-width: thin;
}
