.wdm-sg {
  --wdm-sg-stage: 70vh;
  --wdm-sg-thumb: 88px;
  --wdm-sg-gap: 8px;
  --wdm-sg-accent: #111;
  --wdm-sg-muted: #6b6b6b;
  --wdm-sg-bg: #ffffff;
  max-width: 100%;
}
.wdm-sg-stage {
  position: relative;
  background: var(--wdm-sg-bg);
  min-height: min(var(--wdm-sg-stage), 80vh);
  height: var(--wdm-sg-stage);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}
.wdm-sg-main {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.wdm-sg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}
.wdm-sg-nav:hover {
  background: #fff;
}
.wdm-sg-prev { left: 12px; }
.wdm-sg-next { right: 12px; }
.wdm-sg-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
}
.wdm-sg-strip-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.wdm-sg-strip {
  display: flex;
  gap: var(--wdm-sg-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  flex: 1;
  padding: 2px 0 6px;
  scrollbar-width: thin;
}
.wdm-sg-strip::-webkit-scrollbar {
  height: 6px;
}
.wdm-sg-strip::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.wdm-sg img {
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  padding: 0 !important;
}
.elementor-widget .wdm-sg .wdm-sg-thumb,
.elementor .wdm-sg .wdm-sg-thumb,
.wdm-sg .wdm-sg-thumb {
  box-sizing: border-box;
  flex: 0 0 var(--wdm-sg-thumb);
  width: var(--wdm-sg-thumb);
  height: var(--wdm-sg-thumb);
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  overflow: hidden;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: inherit !important;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  opacity: 1;
  filter: none;
}
.wdm-sg .wdm-sg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border: 0 !important;
  box-shadow: none !important;
}
.wdm-sg .wdm-sg-thumb-ring {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  box-shadow: none;
  border-radius: 4px;
}
.wdm-sg .wdm-sg-thumb.is-active .wdm-sg-thumb-ring,
.elementor .wdm-sg .wdm-sg-thumb.is-active .wdm-sg-thumb-ring {
  box-shadow:
    inset 0 0 0 4px #111,
    inset 0 0 0 5px #fff;
}
.wdm-sg-strip-nav {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #222;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.wdm-sg-strip-nav:hover {
  border-color: #999;
}
.wdm-sg-empty {
  padding: 12px;
  background: #fff8e5;
  border: 1px solid #f0c36d;
}
@media (max-width: 640px) {
  .wdm-sg-stage {
    height: min(55vh, 420px);
    min-height: 220px;
  }
  .wdm-sg-nav {
    width: 36px;
    height: 36px;
  }
}
