/**
 * IPSE Post Gallery Styles
 */

.ipse-post-gallery {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px; /* Ajusta según tu diseño */
    margin: 0 auto;
}

.ipse-gallery-grid {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Suavidad al mover */
    width: 100%;
}

.ipse-gallery-item {
    min-width: 90%; 
    margin-right: 20px; /* Espacio entre imágenes */
    box-sizing: border-box;
}

.ipse-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px; /* Opcional */
}

.ipse-gallery-item a:hover img {
    transform: scale(1.05);
}

.ipse-gallery-counter {
    display:none;
}

/* Lightbox overlay */
.ipse-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.ipse-lightbox-overlay.active {
    display: flex;
}

.ipse-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.ipse-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.ipse-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ipse-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.ipse-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    user-select: none;
}

.ipse-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.ipse-lightbox-prev {
    left: 20px;
}

.ipse-lightbox-next {
    right: 20px;
}

.ipse-lightbox-title {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
    max-width: 80%;
    text-align: center;
}
.ipse-gallery-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    font-family: sans-serif;
    font-weight: bold;
    color: #333;
}

/* Estilo de las flechas */
.nav-arrow {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #d32f2f; /* El ROJO de tu imagen */
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.nav-arrow:hover {
    transform: scale(1.2); /* Efecto al pasar el mouse */
}

@media (max-width: 768px) {
    .ipse-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .ipse-lightbox-nav {
        font-size: 40px;
        width: 50px;
        height: 50px;
    }
    
    .ipse-lightbox-close {
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}
