#dynPhoto {
 padding: 0 10px;
}
#photoModalWrap, #photoModalWrap td {
 font: 12px/1.5 'Arial';
 color: #5d5d5d;
}
#photoModalWrap a {
 color: #20a7fd;
}
#photoModalWrap a:hover {
 color: #027fcf;
}
#photoModalWrap hr {
 margin: 5px 0;
 border: 0;
 height: 2px;
 overflow: hidden;
 background: url(./../../img/photopage/hr.png) repeat-x;
}
#photoModalWrap .uphoto-entry {
 margin-bottom: 20px;
}
#photoModalWrap input[type=text], #photoModalWrap input[type=password], #photoModalWrap textarea {
 vertical-align: middle;
 height: 24px;
 margin: 3px 0;
 padding: 2px 5px;
 *padding: 0px;
 font-family: 'Tahoma', 'Arial';
 font-size: 13px;
 line-height: 18px;
 color: #000;
 background: #fff;
 border: 1px solid #dcdcdc;
 box-shadow: inset 0 1px 0 1px rgba(0, 0, 0, 0.03);
 outline: none;
 -webkit-box-sizing: border-box;
 -moz-box-sizing: border-box;
 box-sizing: border-box;
}
#photoModalWrap input[type=text]:focus, #photoModalWrap input[type=password]:focus, #photoModalWrap textarea:focus {
 border-color: #9c9c9c;
}
#photoModalWrap textarea {
 padding: 3px 5px;
 height: auto;
 overflow: auto;
 resize: none;
}
#photoModalWrap .securityCode {height: auto !important;}
#photoModalWrap #message {
 width: 100%;
 height: 100px !important;
}
#photoModalWrap input[type=button], #photoModalWrap input[type=submit], #photoModalWrap input[type=reset], #photoModalWrap .button, #photoModalWrap select {
 position: relative;
 display: inline-block;
 vertical-align: middle;
 min-width: 20px;
 padding: 0 10px;
 text-align: center;
 text-decoration: none !important;
 font: 13px/31px 'Verdana', 'Arial';
 height: 31px;
 color: #777 !important;
 text-shadow: 0 1px 0 #fffcf6;
 border: 1px solid #aaa;
 border-radius: 3px;
 background-color: #fff;
 background-image: -webkit-linear-gradient(bottom, rgba(85,85,85,.1), rgba(255,255,255,.1));
 background-image: -moz-linear-gradient(bottom, rgba(85,85,85,.1), rgba(255,255,255,.1));
 background-image: -o-linear-gradient(bottom, rgba(85,85,85,.1), rgba(255,255,255,.1));
 background-image: -ms-linear-gradient(bottom, rgba(85,85,85,.1), rgba(255,255,255,.1));
 background-image: linear-gradient(to top, rgba(85,85,85,.1), rgba(255,255,255,.1));
 box-shadow: inset 0 0 1px #fff;
 *display: inline; /*--FOR-IE--*/
 overflow: visible;
 zoom: 1; /*--FOR-IE--*/
 cursor: pointer;
 -webkit-box-sizing: border-box;
 -moz-box-sizing: border-box;
 box-sizing: border-box;
}
#photoModalWrap select {height: auto !important;}
#photoModalWrap ::-moz-focus-inner {
 border: 0;
 padding: 0;
}
#photoModalWrap input[type=button]:hover, #photoModalWrap input[type=submit]:hover, #photoModalWrap input[type=reset]:hover, #photoModalWrap .button:hover {background-color: #fafafa;}
#photoModalWrap input[type=button]:active, #photoModalWrap input[type=submit]:active, #photoModalWrap input[type=reset]:active, #photoModalWrap .button:active {background-color: #fafafa;box-shadow: inset 0 1px 2px rgba(0,0,0,.17);}
#photoModalWrap .codeButtons {
 min-width: 20px;
 margin: 2px 1px !important;
 padding: 1px 4px !important;
 width: auto !important;
 height: auto !important;
 line-height: 1.4 !important;
}
#photoModalWrap .cBlock1, #photoModalWrap .cBlock2, #photoModalWrap .cBlock1 td, #photoModalWrap .cBlock2 td {
 font-size: 11px;
 font-family: 'Tahoma', 'Arial';
}
#photoModalWrap .cTop {
 border: 0;
}
#photoModalWrap .cBlock1, #photoModalWrap .cBlock2, #photoModalWrap .cMessage {
 border: 0 !important;
 background: none !important;
}
#photoModalWrap .cBlock1, #photoModalWrap .cBlock2 {
 border-top: 1px solid #e9edf1 !important;
}
#photoModalWrap .cMessage a:first-child img {
 margin: 0 5px 2px;
}
#photoModalWrap #addform, #photoModalWrap .commTable, #photoModalWrap .smiles {
 margin: 0 !important;
 background: none !important;
 border: 0 !important;
}

 #navigation .uMenuRoot > li:nth-child(2) > a:hover{border-bottom-left-radius: 0px;border-bottom-right-radius: 0px;}
#navigation .uMenuRoot > li:nth-child(3) > a:hover{border-bottom-left-radius: 0px;border-bottom-right-radius: 0px;}
#navigation .uMenuRoot > li > ul.subM{display:none;
position: absolute;
top: initial;right: initial;
padding: 10px 20px;
/*background-color: #2c6ea5;
border: 1px solid #51a2ed !important;*/
border-radius: 10px;margin-top: -1px;border-top-left-radius: 0px;border-top-right-radius: 0px;}

#navigation .uMenuRoot > li > ul.subM li{list-style:none;}
#navigation .uMenuRoot > li > ul.subM li a{color:#fff !important;}
.uphoto-entry .photo-block {background:#fff;}

#adv{padding: 10px;background: #fff;color: red;text-align: center;border: 1px solid;cursor: pointer; font-weight: bold;transition:0.2s;display:none;}

#adv{
font-size: 14pt;
cursor: pointer;
box-shadow: 0px 3px 2px 2px #860d0d;
background:#cc1818;color:#fff;
padding: 16px 40px;
border-top: 2px solid #cc1818;
border-radius: 0;
border: 1px solid #db3939;z-index: 1000;
left: 0px;
top: 0px;width: calc(100% - 80px);
}
#adv:hover, #adv:active{
 padding-top: 20px;box-shadow: 0px 1px 2px 1px #860d0d;
padding-bottom: 12px;
}

@media all and (max-width:980px){width: calc(100% - 80px) !important;}

@media all and (max-width:680px){
.u-ecc--1 .uEntryWrap, .u-ecc-0 .uEntryWrap, .u-ecc-3 .uEntryWrap {
 margin: auto !important;
 display: block !important;
 width: 100% !important;
 text-align: center !important;
}}

.fancybox-title.fancybox-title-float-wrap{width: 100% !important;right: 0;}
.fancybox-title.fancybox-title-float-wrap>.child{left: 0;position: absolute;width: 100%;background: none;padding: 0;top: -32px; white-space: initial;line-height: 18px;}
.fancybox-title.fancybox-title-float-wrap #adv{display:block;width: 100%;padding: 8px 8px;font-size: 14px;box-sizing: border-box;}
#phtOtherThumbs{display:none}
.fancybox-wrap{top:44px !important}
#fancybox-buttons.top {top: 7px !important;
}
.ulb-photopage-link{display:none}
.full-image{position:absolute; top: 0;left:40%;width: 20%;height: 100%;} 

#navigation .uMenuRoot > li > ul.subM {
background: #ff8630;
}

@media (max-width: 834px) {
 .header-main > .width > .left, .header-main > .width > .right, .header-main > .width > .search-main {
#topsearch {
 width: 50%;
 float: right;
 clear: both;
 top: -62px !important;
 position: relative;
 margin-right: 16%;
}
 
 #topsearch .searchForm {
 display: block;
 width: 300px;}
 }

.loading {
 position: relative;
 width: 0;
 padding: 12px; /* если задать в %, то будет рассчитываться от ширины родителя */
 background:
 linear-gradient(rgba(0,0,0,1) 30%, transparent 30%, transparent 70%, rgba(0,0,0,.4) 70%),
 linear-gradient(to left, rgba(0,0,0,.2) 30%, transparent 30%, transparent 70%, rgba(0,0,0,.8) 70%);
 background-repeat: no-repeat;
 background-size: 10% 100%, 100% 10%;
 background-position: 50% 0%, 0 50%;
 -webkit-animation: loading .7s infinite steps(8);
 animation: loading .7s infinite steps(8);
 left: calc(50% - 14px);
 top: 0;
}
.loading:after {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-image:
 linear-gradient(rgba(0,0,0,.1) 30%, transparent 30%, transparent 70%, rgba(0,0,0,.5) 70%),
 linear-gradient(to left, rgba(0,0,0,.3) 30%, transparent 30%, transparent 70%, rgba(0,0,0,.9) 70%);
 background-repeat: no-repeat;
 background-size: 10% 100%, 100% 10%;
 background-position: 50% 0%, 0 50%;
 -webkit-transform: rotate(45deg);
 transform: rotate(45deg);
}
@-webkit-keyframes loading {
 100% {-webkit-transform: rotate(1turn);}
}
@keyframes loading {
 100% {transform: rotate(1turn);}
}