/* Practical Examples - modern infinite marquee */

.jams-examples {
  --ex-gap: 20px;
  --ex-card: clamp(240px, 22vw, 300px);
  --ex-speed: 42s;
  width: 100%;
  max-width: var(--gacor-container, 1320px);
  margin: 0 auto;
  padding: 8px 0 28px;
  box-sizing: border-box;
}

.jams-examples__intro {
  margin: 0 0 28px;
  max-width: 640px;
}

.jams-examples__eyebrow {
  margin: 0 0 10px !important;
  font-family: var(--gacor-font, "DM Sans", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #00aeef !important;
}

.jams-examples__title {
  margin: 0 0 12px !important;
  font-family: var(--gacor-font, "DM Sans", sans-serif) !important;
  font-size: clamp(28px, 3.4vw, 42px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em;
  color: var(--gacor-heading, #0b1220) !important;
}

.jams-examples__lead {
  margin: 0;
  font-family: var(--gacor-font, "DM Sans", sans-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--gacor-muted, #757575);
  max-width: 46ch;
}

.jams-examples__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.jams-examples__track {
  display: flex;
  width: max-content;
  gap: var(--ex-gap);
  animation: jamsExamplesMarquee var(--ex-speed) linear infinite;
  will-change: transform;
}

.jams-examples__viewport:hover .jams-examples__track,
.jams-examples__viewport:focus-within .jams-examples__track {
  animation-play-state: paused;
}

@keyframes jamsExamplesMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - (var(--ex-gap) / 2)), 0, 0);
  }
}

.jams-examples__card {
  position: relative;
  flex: 0 0 var(--ex-card);
  width: var(--ex-card);
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  text-decoration: none !important;
  background: var(--gacor-dark, #0b1220);
  border: 1px solid rgba(20, 20, 20, 0.12);
  box-sizing: border-box;
  transform: translateY(0);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.4s ease;
}

.jams-examples__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.jams-examples__frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
  transition: opacity 0.35s ease, border-color 0.35s ease;
}

.jams-examples__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.05) 35%,
    rgba(8, 8, 8, 0.72) 100%
  );
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.jams-examples__meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(6px);
  opacity: 0.92;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.jams-examples__label {
  font-family: var(--gacor-font, "DM Sans", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.jams-examples__cta {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-family: var(--gacor-font, "DM Sans", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #00aeef;
  border: 1px solid #00aeef;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.jams-examples__card:hover,
.jams-examples__card:focus-visible {
  transform: translateY(-6px);
  border-color: #00aeef;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  outline: none;
}

.jams-examples__card:hover img,
.jams-examples__card:focus-visible img {
  transform: scale(1.06);
}

.jams-examples__card:hover .jams-examples__shade,
.jams-examples__card:focus-visible .jams-examples__shade {
  opacity: 0.85;
}

.jams-examples__card:hover .jams-examples__frame,
.jams-examples__card:focus-visible .jams-examples__frame {
  opacity: 1;
  border-color: rgba(0, 174, 239, 0.75);
}

.jams-examples__card:hover .jams-examples__meta,
.jams-examples__card:focus-visible .jams-examples__meta {
  transform: translateY(0);
  opacity: 1;
}

.jams-examples__card:hover .jams-examples__cta,
.jams-examples__card:focus-visible .jams-examples__cta {
  background: #0095d0;
  border-color: #0095d0;
}

/* Nested in Salient column wrappers */
.wpb_wrapper > .jams-examples {
  margin-top: 8px;
}

@media (max-width: 999px) {
  .jams-examples {
    --ex-card: min(72vw, 280px);
    --ex-gap: 14px;
    --ex-speed: 34s;
    padding-bottom: 18px;
  }

  .jams-examples__intro {
    margin-bottom: 20px;
    padding: 0 20px;
  }
}

@media (max-width: 640px) {
  .jams-examples {
    --ex-card: min(78vw, 260px);
    --ex-gap: 12px;
  }

  .jams-examples__intro {
    padding: 0 16px;
  }

  .jams-examples__title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .jams-examples__text {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jams-examples__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
  }

  .jams-examples__card {
    flex: 1 1 calc(50% - var(--ex-gap));
    max-width: calc(50% - var(--ex-gap));
  }

  .jams-examples__card:nth-child(n + 5) {
    display: none;
  }

  .jams-examples__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}
