.lm-showroom-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
  color: #fff;
  background-color: #111214;
  --lm-showroom-overlay: linear-gradient(130deg, rgba(18, 14, 12, 0.8), rgba(15, 44, 49, 0.8));
}

@supports (background: color-mix(in srgb, #000 80%, transparent)) {
  .lm-showroom-hero {
    --lm-showroom-overlay: linear-gradient(
      130deg,
      color-mix(in srgb, var(--wd-primary-color, #b8956a) 80%, transparent),
      color-mix(in srgb, var(--wd-alternative-color, #1f6a5b) 80%, transparent)
    );
  }
}

.lm-showroom-hero::before,
.lm-showroom-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lm-showroom-hero::before {
  background-image: var(--lm-showroom-hero-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
}

.lm-showroom-hero::after {
  background: var(--lm-showroom-overlay);
}

.lm-showroom-hero.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.lm-showroom-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.lm-showroom-hero__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.lm-showroom-hero__title {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  color: #fff;
}

.lm-showroom-hero__subtitle {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.lm-showroom-hero__content {
  display: grid;
  gap: 44px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lm-showroom-hero__content.is-switching {
  opacity: 0.35;
  transform: translateY(8px);
}

.lm-showroom-hero__video-title,
.lm-showroom-hero__gallery-title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.lm-showroom-hero__video-stage {
  position: relative;
  height: clamp(240px, 38vw, 360px);
  perspective: 1200px;
}

.lm-showroom-hero__video-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.lm-showroom-hero__video-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(240px, 36vw, 380px);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease, box-shadow 0.45s ease;
  pointer-events: none;
}

.lm-showroom-hero__video-card.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .lm-showroom-hero {
    padding: 6px 0;
  }

  .lm-showroom-hero__inner {
    gap: 16px;
  }

  .lm-showroom-hero__content {
    gap: 18px;
  }
}

.lm-showroom-hero__video-card.is-prev {
  opacity: 0.6;
  transform: translate(-150%, -50%) scale(0.85) rotateY(12deg);
  z-index: 2;
}

.lm-showroom-hero__video-card.is-next {
  opacity: 0.6;
  transform: translate(50%, -50%) scale(0.85) rotateY(-12deg);
  z-index: 2;
}

.lm-showroom-hero__video-card.is-far {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  z-index: 1;
}

.lm-showroom-hero__video-card.is-category-hidden {
  display: none;
}

.lm-showroom-hero__video-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
}

.lm-showroom-hero__video-image,
.lm-showroom-hero__video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lm-showroom-hero__video-placeholder {
  background: rgba(255, 255, 255, 0.1);
}

.lm-showroom-hero__video-play-btn {
  all: unset;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35));
  cursor: pointer;
}

.lm-showroom-hero__video-play-btn::before {
  content: "";
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: block;
}

.lm-showroom-hero__video-play-btn::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #1f1a14;
  margin-left: 4px;
}

.lm-showroom-hero__video-duration {
  position: absolute;
  right: 14px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.lm-showroom-hero__video-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.lm-showroom-hero__gallery-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  margin-bottom: -6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-y;
}

.lm-showroom-hero__gallery-track.is-dragging {
  cursor: grabbing;
}

.lm-showroom-hero__gallery-shell {
  width: 100%;
}

.lm-showroom-hero__gallery-track::-webkit-scrollbar {
  display: none;
}

.lm-showroom-hero__gallery-card {
  flex: 0 0 calc((100% - 3 * 22px) / 4);
  max-width: calc((100% - 3 * 22px) / 4);
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lm-showroom-hero__gallery-card.is-category-hidden {
  display: none;
}

.lm-showroom-hero__gallery-media {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3;
}

.lm-showroom-hero__gallery-image,
.lm-showroom-hero__gallery-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.lm-showroom-hero__gallery-placeholder {
  background: rgba(255, 255, 255, 0.1);
}

.lm-showroom-hero__gallery-body {
  padding: 18px 18px 20px;
  color: #fff;
}

.lm-showroom-hero__gallery-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.lm-showroom-hero__gallery-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.lm-showroom-hero__gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: none;
}

.lm-showroom-hero__gallery-card:hover .lm-showroom-hero__gallery-image {
  transform: scale(1.06);
}

.lm-showroom-hero__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.lm-showroom-hero__tab {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.lm-showroom-hero__tab:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}

.lm-showroom-hero__tab.is-active {
  background: #b8956a;
  color: #1f1a14;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.lm-showroom-hero__video-dots,
.lm-showroom-hero__gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  width: 100%;
  text-align: center;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  left: 0;
  right: 0;
}

.lm-showroom-hero__gallery-dots-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  width: 100%;
}

.lm-showroom-hero__gallery-dots-wrap .lm-showroom-hero__gallery-dots {
  transform: translateX(0);
}

.lm-showroom-hero__gallery-dots-wrap .lm-showroom-hero__gallery-dots {
  width: auto;
  margin-top: 0;
}

.lm-showroom-hero__gallery-dots-row {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  justify-content: center;
}

.lm-showroom-hero__gallery-dots-row .lm-showroom-hero__gallery-dots {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 640px) {
  .lm-showroom-hero__gallery-track {
    display: flex;
    gap: 16px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    margin-bottom: -6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-left: 24px;
    padding-right: 24px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .lm-showroom-hero__gallery-track::-webkit-scrollbar {
    display: none;
  }

  .lm-showroom-hero__gallery-card {
    flex: 0 0 calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    width: calc(100vw - 48px) !important;
    scroll-snap-align: start;
    margin: 0;
  }

  .lm-showroom-hero__gallery-media {
    border-radius: 0;
  }

  .lm-showroom-hero__gallery-body {
    border-radius: 0;
  }

  .lm-showroom-hero__gallery-dots {
    display: flex;
    justify-content: center;
  }
}

.lm-showroom-hero__video-dots--standalone {
  margin-top: 18px;
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-right: -24px;
}

.lm-showroom-hero__video-dot,
.lm-showroom-hero__gallery-dot {
  all: unset !important;
  box-sizing: border-box !important;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  max-width: 10px !important;
  border-radius: 999px !important;
  background: rgba(184, 149, 106, 0.3) !important;
  cursor: pointer;
  display: inline-block !important;
  transition: width 200ms ease, background-color 200ms ease;
}

.lm-showroom-hero__video-dot.is-active,
.lm-showroom-hero__gallery-dot.is-active {
  width: 46px !important;
  height: 10px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  background: #b8956a !important;
}

.lm-showroom-hero__empty {
  margin-top: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.lm-showroom-hero__modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.lm-showroom-hero__modal.is-active {
  display: flex;
}

.lm-showroom-hero__modal-content {
  position: relative;
  width: min(960px, 100%);
  background: #0e0f12;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.lm-showroom-hero__modal-media {
  position: relative;
  padding-top: 56.25%;
}

.lm-showroom-hero__modal-video,
.lm-showroom-hero__modal-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.lm-showroom-hero__modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

@media (max-width: 1024px) {
  .lm-showroom-hero {
    padding: 30px 0;
  }

  .lm-showroom-hero__gallery-card {
    flex: 0 0 calc((100% - 1 * 22px) / 2);
    max-width: calc((100% - 1 * 22px) / 2);
  }
}


@media (max-width: 768px) {
  .lm-showroom-hero__video-stage {
    height: 280px;
  }

  .lm-showroom-hero__video-card.is-prev {
    transform: translate(-135%, -50%) scale(0.8) rotateY(8deg);
  }

  .lm-showroom-hero__video-card.is-next {
    transform: translate(35%, -50%) scale(0.8) rotateY(-8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm-showroom-hero__content,
  .lm-showroom-hero__video-card,
  .lm-showroom-hero__gallery-card,
  .lm-showroom-hero__gallery-image,
  .lm-showroom-hero__video-dot,
  .lm-showroom-hero__gallery-dot {
    transition: none;
  }

  .lm-showroom-hero__gallery-track {
    scroll-behavior: auto;
  }
}
