.elementor-6904 .elementor-element.elementor-element-739a6153{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-widget-gallery .elementor-gallery-item__title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-gallery .elementor-gallery-item__description{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-widget-gallery{--galleries-title-color-normal:var( --e-global-color-primary );--galleries-title-color-hover:var( --e-global-color-secondary );--galleries-pointer-bg-color-hover:var( --e-global-color-accent );--gallery-title-color-active:var( --e-global-color-secondary );--galleries-pointer-bg-color-active:var( --e-global-color-accent );}.elementor-widget-gallery .elementor-gallery-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-6904 .elementor-element.elementor-element-dc4dbbc .e-gallery-item:hover .elementor-gallery-item__overlay, .elementor-6904 .elementor-element.elementor-element-dc4dbbc .e-gallery-item:focus .elementor-gallery-item__overlay{background-color:rgba(0,0,0,0.5);}.elementor-6904 .elementor-element.elementor-element-dc4dbbc{--image-transition-duration:800ms;--overlay-transition-duration:800ms;--content-text-align:center;--content-padding:20px;--content-transition-duration:800ms;--content-transition-delay:800ms;}@media(max-width:767px){.elementor-6904 .elementor-element.elementor-element-739a6153{--min-height:0px;}}/* Start custom CSS for gallery, class: .elementor-element-dc4dbbc *//* =========================================
   POOL LIFE: ELITE RESTORATION V5 (RESPONSIVE FIX)
   ========================================= */

/* 1. CONTAINER RESET */
.pl-elite-gallery .elementor-gallery-item {
    border-radius: 0px !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer !important;
}

/* 2. THE IMAGE (Cinematic Zoom) */
.pl-elite-gallery .elementor-gallery-item__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transform: scale(1.0) !important;
}

/* 3. THE OVERLAY (Gradient Curtain) */
.pl-elite-gallery .elementor-gallery-item__overlay {
    background-color: transparent !important; 
    background-image: linear-gradient(to top, 
        rgba(0,0,0,0.95) 0%, 
        rgba(65, 108, 170, 0.8) 50%, 
        rgba(65, 108, 170, 0.0) 100%) !important;
    
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

/* 4. CONTENT ALIGNMENT (Force to Bottom) */
.pl-elite-gallery .elementor-gallery-item__content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important; 
    height: 100% !important;
    /* Default Padding for Desktop */
    padding-bottom: 30px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 5. THE CAPTION (Typography) */
.pl-elite-gallery .elementor-gallery-item__title {
    font-family: 'niveau-grotesk', sans-serif !important;
    font-size: 11px !important; 
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    line-height: 1.4 !important; /* Tighter leading */
    color: #ffffff !important;
    text-align: center !important;
    margin: 0 !important;
    
    /* Animation Start */
    transform: translateY(20px) !important;
    opacity: 0 !important;
    transition: all 0.5s ease 0.1s !important;
}

/* 6. THE BLUE ACCENT LINE */
.pl-elite-gallery .elementor-gallery-item__title::after {
    content: '';
    display: block;
    width: 0px;
    height: 2px;
    background: #416CAA;
    margin: 10px auto 0 auto !important;
    transition: width 0.4s ease 0.1s !important;
}

/* --- HOVER ACTIONS --- */
.pl-elite-gallery .elementor-gallery-item:hover .elementor-gallery-item__image { transform: scale(1.1) !important; }
.pl-elite-gallery .elementor-gallery-item:hover .elementor-gallery-item__overlay { opacity: 1 !important; }
.pl-elite-gallery .elementor-gallery-item:hover .elementor-gallery-item__title { transform: translateY(0) !important; opacity: 1 !important; }
.pl-elite-gallery .elementor-gallery-item:hover .elementor-gallery-item__title::after { width: 40px !important; }


/* =========================================
   RESPONSIVE SAFETY ENGINE
   (Prevents text cutoff on Laptop/Tablet)
   ========================================= */

@media (max-width: 1366px) {
    /* 1. Reduce text size slightly on laptops */
    .pl-elite-gallery .elementor-gallery-item__title {
        font-size: 9px !important; 
        letter-spacing: 1px !important;
    }
    /* 2. Reduce padding to give text more room */
    .pl-elite-gallery .elementor-gallery-item__content {
        padding-bottom: 20px !important; 
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    /* 3. Tighten the blue line gap */
    .pl-elite-gallery .elementor-gallery-item__title::after {
        margin: 6px auto 0 auto !important;
    }
}

@media (max-width: 767px) {
    /* MOBILE: Since you have 1 column, we have plenty of room! */
    /* Restore sizes for readability */
    .pl-elite-gallery .elementor-gallery-item__title {
        font-size: 11px !important;
        letter-spacing: 2px !important;
        padding: 0 10px !important;
    }
    .pl-elite-gallery .elementor-gallery-item__content {
        padding-bottom: 30px !important;
    }
}/* End custom CSS */