/* *********************************************************************************************************************
	One% CSS Grid - 12 Columns Fluid CSS Grid System

	Why One% ? Let’s count ...
		we have 12 columns (magic number divided by 2, 3, 4, 6)

		for 12 columns we need 11 margins

		so if we count margin 3%, then 3% * 11 margins = 33%

		and if we count width of 1 column 5.5%, than 5.5% * 12 columns = 66%

		in the end we have 33% + 66% = 99% aaand ???

		1% is still here so that's the name - One%

	2 starting options ? Let’s count a bit more ...
		1200px - perfectly fits 1280 screens
			12 columns
			margin 3% / 36px (full-width)
			col1 5.5% / 66px (full-width)

		1000px - perfectly fits 1024 screens
			12 columns
			margin 3% / 30px (full-width)
			col1 5.5% / 55px (full-width)
*/



.columns, 
.column { 	
	-webkit-transition: all 0.2s ease;
	  -moz-transition: all 0.2s ease;
	  -moz-transition: all 0.2s ease;
	  -ms-transition: all 0.2s ease;
	  -o-transition: all 0.2s ease;
	  transition: all 0.2s ease;
}

.container	{ position: relative; width: 1188px; margin: 0 auto; padding: 0; }
.container .column,
.container .columns	{ float: left; display: inline; margin-left: 10px; margin-right: 10px; }
.row	{ margin-bottom: 20px; }
	
/* #Clearing
================================================== */

    /* Self Clearing Goodness */
    .container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }

    /* Use clearfix class on parent to clear nested columns,
    or wrap each row of columns in a <div class="row"> */
    .clearfix:before,
    .clearfix:after,
    .row:before,
    .row:after {
      content: '\0020';
      display: block;
      overflow: hidden;
      visibility: hidden;
      width: 0;
      height: 0; }
    .row:after,
    .clearfix:after {
      clear: both; }
    .row,
    .clearfix {
      zoom: 1; }

    /* You can also use a <br class="clear" /> to clear columns */
    .clear {
      clear: both;
      display: block;
      overflow: hidden;
      visibility: hidden;
      width: 0;
      height: 0;
    }


/* *********************************************************************************************************************
 * Main container for all
 */
.onepcssgrid-1000, .onepcssgrid-1200 {
	margin: 0 auto;
	padding: 0 0 0 1%; /* THAT'S THE NAME ;) */
}

.onepcssgrid-1200 {
	max-width: 1220px;
}

.onepcssgrid-1000 {
	max-width: 1020px;
}

.container{
	max-width: 1188px;
}

.onerow {
	clear: both;
	padding: 0 10px;
}





/* *********************************************************************************************************************
 * Common columns definitions
 */
.one.column, .two.columns, .three.columns, .four.columns, .five.columns, .six.columns, .seven.columns, .eight.columns, .nine.columns, .ten.columns, 	.eleven.columns, .twelve.columns {
	float: left;
	margin: 0 3% 0 0;
}

.one.column.last, .two.columns.last, .three.columns.last, .four.columns.last, .five.columns.last, .six.columns.last, .seven.columns.last, .eight.columns.last, .nine.columns.last, .ten.columns.last, 	.eleven.columns.last, .twelve.columns {
	margin: 0;
}

.one.column { width: 5.5%; }
.two.columns { width: 14%; }
.three.columns { width: 22.5%; }
.four.columns { width: 31%; }
.five.columns { width: 39.5%; }
.six.columns { width: 48%; }
.seven.columns { width: 56.5%; }
.eight.columns { width: 65%; }
.nine.columns { width: 73.5%; }
.ten.columns { width: 82%; }
.eleven.columns { width: 90.5%; }
.twelve.columns { width: 99%; margin: 0; }

.one.column img, .two.columns img, .three.columns img, .four.columns img, .five.columns img, .six.columns img, .seven.columns img, .eight.columns img, .nine.columns img, .ten.columns img, 	.eleven.columns img, .twelve.columns img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}


#what_we_do .four.columns,
#view_our_galleries .four.columns{
    width: 32.7%;
    margin-right: 12px;	
}
#what_we_do .four.columns:nth-child(4),
#view_our_galleries .four.columns:nth-child(4){
	margin-right: 0;
}

/* *********************************************************************************************************************
 * Disable padding left/right 10px if I'm 1024 or gibber - correct percentage math
 */
@media all and (min-width: 1024px) {
	.onepcssgrid-1000 {
		max-width: 1000px;
	}

	.onepcssgrid-1000 .onerow {
		padding: 0;
	}
}





/* *********************************************************************************************************************
 * Small devices
 */
@media all and (max-width: 768px) {
	.onerow {
	}

	.one.column, .two.columns, .three.columns, .four.columns, .five.columns, .six.columns, .seven.columns, .eight.columns, .nine.columns, .ten.columns, 	.eleven.columns {
		float: none;
		width: 99%;
	}
}