/**
 * CloudGO News Gallery Only Picture Widget Styles
 * File: cloudgo-news-gallery-only-picture.css
 */

/* Base Section Styles */
.section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture {
    background: #1b74e4;
    padding: 80px 0;
}

.section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture.no-background {
    background: transparent;
}

.section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture .events-section {
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
}

/* Header Styles */
.section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture .main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture .main-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 60px;
    font-family: 'Roboto', sans-serif;
}

/* Gallery Container */
/* .cloudgo-news-gallery-only-picture .gallery-container .desktop-only {
    display: block;
} */

.cloudgo-news-gallery-only-picture .gallery-container .mobile-only {
    display: none;
}

/* Gallery Grid */
.cloudgo-news-gallery-only-picture .gallery-grid {
    display: flex;
    gap: 20px;
}

/* Gallery Columns */
.cloudgo-news-gallery-only-picture .gallery-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

/* Gallery Item Styles */
.cloudgo-news-gallery-only-picture .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.cloudgo-news-gallery-only-picture .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cloudgo-news-gallery-only-picture .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.cloudgo-news-gallery-only-picture .gallery-item:hover img {
    transform: scale(1.05);
}

/* Masonry-like effect for different columns */
.cloudgo-news-gallery-only-picture .gallery-column:first-child .gallery-item:nth-child(odd) img {
    min-height: 250px;
}

.cloudgo-news-gallery-only-picture .gallery-column:nth-child(2) .gallery-item:nth-child(even) img {
    min-height: 280px;
}

.cloudgo-news-gallery-only-picture .gallery-column:nth-child(3) .gallery-item:nth-child(3n+1) img {
    min-height: 260px;
}

.cloudgo-news-gallery-only-picture .gallery-column:nth-child(4) .gallery-item:nth-child(2) img {
    min-height: 270px;
}

/* Responsive masonry adjustments */
@media (max-width: 1024px) {
    .cloudgo-news-gallery-only-picture .gallery-column .gallery-item img {
        min-height: 200px;
    }
}

/* Aspect Ratio Support */
.cloudgo-news-gallery-only-picture .gallery-item.aspect-ratio-1-1 {
    aspect-ratio: 1/1;
}

.cloudgo-news-gallery-only-picture .gallery-item.aspect-ratio-4-3 {
    aspect-ratio: 4/3;
}

.cloudgo-news-gallery-only-picture .gallery-item.aspect-ratio-3-2 {
    aspect-ratio: 3/2;
}

.cloudgo-news-gallery-only-picture .gallery-item.aspect-ratio-16-9 {
    aspect-ratio: 16/9;
}

.cloudgo-news-gallery-only-picture .gallery-item[class*="aspect-ratio"] img {
    height: 100%;
}

/* Swiper Styles */
/* .cloudgo-news-gallery-only-picture .gallery-swiper {
    width: 100%;
    overflow: visible;
} */

.cloudgo-news-gallery-only-picture .gallery-swiper .swiper-wrapper {
    align-items: stretch;
}

.cloudgo-news-gallery-only-picture .gallery-swiper .swiper-slide {
    height: auto;
}

.cloudgo-news-gallery-only-picture .swiper-pagination {
    margin-top: 20px;
    position: relative;
    bottom: auto;
}

.cloudgo-news-gallery-only-picture .swiper-pagination .swiper-pagination-bullet {
    background: #007cba;
    opacity: 0.3;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.cloudgo-news-gallery-only-picture .swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Loading States */
.cloudgo-news-gallery-only-picture .gallery-item img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cloudgo-news-gallery-only-picture .gallery-item img[loading="lazy"].loaded {
    opacity: 1;
}

/* No Images State */
.cloudgo-news-gallery-no-images {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-family: 'Roboto', sans-serif;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture .main-title {
        font-size: 2.5rem;
    }

    .section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture .main-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .cloudgo-news-gallery-only-picture .gallery-grid {
        gap: 15px;
    }

    .cloudgo-news-gallery-only-picture .gallery-column {
        gap: 15px;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture {
        padding: 60px 0;
    }

    .section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture .main-title {
        font-size: 2rem;
    }

    .section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture .main-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Mobile Swiper Display */
    .cloudgo-news-gallery-only-picture .gallery-container.swiper-enabled .desktop-only {
        display: none;
    }

    .cloudgo-news-gallery-only-picture .gallery-container.swiper-enabled .mobile-only {
        display: block;
    }

    /* Fallback Grid for Non-Swiper Mobile */
    .cloudgo-news-gallery-only-picture .gallery-container:not(.swiper-enabled) .gallery-grid {
        flex-direction: column;
        gap: 15px;
    }

    .cloudgo-news-gallery-only-picture .gallery-container:not(.swiper-enabled) .gallery-column {
        gap: 15px;
    }

    .cloudgo-news-gallery-only-picture .gallery-item {
        border-radius: 6px;
    }

    .cloudgo-news-gallery-only-picture .gallery-item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture {
        padding: 40px 0;
    }

    .section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture .main-title {
        font-size: 1.8rem;
    }

    .cloudgo-news-gallery-only-picture .gallery-grid {
        gap: 12px;
    }

    .cloudgo-news-gallery-only-picture .swiper-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cloudgo-news-gallery-only-picture .gallery-item.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* High-DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cloudgo-news-gallery-only-picture .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture.no-background {
        background: #1a1a1a;
    }

    .section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture.no-background .main-title {
        color: #fff;
    }

    .section-cloudgo-go-di-muon-noi.cloudgo-news-gallery-only-picture.no-background .main-subtitle {
        color: rgba(255, 255, 255, 0.8);
    }
}
