/* ==========================================================================
   AL13 – page responsive fixes (fix.css)
   File: wp-content/themes/all-child-theme/css/fix.css
   Loaded site-wide after Elementor CSS (see functions.php, priority 40).
   One block per page, own classes added in Elementor (Advanced → CSS Classes).
   ========================================================================== */


/* --------------------------------------------------------------------------
   /extrusion-kit/  (page 3933) — 2026-11-17
   Classes: ek-tools-row, ek-tools-img-col, ek-tools-img, ek-tools-box, ek-video-text
   -------------------------------------------------------------------------- */
@media (min-width:770px) and (max-width:1025px){
  .ek-tools-row .elementor-column.ek-tools-box > .elementor-widget-wrap.elementor-element-populated{
    margin-bottom:10px;
  }
  .ek-tools-row .ek-tools-img-col > .elementor-widget-wrap{
    align-content:stretch;
  }
  .ek-tools-row .ek-tools-img,
  .ek-tools-row .ek-tools-img > .elementor-widget-container{
    height:100%;
  }
  .ek-tools-row .ek-tools-img img{
    height:100%;
    object-fit:cover;
  }
}

/* 800 + mobile: inner spacing of grey text box under the video */
@media (max-width:1025px){
  .feature-page-wrap .elementor-column.ek-video-text > .elementor-widget-wrap.elementor-element-populated{
    padding:22px 0 4px;
  }
}

/* mobile: gap between video and grey text box */
@media (max-width:769px){
  .feature-page-wrap .elementor-column.ek-video-text{
    margin-top:20px;
    margin-bottom:0;
  }
}


/* --------------------------------------------------------------------------
   /plank-system/  (page 2782) — 2026-11-17
   Classes: ps-tablet-img, ps-colors-title-col, ps-colors-text-col,
            ps-projects-title, ps-projects-slider, ps-extrusions-title,
            ps-extrusions-slider, ps-accessories-title, ps-estimate-btn
   -------------------------------------------------------------------------- */
/* tablet image: srcset of attachment 10298 has broken 1000w+ entries (404) on high-DPR screens */
.ps-tablet-img img{content:url(/wp-content/uploads/2023/09/Rectangle-70-1.png);}

/* 800 + mobile: show extrusions slider scrollbar (was clipped by overflow:hidden) */
@media (max-width:1025px){
  .elementor-section.ps-extrusions-slider{overflow-x:clip;overflow-y:visible;}
}

/* 800 */
@media (min-width:770px) and (max-width:1025px){
  /* "Plank Systems / Colors & Finishes" */
  .elementor-2782 .elementor-section .elementor-column.ps-colors-title-col{width:62%;}
  .elementor-2782 .elementor-section .elementor-column.ps-colors-text-col{width:38%;}
  /* projects title must not run under slider arrows */
  .elementor-2782 .elementor-element.ps-projects-title{padding-right:200px;}
  /* space between text and button in "Get free estimates" */
  .elementor-2782 .elementor-element.ps-estimate-btn{margin-top:30px;}
}

/* mobile */
@media (max-width:769px){
  /* projects arrows aligned to last title line */
  .ps-projects-slider .elementor-column > .swiper-button-prev,
  .ps-projects-slider .elementor-column > .swiper-button-next{top:-51px !important;}
  /* section titles aligned with slider cards */
  .elementor-section.ps-extrusions-title,
  .elementor-section.ps-accessories-title{padding-left:15px !important;}
}


/* --------------------------------------------------------------------------
   /batten-system/  (page 9014) — 2026-11-17
   Classes: bs-tablet-img-l, bs-tablet-img-r, bs-colors-title-col,
            bs-colors-text-col, bs-estimate-btn
   -------------------------------------------------------------------------- */
/* 800 */
@media (min-width:770px) and (max-width:1025px){
  /* two images under intro text: same height (desktop ratio 649x400) */
  .elementor-9014 .elementor-element.bs-tablet-img-l img,
  .elementor-9014 .elementor-element.bs-tablet-img-r img{width:100%;height:auto;aspect-ratio:649/400;object-fit:cover;}
  /* "Colors & Finishes" in one line */
  .elementor-9014 .elementor-section .elementor-column.bs-colors-title-col{width:62%;}
  .elementor-9014 .elementor-section .elementor-column.bs-colors-text-col{width:38%;}
  /* space between text and button in "Get free estimates" */
  .elementor-9014 .elementor-element.bs-estimate-btn{margin-top:30px;}
}


/* --------------------------------------------------------------------------
   /francais/  (page 8882) — 2026-11-17
   Classes: fr-systems, fr-system-col-l/-m/-r, fr-sys-box, fr-plank-tech-img,
            fr-cta, fr-benefits, fr-img-cards, fr-batten-uses,
            fr-dl-btn-first, fr-dl-long-title
   -------------------------------------------------------------------------- */
/* 800: equal side margins — system cards, panel/plank/batten boxes, CTA boxes */
@media (min-width:770px) and (max-width:1025px){
	.elementor-8882 .elementor-section.elementor-element.fr-sys-box{
		padding-left:0;
		padding-right:0;
	}
	.elementor-8882 .fr-sys-box .elementor-column.elementor-element > .elementor-element-populated,
	.elementor-8882 .fr-systems .elementor-column.elementor-element > .elementor-element-populated,
	.elementor-8882 .fr-cta .elementor-column.elementor-element > .elementor-element-populated{
		margin-left:0;
		margin-right:0;
	}
	/* plank tech image stays inside the grey box */
	.elementor-8882 .elementor-widget.elementor-element.fr-plank-tech-img > .elementor-widget-container{
		margin-right:0;
	}
	.elementor-8882 .fr-systems .elementor-column.fr-system-col-l{ padding-right:10px; }
	.elementor-8882 .fr-systems .elementor-column.fr-system-col-m{ padding-left:5px; padding-right:5px; }
	.elementor-8882 .fr-systems .elementor-column.fr-system-col-r{ padding-left:10px; }
	.elementor-8882 .fr-cta .elementor-column.elementor-element{ width:50%; }
	.elementor-8882 .fr-cta .elementor-column.elementor-element:first-child{ padding-right:14px; }
	.elementor-8882 .fr-cta .elementor-column.elementor-element:last-child{ padding-left:14px; }
}
/* mobile: centered cards, images fit card width, inner padding, button below title */
@media (max-width:769px){
	.elementor-8882 .fr-systems .elementor-column.elementor-element > .elementor-element-populated,
	.elementor-8882 .fr-batten-uses .elementor-column.elementor-element > .elementor-element-populated{
		margin-left:0;
		margin-right:0;
	}
	.elementor-8882 .elementor-section.elementor-element.fr-batten-uses{
		padding-left:0;
		padding-right:0;
	}
	/* theme style.css zeroes widget side margins on this page -> stretch images over the 10px card padding */
	.elementor-8882 .fr-systems .elementor-widget-image.elementor-element img,
	.elementor-8882 .fr-img-cards .elementor-widget-image.elementor-element img{
		width:calc(100% + 20px);
		max-width:none;
		margin-left:-10px;
	}
	.elementor-8882 .fr-benefits .elementor-column.elementor-element > .elementor-element-populated{
		padding-left:20px;
		padding-right:20px;
	}
	.elementor-8882 .elementor-widget.fr-dl-btn-first{ order:1; }
}
/* 1400: long download titles wrap before the button */
@media (min-width:1026px){
	.elementor-8882 .elementor-widget.elementor-element.fr-dl-long-title{ padding-right:190px; }
}


/* --------------------------------------------------------------------------
   /panel-installation/  (page 9410) — 2026-11-17
   Classes: inst-video-box, inst-cta-row, inst-cta-col, inst-cta-title
   (shared "inst-" prefix — reusable on /plank-installation/, /batten-installation/)
   -------------------------------------------------------------------------- */
/* 800: video text boxes — top padding same as bottom */
@media (min-width:770px) and (max-width:1025px){
  .elementor-section .elementor-column.inst-video-box > .elementor-widget-wrap.elementor-element-populated{
    padding-top:21px;
  }
}
/* mobile: Contact us / Request a sample boxes — equal top and bottom padding */
@media (max-width:769px){
  .elementor-section.inst-cta-row .elementor-column.inst-cta-col > .elementor-widget-wrap.elementor-element-populated{
    padding-bottom:28px;
  }
  .elementor-section.inst-cta-row .elementor-element.inst-cta-title > .elementor-widget-container{
    margin-top:40px;
  }
}


/* --------------------------------------------------------------------------
   /plank-installation/  (page 9409) — 2026-11-17
   Classes: pli-video-row1, pli-video-row2
   (+ shared inst-video-box, inst-cta-row, inst-cta-col, inst-cta-title —
   800 top padding and mobile CTA padding come from the /panel-installation/ block)
   -------------------------------------------------------------------------- */
/* mobile: equal spacing between grey boxes and videos (20 / 50 / 20) */
@media (max-width:769px){
  .elementor-section.elementor-inner-section.elementor-element.pli-video-row1{
    padding-bottom:0 !important; /* theme .feature-page-wrap-row uses !important */
  }
  .elementor-section.elementor-inner-section.elementor-element.pli-video-row2{
    margin-top:0;
    padding-top:49px !important;
    padding-bottom:0 !important;
  }
  .elementor-section.pli-video-row1 .elementor-column.inst-video-box > .elementor-widget-wrap.elementor-element-populated,
  .elementor-section.pli-video-row2 .elementor-column.inst-video-box > .elementor-widget-wrap.elementor-element-populated{
    margin-bottom:10px;
  }
}


/* --------------------------------------------------------------------------
   /mockup-board/  (page 3396) — 2026-11-17
   Classes: mb-gallery-col, mb-gallery-btn, mb-cta-row, mb-cta-col, mb-cta-title
   -------------------------------------------------------------------------- */
/* mobile: "View Gallery" buttons centered; Contact us / Request a sample boxes — equal top and bottom padding */
@media (max-width:769px){
  .elementor-column.mb-gallery-col .elementor-element.mb-gallery-btn{
    width:100%;
    max-width:100%;
  }
  .elementor-column.mb-gallery-col .elementor-element.mb-gallery-btn > .elementor-widget-container{
    margin-left:0;
    margin-right:0;
  }
  .elementor-section.mb-cta-row .elementor-column.mb-cta-col > .elementor-widget-wrap.elementor-element-populated{
    padding-bottom:36px;
  }
  .elementor-section.mb-cta-row .elementor-element.mb-cta-title > .elementor-widget-container{
    margin-top:40px;
  }
}


/* --------------------------------------------------------------------------
   /colors/  (page 4945) — 2026-11-17
   Classes: col-title-r, col-title-tab, col-btn, col-card-title, col-downloads
   -------------------------------------------------------------------------- */
/* all widths: button padding (theme style.css sets padding:0 !important at <=1800px) */
.elementor-section .elementor-widget.col-btn a.elementor-button{padding:17.5px 45.5px !important;}
.MAC .elementor-section .elementor-widget.col-btn a.elementor-button{padding:19.5px 48px 15.5px 43px !important;}

/* 1400: space between "Colors & Finishes" title and the text on the right */
@media (min-width:1026px){
  .elementor-4945 .elementor-section .elementor-column.col-title-r > .elementor-element-populated{padding-left:40px;}
}

/* 800 + mobile: "Please note..." text below the title */
@media (max-width:1025px){
  .elementor-4945 .elementor-widget.col-title-tab{order:-1;}
}

/* mobile */
@media (max-width:769px){
  /* smaller button padding so the label stays in one line */
  .elementor-section .elementor-widget.col-btn a.elementor-button{padding:15.5px 32px !important;}
  .MAC .elementor-section .elementor-widget.col-btn a.elementor-button{padding:17.5px 34px 13.5px 30px !important;}
  /* "Can't find your color?" inside margin */
  .elementor-section .elementor-column .elementor-widget.col-card-title{padding:0 20px !important;}
  /* file size ("1.4 mb") moves to the next line as a whole */
  .col-downloads .sec-downloads-row-cr-title h3 span{white-space:nowrap;}
}


/* --------------------------------------------------------------------------
   /aia-course/  (page 3255) — 2026-11-17
   Classes: aia-lo-row, aia-video-col, aia-video, aia-prereq-photo (+ aia-prereq-img-col),
            aia-prereq-logo, aia-prereq-systems
   -------------------------------------------------------------------------- */
/* 800: video holder same height as the Learning Objectives box */
@media (min-width:770px) and (max-width:1025px){
  .aia-lo-row .aia-video-col > .elementor-widget-wrap,
  .aia-video-col .elementor-element.aia-video,
  .aia-video-col .aia-video > .elementor-widget-container{ height:100%; }
  .aia-video-col .aia-video.elementor-widget-video .elementor-wrapper{ aspect-ratio:auto; height:100%; }
  .aia-video-col .aia-video video{ height:100%; object-fit:cover; }
}

/* mobile: show the video above the Learning Objectives box */
@media (max-width:769px){
  .aia-lo-row .elementor-column.aia-video-col.elementor-hidden-mobile{ display:flex; order:-1; margin-bottom:40px; }
  .aia-video-col .elementor-element.aia-video.elementor-widget-video{ width:100%; max-width:100%; --container-widget-width:100%; }
}

/* Prerequisite photo block (all widths): clean photo = column background,
   AL13 logo on top, system logos at the bottom; height follows the grey box */
.elementor-column.aia-prereq-photo > .elementor-widget-wrap{ position:relative; overflow:hidden; border-radius:25px; flex-direction:column; flex-wrap:nowrap; align-content:stretch; }
.elementor-column.aia-prereq-photo > .elementor-widget-wrap::before{ content:""; position:absolute; inset:0; z-index:0; pointer-events:none; background:linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 60%, rgba(0,0,0,.25) 100%); }
.aia-prereq-photo .elementor-widget.aia-prereq-logo,
.aia-prereq-photo .elementor-widget.aia-prereq-systems{ position:relative; z-index:1; width:100%; margin:0; text-align:left; }
.aia-prereq-photo .elementor-widget.aia-prereq-logo{ padding:26px 24px 0; }
.aia-prereq-photo .aia-prereq-logo img{ width:100%; max-width:380px; height:auto; }
.aia-prereq-photo .elementor-widget.aia-prereq-logo + .aia-prereq-systems{ margin-top:auto; }
.aia-prereq-photo .elementor-widget.aia-prereq-systems{ padding:0 24px 16px; }
.aia-prereq-photo .elementor-widget.aia-prereq-systems:last-child{ padding-bottom:30px; }
.elementor-column.aia-prereq-photo .elementor-widget.aia-prereq-systems img{ width:auto; max-width:100%; height:38px; }
@media (min-width:770px) and (max-width:1025px){
  .aia-prereq-photo .elementor-widget.aia-prereq-logo{ padding:20px 16px 0; }
  .aia-prereq-photo .elementor-widget.aia-prereq-systems{ padding:0 16px 12px; }
  .aia-prereq-photo .elementor-widget.aia-prereq-systems:last-child{ padding-bottom:22px; }
  .elementor-column.aia-prereq-photo .elementor-widget.aia-prereq-systems img{ height:28px; }
}
@media (max-width:769px){
  .elementor-column.aia-prereq-photo > .elementor-widget-wrap{ min-height:440px; }
  .aia-prereq-photo .elementor-widget.aia-prereq-logo{ padding:22px 20px 0; }
  .aia-prereq-photo .elementor-widget.aia-prereq-systems{ padding:0 20px 12px; }
  .aia-prereq-photo .elementor-widget.aia-prereq-systems:last-child{ padding-bottom:24px; }
  .elementor-column.aia-prereq-photo .elementor-widget.aia-prereq-systems img{ height:30px; }
}
