.ad-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000;
}

.ad-modal.is-open {
    display: flex;
}

.ad-modal__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-modal__slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-modal__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.ad-modal__slide.is-active {
    opacity: 1;
}

.ad-modal__slide img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.08);
}

.ad-modal__video-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-modal__video-wrap video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    outline: none;
}

.ad-modal__progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10001;
}

.ad-modal__progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width linear;
}

.ad-modal__dots {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10001;
}

.ad-modal__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.3s;
}

.ad-modal__dot.is-active {
    background: #fff;
}

body.ad-modal-open {
    overflow: hidden;
}
