/* Preserve some sanity */
.grid,
.unit {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* Set up some rules to govern the grid */
.grid {
  display: block;
  clear: both;
}
.grid .unit {
  float: left;
  width: 100%;
  padding: 10px 15px;
}

/* This ensures the outer gutters are equal to the (doubled) inner gutters. */
.grid .unit.no-left-padding{ padding-left: 0; }
.grid .unit.no-right-padding{ padding-right: 0; }

/* Nested grids already have padding though, so let’s nuke it */
.unit .unit { padding-left: 0; padding-right: 0; }

/* Let people nuke the gutters/padding completely in a couple of ways */
.no-gutters .unit,
.unit.no-gutters {
  padding: 0 !important;
}

/* Clearfix after every .grid */
.grid {
  *zoom: 1;
}
.grid:before, .grid:after {
  display: table;
  content: "";
  line-height: 0;
}
.grid:after {
  clear: both;
}

/* A property for a better rendering of images in units: in
 this way bigger pictures are just resized if the unit
 becomes smaller */
.unit img {
  max-width: 100%;
}

/* Sometimes, you just want to be different on small screens */
.center-on-mobiles {
	text-align: center;
	margin: 0 auto;
}



/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:320px) {

}
@media only screen and (min-width:480px) {
	.grid .half,           .grid .w-1-2 { width: 50%; }
	.grid .one-third,      .grid .w-1-3 { width: 100%; }
	.grid .two-thirds,     .grid .w-2-3 { width: 100%; }
	/* Nested grids already have padding though, so let’s add it */
	.unit .unit { padding-left: 10px; padding-right: 10px; }
}
@media only screen and (min-width:600px) {
	/* Width classes also have shorthand versions numbered as fractions
	 * For example: for a grid unit 1/3 (one third) of the parent width,
	 * simply apply class="w-1-3" to the element. */
	.grid .whole,          .grid .w-1-1 { width: 100%; }
	.grid .one-third,      .grid .w-1-3 { width: 50%; }
	.grid .one-quarter,
	.grid .one-fourth,     .grid .w-1-4 { width: 25%; }
	.grid .three-quarters,
	.grid .three-fourths,  .grid .w-3-4 { width: 75%; }
	.grid .golden-small,   .grid .w-g-s { width: 38.2716%; margin-left: auto; margin-right: auto; } /* Golden section: smaller piece */
	.grid .golden-medium,   .grid .w-g-m { width: 61.7283%; } /* Golden section: larger piece */
	.grid .golden-large,   .grid .w-g-l { width: 80.00%; } /* Golden section: larger piece */
	
	/* Stop centering of units */
	.center-on-mobiles {
		text-align: left;
		margin: 0;
	}
}
@media only screen and (min-width:768px) {
	.grid .one-third,      .grid .w-1-3 { width: 33.3332%; }
	.grid .two-thirds,     .grid .w-2-3 { width: 66.6665%; }
	.grid .one-quarter,
	.grid .one-fourth,     .grid .w-1-4 { width: 25%; }
	.grid .three-quarters,
	.grid .three-fourths,  .grid .w-3-4 { width: 75%; }
	.grid .one-fifth,      .grid .w-1-5 { width: 20%; }
	.grid .two-fifths,     .grid .w-2-5 { width: 40%; }
	.grid .three-fifths,   .grid .w-3-5 { width: 60%; }
	.grid .four-fifths,    .grid .w-4-5 { width: 80%; }
	
}
@media only screen and (min-width:1024px) {
	
}