g {
    font-family: "Courier Prime", monospace;
    font-size: 20px;
    color: #2b2504;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Fondo oscuro semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.8s ease;
}

.modal-content {
    background: linear-gradient(
        135deg,
        var(--color-tape) 0%,
        rgba(232, 213, 190) 100%
    );
    padding: 10px;
    border-radius: 9px;
    width: 85%;
    max-width: 800px;
    max-height: 500px;
    position: relative;
    border: 1px solid #333;
    box-shadow: 30px 30px rgba(0, 0, 0, 0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
}

.media-viewer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

.media-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    height: 400px; /* Altura fija para el visor */
}

.media-container img,
.media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Mantiene proporción sin recortar */
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.media-counter {
    font-family: times-new-roman;
    text-align: center;
    color: #2b2504;
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
