.maren-showroom-block {
  width: 100%;
  margin: 2rem 0;
}

.showroom-root {
  --showroom-height: 78vh;
  --showroom-min-height: 620px;
  --showroom-radius: 10px;
  --showroom-text: #203040;
  --showroom-text-muted: #5d6f81;
  --showroom-accent: #04b3e8;
  --showroom-panel: rgba(255, 255, 255, 0.94);
  --showroom-panel-border: rgba(90, 120, 150, 0.18);
  --showroom-shadow: 0 20px 60px rgba(86, 112, 140, 0.16);

  position: relative;
  width: 100%;
  height: var(--showroom-height);
  min-height: var(--showroom-min-height);
  overflow: hidden;
  border-radius: var(--showroom-radius);
  background:
    linear-gradient(rgba(245, 248, 252, 0.35), rgba(245, 248, 252, 0.35)),
    #eef4fa;
  color: var(--showroom-text);
  isolation: isolate;
}

.showroom-root.has-bg-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.showroom-root canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.showroom-root .hint {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 20;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: #1f2f3d;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(70, 95, 120, 0.18);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(80, 105, 130, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  max-width: calc(100% - 32px);
}

.showroom-root .overlay-backdrop {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
}

.showroom-root .overlay {
  width: min(1040px, 100%);
  max-height: min(88%, 920px);
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  background: var(--showroom-panel);
  border: 1px solid var(--showroom-panel-border);
  border-radius: var(--showroom-radius);
  box-shadow: var(--showroom-shadow);
  overflow: hidden;
}

.showroom-root .overlay-visual {
  background: #6b788d;
  min-height: 320px;
}

.showroom-root .overlay-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showroom-root .overlay-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  min-width: 0;
}

.showroom-root .overlay-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.showroom-root .overlay-title {
  margin: 0;
  font-size: clamp(1.4rem, 1rem + 1vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--showroom-text);
}

.showroom-root .overlay-meta {
  font-size: 14px;
  color: var(--showroom-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.showroom-root .overlay-description {
  margin: 0;
  color: var(--showroom-text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.showroom-root .overlay-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--showroom-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.showroom-root .overlay-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: var(--showroom-accent);
  font-weight: 600;
}

.showroom-root .overlay-link:hover,
.showroom-root .overlay-link:focus {
  background: #039dcb;
  color: #fff;
}

.showroom-root .overlay-link:focus-visible,
.showroom-root .overlay-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.showroom-fallback {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(90, 120, 150, 0.18);
  border-radius: 12px;
  background: #f6f9fc;
  color: #203040;
}

@media (max-width: 900px) {
  .showroom-root {
    --showroom-height: 72vh;
    --showroom-min-height: 520px;
  }

  .showroom-root .overlay {
    grid-template-columns: 1fr;
    max-height: 92%;
  }

  .showroom-root .overlay-visual {
    min-height: 220px;
    max-height: 42vh;
  }

  .showroom-root .hint {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 12px 14px;
    border-radius: 14px;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
  }
}

@media (max-width: 640px) {
  .showroom-root .overlay-backdrop {
    padding: 12px;
  }

  .showroom-root .overlay-content {
    padding: 18px;
    gap: 14px;
  }

  .showroom-root .overlay-description {
    font-size: 15px;
    line-height: 1.55;
  }
}