/* --- Модальное окно для просмотра фоток --- */

.overlay {
    background-color: rgba(28, 212, 140, .65);
    bottom: 0;
    cursor: default;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    visibility: hidden;
    z-index: 2001;

    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -ms-transition: opacity .5s;
    -o-transition: opacity .5s;
    transition: opacity .5s;
}
.overlay:target {
    background-color: rgba(28, 212, 140, .5);
    visibility: visible;
    opacity: 1;
}
.popup {
    background-color: #2c3f52;
    border: 3px solid #fff;
    display: inline-block;
    left: 50%;
    top: 40%;
    opacity: 0;
    padding: 15px;
    position: fixed;
    font-family: 'reg';
    color: #dadada;
    text-align: left;
    line-height: 24px;
    letter-spacing: 1px;
    visibility: hidden;
    z-index: 2010;

    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);

    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;

    -webkit-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    -moz-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    -ms-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    -o-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;

    -webkit-transition: opacity .5s, top .5s;
    -moz-transition: opacity .5s, top .5s;
    -ms-transition: opacity .5s, top .5s;
    -o-transition: opacity .5s, top .5s;
    transition: opacity .5s, top .5s;
}
.popup h3 {
	text-align: center;
	color: #585858;
}
.insd {
	text-align: center;
	padding: 5px 10px;
	border-radius: 3px;
	-webkit-border-radius:3px;
	-moz-border-radius:3px;
	-o-border-radius:3px;
	-ms-border-radius:3px;
	display: inline-block;
	background: #ff6700;
	color: #dadada;
}
.insd:hover {
	color: #fff;
}
.popif {
    background-color: #eee;
    border: 3px solid #fff;
    display: inline-block;
    width:90%;
    height: 90%;
    left: 50%;
    top: 50%;
    opacity: 0;
    position: fixed;
    font-family: 'reg';
    color: #585858;
    text-align: center;
    line-height: 24px;
    letter-spacing: 1px;
    visibility: hidden;
    z-index: 2010;

    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);

    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;

    -webkit-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    -moz-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    -ms-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    -o-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;

    -webkit-transition: opacity .5s, top .5s;
    -moz-transition: opacity .5s, top .5s;
    -ms-transition: opacity .5s, top .5s;
    -o-transition: opacity .5s, top .5s;
    transition: opacity .5s, top .5s;
}
.ifrcss {
 top:50%;
 -webkit-border-radius: 10px;
 -moz-border-radius: 10px;
 -ms-border-radius: 10px;
 -o-border-radius: 10px;
 border-radius: 10px;
 width:100%;
 height:100%;
 text-align:center;
}

.overlay:target+.popup, .overlay:target+.popif {
    top: 50%;
    opacity: 1;
    visibility: visible;
}
.closef {
    background-color: rgba(64, 224, 208, 1);
    height: 30px;
    line-height: 26px;
    position: absolute;
    right: -15px;
    text-align: center;
    text-decoration: none;
    top: -15px;
    width: 30px;
    border: 3px solid #fff;
    -webkit-border-radius: 17px;
    -moz-border-radius: 17px;
    -ms-border-radius: 17px;
    -o-border-radius: 17px;
    border-radius: 17px;
    z-index: 2002;
}
.closef:before {
    color: rgba(0, 0, 0, .9);
    content: "X";
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 -1px rgba(0, 0, 0, .9);
}
.closef:hover {
    background-color: rgba(10, 250, 215, .95);
}
.prev, .next {
	display: block;
	position: absolute;
	top: 0;
	width: 50%;
	height: 90%;
	outline: none;
}

.prev {
	left: 0;
}
.prev:hover {
	background: transparent url(../images/prevlabel1.gif) no-repeat 0 15%;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    -o-border-radius: 7px;
    border-radius: 7px;
}
.next {
	right: 0;
}
.next:hover {
	background: transparent url(../images/nextlabel1.gif) no-repeat 100% 15%;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    -o-border-radius: 7px;
    border-radius: 7px;
}
.popup p, .popup div {
    margin-bottom: 10px;
}
.popup label {
    display: inline-block;
    text-align: left;
    width: 120px;
    z-index: 2011;
}
.popup input[type="text"], .popup input[type="password"], .popup select, .popup textarea {
    float: right;
    border: 1px solid #483d8b;
    margin: 0;
    padding: 2px;

    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
}
.popup input[type="text"]:hover, .popup input[type="password"]:hover, .popup select:hover, .popup textarea:hover {
    border: 1px solid #483d8b;
}
.popup span{
	color: #fff;
	padding: 2px 12px;
	text-transform: uppercase;
	font-weight: 900;
	background-color: #ff0000;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius: 5px;
}
.w20 {min-width: 200px;}
.w15 {min-width: 150px;}
