/* ==========================================================================
   HNT TRANSFORMATION CAROUSEL CSS
   ========================================================================== */

.hnt-w-lise-2-transformations-section {
  --hnt-w-lise-2-bg-color: transparent;
  --hnt-w-lise-2-primary-color: #6b0f1a;
  --hnt-w-lise-2-text-name: #6b0f1a99;
  --hnt-w-lise-2-text-meta: #6b0f1a77;
  --hnt-w-lise-2-card-width: 360px;
  --hnt-w-lise-2-card-height: 520px;
  --hnt-w-lise-2-card-gap: 20px;

  position: relative;
  width: 100%;
  background-color: var(--hnt-w-lise-2-bg-color);
  box-sizing: border-box;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hnt-w-lise-2-transformations-section::-webkit-scrollbar,
.hnt-w-lise-2-carousel-outer::-webkit-scrollbar,
.hnt-w-lise-2-carousel-main-container::-webkit-scrollbar,
.hnt-w-lise-2-carousel-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hnt-w-lise-2-carousel-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  cursor: grab;
  padding: 10px 0 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hnt-w-lise-2-carousel-outer:active {
  cursor: grabbing;
}

.hnt-w-lise-2-carousel-main-container {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hnt-w-lise-2-carousel-track {
  display: flex;
  gap: var(--hnt-w-lise-2-card-gap);
  padding-right: var(--hnt-w-lise-2-card-gap);
  flex-shrink: 0;
}

/* 1. Card tổng thể */
.hnt-w-lise-2-carousel-card {
  position: relative;
  width: var(--hnt-w-lise-2-card-width);
  height: var(--hnt-w-lise-2-card-height);
  background-color: transparent;
  user-select: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 0;
  flex-shrink: 0;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  will-change: transform, opacity;
}

/* 2. Card thông tin ở đầu */
.hnt-w-lise-2-card-info {
  position: relative;
  z-index: 4;
  width: 100%;
  box-sizing: border-box;
  padding: 32px 24px;
  border-radius: 20px;
  background-color: #ffffff;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  will-change: transform, opacity;
}

.hnt-w-lise-2-card-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: left;
  color: #111111;
  margin: 0;
}

.hnt-w-lise-2-card-meta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  text-align: right;
}

.hnt-w-lise-2-card-meta-name {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hnt-w-lise-2-text-name, #6b0f1a99);
  margin: 0;
}

.hnt-w-lise-2-card-meta-duration {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hnt-w-lise-2-text-meta, #6b0f1a77);
  margin: 0;
}

/* 3. Khung Media (Ảnh + Logo) */
.hnt-w-lise-2-card-media {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  background-color: #f0ede8;
  cursor: pointer;
  cursor: zoom-in;
  outline: none;
}

.hnt-w-lise-2-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.501961) 0%,
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: 20px;
}

.hnt-w-lise-2-card-thumb {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.hnt-w-lise-2-carousel-card:hover .hnt-w-lise-2-card-thumb {
  transform: scale(1.03);
}

/* Zoom badge hint on card media */
.hnt-w-lise-2-zoom-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  pointer-events: none;
}

.hnt-w-lise-2-zoom-badge svg {
  width: 17px;
  height: 17px;
  stroke: #1a1a1a;
  stroke-width: 2.2;
  display: block;
}

.hnt-w-lise-2-carousel-card:hover .hnt-w-lise-2-zoom-badge,
.hnt-w-lise-2-card-media:focus .hnt-w-lise-2-zoom-badge {
  opacity: 1;
  transform: scale(1);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.hnt-w-lise-2-card-media:hover .hnt-w-lise-2-zoom-badge {
  transform: scale(1.08);
}

/* 4. Logo căn giữa dưới đáy ảnh */
.hnt-w-lise-2-card-logo {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 68px;
  object-fit: contain;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

@media (max-width: 767px) {
  .hnt-w-lise-2-transformations-section {
    --hnt-w-lise-2-card-width: 290px !important;
    --hnt-w-lise-2-card-gap: 12px !important;
  }
  .hnt-w-lise-2-carousel-card {
    height: 440px;
    gap: 12px;
  }
  .hnt-w-lise-2-card-info {
    padding: 20px 16px;
  }
  .hnt-w-lise-2-card-title {
    font-size: 26px;
  }
  .hnt-w-lise-2-card-meta-name {
    font-size: 12px;
  }
  .hnt-w-lise-2-card-meta-duration {
    font-size: 11px;
  }
  .hnt-w-lise-2-card-logo {
    width: 70px;
    height: 60px;
    bottom: 8px;
  }
}

/* Controls Bar */
.hnt-w-lise-2-controls-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
  padding-bottom: 20px;
}

@media (max-width: 767px) {
  .hnt-w-lise-2-controls-wrapper {
    margin-top: 20px;
    justify-content: end;
  }
}

.hnt-w-lise-2-segmented-indicators {
  width: 160px;
  height: 36px;
  border-radius: 9999px;
  padding: 6px 10px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  box-sizing: border-box;
}

.hnt-w-lise-2-indicator-bar {
  flex: 1;
  height: 4px;
  background-color: #c7c4bc;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  outline: none;
}

.hnt-w-lise-2-indicator-bar:hover,
.hnt-w-lise-2-indicator-bar:focus {
  background-color: #a8a59d;
}

.hnt-w-lise-2-indicator-bar.hnt-w-lise-2-active {
  background-color: var(--hnt-w-lise-2-primary-color);
}

.hnt-w-lise-2-nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

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

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

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

/* ==========================================================================
   IMAGE LIGHTBOX MODAL STYLES (LightGallery / Modal style)
   ========================================================================== */

.hnt-w-lise-2-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;
}

/* Backdrop */
.hnt-w-lise-2-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;
}

/* Top Bar: Counter & Close */
.hnt-w-lise-2-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-2-lightbox-counter {
  font-family: "Inter", sans-serif;
  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-2-lb-current {
  color: #ffffff;
  font-weight: 700;
}

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

.hnt-w-lise-2-lightbox-modal button.hnt-w-lise-2-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,
    box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.hnt-w-lise-2-lightbox-modal button.hnt-w-lise-2-lightbox-close-btn:active {
  transform: rotate(90deg) scale(0.95);
  outline: none;
}

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

/* Main Lightbox Content Area */
.hnt-w-lise-2-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;
  box-sizing: border-box;
  min-height: 0;
  gap: 20px;
}

/* Prev & Next Buttons */
.hnt-w-lise-2-lightbox-modal button.hnt-w-lise-2-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,
    box-shadow 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

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

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

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

/* Image Wrapper */
.hnt-w-lise-2-lightbox-figure-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(100vh - 210px);
  max-width: 80vw;
  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-2-lightbox-image {
  max-height: calc(100vh - 210px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  will-change: transform, opacity;
  transform-origin: center center;
}

.hnt-w-lise-2-lightbox-logo {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 75px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  z-index: 5;
}

/* Bottom Caption Bar */
.hnt-w-lise-2-lightbox-caption-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 800px;
  text-align: center;
  padding: 14px 24px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hnt-w-lise-2-lb-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 600;
  font-style: italic;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hnt-w-lise-2-lb-meta {
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hnt-w-lise-2-lb-name {
  color: #ffffff;
  font-weight: 500;
}

.hnt-w-lise-2-lb-duration {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.hnt-w-lise-2-lb-dot {
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive Modal styles */
@media (max-width: 767px) {
  .hnt-w-lise-2-lightbox-topbar {
    padding: 14px 16px;
  }
  .hnt-w-lise-2-lightbox-counter {
    font-size: 13px;
    padding: 5px 12px;
  }
  .hnt-w-lise-2-lightbox-modal button.hnt-w-lise-2-lightbox-close-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
  .hnt-w-lise-2-lightbox-modal button.hnt-w-lise-2-lightbox-close-btn svg {
    width: 18px;
    height: 18px;
  }
  .hnt-w-lise-2-lightbox-container {
    padding: 0 10px;
    justify-content: center;
    position: relative;
    width: 100%;
  }

  /* Định vị 2 nút tiến lùi đè lên 2 bên mép ảnh / mép màn hình */
  .hnt-w-lise-2-lightbox-modal button.hnt-w-lise-2-lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    background: rgba(15, 15, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    outline: none;
  }
  .hnt-w-lise-2-lightbox-modal
    button.hnt-w-lise-2-lightbox-nav-btn.hnt-w-lise-2-lb-prev {
    left: 12px;
  }
  .hnt-w-lise-2-lightbox-modal
    button.hnt-w-lise-2-lightbox-nav-btn.hnt-w-lise-2-lb-next {
    right: 12px;
  }
  .hnt-w-lise-2-lightbox-modal button.hnt-w-lise-2-lightbox-nav-btn:hover,
  .hnt-w-lise-2-lightbox-modal button.hnt-w-lise-2-lightbox-nav-btn:focus,
  .hnt-w-lise-2-lightbox-modal
    button.hnt-w-lise-2-lightbox-nav-btn:focus-visible {
    background: rgba(15, 15, 20, 0.85);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.05);
  }
  .hnt-w-lise-2-lightbox-modal button.hnt-w-lise-2-lightbox-nav-btn:active {
    transform: translateY(-50%) scale(0.92);
    outline: none;
  }
  .hnt-w-lise-2-lightbox-modal button.hnt-w-lise-2-lightbox-nav-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Figure Wrap & Image mở rộng tối đa Full Width */
  .hnt-w-lise-2-lightbox-figure-wrap {
    max-height: calc(100vh - 170px);
    max-width: 100%;
    width: 100%;
    border-radius: 14px;
  }
  .hnt-w-lise-2-lightbox-image {
    max-height: calc(100vh - 170px);
    max-width: 100%;
    border-radius: 14px;
  }
  .hnt-w-lise-2-lightbox-logo {
    width: 65px;
    height: 52px;
    bottom: 8px;
  }
  .hnt-w-lise-2-lightbox-caption-bar {
    padding: 8px 16px 16px;
  }
  .hnt-w-lise-2-lb-title {
    font-size: 22px;
  }
  .hnt-w-lise-2-lb-meta {
    font-size: 11px;
  }
}
