/* Flexbox */
.flexbox-support .upfront-modules_container > .upfront-editable_entities_container,
.flexbox-support .upfront-module-group > .upfront-editable_entities_container,
.flexbox-support .upfront-editable_entities_container > .upfront-wrapper,
.flexbox-support .upfront-grid-layout,
.flexbox-support .upfront-region,
.flexbox-support .upfront-region > .upfront-region-wrapper
 {
 	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: row;
	flex-direction: row;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-align-items: flex-start;
	align-items: flex-start;
	-webkit-align-content: flex-start;
	align-content: flex-start;
}
.flexbox-support .upfront-grid-layout {
	-webkit-align-items: stretch;
	align-items: stretch;
}
.flexbox-support .upfront-region,
.flexbox-support .upfront-region > .upfront-region-wrapper {
	-webkit-flex-wrap: nowrap;
	flex-wrap: nowrap;
	-webkit-align-items: stretch;
	align-items: stretch;
}
.flexbox-support .upfront-region-container-hidden .upfront-grid-layout,
.flexbox-support .upfront-region-hidden {
	display: block;
}
.flexbox-support .upfront-grid-layout:before,
.flexbox-support .upfront-grid-layout:after {
	content: none;
}
.flexbox-support .upfront-modules_container > .upfront-editable_entities_container > .upfront-wrapper,
.flexbox-support .upfront-module-group > .upfront-editable_entities_container > .upfront-wrapper,
.flexbox-support .upfront-editable_entities_container > .upfront-wrapper > .upfront-module-view {
	-webkit-order: 0;
	order: 0;
}
.flexbox-support .upfront-editable_entities_container > .upfront-wrapper > .upfront-module-view,
.flexbox-support .upfront-editable_entities_container > .upfront-module-view {
	width: 100%;
}

/* Firefox specific hack (lighter usage of Flexbox) */
@media screen and (min--moz-device-pixel-ratio:0) {
  .flexbox-support .upfront-grid-layout,
  .flexbox-support .upfront-region,
  .flexbox-support .upfront-region > .upfront-region-wrapper {
    display: block;
  }
  .flexbox-support .upfront-grid-layout:before,
  .flexbox-support .upfront-grid-layout:after {
    content: "";
  }
}


