.tabs {
	position: relative;
	width: 100%;
	overflow: hidden;
	/*margin-bottom: 3%;*/
	font-weight: 600;
	box-sizing: border-box;
}

/* Nav */
.tabs nav {
	text-align: center;
}

.tabs nav ul {
	padding: 0;
	margin: 0;
	list-style: none;
	display: inline-block;
}

.tabs nav li.tab-current {
	border: 1px solid #000000;
	box-shadow: inset 0 2px #000000;
	border-bottom: none;
	z-index: 100;
}

.tabs nav li.tab-current:before,
.tabs nav li.tab-current:after {
	content: '';
	position: absolute;
	height: 1px;
	right: 100%;
	bottom: 0;
	width: 1000px;
	background: #000000;
}

.tabs nav li.tab-current:after {
	right: auto;
	left: 100%;
	width: 4000px;
}

/* unselected tabs ------------------------------------ */
.tabs nav a {
	color: #A0A0A0;
	display: block;
	font-size: 19px;
	line-height: 2.25;
	padding: 0 1.125em;
	white-space: nowrap;
}

.tabs nav ul li {
	border: 1px solid #A0A0A0;
	border-bottom: none;
	margin: 0 5px;
	display: block;
	float: left;
	position: relative;
}/* END unselected tabs ------------------------------------ */

.tabs nav a:hover {
	color: #808080;
}

.tabs nav li.tab-current a {
	color: #000000;
}

/* -------------------------------------------------------------------------------------- */
/* .content .section -------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */
.content section {
	padding: 1.5% 1% 3%;
	display: none;
	margin: 0 auto;
}

.content section:before,
.content section:after {
	content: '';
	display: table;
}

.content section:after {
	clear: both;
}

/* Fallback example */
.no-js .content section {
	display: block;
	padding-bottom: 32px;
	border-bottom: 1px solid #000000;
}

.content section.content-current {
	display: block;
	/*padding-bottom: 2%;*/
}

/* -------------------------------------------------------------------------------------- */
/* tab container .mediabox -------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */

.mediabox {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;
	flex: 1 100%;
}

.mediabox2 {
	display: flex;
}

.mediaImage {
	flex: .35;
	order: 1;
	width: 100%;
	min-height: 360px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin-top: 0;
}

.mediaText {
	flex: .65;
	order: 2;
	margin: 0 0 1% 3%;
}

.mediaText h3 {
	margin: 0;
}

.mediaText h5 {
	margin: 0;
}

.mediaText p {
	-webkit-margin-before: .5em;
    -webkit-margin-after: .5em;
}		

.mediaText ul {
    list-style-type: square;
}

.mediaLogo {
	padding-top: 5%;
}

/* -------------------------------------------------------------------------------------- */
/* tab grid container .mediaGrid -------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */

.mediaGrid {
	flex: 1;
	order: 1;
	margin: 20px 0;
}

.mediaGrid h3 {
		margin: 0;
}

.mediaGrid .portfolioFilter {
	font-size: 14px;
	text-align:center;
	margin: 8px 0;
}

.mediaGrid .portfolioFilter a {
	color: #A0A0A0;
}

.mediaGrid .portfolioFilter a:hover {
	color: #000000;
}

.mediaGrid .portfolioFilter a:active {
	color: #000000;
}

/* -------------------------------------------------------------------------------------- */
/* tab portfolio container .portfolioContainer ------------------------------------------ */
/* -------------------------------------------------------------------------------------- */



/*.mediabox {
	width: 100%;
}

.mediabox img {
	width: 35%;
	display: block;
    float: left;
	margin-top: 0;
}

.mediabox h3 {
		padding-top: 1.15%;
		padding-bottom: 1%;
		margin: 0 0 0 39%;
	}	

.mediabox p {
		margin: 0 0 0 39%;
}

.mediabox ul {
    list-style-type: square;
    margin-left: 39%;
}*/

.mediaText li{
    margin: .5% 0;
}

.mediaText ul li:first-child {
	margin-top: 1.75%;
}

.mediabox ul li:last-child {
	margin-bottom: 5%;
}

/* -------------------------------------------------------------------------------------- */
/* tabs layout 65em 1040px (tablet landscape) ------------------------------------------- */
/* -------------------------------------------------------------------------------------- */

@media screen and (max-width: 1040px) {

    .tabs nav a span {
        font-size: 90% !important;
	}

	/*.content section {
		padding: 20px 15px 0px;
	}*/

	.content section {
		padding: 2% 1% 1%;
	}

	.mediabox {
		padding: 0 !important;
	}

	.mediaText {
		font-size: 95%;
		margin: 0 0 1% 3%;
	}

	.mediaImage {
		min-width: 240px;
		min-height: 320px;
	}

/*	.mediabox ul li:last-child {
		margin-bottom: 9%;
	}*/

/*	.mediabox img {
		float: left;
		width: 280px;
		height: auto;
		overflow: hidden
	}

	.mediabox h3 {
		margin-left: 300px;
	}

	.mediabox p {
		margin-left: 300px;
	}

	.mediabox ul {
		margin-left: 300px;
	}*/

}

/* -------------------------------------------------------------------------------------- */
/* tabs layout (phone landscape) --------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */

@media screen and (max-width: 840px) {

	.mediaImage {
		flex: 1;
		order: 1;
		max-width: 300px;
		max-height: 225px;
		background-size: cover;
		background-position: 50% 40%;
		margin-top: 0;
	}

	.mediaText {
		flex: 1;
		order: 2;
		margin: 0 0 1% 3%;
	}

	.mediaText li{
		margin-top: 1%;
    	margin-left: -5%;
	}
}

/* -------------------------------------------------------------------------------------- */
/* tabs layout (phone portrait) --------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */

@media screen and (max-width: 520px) {

	.tabs nav ul,
	.tabs nav ul li a {
		width: 100%;
		padding: 0;
	}

	.tabs nav ul li {
		width: 100%;
		width: calc(100% + 1px);
		margin: 0 0 0 -1px;
		border-left: none;
		border-right: none;
		border-bottom: none;
	}

 	.tabs nav ul li:last-child {
		border-left: none;
		border-right: none;
		border-bottom: 1px solid #A0A0A0;
	}

	.tabs nav li.tab-current {
		border-top: 3px solid #000000;
		border-left: none;
		border-right: none;
		box-shadow: inset 0px -2px 0px #000000;
		z-index: 100;
	}
	
	.content section {
		padding: 5% 5% 5%;
	}

	.mediabox2 {
		display: inline;
	}

	.mediaText {
		flex: 1;
		order: 2;
		margin: 3% 0 1% 3%;
	}


/*	.mediabox img {
		float: none;
		width: 100% !important;
        height: auto;
    }

	.mediabox h3 {
		padding-top: 4%;
		padding-bottom: 2.75%;
		margin-left: 0;
	}

	.mediabox p {
		margin-left: 0;
	}
    
    .mediabox ul {
		margin-left: 0;
	}*/

/*	.mediabox ul li:last-child {
	margin-bottom: 35px;
	}   */

}