/*
 * Webcotec Portfolio Shell Clean Unify Patch 29
 * Safety CSS only. The header/footer HTML and primary styling come from the homepage.
 */

body.wcx-p29-portfolio-unified{
  margin:0!important;
}

/* Prevent the giant-logo issue if homepage CSS is blocked or scoped differently. */
body.wcx-p29-portfolio-unified [data-wcx-p29-home-header] img{
  max-width:140px!important;
  max-height:70px!important;
  height:auto!important;
  object-fit:contain!important;
}

body.wcx-p29-portfolio-unified [data-wcx-p29-home-footer] img{
  max-width:140px!important;
  max-height:90px!important;
  height:auto!important;
  object-fit:contain!important;
}

/* Keep the actual portfolio content in its original skin. */
body.wcx-p29-portfolio-unified .wcx-p29-portfolio-content{
  width:100%!important;
  min-height:50vh!important;
  display:block!important;
}

/* Remove accidental nested old shell if any old semantic tags remained inside content. */
body.wcx-p29-portfolio-unified .wcx-p29-portfolio-content > header,
body.wcx-p29-portfolio-unified .wcx-p29-portfolio-content > footer,
body.wcx-p29-portfolio-unified .wcx-p29-portfolio-content > nav{
  display:none!important;
}

/* If the homepage CSS does not style the cloned topbar/nav, this light safety net keeps it close to the actual homepage. */
body.wcx-p29-portfolio-unified [data-wcx-p29-home-header]{
  width:100%!important;
}

body.wcx-p29-portfolio-unified [data-wcx-p29-home-footer]{
  width:100%!important;
}

/* Never show old patch shells if cached fragments survive. */
body.wcx-p29-portfolio-unified [data-wcx-p28-home-shell],
body.wcx-p29-portfolio-unified [data-wcx-p27-shell],
body.wcx-p29-portfolio-unified [data-wcx-p26safe],
body.wcx-p29-portfolio-unified .wcx-p26-old-shell,
body.wcx-p29-portfolio-unified .wcx-p27-hide-old-shell{
  display:none!important;
}
