/* ==========================================================================
   UNTERRO - WALKTHROUGHS HORIZONTAL SHOWCASE COMPONENT
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Container & Layout Wrapper
   -------------------------------------------------------------------------- */
.walkthroughs-page {
  position: relative;
  background-color: var(--color-bg-primary);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 96px; /* Clearance below mobile floating header */
  padding-bottom: 24px;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .walkthroughs-page {
    height: 100vh;
    max-height: 100vh;
    padding-top: 112px; /* Header ends at 94px -> 18px clean gap below header */
    padding-bottom: 12px;
    justify-content: flex-start;
  }
}

@media (min-width: 1440px) {
  .walkthroughs-page {
    padding-top: 154px; /* Header ends at 114px -> 40px clean gap below header */
    padding-bottom: 18px;
  }
}

@media (min-width: 1920px) {
  .walkthroughs-page {
    padding-top: 170px; /* Header ends at 128px -> 42px clean gap below header */
    padding-bottom: 22px;
  }
}

.walkthroughs-page__container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

/* Symmetrical alignment matching the floating header capsule left and right edges */
.walkthroughs-page__container.container-align-header {
  padding-left: 8px; /* Matches mobile header left: 8px */
  padding-right: 8px;
}

@media (min-width: 1024px) {
  .walkthroughs-page__container.container-align-header {
    padding-left: 14px; /* Matches desktop floating header left: 14px */
    padding-right: 14px;
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   2. Horizontal Slider Track (Scroll-Snap Native)
   -------------------------------------------------------------------------- */
.walkthroughs-slider {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  width: 100%;
  flex: 1;
  min-height: 0;
  gap: 16px;
  align-items: stretch;
}

.walkthroughs-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* --------------------------------------------------------------------------
   3. Individual Walkthrough Slide
   -------------------------------------------------------------------------- */
.walkthroughs-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  box-sizing: border-box;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .walkthroughs-slide {
    grid-template-columns: 1.25fr 0.75fr; /* Video section extended further right */
    gap: 16px;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 560px;
  }
}

@media (min-width: 1440px) {
  .walkthroughs-slide {
    grid-template-columns: 1.3fr 0.7fr; /* Video section extended further right */
    gap: 22px;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 640px;
  }
}

@media (min-width: 1920px) {
  .walkthroughs-slide {
    grid-template-columns: 1.32fr 0.68fr; /* Video section extended further right */
    gap: 26px;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 720px;
  }
}

/* --------------------------------------------------------------------------
   4. Left Column: Video Media Card
   -------------------------------------------------------------------------- */
.walkthroughs-card--media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .walkthroughs-card--media {
    aspect-ratio: auto;
    height: 100%;
    padding: 32px;
  }
}

/* Dark subtle legibility gradient overlay */
.walkthroughs-card--media::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

/* Inline Video Player Container inside media card */
.walkthroughs-inline-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: 10;
  background: #000000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.walkthroughs-card--media.is-playing .walkthroughs-inline-player {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.walkthroughs-card--media.is-playing .walkthroughs-play-trigger,
.walkthroughs-card--media.is-playing::before {
  opacity: 0;
  pointer-events: none;
}

.walkthroughs-inline-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
  display: block;
}

.walkthroughs-inline-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 12;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.walkthroughs-inline-close:hover {
  background: rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.6);
  transform: rotate(90deg);
  color: var(--color-accent);
}

/* Trigger Button: WATCH WALKTHROUGH */
.walkthroughs-play-trigger {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 40px;
  padding: 10px 22px 10px 16px;
  color: #ffffff;
  cursor: pointer;
  transition: background-color var(--transition-fast), 
              border-color var(--transition-fast), 
              transform var(--transition-fast);
}

.walkthroughs-play-trigger:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.walkthroughs-play-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.walkthroughs-play-icon svg {
  width: 12px;
  height: 12px;
  fill: #ffffff;
  margin-left: 2px; /* Visual center offset for triangle */
}

.walkthroughs-play-trigger:hover .walkthroughs-play-icon {
  border-color: #ffffff;
  transform: scale(1.1);
}

.walkthroughs-play-text {
  font-family: var(--font-family-sans);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. Right Column: Content Card
   -------------------------------------------------------------------------- */
.walkthroughs-card--content {
  background-color: #e8e6dfd4;
  border: 1px solid #e8e4df;
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .walkthroughs-card--content {
    padding: 28px 32px;
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 1440px) {
  .walkthroughs-card--content {
    padding: 48px 44px;
  }
}

@media (min-width: 1920px) {
  .walkthroughs-card--content {
    padding: 58px 54px;
  }
}

/* Eyebrow Label */
.walkthroughs-eyebrow {
  font-family: var(--font-family-sans);
  font-size: 11.5px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent); /* #AD622F */
  margin-bottom: 16px;
  display: inline-block;
}

/* Main Heading */
.walkthroughs-title {
  font-family: var(--font-family-sans);
  font-size: clamp(1.85rem, 1.4rem + 1.4vw, 2.85rem);
  font-weight: var(--font-weight-semibold); /* Increased font weight */
  line-height: 1.15;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Responsive Desktop Line Break for Titles */
.walkthroughs-br-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .walkthroughs-br-desktop {
    display: inline;
  }
}

/* Copper Divider Bar */
.walkthroughs-divider {
  width: 44px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 18px 0 16px 0;
  border: none;
}

/* Subtitle Description */
.walkthroughs-desc {
  font-family: var(--font-family-sans);
  font-size: clamp(13.5px, 13px + 0.15vw, 15.5px);
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0 0 24px 0;
  max-width: 480px;
}

/* Actions Row */
.walkthroughs-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

/* Primary Capsule Button (ENQUIRE NOW ->) */
.walkthroughs-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-family-sans);
  font-size: 11.5px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.walkthroughs-btn--primary:hover {
  background-color: #000000;
  transform: translateY(-2px);
}

.walkthroughs-btn-arrow {
  font-size: 14px;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.walkthroughs-btn--primary:hover .walkthroughs-btn-arrow {
  transform: translateX(4px);
}

/* Secondary Button (REQUEST HD STREAM) */
.walkthroughs-btn--secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--color-text-primary);
  padding: 12px 4px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  font-family: var(--font-family-sans);
  font-size: 11.5px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.walkthroughs-btn--secondary:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Desktop & Large Monitor Typography Scaling (Consistent with FAQs Page)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .walkthroughs-eyebrow {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .walkthroughs-title {
    font-size: clamp(2.15rem, 1.6rem + 1vw, 2.75rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1.15;
  }

  .walkthroughs-divider {
    width: 48px;
    height: 2px;
    margin: 16px 0 14px 0;
  }

  .walkthroughs-desc {
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 22px 0;
    max-width: 520px;
  }

  .walkthroughs-actions {
    gap: 18px;
  }

  .walkthroughs-btn--primary {
    font-size: 12px;
    padding: 12px 26px;
  }

  .walkthroughs-btn--secondary {
    font-size: 12px;
    padding: 8px 4px;
  }
}

@media (min-width: 1440px) {
  .walkthroughs-eyebrow {
    font-size: 13px; /* Matches FAQs page subtitle at 1440px */
    margin-bottom: 20px;
  }

  .walkthroughs-title {
    font-size: clamp(2.85rem, 2.2rem + 1vw, 3.45rem); /* Scaled in harmony with FAQs headings */
    line-height: 1.15;
  }

  .walkthroughs-divider {
    width: 56px;
    height: 2.5px;
    margin: 24px 0 20px 0;
  }

  .walkthroughs-desc {
    font-size: 16px; /* Matches FAQs page body text (16px) at 1440px */
    line-height: 1.8; /* Matches FAQs page line-height */
    margin: 0 0 32px 0;
    max-width: 560px;
  }

  .walkthroughs-btn--primary {
    font-size: 13px; /* Matches FAQs page button font size at 1440px */
    padding: 15px 34px;
  }

  .walkthroughs-btn--secondary {
    font-size: 13px;
  }

  .walkthroughs-counter {
    font-size: 14px;
  }

  .walkthroughs-dot {
    width: 32px;
  }

  .walkthroughs-dot.is-active {
    width: 48px;
  }
}

@media (min-width: 1920px) {
  .walkthroughs-eyebrow {
    font-size: 15px; /* Matches FAQs page subtitle at 1920px */
    margin-bottom: 24px;
  }

  .walkthroughs-title {
    font-size: clamp(3.5rem, 2.75rem + 1vw, 4.25rem); /* Matches FAQs ultra-wide scaling */
    line-height: 1.12;
  }

  .walkthroughs-divider {
    width: 64px;
    height: 3px;
    margin: 28px 0 24px 0;
  }

  .walkthroughs-desc {
    font-size: 18px; /* Matches FAQs page body text (18px) at 1920px */
    line-height: 1.85; /* Matches FAQs page ultra-wide line-height */
    margin: 0 0 36px 0;
    max-width: 620px;
  }

  .walkthroughs-btn--primary {
    font-size: 15px; /* Matches FAQs page button font size at 1920px */
    padding: 17px 40px;
  }

  .walkthroughs-btn--secondary {
    font-size: 15px;
  }

  .walkthroughs-counter {
    font-size: 15px;
  }

  .walkthroughs-dot {
    width: 36px;
  }

  .walkthroughs-dot.is-active {
    width: 54px;
  }
}

/* --------------------------------------------------------------------------
   6. Navigation Bar & Indicator Controls
   -------------------------------------------------------------------------- */
.walkthroughs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 0;
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.walkthroughs-counter {
  font-family: var(--font-family-sans);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.14em;
  color: var(--color-text-secondary);
}

.walkthroughs-counter__current {
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
}

.walkthroughs-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.walkthroughs-dot {
  width: 28px;
  height: 3px;
  background-color: #d1ccc7;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--transition-fast), width var(--transition-fast);
}

.walkthroughs-dot.is-active {
  background-color: var(--color-accent);
  width: 44px;
}

.walkthroughs-arrows {
  display: flex;
  gap: 12px;
}

.walkthroughs-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d1ccc7;
  background: transparent;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), 
              background-color var(--transition-fast), 
              color var(--transition-fast),
              opacity var(--transition-fast);
}

.walkthroughs-arrow-btn__text {
  display: none; /* Hide on mobile: retains circular icon buttons */
}

.walkthroughs-arrow-btn:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.walkthroughs-arrow-btn:hover:not(:disabled) {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: #ffffff;
}

.walkthroughs-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.walkthroughs-arrow-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   Desktop Walkthroughs Navigation Buttons & Scroll Lock
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .walkthroughs-slider {
    overflow-x: hidden !important; /* Disable mouse/trackpad horizontal scroll change on desktop */
    scroll-snap-type: none !important;
  }

  .walkthroughs-arrows {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .walkthroughs-arrow-btn {
    width: 44px !important;
    height: 44px;
    padding: 0 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1ccc7;
    background-color: transparent;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
  }

  .walkthroughs-arrow-btn__text {
    display: none !important;
  }

  .walkthroughs-arrow-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
  }

  .walkthroughs-arrow-btn:not(:disabled) {
    border-color: var(--color-accent);
    color: var(--color-accent);
  }

  .walkthroughs-arrow-btn:hover:not(:disabled) {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: #ffffff;
  }

  .walkthroughs-arrow-btn.js-walkthroughs-prev:hover:not(:disabled) svg {
    transform: translateX(-3px);
  }

  .walkthroughs-arrow-btn.js-walkthroughs-next:hover:not(:disabled) svg {
    transform: translateX(3px);
  }

  .walkthroughs-arrow-btn:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    border-color: #e5e0db;
    color: var(--color-text-light);
  }
}

@media (min-width: 1440px) {
  .walkthroughs-nav {
    padding-top: 14px;
    margin-top: 12px;
  }

  .walkthroughs-arrows {
    gap: 16px;
  }

  .walkthroughs-arrow-btn {
    width: 48px !important;
    height: 48px;
    padding: 0 !important;
    border-radius: 50%;
  }

  .walkthroughs-arrow-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 1920px) {
  .walkthroughs-nav {
    padding-top: 18px;
    margin-top: 16px;
  }

  .walkthroughs-arrows {
    gap: 20px;
  }

  .walkthroughs-arrow-btn {
    width: 52px !important;
    height: 52px;
    padding: 0 !important;
    border-radius: 50%;
  }

  .walkthroughs-arrow-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Compact viewport height adaptations (Common 1366x768 / 1536x864 Windows laptops) */
@media (min-width: 1024px) and (max-width: 1439px) and (max-height: 820px) {
  .walkthroughs-page {
    padding-top: 112px !important; /* Guarantees 18px clear space below 94px header */
    padding-bottom: 10px !important;
  }

  .walkthroughs-slide {
    height: 100% !important;
    max-height: 480px !important;
    gap: 14px !important;
  }

  .walkthroughs-card--media {
    padding: 24px !important;
  }

  .walkthroughs-card--content {
    padding: 22px 26px !important;
  }

  .walkthroughs-eyebrow {
    margin-bottom: 8px !important;
    font-size: 11px !important;
  }

  .walkthroughs-title {
    font-size: clamp(1.6rem, 1.3rem + 0.6vw, 2.1rem) !important;
    line-height: 1.15 !important;
  }

  .walkthroughs-divider {
    margin: 10px 0 8px 0 !important;
    width: 38px !important;
  }

  .walkthroughs-desc {
    font-size: 13px !important;
    margin-bottom: 16px !important;
    line-height: 1.45 !important;
    max-width: 440px !important;
  }

  .walkthroughs-actions {
    gap: 16px !important;
  }

  .walkthroughs-btn--primary {
    padding: 10px 22px !important;
    font-size: 11px !important;
  }

  .walkthroughs-btn--secondary {
    font-size: 11px !important;
    padding: 8px 2px !important;
  }

  .walkthroughs-nav {
    padding-top: 6px !important;
    margin-top: 6px !important;
  }

  .walkthroughs-arrow-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .walkthroughs-arrow-btn svg {
    width: 13px !important;
    height: 13px !important;
  }
}

/* Compact height adaptation for 1440px displays (e.g. 1440x900 / 1440x800) */
@media (min-width: 1440px) and (max-width: 1919px) and (max-height: 860px) {
  .walkthroughs-page {
    padding-top: 144px !important; /* Guarantees 30px clear space below 114px header */
    padding-bottom: 12px !important;
  }

  .walkthroughs-slide {
    height: 100% !important;
    max-height: 520px !important;
    gap: 18px !important;
  }

  .walkthroughs-card--content {
    padding: 30px 34px !important;
  }

  .walkthroughs-eyebrow {
    margin-bottom: 10px !important;
    font-size: 11.5px !important;
  }

  .walkthroughs-title {
    font-size: clamp(2rem, 1.8rem + 0.6vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }

  .walkthroughs-divider {
    margin: 14px 0 12px 0 !important;
    width: 44px !important;
  }

  .walkthroughs-desc {
    font-size: 14px !important;
    margin-bottom: 18px !important;
    line-height: 1.5 !important;
    max-width: 480px !important;
  }

  .walkthroughs-actions {
    gap: 18px !important;
  }

  .walkthroughs-btn--primary {
    padding: 12px 26px !important;
    font-size: 12px !important;
  }

  .walkthroughs-nav {
    padding-top: 8px !important;
    margin-top: 8px !important;
  }

  .walkthroughs-arrow-btn {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
}

/* --------------------------------------------------------------------------
   7. YouTube Video Modal Lightbox
   -------------------------------------------------------------------------- */
.walkthroughs-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.walkthroughs-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.walkthroughs-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.walkthroughs-modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  background-color: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  aspect-ratio: 16 / 9;
}

.walkthroughs-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.walkthroughs-modal__close {
  position: absolute;
  top: -46px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.walkthroughs-modal__close:hover {
  transform: rotate(90deg);
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .walkthroughs-modal__close {
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 10;
  }
}

/* --------------------------------------------------------------------------
   8. Mobile Scroll Fix: Prevent accidental walkthrough change on vertical scroll
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .walkthroughs-slider {
    overflow-x: hidden !important; /* Disables touch horizontal scroll snap hijack */
    scroll-snap-type: none !important;
  }
  
  .walkthroughs-slide {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
  }
}

/* --------------------------------------------------------------------------
   9. Header Hide on Modal Active
   -------------------------------------------------------------------------- */
body.site-modal-active .site-header,
body:has(.hd-modal.is-active) .site-header,
body:has(.walkthroughs-modal.is-active) .site-header {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-30px) !important;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease !important;
}

/* --------------------------------------------------------------------------
   10. HD Modal Submit Button & Scroll Fix
   -------------------------------------------------------------------------- */
.hd-modal {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.hd-modal__dialog {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  max-height: calc(100vh - 40px) !important;
  max-height: calc(100dvh - 40px) !important;
}

.hd-modal__submit-btn:hover,
.hd-modal__btn-done:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}


