.popads-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0.5;
  z-index: 9998;
}
.popads-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.popads-wrap[data-pos="custom"] {
  transform: none;
}

.popads-head {
  padding: 10px 14px;
  font-weight: 700;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.popads-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.popads-body {
  position: relative;
  flex: 1;
  background: #000;
}
.popads-slider {
  height: 100%;
  width: 100%;
  position: relative;
}
.popads-slide {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popads-slide img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.popads-slide.is-active {
  opacity: 1;
}

.popads-foot {
  padding: 8px 12px;
  background: #1e1e1e;
  font-size: 13px;
}
.popads-foot label {
  cursor: pointer;
  user-select: none;
}

/* 기존 .popads-slide 정의 아래쪽에 추가/수정 */
.popads-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;

  /* ★ 비활성 슬라이드는 클릭 불가 */
  pointer-events: none;
  z-index: 0;
}

.popads-slide.is-active {
  opacity: 1;

  /* ★ 활성 슬라이드만 클릭 가능 + 최상단 */
  pointer-events: auto;
  z-index: 1;
}

/* a 태그가 슬라이드 전체를 안전하게 덮도록 */
.popads-slide a {
  display: block;
  width: 100%;
  height: 100%;
}
.popads-slide img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: 0 auto;
}
