.split-gallery {
    display: flex;
    flex-wrap: wrap;
    min-height: 60vh;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    box-sizing: border-box;
    color: #ffffff;
    background: #161f27;
}


.vertical-column {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1.7rem;
    font-weight: bold;
    letter-spacing: 0.2rem;
    color: #ffffff;
    display: flex;
}

/* Centrar contenido izquierdo */
.left-content {
    padding: 25px;
    flex: 1 1 250px;
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-content h2 {
    font-size: 34px;
    margin-bottom: 2rem;
    color: #f7efd4;
}

.left-content p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;

}

/* Galería derecha centrada */
.right-gallery {
    flex: 2 1 400px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-content: flex-start;
}

/* Ajustes para imágenes */
.img-c {
    width: 180px;
    height: 180px;
    margin: 0.25rem;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.img-c:hover {
    transform: scale(1.05);
    z-index: 2;
}

.img-c img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Popup overlay styles */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 9999;
}

.gallery-overlay.show {
    opacity: 1;
}

.img-popup {
    max-width: 90vw;
    max-height: 90vh;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-popup.show {
    opacity: 1;
    transform: scale(1);
}

.img-popup img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
    .split-gallery {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .left-content h2 {
        font-size: 28px;
    }

    .right-gallery {
        justify-content: center;
    }

    .img-c {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 600px) {
    .split-gallery {
        padding: 0.5rem;
    }

    .left-content {
        padding: 10px;
    }

    .img-c {
        width: 90px;
        height: 90px;
    }

    .img-popup img {
        max-height: 60vh;
    }

    .vertical-column {
        display: none;
    }
}