
/*
 * Simply Luxury Triple Editorial Carousel v1.0.0
 * Scope: homepage Curated Editorial only.
 */

.sltec-section {
  --sltec-gold: #b58a3c;
  --sltec-gold-soft: rgba(181, 138, 60, .42);
  --sltec-ink: #03121f;
  --sltec-text: #f4efe6;
  --sltec-muted: #b7b2aa;
  width: min(1160px, calc(100% - 36px));
  margin: 18px auto 30px;
  color: var(--sltec-text);
  box-sizing: border-box;
  position: relative;
}

.sltec-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 0 0 14px;
  color: #d9d1c4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
  text-align: center;
}

.sltec-heading::before,
.sltec-heading::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sltec-gold), transparent);
}

.sltec-carousel {
  position: relative;
  outline: none;
}

.sltec-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: contain;
}

.sltec-track {
  display: flex;
  align-items: stretch;
  width: 100%;
  transform: translate3d(0,0,0);
  transition: transform 520ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.sltec-page {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 9px;
}

.sltec-tier {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.sltec-tier-1 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.sltec-tier-2 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.sltec-tier-3 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.sltec-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(181,138,60,.34);
  background: #071522;
  color: white;
  text-decoration: none !important;
  display: block;
  isolation: isolate;
}

.sltec-tier-1 .sltec-card { min-height: 245px; }
.sltec-tier-2 .sltec-card { min-height: 182px; }
.sltec-tier-3 .sltec-card { min-height: 142px; }

.sltec-card-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.001);
  transition: transform .45s ease;
  z-index: -2;
}

.sltec-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(1,9,16,.08) 18%, rgba(1,9,16,.50) 62%, rgba(1,9,16,.94) 100%);
}

.sltec-card:hover .sltec-card-media,
.sltec-card:focus-visible .sltec-card-media {
  transform: scale(1.025);
}

.sltec-card-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

.sltec-tier-3 .sltec-card-copy {
  left: 13px;
  right: 13px;
  bottom: 11px;
}

.sltec-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--sltec-gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sltec-card-date {
  color: rgba(244,239,230,.70);
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
}

.sltec-card-title {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 1px 16px rgba(0,0,0,.42);
}

.sltec-tier-1 .sltec-card-title { font-size: clamp(24px, 2.1vw, 34px); }
.sltec-tier-2 .sltec-card-title { font-size: clamp(18px, 1.55vw, 23px); }
.sltec-tier-3 .sltec-card-title { font-size: clamp(14px, 1.15vw, 18px); line-height: 1.08; }

.sltec-card-cta {
  display: inline-block;
  margin-top: 9px;
  color: var(--sltec-gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sltec-tier-3 .sltec-card-cta { display: none; }

.sltec-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 12px;
}

.sltec-arrow {
  appearance: none;
  width: 34px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(181,138,60,.58);
  background: transparent;
  color: var(--sltec-gold);
  cursor: pointer;
  font: 400 20px/1 Georgia, serif;
  transition: background-color .2s ease, color .2s ease;
}

.sltec-arrow:hover,
.sltec-arrow:focus-visible {
  background: var(--sltec-gold);
  color: var(--sltec-ink);
  outline: none;
}

.sltec-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.sltec-dot {
  appearance: none;
  padding: 0;
  width: 6px;
  height: 6px;
  border: 1px solid var(--sltec-gold);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.sltec-dot[aria-current="true"] {
  width: 22px;
  background: var(--sltec-gold);
}

.sltec-footnote {
  margin: 8px 0 0;
  text-align: center;
  color: #7f7a73;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.sltec-original-hidden {
  display: none !important;
}

/* Tablet: three levels remain, two articles on each level. */
@media (max-width: 980px) {
  .sltec-section {
    width: min(100% - 28px, 900px);
  }

  .sltec-tier-1,
  .sltec-tier-2,
  .sltec-tier-3 {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .sltec-tier-1 .sltec-card,
  .sltec-tier-2 .sltec-card,
  .sltec-tier-3 .sltec-card {
    min-height: 205px;
  }

  .sltec-tier-1 .sltec-card-title,
  .sltec-tier-2 .sltec-card-title,
  .sltec-tier-3 .sltec-card-title {
    font-size: 22px;
    line-height: 1.05;
  }

  .sltec-tier-3 .sltec-card-cta { display: inline-block; }
}

/* Mobile: 3 stories per carousel page, one on each level. Swipe enabled in JS. */
@media (max-width: 640px) {
  .sltec-section {
    width: calc(100% - 24px);
    margin-top: 14px;
  }

  .sltec-heading {
    gap: 11px;
    font-size: 10px;
    letter-spacing: .16em;
  }

  .sltec-page {
    gap: 10px;
  }

  .sltec-tier-1,
  .sltec-tier-2,
  .sltec-tier-3 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sltec-tier-1 .sltec-card,
  .sltec-tier-2 .sltec-card,
  .sltec-tier-3 .sltec-card {
    min-height: 215px;
  }

  .sltec-tier-1 .sltec-card-title,
  .sltec-tier-2 .sltec-card-title,
  .sltec-tier-3 .sltec-card-title {
    font-size: 23px;
    line-height: 1.04;
  }

  .sltec-card-copy,
  .sltec-tier-3 .sltec-card-copy {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .sltec-tier-3 .sltec-card-cta { display: inline-block; }

  .sltec-controls {
    margin-top: 11px;
  }

  .sltec-arrow {
    width: 42px;
    height: 38px;
  }

  .sltec-footnote {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sltec-track,
  .sltec-card-media {
    transition: none !important;
  }
}
