#novobox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: system-ui, -apple-system, sans-serif;
}

/* --- Botão de fechar (X) --- */
.novobox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(30, 30, 30, 0.7);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 0;
    margin: 0;
}
.novobox-close:hover {
    background: rgba(60, 60, 60, 0.9);
}
.novobox-close svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

/* --- Temporizador circular (SEMPRE visível) --- */
.novobox-timer-container {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.novobox-timer-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.novobox-timer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.novobox-timer-ring circle {
    fill: transparent;
    stroke-width: 4;
}

.novobox-timer-ring-bg {
    stroke: rgba(255, 255, 255, 0.12);
}

.novobox-timer-ring-progress {
    stroke: #ffffff; /* Cor fixa em branco */
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    transition: stroke-dashoffset 0.03s linear;
}

/* --- Play/Pause --- */
.novobox-play-pause {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 2;
    padding: 0;
    margin: 0;
}
.novobox-play-pause:hover {
    background: rgba(255, 255, 255, 0.1);
}

.novobox-icon {
    width: 18px;
    height: 18px;
}

/* --- Contador de fotos --- */
.novobox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: bold;
}

/* --- Setas de navegação --- */
.novobox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 60px;
    height: 100px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}
.novobox-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}
.novobox-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.novobox-arrow.prev { left: 30px; }
.novobox-arrow.next { right: 30px; }

.novobox-arrow svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* --- Imagem com transição suave --- */
.novobox-image-container {
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.novobox-image-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}