.elementor-6642 .elementor-element.elementor-element-7f1fa24{--display:flex;}.elementor-6642 .elementor-element.elementor-element-7f1fa24:not(.elementor-motion-effects-element-type-background), .elementor-6642 .elementor-element.elementor-element-7f1fa24 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#F9E8ED;}.elementor-6642 .elementor-element.elementor-element-fa13233 .gallery-item .gallery-caption{text-align:center;}.elementor-6642 .elementor-element.elementor-element-fa13233 > .elementor-widget-container{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}.elementor-6642 .elementor-element.elementor-element-fa13233.elementor-element{--order:99999 /* order end hack */;}/* Start custom CSS for image-gallery, class: .elementor-element-fa13233 *//* Press Clippings Gallery Layout */
.press-clippings-gallery .gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Gallery item */
.press-clippings-gallery .gallery-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

/* Uniform image dimensions */
.press-clippings-gallery .gallery-item img {
    width: 100% !important;
    height: 380px !important;
    object-fit: contain !important;
    display: block;
}

/* Tablet */
@media (max-width: 1024px) {
    .press-clippings-gallery .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .press-clippings-gallery .gallery {
        grid-template-columns: 1fr !important;
    }
}



/* =================================
   JAISON'S ACADEMY - PHOTO GALLERY
================================= */

/* Gallery Grid */
.modern-school-gallery .gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 25px !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Gallery Card */
.modern-school-gallery .gallery-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

/* Image */
.modern-school-gallery .gallery-item img {
    display: block;
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

/* Hover */
.modern-school-gallery .gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.13);
}

.modern-school-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

/* Captions */
.modern-school-gallery .gallery-caption {
    padding: 14px;
    color: #252438;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

/* Tablet */
@media (max-width: 1024px) {
    .modern-school-gallery .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .modern-school-gallery .gallery {
        grid-template-columns: 1fr !important;
    }

    .modern-school-gallery .gallery-item img {
        height: 230px !important;
    }
}/* End custom CSS */