#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;
}
/* Карточка: внешний вид, без перестройки сетки на ПК */
.photo-item,
.photo-item * {
 box-sizing: border-box;
}

.photo-card {
 background: #f3f3f3;
}

.photo-card-image {
 margin: 0;
}

.photo-card-image a {
 display: block;
 position: relative;
}

.photo-card-image img {
 display: block;
 width: 100%;
 height: auto;
}

.photo-card-caption {
 padding: 18px 16px;
 text-align: center;
}

.photo-card-caption p {
 margin: 0;
 font-size: 22px;
 line-height: 1.3;
 color: #5d5d5d;
 white-space: normal;
 word-break: normal;
 overflow-wrap: break-word;
}
.photo-item,
.photo-item * {
 box-sizing: border-box;
}

.photo-card {
 background: #f3f3f3;
}

.photo-card-image {
 margin: 0;
}

.photo-card-image a {
 display: block;
 position: relative;
}

.photo-card-image img {
 display: block;
 width: 100%;
 height: auto;
}

.photo-card-caption {
 padding: 18px 16px;
 text-align: center;
}

.photo-card-caption p {
 margin: 0;
 font-size: 22px;
 line-height: 1.3;
 color: #5d5d5d;
 white-space: normal;
 overflow-wrap: break-word;
}

@media (max-width: 767px) {
 .photo-mobile-stack {
 display: block;
 width: 100%;
 }

 .photo-mobile-stack .photo-item {
 display: block;
 width: 100%;
 max-width: 380px;
 margin: 0 auto 24px;
 padding: 0 12px;
 }

 .photo-mobile-stack .photo-card {
 width: 100%;
 margin: 0 auto;
 }

 .photo-mobile-stack .photo-card-image img {
 width: 100%;
 height: auto;
 }

 .photo-mobile-stack .photo-card-caption {
 padding: 14px 12px;
 }

 .photo-mobile-stack .photo-card-caption p {
 font-size: 18px;
 line-height: 1.35;
 }

 .photo-mobile-stack .lightbox_link_txt_main {
 display: none !important;
 }
}
.photo-mobile-stack .photo-item {
 margin: 0 auto 24px;
}

.photo-mobile-stack .photo-card {
 background: #fff;
 border-radius: 8px;
 box-shadow: 0 4px 12px rgba(0,0,0,0.1);
 overflow: hidden;
}
/* Карточки на всех устройствах */
.photo-card {
 background: #fff;
 border-radius: 8px;
 box-shadow: 0 4px 12px rgba(0,0,0,0.1);
 overflow: hidden;
 transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Ховер только для ПК */
@media (hover: hover) {
 .photo-card:hover {
 transform: translateY(-4px);
 box-shadow: 0 8px 20px rgba(0,0,0,0.15);
 }
}
.photo-card-meta-mobile {
 display: none;
 padding: 0 16px 16px;
 font-size: 15px;
 line-height: 1.5;
 color: #5d5d5d;
 text-align: left;
}

.photo-card-meta-mobile div + div {
 margin-top: 6px;
}

@media (max-width: 767px) {
 .photo-card-meta-mobile {
 display: block;
 }

 .lightbox_link_txt_main {
 display: none !important;
 }
}