/* =====================================================
   CalfHutch Overlap Slider — slider.css  v1.2
   ===================================================== */

/* ── Wrapper ── */
.chs-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* ── Inner (mobile: stacked column) ── */
.chs-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ══════════════════════════════════════════
   IMAGE
══════════════════════════════════════════ */
.chs-image-wrap {
  position: relative;
  width: 100%;
  background: #ffffff00;
  overflow: hidden;
}



.chs-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.chs-image.chs-fade-out {
  opacity: 0;
}

/* ══════════════════════════════════════════
   PANEL  (mobile: full-width strip below image)
══════════════════════════════════════════ */
.chs-panel {
  position: relative;
  width: 100%;
  background-color: #003087;
  color: #fff;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .22);
  z-index: 10;
}

.chs-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

.chs-title {
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.25;
  color: inherit;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.chs-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  color: inherit;
  opacity: 0.92;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.chs-text-out .chs-title,
.chs-text-out .chs-desc {
  opacity: 0;
  transform: translateY(6px);
}

.chs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.chs-btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  cursor: pointer;
  min-width: 90px;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.12s ease, opacity 0.2s ease;
}

.chs-btn:hover {
  background-color: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .55);
}

.chs-btn:active {
  transform: scale(0.95);
}

.chs-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.chs-caption {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 0.9rem;
  min-height: 1.1em;
  transition: opacity 0.3s ease;
}

.chs-caption.chs-fade-out {
  opacity: 0;
}

/* ══════════════════════════════════════════
   DESKTOP OVERLAP LAYOUT (>= 1024px)

   Strategy: .chs-inner is position:relative block.
   .chs-image-wrap is 75% wide block — floated left or right.
   .chs-panel is position:absolute, vertically centred,
   horizontally centred on the image boundary (75% or 25% mark).
══════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* Switch inner to block so floats work */
  .chs-inner {
    display: block;
  }

  /* Clear floats */
  .chs-inner::after {
    content: '';
    display: table;
    clear: both;
  }

  /* Image: 75% wide, 16/9, no fixed height */
  .chs-image-wrap {
    width: 75%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* Panel: absolute, vertically centred, fixed 400px */
  .chs-panel {
    position: absolute;
    top: 50%;
    width: 400px;
    padding: 2.5rem;
  }

  .chs-title {
    font-size: 1.875rem;
  }

  .chs-desc {
    font-size: 1rem;
  }

  /* ── IMAGE LEFT · PANEL RIGHT ── */
  .chs-pos-right .chs-image-wrap {
    float: left;
  }

  .chs-pos-right .chs-panel {
    /* Overlap boundary = 75% from left. Centre 400px panel on it: 75% - 200px */
    left: calc(75% - 200px);
    transform: translateY(-50%);
  }

  /* ── PANEL LEFT · IMAGE RIGHT ── */
  .chs-pos-left .chs-image-wrap {
    float: right;
  }

  .chs-pos-left .chs-panel {
    /* Overlap boundary = 25% from left. Centre 400px panel on it: 25% - 200px */
    left: calc(25% - 200px);
    transform: translateY(-50%);
  }
}