.frame9-collage {
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    position: relative;
    min-height: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.frase-frame9 {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.oscuro-frame9 {
    color: #1a1033;
}

.resaltado-frame9 {
    background-color: #ffb42d;
    color: white;
    padding: 0 10px;
    border-radius: 2px;
}

.collage-frame9 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 1000px;
    z-index: 2;
}

.collage-frame9 img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.collage-frame9 img:hover {
    transform: scale(1.02);
}

.boton-prueba-frame9 {
    margin-top: 40px;
    background-color: #f8f44b;
    color: #ff0080;
    font-weight: bold;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.boton-prueba-frame9:hover {
    background-color: #e6e143;
}

/* === LIGHTBOX ESTILO MODERNO === */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.lightbox-overlay.show {
    display: flex;
}

.lightbox-overlay::after {
    content: "✖";
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2em;
    cursor: pointer;
}

@media (max-width: 768px) {
    .frase-frame9 {
        font-size: 1.5em;
    }

    .collage-frame9 {
        grid-template-columns: 1fr 1fr;
    }

    .boton-prueba-frame9 {
        font-size: 1em;
        padding: 12px 20px;
    }
}