/**
 * Theme Name:  FWRD Child - Ultimate Creative WP Theme
 * Theme URI:   http://irontemplates.com/wp-demos/fwrd/
 * Description: FWRD a complete solution for everybody in the creative industry. If you are anyone, this theme is for you.
 *
 * Author:      IronTemplates
 * Author URI:  http://irontemplates.com
 *
 * Version:     1.0
 * Template:    fwrd
 * Text Domain: fwrd-child
 *
 * License:     GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 *
 */
 
 @import url("../fwrd/style.css");

/* =Theme customization starts here
-------------------------------------------------------------- */

/* Homepage hero: include existing padding in the viewport minimum; allow content to grow. */
body.home.page-id-50 #wrapper .vc_custom_1759685717501 {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
}

/* Main pages: let the page, not every section, fill the viewport. */
body:is(.page-id-50, .page-id-4135, .page-id-4714, .page-id-4965, .page-id-47, .page-id-4172) #pusher {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body:is(.page-id-50, .page-id-4135, .page-id-4714, .page-id-4965, .page-id-47, .page-id-4172) :is(#pusher-wrap, .pjax-container, #wrapper, #wrapper > .container, #wrapper > .container > article, article > .entry, .entry > .wpb-content-wrapper) {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
body:is(.page-id-50, .page-id-4135, .page-id-4714, .page-id-4965, .page-id-47, .page-id-4172) .wpb-content-wrapper > .vc_row {
  width: 100%;
  box-sizing: border-box;
}
body:is(.page-id-50, .page-id-4135, .page-id-4714, .page-id-4965, .page-id-47, .page-id-4172) #footer {
  flex: 0 0 auto;
}
/* Only photographic intro sections absorb spare height. Grids keep their natural geometry. */
body:is(.page-id-4135, .page-id-47, .page-id-4172) .wpb-content-wrapper > .vc_row:first-child {
  flex-grow: 1;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  /* Replace the fixed 140/170px offset with a proportional offset on narrow screens. */
  body.page-id-50 #wrapper .inner-text {
    padding-left: min(140px, 25vw) !important;
  }
  /* Desktop side margins otherwise leave just 150-220px for the contact details. */
  body.page-id-4172 #wrapper .vc_custom_1760985452144 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-wrap: anywhere;
  }
}

/* Extend the existing gallery background only; retain the grid and image dimensions. */
body:is(.page-id-4714, .page-id-4965) .wpb-content-wrapper > .vc_row {
  flex-grow: 1;
}
