/*
 * Lucaffè Full Width System
 * Headerio ir navigacijos konteineriai sąmoningai nekeičiami.
 */

html{
  overflow-x:clip;
}

body.lcfw-enabled{
  --lcfw-screen-width:100vw;
  overflow-x:clip!important;
}

/* WoodMart ir dažniausių WordPress temų pagrindinis turinio apvalkalas */
body.lcfw-enabled .main-page-wrapper,
body.lcfw-enabled .page-wrapper,
body.lcfw-enabled .site-content,
body.lcfw-enabled .content-area,
body.lcfw-enabled main.site-main{
  width:100%!important;
  max-width:none!important;
  overflow:visible!important;
}

/* Nuimamas tik pagrindinio puslapio / turinio konteinerio ribojimas.
   Headerio .container neliečiamas. */
body.lcfw-enabled .main-page-wrapper > .container,
body.lcfw-enabled .main-page-wrapper > .container-fluid,
body.lcfw-enabled .site-content > .container,
body.lcfw-enabled .site-main > .container,
body.lcfw-enabled .content-layout-wrapper,
body.lcfw-enabled .wd-content-layout,
body.lcfw-enabled .wd-page-content,
body.lcfw-enabled .page-content > .container{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* Pagrindinė turinio kolona turi užimti visą plotį */
body.lcfw-enabled .site-content,
body.lcfw-enabled .content-area,
body.lcfw-enabled .wd-content-area{
  flex:0 0 100%!important;
  width:100%!important;
  max-width:100%!important;
  padding-left:0!important;
  padding-right:0!important;
}

body.lcfw-enabled article.page,
body.lcfw-enabled article.page > .entry-content,
body.lcfw-enabled .page .entry-content,
body.lcfw-enabled .wpb-content-wrapper,
body.lcfw-enabled .elementor-location-single,
body.lcfw-enabled .elementor-location-archive{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}

/*
 * Visi mūsų sukurti Lucaffè blokai priverstinai „išsilieja“
 * iš bet kokio likusio temos max-width konteinerio.
 */
body.lcfw-enabled :is(
  .lhx-page,
  .lsp-page,
  .lce-fullbleed,
  .lca-fullbleed,
  .premium-promo-page,
  .official-lucaffe-section,
  .lucaffe-separate-premium,
  .lucaffe-testimonials,
  .lucaffe-about-seo,
  .lpf-shell,
  .lp-brand-section,
  .facts-grid
){
  width:var(--lcfw-screen-width)!important;
  max-width:var(--lcfw-screen-width)!important;
  margin-left:calc((100% - var(--lcfw-screen-width))/2)!important;
  margin-right:calc((100% - var(--lcfw-screen-width))/2)!important;
  border-radius:0!important;
}

/* Pagrindinio puslapio judanti juosta – visada per visą ekraną */
body.lcfw-enabled.home :is(
  .lhx-marquee,
  .premium-marquee-wrap,
  .lsp-marquee,
  .premium-marquee-wrap,
  .premium-track
){
  max-width:none!important;
  border-radius:0!important;
}

body.lcfw-enabled.home :is(
  .lhx-marquee,
  .premium-marquee-wrap,
  .lsp-marquee
){
  width:var(--lcfw-screen-width)!important;
  margin-left:calc((100% - var(--lcfw-screen-width))/2)!important;
  margin-right:calc((100% - var(--lcfw-screen-width))/2)!important;
}

/* Panaikinami nereikalingi balti kraštai aplink pilno pločio bloką */
body.lcfw-enabled .entry-content > :is(
  .lhx-page,
  .lsp-page,
  .lce-fullbleed,
  .lca-fullbleed,
  .premium-promo-page,
  .official-lucaffe-section,
  .lucaffe-separate-premium,
  .lucaffe-testimonials,
  .lucaffe-about-seo,
  .lpf-shell
):first-child{
  margin-top:0!important;
}

body.lcfw-enabled .entry-content > :is(
  .lhx-page,
  .lsp-page,
  .lce-fullbleed,
  .lca-fullbleed,
  .premium-promo-page,
  .official-lucaffe-section,
  .lucaffe-separate-premium,
  .lucaffe-testimonials,
  .lucaffe-about-seo,
  .lpf-shell
):last-child{
  margin-bottom:0!important;
}

/* Gutenberg ir Elementor full-width palaikymas */
body.lcfw-enabled .alignfull,
body.lcfw-enabled .wp-block-group.alignfull,
body.lcfw-enabled .elementor-section-stretched,
body.lcfw-enabled .e-con.e-con-full{
  width:var(--lcfw-screen-width)!important;
  max-width:var(--lcfw-screen-width)!important;
  margin-left:calc((100% - var(--lcfw-screen-width))/2)!important;
  margin-right:calc((100% - var(--lcfw-screen-width))/2)!important;
}

/*
 * Standartiniai WooCommerce techniniai puslapiai išlaiko patogų vidinį plotį,
 * nors jų fonas ir išorinis puslapis lieka pilno pločio.
 */
body.lcfw-enabled.woocommerce-cart .woocommerce,
body.lcfw-enabled.woocommerce-checkout .woocommerce,
body.lcfw-enabled.woocommerce-account .woocommerce,
body.lcfw-enabled.single-product .site-content > .product,
body.lcfw-enabled.single-product div.product{
  width:min(1380px,calc(100% - 40px))!important;
  max-width:1380px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Telefonuose nelieka temos šoninių tarpų */
@media(max-width:768px){
  body.lcfw-enabled .main-page-wrapper > .container,
  body.lcfw-enabled .site-content > .container,
  body.lcfw-enabled .content-layout-wrapper,
  body.lcfw-enabled .wd-content-layout{
    padding-left:0!important;
    padding-right:0!important;
  }

  body.lcfw-enabled :is(
    .lhx-page,
    .lsp-page,
    .lce-fullbleed,
    .lca-fullbleed,
    .premium-promo-page,
    .official-lucaffe-section,
    .lucaffe-separate-premium,
    .lucaffe-testimonials,
    .lucaffe-about-seo,
    .lpf-shell
  ){
    width:var(--lcfw-screen-width)!important;
    max-width:var(--lcfw-screen-width)!important;
  }
}

/* CSS atsarginė reikšmė naršyklėms be JS */
@supports(width:100dvw){
  body.lcfw-enabled{
    --lcfw-screen-width:100dvw;
  }
}
