/* ===== Kitchen Gallery (Match Figma) ===== */

.lc-gallery {
  padding: 50px 0 100px;
}

.lc-gallery .lc-container {
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 24px;
  width: min(var(--lc-container-full), calc(100% - (var(--lc-gutter) * 2))) !important;
}

/* ===== Title match Figma ===== */

.lc-gallery__head {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.lc-gallery__title {
  margin: 0;
  display: flex;
  align-items: center;
  /* canh theo line-height 57 */
  gap: 18px;
  /* khoảng cách giữa Kitchen & Gallery */
  line-height: 57px;
  /* design */
}

/* Kitchen */
.lc-gallery__kitchen {
  position: relative;
  font-family: "Encode Sans Expanded", system-ui, sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 57px;
  letter-spacing: -0.05em;
  /* -5% */
  display: inline-block;

  /* gradient text */
  background: linear-gradient(180deg,
      rgba(255, 255, 254, .56) 0%,
      rgba(255, 255, 255, 1) 41%,
      rgba(255, 255, 255, .81) 97%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* underline vàng dưới Kitchen */
.lc-gallery__kitchen::after {
  content: "";
  position: absolute;
  left: 0px;
  bottom: -6px;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: var(--wu-accent);
}

/* Gallery */
.lc-gallery__gallery {
  font-family: "Red Rose", serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 57px;
  letter-spacing: 0;
  display: inline-block;

  /* gradient text */
  background: linear-gradient(180deg,
      rgba(255, 255, 254, .56) 0%,
      rgba(255, 255, 255, 1) 41%,
      rgba(255, 255, 255, .81) 97%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
  .lc-gallery__title {
    gap: 12px;
    line-height: 44px;
  }

  .lc-gallery__kitchen {
    font-size: 24px;
    line-height: 44px;
  }

  .lc-gallery__gallery {
    font-size: 34px;
    line-height: 44px;
  }

  .lc-gallery__kitchen::after {
    left: 0;
    bottom: -6px;
    width: 72px;
    height: 2px;
  }
}


/* Frame: radius 38, border 3 gradient, padding 20, shadow 0 4 20 10% */
.lc-gallery__frame {
  border-radius: 38px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

/* Viewport (inner) */
.lc-gallery__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  /* inner bo góc giống ảnh */
  background: #f3f4f6;

  /* design height ~ 681px khi width 1400.
     dùng clamp để responsive */
  min-height: clamp(320px, 46vw, 681px);
}

/* Track */
.lc-gallery__track {
  display: flex;
  height: 100%;
  width: 100%;
  /* transform: translate3d(0,0,0);
  transition: transform 520ms cubic-bezier(.2,.85,.2,1); */
  will-change: transform;
}

/* Slide */
.lc-gallery__slide {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
  height: 100%;
}

.lc-gallery__slide img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  display: block;
}

/* Overlay bottom fog giống design */
.lc-gallery__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.14) 38%, rgba(0, 0, 0, 0) 62%),
    radial-gradient(1200px 420px at 18% 12%, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0));
  pointer-events: none;
  opacity: 0.60;
}

/* Caption left-bottom */
.lc-gallery__caption {
  position: absolute;
  left: 20px;
  /* gần padding design */
  bottom: 18px;
  z-index: 3;
}

.lc-gallery__label {
  font-family: "Red Rose", serif;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Nav bottom-right (2 nút 60x60) */
.lc-gallery__nav {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  gap: 32px;
}

.lc-gallery__btn {
  width: 60px;
  /* design */
  height: 60px;
  /* design */
  border-radius: 100px;
  /* design */
  border: 1px solid rgba(188, 191, 202, 0.40);
  /* #BCBFCA 40% */
  background: none;
  -webkit-backdrop-filter: blur(10px);

  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.lc-gallery__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(188, 191, 202, 0.55);
  backdrop-filter: blur(10px);
}

.lc-gallery__btn:active {
  transform: translateY(0px);
}

.lc-gallery__btn:focus-visible {
  outline: 2px solid rgba(215, 181, 90, 0.9);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .lc-gallery .lc-container {
    padding: 0 16px;
  }
  .lc-gallery {
    padding: 32px 0 20px !important;
  }

  .lc-gallery__frame {
    border-radius: 20px;
  }

  .lc-gallery__viewport {
    border-radius: 22px;
  }

  .lc-gallery__caption {
    left: 14px;
    bottom: 12px;
  }

  .lc-gallery__nav {
    right: 12px;
    bottom: 12px;
  }

  .lc-gallery__btn {
    width: 52px;
    height: 52px;
  }
  .lc-gallery .lc-container {
    width: 90% !important;
  }
}

/* FIX: image always fill the viewport */
.lc-gallery__viewport {
  height: clamp(320px, 46vw, 681px);
}

/* dùng height thay vì min-height */

.lc-gallery__slide {
  height: 100%;
}

.lc-gallery__slide img {
  width: 100%;
  height: 100% !important;
  /* override height: 640px */
  object-fit: cover;
  display: block;
}


/* =========================
   Kitchen Gallery (Figma-like)
   ========================= */
.lc-gallery {
  position: relative;
  padding: 50px 0 100px;
  overflow: hidden;
  background: #0f1a33;
  /* margin-bottom: clamp(38px, 5vw, 70px) !important; */
  margin-top: 2vw !important;
}

/* nền pattern + vignette giống figma */
.lc-gallery {
  content: "";
  inset: 0;
  pointer-events: none;
}

.lc-gallery__track {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.lc-gallery__slide img {
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}


/* 1) Xóa mọi overlay viết sai trên .lc-gallery (nếu có) */
.lc-gallery {
  content: normal !important;
}

/* 2) Overlay đúng cách: pseudo-element KHÔNG ăn click */
.lc-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* ✅ quan trọng */
  z-index: 0;
}

/* 3) Nội dung thật nằm trên overlay */
.lc-gallery .lc-container,
.lc-gallery__frame,
.lc-gallery__viewport {
  position: relative;
  z-index: 1;
}

/* 4) Nút luôn nằm cao nhất và click được */
.lc-gallery__nav {
  position: absolute;
  z-index: 5;
  pointer-events: auto;
}