/* ==========================================================================
   Native WordPress Gallery Section
   ========================================================================== */

.native-gallery-section {
    background-color: #ffffff;
    color: #ffffff;
    padding: 120px 20px;
    min-height: 80vh;
}

.native-gallery-container {
    max-width: 1440px;
    margin: 0 auto;
}

/* Page Heading Styling */
.native-gallery-container h1,
.native-gallery-container h2 {
    color: #ffffff;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

/* Style WP Core Gallery Block */
.wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wp-block-gallery .wp-block-image {
    margin: 0 !important;
    width: 100% !important;
    height: 260px !important;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #1a1d24;
}

.wp-block-gallery .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.06);
}

/* Captions Overlay */
.wp-block-gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #ffffff !important;
    font-size: 0.85rem;
    padding: 12px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-block-gallery .wp-block-image:hover figcaption {
    opacity: 1;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1200px) {
    .wp-block-gallery {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .wp-block-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .wp-block-gallery .wp-block-image {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .wp-block-gallery {
        grid-template-columns: 1fr !important;
    }
}