/* ==========================================================================
   Gallery Page Stylesheet
   ========================================================================== */

.gallery-page-main {
    position: relative;
    background-color: #ffffff;
    padding: 150px 0 100px 0; /* Clears fixed header, adds bottom padding */
    box-sizing: border-box;
}

.gallery-page-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 45px;
}

.gallery-page-header {
    margin-bottom: 40px;
}

.gallery-page-title {
    font-family: 'Manrope', sans-serif;
    font-size: 80px; /* matched user change: 80px */
    font-weight: 700; /* bold */
    color: #171717;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gallery-page-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0 0 60px 0;
}

.gallery-content-area {
    width: 100%;
}

/* Style default WP Gallery grid (Shortcode and Gutenberg Block) */
.gallery-content-area .gallery,
.gallery-content-area .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.gallery-content-area .gallery-item,
.gallery-content-area .wp-block-gallery .wp-block-image,
.gallery-content-area .wp-block-image {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.gallery-content-area .gallery-item:hover,
.gallery-content-area .wp-block-gallery .wp-block-image:hover,
.gallery-content-area .wp-block-image:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.gallery-content-area .gallery-icon img,
.gallery-content-area .wp-block-gallery .wp-block-image img,
.gallery-content-area .wp-block-image img,
.gallery-content-area img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px !important;
    transition: transform 0.5s ease !important;
}

.gallery-content-area .gallery-item:hover img,
.gallery-content-area .wp-block-gallery .wp-block-image:hover img,
.gallery-content-area .wp-block-image:hover img {
    transform: scale(1.03) !important;
}

/* Support standard aligned images inside the block editor */
.gallery-content-area figure {
    margin: 0 0 30px 0;
}

.gallery-content-area figcaption,
.gallery-content-area .gallery-caption {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(23, 23, 23, 0.6);
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

/* Responsive settings */
@media (max-width: 991px) {
    .gallery-page-main {
        padding: 120px 0 80px 0;
    }
    
    .gallery-page-container {
        padding: 0 24px;
    }
    
    .gallery-page-title {
        font-size: 60px;
    }
    
    .gallery-content-area .gallery,
    .gallery-content-area .wp-block-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .gallery-content-area .gallery-icon img,
    .gallery-content-area .wp-block-gallery .wp-block-image img,
    .gallery-content-area .wp-block-image img,
    .gallery-content-area img {
        height: 220px !important;
    }
}

@media (max-width: 767px) {
    .gallery-page-title {
        font-size: 48px;
    }
    
    .gallery-content-area .gallery,
    .gallery-content-area .wp-block-gallery {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}
