/* Spotlight Carousel — standalone recreation of the Elfsight "Slider" widget content.
   Meant to be hosted on a CDN (e.g. Cloudflare) and linked with a <link rel="stylesheet">
   tag alongside spotlight-carousel.js. See squarespace-embed.html for the embed snippet. */

.spotlight-carousel {
  --spot-navy: #0c4160;
  --spot-ink: #071330;
  --spot-accent: #bf6336;
  --spot-badge-2: #094160;
  --spot-heading-font: Georgia, "Times New Roman", "EB Garamond", serif;
  --spot-body-font: Arial, Helvetica, sans-serif;

  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  font-family: var(--spot-body-font);
  box-sizing: border-box;
}
.spotlight-carousel *,
.spotlight-carousel *::before,
.spotlight-carousel *::after {
  box-sizing: border-box;
}

.spotlight-track {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: #ffffff;
  touch-action: pan-y;
  transition: height 0.3s ease;
}

/* Height is fixed in px by JS (measured as the tallest slide) so every
   slide occupies identical width/height regardless of its own content
   or image size. All slides stay absolutely stacked at all times. */
.spotlight-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.1);
}
.spotlight-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.spotlight-slide-inner {
  display: flex;
  align-items: center;
  gap: 21px;
  padding: 54px;
  height: 100%;
  overflow-y: auto;
}
.spotlight-slide-inner.align-center {
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.spotlight-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Fixed-size image box: width comes from areaWidth%, height is fixed in
   px, and object-fit: contain scales the source image down to fit inside
   it without cropping. This is what keeps the media column a constant
   size no matter the source image's own dimensions. */
.spotlight-media {
  flex: 0 0 auto;
  width: 40%;
  height: 260px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.spotlight-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.spotlight-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.spotlight-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}
.spotlight-media-row a {
  flex: 0 1 20%;
  min-width: 90px;
  height: 220px;
  display: flex;
}
.spotlight-media-row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.spotlight-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 5px 16px;
  border: 1.5px solid var(--badge-color, var(--spot-accent));
  color: var(--badge-color, var(--spot-accent));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.align-center .spotlight-badge {
  align-self: center;
}

.spotlight-heading {
  margin: 0;
  font-family: var(--spot-heading-font);
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  line-height: 1.3;
  color: var(--spot-navy);
}

.spotlight-subheading {
  font-family: var(--spot-heading-font);
  font-size: 18px;
  color: var(--spot-navy);
}

.spotlight-byline {
  font-family: var(--spot-heading-font);
  font-size: 16px;
  color: var(--spot-navy);
}

.spotlight-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--spot-ink);
}
.spotlight-text a {
  color: var(--spot-navy);
}
.spotlight-text p,
.spotlight-text div {
  margin: 0 0 10px;
}
.spotlight-text p:last-child,
.spotlight-text div:last-child {
  margin-bottom: 0;
}

.spotlight-cta {
  font-size: 15px;
}
.spotlight-cta a {
  color: var(--spot-navy);
  font-weight: 700;
  text-decoration: none;
}
.spotlight-cta a:hover {
  text-decoration: underline;
}

.spotlight-button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 9px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--btn-color, var(--spot-navy));
}
.spotlight-button.mode-contain {
  background: var(--btn-color, var(--spot-navy));
  color: var(--btn-font-color, #fff);
}
.spotlight-button.mode-outline {
  background: transparent;
  color: var(--btn-color, var(--spot-navy));
}
.align-center .spotlight-button {
  align-self: center;
}

/* --- controls: arrows + numbered pagination, bottom center --- */
.spotlight-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 4px;
}

.spotlight-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--spot-navy);
  background: transparent;
  color: var(--spot-navy);
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}
.spotlight-arrow:hover {
  background: var(--spot-navy);
  color: #fff;
}
.spotlight-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.spotlight-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}
.spotlight-page-btn {
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border: none;
  background: transparent;
  color: var(--spot-navy);
  opacity: 0.5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50%;
}
.spotlight-page-btn.is-active {
  opacity: 1;
  background: var(--spot-navy);
  color: #fff;
}

.spotlight-progress {
  position: relative;
  height: 2px;
  width: 100%;
  background: rgba(12, 65, 96, 0.15);
  overflow: hidden;
}
.spotlight-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--spot-accent);
}
.spotlight-progress-bar.is-animating {
  transition: width linear;
}

/* --- mobile layout: image embedded inline between heading and body --- */
@media (max-width: 768px) {
  .spotlight-slide-inner {
    flex-direction: column;
    padding: 50px 24px;
    gap: 19px;
  }
  .spotlight-content {
    order: 1;
    width: 100%;
  }
  .spotlight-media {
    width: 100%;
    max-width: 320px;
    height: 220px;
    margin: 0 auto;
  }
  .spotlight-heading {
    font-size: 18px;
  }
  .spotlight-text {
    font-size: 15px;
  }
}
