/* ========================================
   POST IMAGES - CSS STYLES
   ======================================== */

/* Imagens fluidas nos posts */
.post-content-text img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1.5rem auto;
    object-fit: contain;
}

/* Remove estilos inline das imagens */
.post-content-text img[style] {
    width: 100% !important;
    height: auto !important;
}

/* Imagens com classes específicas do WordPress */
.post-content-text .alignnone,
.post-content-text .aligncenter,
.post-content-text .alignleft,
.post-content-text .alignright {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* Gallery Slider Styles */
.gallery {
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 2rem 0;
}

.gallery-item {
    margin: 0;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
}

.gallery-icon {
    position: relative;
    overflow: hidden;
}

.gallery-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Legendas da galeria */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Responsividade para imagens */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.8rem;
    }
    
    .post-content-text img {
        margin: 1rem auto;
    }
    
    .gallery-caption {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .post-content-text img {
        margin: 0.8rem auto;
    }
}

/* Slider da galeria */
.gallery-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-slider-container {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-slide-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    min-height: 300px;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-slide-caption {
    background: #fff;
    color: #333;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
    margin: 0;
}

.gallery-slide-caption p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Navigation Controls - Apenas Setas */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

.gallery-nav.prev::before {
    content: '‹';
    font-weight: bold;
}

.gallery-nav.next::before {
    content: '›';
    font-weight: bold;
}

/* Remover completamente os indicators */
.gallery-indicators {
    display: none !important;
}

.gallery-indicator {
    display: none !important;
}

.gallery-indicator.active {
    display: none !important;
}

/* Responsividade do slider */
@media (max-width: 768px) {
    .gallery-slide-caption {
        padding: 1rem 1.5rem;
    }
    
    .gallery-slide-caption p {
        font-size: 0.8rem;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-nav.prev {
        left: 10px;
    }
    
    .gallery-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-slide-caption {
        padding: 0.8rem 1rem;
    }
    
    .gallery-slide-caption p {
        font-size: 0.75rem;
    }
    
    .gallery-indicators {
        bottom: 15px;
    }
    
    .gallery-indicator {
        width: 10px;
        height: 10px;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}