/**
 * @file
 * Is the responsive layout composition.
 *
 * Is intented to set basic layout rules to regions and global blocks.
 * Also add grid common rules.
 */



/**
 * Layout content
 */


/**
 * Grid row
 */
.grid-row {
	padding: 0 1rem;
}
@media all and (min-width: 700px) {
  .grid-row {
  	padding: 0;
    width: 90%;
    max-width: 1920px;
    margin: 0 auto;
  }
  .grid-row--10 {
    max-width: 1363px;
  }
  .grid-row--8 {
    max-width: 1088px;
  }
  .grid-row--6 {
    max-width: 812px;
  }
  .grid-row--4 {
    max-width: 536px;
  }
}

/**
 * Grid list (we assume grid list has a grid-row has direct parent)
 */
.grid-list {

}
@media all and (min-width: 750px) {
  .grid-list--2,
  .grid-list--3,
  .grid-list--4 {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	-webkit-flex-direction: row;
	-moz-flex-direction: row;
	-ms-flex-direction: row;
	-o-flex-direction: row;
	flex-direction: row;
	justify-content: space-between;
	-webkit-flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	-o-flex-wrap: wrap;
	flex-wrap: wrap;
  }
  .grid-list--2 > *,
  .grid-list--3 > *,
  .grid-list--4 > * {
  	width: 48%;
  }
}
@media all and (min-width: 900px) {
  .grid-list--3::before,
  .grid-list--4::before {
  	order: 999;
  }
  .grid-list--3::before,
  .grid-list--4::before,
  .grid-list--4::after {
  	content: "";
  	height: 0;
  }
  .grid-list--3 > *,
  .grid-list--3::before {
  	width: 30%;
  }
  .grid-list--4 > *,
  .grid-list--4::before,
  .grid-list--4::after  {
  	width: 23%;
  }
}

/**
 * Vertical spacing
 */
.top-spacing--xs {
 margin-top: .33rem;
}
.top-spacing--s {
 margin-top: .66rem;
}
.top-spacing--m {
 margin-top: 1rem;
}
.top-spacing--l,
.top-spacing--xl,
.top-spacing--xxl {
 margin-top: 1.5rem;
}
@media all and (min-width: 750px) {
  .top-spacing--xl {
    margin-top: 3rem;
  }
  .top-spacing--xxl {
    margin-top: 6rem;
  }
}
.bottom-spacing--xs {
 margin-bottom: .33rem;
}
.bottom-spacing--s {
 margin-bottom: .66rem;
}
.bottom-spacing--m {
 margin-bottom: 1rem;
}
.bottom-spacing--l,
.bottom-spacing--xl,
.bottom-spacing--xxl {
 margin-bottom: 1.5rem;
}
@media all and (min-width: 750px) {
  .bottom-spacing--xl {
    margin-bottom: 3rem;
  }
  .bottom-spacing--xxl {
    margin-bottom: 6rem;
  }
}
