/* ========================================================
   HNT MARQUEE IMAGE WIDGET (PREFIX: hnt-w-lise-6-)
======================================================== */
.hnt-w-lise-6-container {
  --hnt-marquee-card-width: 280px;
  --hnt-marquee-card-height: 200px;
  --hnt-marquee-card-radius: 16px;
  --hnt-marquee-gap: 16px;
  --hnt-marquee-row-gap: 20px;
  --hnt-marquee-hover-scale: 1.06;

  display: flex;
  flex-direction: column;
  gap: var(--hnt-marquee-row-gap, 20px);
  width: 100%;
  overflow: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  padding: 30px 0;
  box-sizing: border-box;
  background-color: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hnt-w-lise-6-row {
  position: relative;
  width: 100%;
  height: var(--hnt-marquee-card-height, 200px);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  background-color: transparent;
  box-sizing: border-box;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.hnt-w-lise-6-row.hnt-w-lise-6-is-dragging {
  cursor: grabbing;
}

.hnt-w-lise-6-item {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--hnt-marquee-card-width, 280px);
  height: var(--hnt-marquee-card-height, 200px);
  border-radius: var(--hnt-marquee-card-radius, 16px);
  overflow: hidden;
  background-color: transparent;
  box-shadow: none;
  user-select: none;
  box-sizing: border-box;
  will-change: transform;
  /* Fix Chromium bug: border-radius with overflow:hidden flickering during transform */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
}

.hnt-w-lise-6-item a.hnt-w-lise-6-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.hnt-w-lise-6-item img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform 0.4s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hnt-w-lise-6-item:hover img {
  transform: scale(var(--hnt-marquee-hover-scale, 1.06)) translateZ(0);
}

/* ========================================================
   NAVIGATION BUTTONS (STYLE COPIED FROM REVIEW-CAROUSEL)
======================================================== */
.hnt-w-lise-6-nav-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 10;
}

.hnt-w-lise-6-nav-btn {
  width: 36px !important;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50% !important;
  border: none !important;
  background-color: var(--hnt-w-lise-6-primary-color, #6b0f1a) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  padding: 0 !important;
  outline: none !important;
  transition:
    opacity 0.2s ease,
    transform 0.15s ease !important;
}

.hnt-w-lise-6-nav-btn:hover,
.hnt-w-lise-6-nav-btn:focus {
  opacity: 0.9;
  background-color: var(--hnt-w-lise-6-primary-color, #6b0f1a);
}

.hnt-w-lise-6-nav-btn:active {
  transform: scale(0.92);
}

.hnt-w-lise-6-nav-btn svg {
  width: 11px;
  height: 8px;
  display: block;
  pointer-events: none;
}

.hnt-w-lise-6-nav-btn svg path {
  stroke: #ffffff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ==========================================================================
   IMAGE LIGHTBOX MODAL STYLES (PREFIX: hnt-w-lise-6-)
   ========================================================================== */
.hnt-w-lise-6-item.hnt-w-lise-6-has-lightbox {
  cursor: pointer;
}

.hnt-w-lise-6-item.hnt-w-lise-6-has-lightbox a.hnt-w-lise-6-link {
  cursor: pointer;
}

.hnt-w-lise-6-lightbox-modal {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
}

.hnt-w-lise-6-lightbox-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
  opacity: 0;
  cursor: zoom-out;
}

.hnt-w-lise-6-lightbox-topbar {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  box-sizing: border-box;
}

.hnt-w-lise-6-lightbox-counter {
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
}

.hnt-w-lise-6-lb-current {
  color: #ffffff;
  font-weight: 700;
}

.hnt-w-lise-6-lb-total {
  color: rgba(255, 255, 255, 0.6);
}

.hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-close-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-close-btn:hover,
.hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-close-btn:focus {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
}

.hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-close-btn svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  display: block;
}

.hnt-w-lise-6-lightbox-container {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 1300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px 30px;
  box-sizing: border-box;
  min-height: 0;
  gap: 20px;
}

.hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-nav-btn {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-nav-btn:hover,
.hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-nav-btn:focus {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transform: scale(1.08);
}

.hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-nav-btn:active {
  transform: scale(0.94);
}

.hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-nav-btn svg {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
  display: block;
}

.hnt-w-lise-6-lightbox-figure-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(100vh - 160px);
  max-width: 82vw;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  user-select: none;
  background-color: transparent;
}

.hnt-w-lise-6-lightbox-image {
  max-height: calc(100vh - 160px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  will-change: transform, opacity;
  transform-origin: center center;
}

@media (max-width: 767px) {
  .hnt-w-lise-6-lightbox-topbar {
    padding: 14px 16px;
  }
  .hnt-w-lise-6-lightbox-counter {
    font-size: 13px;
    padding: 5px 12px;
  }
  .hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-close-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
  .hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-close-btn svg {
    width: 18px;
    height: 18px;
  }
  .hnt-w-lise-6-lightbox-container {
    padding: 0 10px 20px;
    justify-content: center;
    position: relative;
    width: 100%;
  }
  .hnt-w-lise-6-lightbox-modal button.hnt-w-lise-6-lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    background: rgba(10, 10, 14, 0.55);
  }
  .hnt-w-lise-6-lb-prev {
    left: 8px;
  }
  .hnt-w-lise-6-lb-next {
    right: 8px;
  }
  .hnt-w-lise-6-lightbox-figure-wrap {
    max-width: 94vw;
    max-height: calc(100vh - 130px);
    border-radius: 14px;
  }
  .hnt-w-lise-6-lightbox-image {
    max-height: calc(100vh - 130px);
    border-radius: 14px;
  }
}
