.thumbnail .caption {
	min-height:68px;
}

.thumbnail-add .cross {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
	width: 35px;
	height: 35px;
	z-index: 5;
}
.thumbnail-add .cross .bar {
	position: absolute;
	background: #01bef3;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	transition: all 0.2s cubic-bezier(.84,.47,.08,1);
	transform: translate3d(0,0,0) rotate(0.0001deg);
	opacity: 1;
}
.thumbnail-add .cross .bar.b1 {
	height: 3px;
	width: 30px;
}
.thumbnail-add .cross .bar.b2 {
	height: 30px;
	width: 3px;
}
.thumbnail-add:hover .cross .bar.b1 {
	width: 36px;
}
.thumbnail-add:hover .cross .bar.b2 {
	height: 36px;
}
.thumbnail-add {
	border: 1px solid #c0c0c0;
    min-height: 310px;
	cursor: pointer;
	position: relative;
}


.thumbnail-add .overlay {
    background: rgba(0, 0, 0, 0) linear-gradient(to top, #01bef3 0%, rgba(255, 255, 255, 0) 100%) repeat scroll 0 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.thumbnail-add .overlay {
	will-change: opacity;
	opacity: 0;
	transition: all 0.4s ease;
}

.thumbnail-add:hover .overlay {
	opacity: 0.5;
	transform: translate3d(0,0,0) rotate(0);
}

#modal_form {
	height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
	width: 100%;
	display: none; 
	opacity: 0; 
	z-index: 9999; 	
}


#modal_form .team-inner {
    height: 100%;
    left: 0;
    margin: 0 auto;
    max-width: 625px;
    padding-bottom: 50px;
    position: absolute;
	border-radius: 5px;
	border: 3px #000 solid;
	background: #fff;	
	padding: 50px 70px;
    right: 0;
    width: 100%;
    z-index: 999;
	/*overflow-y: auto;
	overflow-x: hidden;*/
}

#overlay {
	z-index: 99; /* подложка должна быть выше слоев элементов сайта, но ниже слоя модального окна */
	position: fixed; /* всегда перекрывает весь сайт */
	background-color: #000; /* черная */
	opacity: 0.8; /* но немного прозрачна */
	width: 100%; 
	height: 100%; /* размером во весь экран */
	top: 0; 
	left: 0; /* сверху и слева 0, обязательные свойства! */
	cursor: pointer;
	display: none; /* в обычном состоянии её нет) */
}


#modal_form .popup-overflow {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	z-index: 2;
}
#modal_form .team-overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background: #222222;
	opacity: 0.9;
	padding-bottom: 50px;
	cursor: pointer;
}

#modal_form  .team-inner .bg {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background: #d9232e;
}


#modal_form .close {
	position: absolute;
	right: -55px;
	margin-right: 5px;
	top: 10px;
	width: 45px;
	height: 45px;
	cursor: pointer;
	z-index: 9999;
	opacity: 1;
	transition: opacity 0.3s;
}
.view-popup-close.active .close {
	opacity: 1;
	transition: opacity 0.3s ease 0.6s;
}

#modal_form .close .inner {
	position: absolute;
	width: 33px;
	height: 33px;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	margin: auto;
}
#modal_form .close .inner .bar {
	position: absolute;
	background: #ffffff;
	width: 33px;
	height: 3px;
	transition: all 0.4s cubic-bezier(.84,.47,.08,1);
}
#modal_form .close .inner .bar.b1,
#modal_form .close .inner .bar.b3 {
	top: 14px;
	transform: rotate(-45deg);
}
#modal_form .close .inner .bar.b2,
#modal_form .close .inner .bar.b4 {
	top: 14px;
	transform: rotate(45deg);
}
#modal_form .close:hover .inner .bar.b2,
#modal_form .team-overlay:hover ~ #modal_form .close .inner .bar.b2 {
	opacity: 1;
	transform: rotate(45deg) scaleX(0.8);
}
#modal_form .close:hover .inner .bar.b1,
#modal_form .team-overlay:hover ~ #modal_form .close .inner .bar.b1 {
	opacity: 1;
	transform: rotate(-45deg) scaleX(0.8);
}

#modal_form .form-header {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: center;
    text-transform: none;
}

@media screen and (max-width: 800px) {
	#modal_form .close {
		margin-right: 67px;
	}
	
	#modal_form .close .inner .bar {		
		background: #000;
	}
}

#modal_form .text {
   width: 85%;
   margin: 0 auto;   
   padding-top: 20px;
}



.text h3 {
	text-align:center;
	text-transform: uppercase;
}



form .upload {
	border: none;
	font-family: 'Proxima Nova', serif;
	color: #b5b4aa;
	cursor: pointer;
	width: 100%;
	height: 20px;
}
form input#file {
	display: none;
}
form .upload-done {
	opacity: 0.7;
	transition: all 0.2s ease 0s;
}
form .upload-done:hover {
	opacity: 1;
}