/*-----------------works-----------------*/
.b-works {
 	background-color: #2e0b71;
    bottom: 0;
    right: 0;
    border-width: 10px 0px 0px 10px;
}
.b-works .content{
	top: 40px;
	left: 40px;
}
.b-works h1{
	top: 0px;
	left: 0px;
}
.b-works .menu{
	top: 0;
	right: 0;
}
.b-works h2{
	padding: 0.5em 0 0.3em;
}
.works__list{
	margin-top: 2.5%;
	width: 100%;
    display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;  
    justify-content: space-between;
}
.works__list_top{
	margin-top: 10%;
}
.works__item{
	-webkit-transition: all 0.7s;
	-moz-transition: all 0.7s;
	-ms-transition: all 0.7s;
	-o-transition: all 0.7s;
	transition: all 0.7s;
	
	margin-right: 1%;
}
.works__item img{
	opacity: .5;
}
.works__item:hover img,.works__item_active img{
	opacity: 1;
}
.works__item:last-child{
	margin-right: 0;
}
.works__item img,.description__img img{
	max-width: 100%;
}
.b-description{
	position: relative;
	margin-top: 5%;
	height:44.5%;
}

.description__item{
	color: #2e0b71;
	background-color: #fff;
	padding: 0.5em;
	font-size: 1em;
	opacity: 0;
	height: 0;
	display: none;
    -webkit-transition: opacity 0.5s;
    -moz-transition: opacity 0.5s;
    -ms-transition: opacity 0.5s;
    -o-transition: opacity 0.5s;
    transition: opacity 0.5s;
}
.description__item_show{
  	display: block;
	height: 100%;
	opacity: 1;
}
.description__img{
	float: left;
	width: 25%;
	padding-right: 3%;
	margin-right: 2%;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}
.description__text{
	line-height: 1.3em;
}
.description__button{
	display: inline-block;
	padding: 0.5em 1em;
	margin-top: 1em;
	border: 1px solid #2e0b71;
	-webkit-transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	-ms-transition: all 0.5s ease-in-out;
	-o-transition: all 0.5s ease-in-out;
	transition: all 0.5s ease-in-out;
	
}
.description__button:hover{
	background-color: #2e0b71;
	color: #fff;
}
.triangle{
	position: absolute;
	left: 2.5%;
	top: -2.3em;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 2em 2.5em 2em;
	border-color: transparent transparent #fff transparent;
}
#work1 > .triangle{
	left: 2.5%;
}
#work2 > .triangle{
	left: 15%;
}
#work3 > .triangle{
	left: 28%;
}
#work4 > .triangle{
	left: 40.5%;
}
#work5 > .triangle{
	left: 53%;
}
#work6 > .triangle{
	left: 66%;
}
#work7 > .triangle{
	left: 78.5%;
}
#work8 > .triangle{
	left: 90.5%;
}

.b-overlay{
	opacity: 0;
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.7);
	z-index: 100;
}
.b-overlay_show{
	display: block;
	opacity: 1;
}
.overlay__content{
	max-width: 80%;
	max-height: 80%;
	margin: 10% auto; 
}
.overlay__content img{
	max-width: 100%;
}