/* =========================================================
   sticky_scroll_visual v2.0.6
   Hover Focus Gallery With Text - fill image + stable text width
   OpenCart 3.0.3.8 + Journal3 compatible

   Desktop >= 1024px:
   - Cursor hover focus, no click and no drag required.
   - Active panel expands smoothly, brightens, and shows text.
   - Active text fades in with a subtle upward motion; inactive text fades out directly.

   Tablet <= 1023px:
   - Static RWD layout, no hover accordion.
   - Two panels on first row, last odd panel full width.

   Mobile <= 767px:
   - Static stacked layout, no hover accordion.
   ========================================================= */

.ssv-module-container {
  --ssv-bg: #111114;
  --ssv-text: #ffffff;
  --ssv-accent: #32A9DF;
  --ssv-speed: 900ms;
  --ssv-panel-speed: 920ms;
  --ssv-panel-ease: cubic-bezier(0.25, 1, 0.5, 1);

  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background-color: var(--ssv-bg);
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ssv-text);
  isolation: isolate;
}

.ssv-module-container *,
.ssv-module-container *::before,
.ssv-module-container *::after {
  box-sizing: border-box;
}

.ssv-slider-track {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  height: clamp(640px, calc(100vh - 92px), 860px);
  min-height: 640px;
  overflow: hidden;
  background: var(--ssv-bg);
  cursor: default;
  touch-action: pan-y;
}

.ssv-slide {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
  background: #07080b;
  user-select: none;
  -webkit-user-select: none;
  transition:
    flex var(--ssv-panel-speed) var(--ssv-panel-ease),
    background-color 700ms ease;
}

.ssv-slide:last-child {
  border-right: 0;
}

.ssv-slide.is-active {
  flex: 2 1 0;
  background: #111114;
}

/* Soft dark overlay only. No blur. */
.ssv-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.58);
  transition:
    background-color 760ms ease,
    opacity 760ms ease;
}

.ssv-slide.is-active::after {
  background: rgba(0, 0, 0, 0.04);
}

.ssv-media {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0.50;
  transform: none;
  transition: opacity 760ms ease;
  will-change: opacity;
}

.ssv-slide.is-active .ssv-media {
  opacity: 1;
}

.ssv-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Text: active enters from slightly below and fades in; inactive exits directly by opacity. */
.ssv-info {
  position: absolute;
  z-index: 30;
  top: clamp(44px, 7vh, 76px);
  left: clamp(34px, 4.2vw, 72px);
  width: 560px;
  max-width: calc(100% - 68px);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 18px, 0);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.62);
  transition:
    opacity 160ms ease,
    visibility 0s linear 160ms;
}

.ssv-slide.is-active .ssv-info {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition:
    opacity 480ms ease 180ms,
    transform 560ms cubic-bezier(0.25, 1, 0.5, 1) 180ms,
    visibility 0s linear 0s;
}

.ssv-info h2 {
  margin: 0 0 18px;
  padding: 0;
  color: var(--ssv-text);
  font-family: inherit;
  font-size: clamp(25px, 1.95vw, 38px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.ssv-desc {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 1.52;
  font-weight: 400;
  max-width: 620px;
}

.ssv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 11px 24px;
  min-height: 40px;
  border-radius: 999px;
  color: var(--ssv-text);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition:
    background-color 250ms ease,
    color 250ms ease,
    border-color 250ms ease,
    transform 250ms ease;
}

.ssv-btn:hover,
.ssv-btn:focus {
  background-color: var(--ssv-text);
  color: var(--ssv-bg);
  border-color: var(--ssv-text);
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

.ssv-callout {
  position: absolute;
  z-index: 35;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%);
  transition:
    opacity 260ms ease,
    visibility 0s linear 260ms;
  pointer-events: none;
}

.ssv-slide.is-active .ssv-callout {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 360ms ease 260ms,
    visibility 0s linear 0s;
}

.ssv-callout-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: var(--ssv-accent);
  box-shadow: 0 0 0 6px rgba(0, 151, 255, 0.22), 0 0 24px rgba(0, 151, 255, 0.70);
}

.ssv-callout-line {
  display: block;
  width: 42px;
  height: 2px;
  background: var(--ssv-accent);
  box-shadow: 0 0 18px rgba(0, 151, 255, 0.70);
}

.ssv-callout-label {
  display: block;
  color: var(--ssv-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.65);
}

.ssv-callout-top,
.ssv-callout-bottom {
  flex-direction: column;
}

.ssv-callout-top .ssv-callout-line,
.ssv-callout-bottom .ssv-callout-line {
  width: 2px;
  height: 42px;
}

.ssv-callout-bottom {
  flex-direction: column-reverse;
}

.ssv-callout-left {
  flex-direction: row;
}

.ssv-callout-right {
  flex-direction: row-reverse;
}


/* Optional content layout: center-left text + button, similar to product hero reference. */
@media (min-width: 1024px) {
  .ssv-layout-center-left .ssv-info {
    top: 50%;
    left: clamp(52px, 6.4vw, 116px);
    width: clamp(360px, 34vw, 560px);
    max-width: min(560px, calc(100vw - 96px));
    text-align: left;
    transform: translate3d(0, calc(-50% + 18px), 0);
    opacity: 0;
    visibility: hidden;
    will-change: opacity, transform;
    transition:
      opacity 150ms ease,
      visibility 0s linear 150ms;
  }

  .ssv-layout-center-left .ssv-slide.is-active .ssv-info {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -50%, 0);
    pointer-events: auto;
    transition:
      opacity 500ms ease 260ms,
      transform 620ms cubic-bezier(0.25, 1, 0.5, 1) 260ms,
      visibility 0s linear 0s;
  }

  .ssv-layout-center-left .ssv-info h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 2.12vw, 44px);
    line-height: 1.12;
    font-weight: 650;
    letter-spacing: -0.018em;
  }

  .ssv-layout-center-left .ssv-desc {
    max-width: 560px;
    font-size: clamp(15px, 1.0vw, 18px);
    line-height: 1.54;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
  }

  /* v2.0.6 - Layout B button palette
     Default: blue background + white text.
     Hover/focus: white background + blue text. */
  .ssv-layout-center-left .ssv-btn {
    --ssv-button-blue: #32A9DF;
    min-width: min(300px, 100%);
    min-height: 54px;
    margin-top: 24px;
    padding: 14px 32px;
    border-radius: 6px;
    border: 1px solid var(--ssv-button-blue) !important;
    background-color: var(--ssv-button-blue) !important;
    color: #ffffff !important;
    font-size: clamp(16px, 1.0vw, 18px);
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
    transform: none;
    transition:
      background-color 260ms ease,
      color 260ms ease,
      border-color 260ms ease,
      box-shadow 260ms ease;
  }

  .ssv-layout-center-left .ssv-btn:hover,
  .ssv-layout-center-left .ssv-btn:focus,
  .ssv-layout-center-left .ssv-btn:active {
    background-color: #ffffff !important;
    color: var(--ssv-button-blue) !important;
    border-color: #ffffff !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
    transform: none;
    text-decoration: none;
    outline: none;
  }
}
/* Tablet: cancel hover accordion. Static 2 + 1 layout. */
@media (max-width: 1023px) and (min-width: 768px) {
  .ssv-module-container {
    overflow: hidden;
  }

  .ssv-slider-track {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    min-height: 0;
    overflow: visible;
    touch-action: auto;
  }

  .ssv-slide,
  .ssv-slide.is-active {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    height: 520px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: #111114;
    transition: none;
  }

  .ssv-slide:nth-child(odd):last-child,
  .ssv-slide:nth-child(3):last-child {
    flex-basis: 100%;
    width: 100%;
    height: 560px;
    border: none !important;
  }

  .ssv-slide::after,
  .ssv-slide.is-active::after {
    background: rgba(0, 0, 0, 0.06);
  }

  .ssv-media,
  .ssv-slide.is-active .ssv-media {
    opacity: 1;
    transition: none;
  }

  .ssv-info,
  .ssv-slide.is-active .ssv-info {
    top: 34px;
    left: 34px;
    width: calc(100% - 68px);
    max-width: 520px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .ssv-info h2 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 12px;
  }

  .ssv-desc {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
  }

  .ssv-callout {
    display: none;
  }
}

/* Mobile: cancel hover accordion. Static vertical cards. */
@media (max-width: 767px) {
  .ssv-module-container {
    overflow: hidden;
  }

  .ssv-slider-track {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    height: auto;
    min-height: 0;
    overflow: visible;
    touch-action: auto;
  }

  .ssv-slide,
  .ssv-slide.is-active {
    flex: none;
    width: 100%;
    min-width: 100%;
    height: 520px;
    min-height: 520px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: #111114;
    transition: none;
  }

  .ssv-slide::after,
  .ssv-slide.is-active::after {
    background: rgba(0, 0, 0, 0.08);
  }

  .ssv-media,
  .ssv-slide.is-active .ssv-media {
    opacity: 1;
    transition: none;
  }

  .ssv-info,
  .ssv-slide.is-active .ssv-info {
    top: 32px;
    left: 24px;
    width: calc(100% - 48px);
    max-width: none;
    max-height: 42%;
    overflow-y: auto;
    text-align: left;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ssv-info::-webkit-scrollbar {
    display: none;
  }

  .ssv-info h2 {
    font-size: 28px;
    line-height: 1.18;
    font-weight: 600;
    margin-bottom: 12px;
  }

  .ssv-desc {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
  }

  .ssv-btn {
    margin-top: 18px;
  }

  .ssv-callout {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ssv-slide,
  .ssv-slide::after,
  .ssv-info,
  .ssv-media,
  .ssv-callout {
    transition: none !important;
  }
}
