/* WW Stories — полноэкранный просмотр */

.ww-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #000;
    display: none;
}
.ww-fullscreen.is-open {
    display: block;
}

.ww-fs-media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ww-fs-img {
    max-width: min(480px, 100vw);
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ww-fs-bars {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 2;
}
.ww-fs-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, .35);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}
.ww-fs-fill {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}
.ww-fs-fill.is-done {
    width: 100%;
}
@keyframes ww-fs-progress {
    from { width: 0; }
    to   { width: 100%; }
}

.ww-fs-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    text-align: center;
    color: #fff;
    font-size: 16px;
    padding: 0 24px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
    z-index: 2;
    pointer-events: none;
}

.ww-fs-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 64px;
    background: #fff;
    color: #111;
    padding: 8px 18px;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 600;
    z-index: 2;
}

.ww-fs-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    background: none;
    border: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    padding: 6px 12px;
    cursor: pointer;
}

.ww-fs-zone {
    position: absolute;
    top: 60px;
    bottom: 0;
    width: 30%;
    z-index: 1;
    cursor: pointer;
}
.ww-fs-prev { left: 0; }
.ww-fs-next { left: 70%; }
