.ph_block {
    /*text-align: left;*/
}

.ph_block_all {
    width: 260px;
    padding: 15px;
    display: inline-block;
    position: relative;
    background: rgba(44, 56, 65, 0.8);
    border: 3px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 3px #506375 inset;
    box-sizing: border-box;
}

.ph_block_all:hover {
    background: rgba(61, 91, 113, 0.8);
	cursor: pointer;
}

.ph_img {
	animation-play-state: paused;
    width: 190px;
    height: 130px;
    border-radius: 10px;
    border: 2px solid #14595d;
    box-sizing: content-box;
    object-fit: cover;
    overflow: hidden;
    margin-bottom: 10px;
}

.ph_info_add {
	color: #ccc;
    font-size: 12px;
    font-family: Play;
}

.windows_view_photo {
    max-width: 100%;
    margin-top: 20px;
}

.vphoto_j {
	max-width: 100%;
    max-height: 450px;
}

.ph_added {
	color: #d0d0d0;
    background: #265807;
    padding: 15px;
    margin-top: 10px;
    font-size: 14px;
}

.ph_added:hover {
    background: #33710d;
}

.ph_blockadd {
    background: #103233;
    padding: 20px;
    font-size: 10px;
    color: #cacaca;
    font-family: Play;
    margin-bottom: 20px;
}

.ph_imgadd {
	max-width: 100%;
}

#bid_add {
	display: none;
}


.vphoto {
	color: #ff8686;
}

#window_photo_view {
	position: relative;
}

.likeph {
	position: absolute;
    /* background: rgba(47, 47, 47, 0.4); */
    width: 70px;
    top: 0;
    left: 48%;
    /* height: 100%; */
    cursor: pointer;
    opacity: 0;
    -o-transition: opacity 0.15s linear;
    /* transition: opacity 0.15s linear; */
}

.prevph {
    position: absolute;
    background: rgba(47, 47, 47, 0.4);
    width: 70px;
    top: 0;
    left: 0;
    height: 100%;
    cursor: pointer;
    opacity: 0;
    -o-transition: opacity 0.15s linear;
    transition: opacity 0.15s linear;
}

.nextph {
    position: absolute;
    background: rgba(47, 47, 47, 0.4);
    width: 70px;
    top: 0;
    right: 0;
    height: 100%;
    cursor: pointer;
    opacity: 0;
    -o-transition: opacity 0.15s linear;
    transition: opacity 0.15s linear;
}

.ph_icon_left {
	height:32px;
	width:20px;
	background-image:url(/img/arrows_controls.png);
	background-position:0px -25px;position:absolute;top:50%;
	margin-top:-16px;
	opacity: 1!important;
	-o-transition:opacity 300ms ease;
	transition:opacity 300ms ease
}

.ph_icon_right {
	height:32px;
	width:20px;
	background-image:url(/img/arrows_controls.png);
	background-position:0px -62px;
	position:absolute;top:50%;
	margin-top:-16px;
	opacity: 1!important;
	-o-transition:opacity 300ms ease;
	transition:opacity 300ms ease
}

.ph_block_like_photos {
    position: absolute;
    top: 15;
    right: 0;
    background-image: url(/img/like.png);
    width: 95px;
    height: 80px;
    /* margin-top: -16px; */
    opacity: 0.3;
}

.ph_block_like_photos:hover {
	opacity: 0.5;
    cursor: pointer;
}

.nextph_text_right {
    position: absolute;
    top: 50%;
    right: 20;
    background-image: url(/img/arrows_controls.png);
    background-position: 0px -62px;
    width: 22px;
    height: 30px;
    margin-top: -16px;
    opacity: 0.2;
}

.nextph_text_left {
    position: absolute;
    top: 50%;
    left: 20;
    background-image: url(/img/arrows_controls.png);
    background-position: 0px -25px;
    width: 22px;
    height: 30px;
    margin-top: -16px;
    opacity: 0.2;
}

.ph_block_view_info {
	background: rgba(31, 59, 70, 0.8);
    padding: 15px;
}

td.block_view_info1 {
    width: 80%;
    color: #b6c8da;
    font-size: 14px;
    line-height: 1.3;
}

td.block_view_info2 {
	width:20%;
    color: #b6c8da;
}

table.ph_view_tbl {
	width:100%;
	min-height: 150px;
	text-align: center;
}

td.ph_left_view_tbl {
	width:70%;
}

.ph_right_view_tbl {
	width:100%;
	background: rgba(31, 59, 70, 0.8);
    padding: 15px 0px;
    font-size: 14px;
    color: #b6b6b6;
    /* top: 0; */
    width: 100%;
}

.ph_td_head_comm {
	background: rgba(68, 82, 88, 0.8);
	padding: 15px;
}

.ph_td_head_textcomm {
	padding: 15px;
}

.lite_button_like {
    background: #773030;
    color: #c1c1c1;
    border: 2px solid #1a2930;
    padding: 10px;
    width: 100%;
    font-size: 10px;
    margin-bottom: 10px;
}

.lite_button_like:hover {
    background: #5a5a5a;
    cursor: pointer;
}

.lite_button_del {
    background: #600909;
    color: #c1c1c1;
    border: 2px solid #1a2930;
    padding: 10px;
    width: 100%;
    font-size: 10px;
    margin-bottom: 10px;
}

.lite_button_del:hover {
    background: #771111;
    cursor: pointer;
}

.lite_like {
    color: #acacac;
    line-height: 1.2;
    font-size: 14px;
    font-family: Play;
}

#phv_likes {
	font-weight: bold;
	color: #ffffff;
}

#phv_hits {
	font-weight: bold;
	color: #ffffff;
}

#ph_block_ncomment {
    color: #ffffff;
}

#ph_block_comment {
    color: #ffffff;
    /* background: #08151b; */
    background: rgba(32, 46, 56, 0.9);
    float: right;
    /* padding: 15px; */
    width: 100%;
}

#add_comment_photo
{
	color: #000;
}

.ph_button_comment {
	padding: 10px;
	background: #1d4810;
    width: 90%;
    color: #91b988;
    border: 2px solid #0d4613;
}

.ph_button_comment:hover {
	background: #285a18;
    cursor: pointer;
}

table.block_comment_ph {
    width: 90%;
    padding: 10px;
    background: #102127;
    /* border-radius: 5px; */
    min-height: 100px;
    margin-top: 10px;
    margin-right: 45px;
    position: relative;
    float: right;
}

table.block_pcomment_ph {
    width: 80%;
    padding: 5px;
    background: #0f2b2f;
    /* border-radius: 5px; */
    min-height: 10px;
    margin-top: 2px;
    margin-right: 45px;
    position: relative;
    float: right;
}

td.ph_bc_avatar {
	width: 100px;
	vertical-align: top;
}

td.ph_pbc_avatar {
	width: 70px;
	vertical-align: top;
}

td.ph_bc_text {
	padding: 15px;
}

td.ph_pbc_text {
	padding: 5px;
}

.ph_text {
	color: #d2d2d2;
	line-height: 1.3;
	font-size: 14px;
}

.ico_answ_ph {
    height: 16px;
    padding: 0 5px 0 10px;
    position: absolute;
    right: 0;
    bottom: 25px;
    font-weight: 700;
    width: 20%;
}

.ico_answ_ph_answ {
    height: 16px;
    padding: 0 5px 0 10px;
    position: absolute;
	right: 150px;
    bottom: 25px;
    font-weight: 700;
    width: 20%;
}

.lite_button_answph {
	background: #3f585d;
    color: #c1c1c1;
    border: 2px solid #1a2930;
    padding: 10px;
    width: 100%;
    font-size: 10px;
    margin-bottom: 10px;
}

.lite_button_answph:hover {
    background: #2a5e67;
    cursor: pointer;
}

table.ph_notice_lent {
    background: rgba(26, 31, 33, 0.8);
    padding: 15px;
    margin-left: 10px;
    margin-top: 5px;
    width: 95%;
    border-radius: 5px;
    position: relative;
}

table.ph_notice_lent:hover {
	background: rgba(18, 48, 60, 0.8);
	cursor: pointer;
}

.ph_button_delallnotice {
    padding: 10px;
    background: #3c3c3c;
    color: #757575;
    width: 50%;
    border: 2px solid #313131;
}

.ph_button_delallnotice:hover {
    background: #616060;
	color: #d4d4d4;
	cursor: pointer;
}

.ph_bl_answ_cpost {
	color: #d4d4d4;
}

.lite_button_panswph {
    background: #18373c;
    color: #657a7d;
    border: 2px solid #17373c;
    padding: 5px;
    width: 100%;
    font-size: 10px;
    margin-bottom: 10px;
}


.lite_button_panswph:hover {
	background: #254c52;
    color: #babbbb;
    cursor: pointer;
}

.block_answ_pcom {
	display: none;
}

.ph_add_hr {
	color: #a0a0a0;
    font-size: 10px;
    font-weight: bold;
}

.mp_photos,
.mp_photos * {
	box-sizing: border-box;
	font-family: Inter, Arial, sans-serif;
}

.mp_photos {
	color: var(--def_color, #dfe9f1);
	background: rgba(15, 24, 31, .92);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 8px;
	padding: 12px;
}

.mp_photos_head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
	padding: 16px;
	background: rgba(255,255,255,.035);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 8px;
}

.mp_photos_kicker {
	color: #8fb7d3;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.mp_photos_head h1 {
	margin: 3px 0 4px;
	font-size: 24px;
	line-height: 1.15;
	letter-spacing: 0;
}

.mp_photos_head p {
	margin: 0;
	color: #9fb0bd;
	font-size: 13px;
}

.mp_photos_actions,
.mp_photo_modal_actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.mp_photo_btn {
	border: 1px solid rgba(255,255,255,.09);
	background: rgba(255,255,255,.06);
	color: #dfe9f1;
	border-radius: 6px;
	padding: 10px 13px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: .16s ease-in-out;
	white-space: nowrap;
}

.mp_photo_btn:hover {
	background: rgba(255,255,255,.11);
}

.mp_photo_btn_main {
	background: #1f6f95;
	border-color: #2f8ab5;
	color: #fff;
}

.mp_photo_btn_main:hover {
	background: #2782ad;
}

.mp_photo_danger {
	background: rgba(145, 38, 50, .9);
	border-color: rgba(255, 120, 132, .25);
}

.mp_photo_danger:hover {
	background: rgba(174, 45, 59, .95);
}

.mp_photo_need_sql {
	margin-top: 12px;
	padding: 14px;
	border-radius: 8px;
	background: rgba(148, 91, 32, .18);
	border: 1px solid rgba(255, 185, 98, .25);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mp_photo_need_sql span {
	color: #c7d1d8;
	font-size: 13px;
}

.mp_photo_upload {
	display: none;
	grid-template-columns: minmax(240px, 1fr) 310px;
	gap: 12px;
	margin-top: 12px;
	padding: 12px;
	background: rgba(255,255,255,.035);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 8px;
}

.mp_photo_upload.open {
	display: grid;
}

.mp_photo_drop {
	min-height: 170px;
	border: 1px dashed rgba(143,183,211,.55);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 18px;
	cursor: pointer;
	background: rgba(31, 58, 75, .35);
	transition: .16s ease-in-out;
}

.mp_photo_drop.drag,
.mp_photo_drop:hover {
	background: rgba(38, 91, 118, .42);
	border-color: rgba(143,183,211,.9);
}

.mp_photo_drop input {
	display: none;
}

.mp_photo_drop_icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #1f6f95;
	font-size: 28px;
	font-weight: 700;
}

.mp_photo_drop b,
.mp_photo_drop span {
	display: block;
}

.mp_photo_drop span {
	margin-top: 4px;
	color: #a9b8c3;
	font-size: 13px;
}

.mp_photo_upload_side {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mp_photo_upload_side label {
	color: #9fb0bd;
	font-size: 12px;
	font-weight: 700;
}

.mp_photo_upload_side select,
.mp_photo_upload_side textarea,
.mp_photo_album_form input,
.mp_photo_album_form textarea,
.mp_photo_search input,
.mp_photo_comment_form textarea {
	width: 100%;
	border: 1px solid rgba(255,255,255,.08);
	background: rgba(4, 10, 16, .55);
	color: #eaf2f7;
	border-radius: 6px;
	padding: 10px 12px;
	outline: none;
	resize: vertical;
}

.mp_photo_upload_side textarea {
	min-height: 96px;
}

.mp_photo_upload_queue {
	grid-column: 1 / -1;
	display: grid;
	gap: 7px;
}

.mp_photo_upload_item {
	display: grid;
	grid-template-columns: 1fr 70px;
	gap: 8px;
	align-items: center;
	padding: 9px 10px;
	background: rgba(0,0,0,.22);
	border-radius: 6px;
	color: #cfdce5;
	font-size: 13px;
}

.mp_photo_upload_item div {
	grid-column: 1 / -1;
	height: 5px;
	background: rgba(255,255,255,.08);
	border-radius: 10px;
	overflow: hidden;
}

.mp_photo_upload_item i {
	display: block;
	height: 100%;
	background: #2f8ab5;
}

.mp_photo_upload_item.done i {
	background: #42a86f;
}

.mp_photo_upload_item.error i {
	background: #b44b57;
}

.mp_photo_toolbar {
	margin-top: 12px;
	display: flex;
	gap: 10px;
}

.mp_photo_search {
	position: relative;
	width: min(100%, 460px);
}

#mp_photo_album_delete {
	display: none;
}

.mp_photo_albums {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.mp_photo_album {
	display: flex;
	gap: 10px;
	align-items: center;
	text-align: left;
	border: 1px solid rgba(255,255,255,.07);
	background: rgba(255,255,255,.04);
	color: #dfe9f1;
	border-radius: 8px;
	padding: 9px;
	cursor: pointer;
	transition: .16s ease-in-out;
}

.mp_photo_album:hover,
.mp_photo_album.active {
	background: rgba(47, 138, 181, .18);
	border-color: rgba(47, 138, 181, .5);
}

.mp_photo_album_cover {
	width: 54px;
	height: 54px;
	border-radius: 6px;
	background-color: #132330;
	background-image: linear-gradient(100deg, rgba(255,255,255,.04), rgba(255,255,255,.12), rgba(255,255,255,.04));
	background-size: cover;
	background-position: center;
	flex: 0 0 auto;
}

.mp_photo_album_meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.mp_photo_album_meta b {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mp_photo_album_meta small {
	color: #94a8b6;
}

.mp_photo_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.mp_photo_tile {
	position: relative;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	padding: 0;
	aspect-ratio: 1 / 1;
	background: #132330;
	cursor: pointer;
	display: block;
}

.mp_photo_img_wait,
.mp_photo_stage.loading:before {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(255,255,255,.03), rgba(112, 162, 190, .16), rgba(255,255,255,.03));
	background-size: 220% 100%;
	animation: mpPhotoShimmer 1.15s linear infinite;
	pointer-events: none;
}

.mp_photo_img_wait:after,
.mp_photo_stage.loading:after {
	content: "Загрузка фото";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	color: #a9c0cf;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	background: rgba(5, 12, 18, .52);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 6px;
	padding: 7px 10px;
	white-space: nowrap;
}

@keyframes mpPhotoShimmer {
	to { background-position: -220% 0; }
}

.mp_photo_tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .22s ease;
	opacity: 0;
}

.mp_photo_tile img.loaded {
	opacity: 1;
}

.mp_photo_tile img.loaded + .mp_photo_img_wait,
.mp_photo_tile img.error {
	opacity: 0;
}

.mp_photo_tile img.loaded ~ .mp_photo_img_wait {
	display: none;
}

.mp_photo_tile img.error {
	display: none;
}

.mp_photo_tile img.error + .mp_photo_img_wait {
	opacity: 1;
	animation: none;
	background: rgba(19, 35, 48, .95);
}

.mp_photo_tile img.error + .mp_photo_img_wait:after {
	content: "Фото недоступно";
}

.mp_photo_tile:hover img {
	transform: scale(1.04);
}

.mp_photo_tile_shadow {
	position: absolute;
	inset: auto 0 0;
	height: 58%;
	background: linear-gradient(to top, rgba(0,0,0,.68), transparent);
}

.mp_photo_tile_user,
.mp_photo_tile_desc {
	position: absolute;
	left: 9px;
	right: 9px;
	color: #fff;
	text-align: left;
	text-shadow: 0 1px 3px rgba(0,0,0,.8);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mp_photo_tile_user {
	bottom: 25px;
	font-size: 12px;
	font-weight: 800;
}

.mp_photo_tile_desc {
	bottom: 8px;
	font-size: 11px;
	opacity: .86;
}

.mp_photo_empty {
	grid-column: 1 / -1;
	padding: 22px;
	text-align: center;
	color: #9fb0bd;
	background: rgba(255,255,255,.035);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 8px;
}

.mp_photo_more_wrap {
	margin-top: 12px;
	text-align: center;
}

.mp_photo_wait {
	min-height: 18px;
}

.mp_photo_loader {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 3px solid rgba(255,255,255,.15);
	border-top-color: #2f8ab5;
	animation: mpPhotoSpin .8s linear infinite;
	margin: 10px auto;
}

@keyframes mpPhotoSpin {
	to { transform: rotate(360deg); }
}

.mp_photo_viewer,
.mp_photo_confirm,
.mp_photo_album_form {
	display: none;
}

.mp_photo_viewer.open,
.mp_photo_confirm.open,
.mp_photo_album_form.open {
	display: block;
}

.mp_photo_lock {
	overflow: hidden;
}

.mp_photo_viewer {
	position: fixed;
	inset: 0;
	z-index: 9998;
}

.mp_photo_viewer_bg {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.78);
}

.mp_photo_viewer_shell {
	position: absolute;
	inset: 24px;
	display: grid;
	grid-template-columns: 1fr 360px;
	grid-template-rows: minmax(0, 1fr);
	height: calc(100dvh - 48px);
	max-height: calc(100dvh - 48px);
	max-width: calc(100vw - 48px);
	background: #0d151d;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 20px 80px rgba(0,0,0,.45);
}

.mp_photo_stage {
	box-sizing: border-box;
	position: relative;
	display: grid;
	place-items: center;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	padding: 16px;
	background: #05080d;
	contain: paint;
}

.mp_photo_stage.loading:before,
.mp_photo_stage.loading:after {
	content: "";
	z-index: 1;
}

.mp_photo_stage.loading:after {
	content: "Загрузка фото";
	inset: auto;
}

#mp_photo_view_img,
.mp_photo_stage img {
	display: block;
	height: var(--photo-view-height, 100%) !important;
	max-height: 100% !important;
	max-width: 100% !important;
	min-height: 0 !important;
	min-width: 0 !important;
	object-fit: contain !important;
	object-position: center center;
	opacity: 0;
	transition: opacity .16s ease-in-out;
	position: relative;
	transform: var(--photo-view-rotate, rotate(0deg));
	transform-origin: center center;
	width: var(--photo-view-width, 100%) !important;
	z-index: 2;
}

#mp_photo_view_img.loaded,
.mp_photo_stage img.loaded {
	opacity: 1;
}

#mp_photo_view_img.error,
.mp_photo_stage img.error {
	display: none;
}

.mp_photo_viewer_close,
.mp_photo_close {
	border: 0;
	background: rgba(255,255,255,.08);
	color: #fff;
	border-radius: 6px;
	cursor: pointer;
}

.mp_photo_viewer_close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 34px;
	height: 34px;
	font-size: 24px;
}

.mp_photo_viewer_rotate {
	position: absolute;
	top: 12px;
	right: 54px;
	z-index: 3;
	width: 34px;
	height: 34px;
	font-size: 21px;
	line-height: 34px;
	border: 0;
	background: rgba(255,255,255,.08);
	color: #fff;
	border-radius: 6px;
	cursor: pointer;
}

.mp_photo_nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	border: 0;
	width: 42px;
	height: 70px;
	background: rgba(255,255,255,.08);
	color: #fff;
	font-size: 44px;
	line-height: 1;
	cursor: pointer;
}

.mp_photo_nav:hover,
.mp_photo_viewer_close:hover,
.mp_photo_viewer_rotate:hover {
	background: rgba(255,255,255,.15);
}

.mp_photo_nav_prev { left: 12px; }
.mp_photo_nav_next { right: 372px; }

.mp_photo_info {
	padding: 14px;
	overflow-y: auto;
	min-height: 0;
	background: rgba(18, 30, 39, .96);
}

.mp_photo_author {
	display: flex;
	gap: 10px;
	align-items: center;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255,255,255,.07);
}

.mp_photo_author img,
.mp_photo_comment_ava {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
}

.mp_photo_comment_avatar_link {
	align-items: flex-start;
	flex: 0 0 48px;
	height: 58px;
	margin-top: 1px;
	width: 48px;
}

.mp_photo_comment_ring {
	--size: 46px;
}

.mp_photo_comment_avatar_plain {
	margin-top: 2px;
}

.mp_photo_author a {
	color: #eaf2f7;
	font-weight: 800;
}

.mp_photo_author span,
.mp_photo_stats,
.mp_photo_comment_head span {
	color: #9fb0bd;
	font-size: 12px;
}

.mp_photo_desc {
	margin-top: 12px;
	line-height: 1.45;
	color: #d8e4ec;
	white-space: pre-wrap;
}

.mp_photo_stats {
	display: flex;
	gap: 12px;
	margin: 12px 0;
}

.mp_photo_comments_head {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(255,255,255,.07);
	font-weight: 800;
}

.mp_photo_comment_form {
	display: grid;
	gap: 8px;
	margin-top: 10px;
	position: relative;
}

.mp_photo_comment_form textarea {
	min-height: 74px;
}

.mp_photo_comment_form .site_chat_value {
	display: none;
}

.mp_photo_comment_editor {
	min-height: 74px;
	max-height: 180px;
	overflow-y: auto;
	font-family: Inter, var(--font-core), Arial, sans-serif;
}

.mp_photo_comment_tools {
	display: flex;
	align-items: center;
	gap: 7px;
}

.mp_photo_icon_btn {
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255,255,255,.08);
	background: rgba(255,255,255,.06);
	color: #dfe9f1;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 800;
}

#mp_photo_comment_counter {
	margin-right: auto;
	color: #91a8b7;
	font-size: 12px;
	font-weight: 700;
}

#mp_photo_comment_counter.warn {
	color: #ffbd73;
}

.mp_photo_reply_panel {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 9px;
	border-left: 3px solid #2f8ab5;
	background: rgba(47, 138, 181, .12);
	border-radius: 6px;
}

.mp_photo_reply_panel.show {
	display: flex;
}

.mp_photo_reply_panel span,
.mp_photo_reply_panel small {
	display: block;
	color: #9fb0bd;
	font-size: 12px;
}

.mp_photo_reply_panel b {
	color: #dfe9f1;
	font-size: 13px;
}

.mp_photo_reply_panel small {
	margin-top: 2px;
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mp_photo_reply_panel button {
	border: 0;
	background: rgba(255,255,255,.08);
	color: #fff;
	border-radius: 6px;
	width: 28px;
	height: 28px;
	cursor: pointer;
}

.mp_photo_smiles_panel {
	display: none;
	position: fixed;
	right: 28px;
	bottom: 28px;
	width: min(420px, calc(100vw - 32px));
	max-height: min(520px, calc(100dvh - 56px));
	z-index: 10020;
	background: #111d26;
	border: 1px solid rgba(255,255,255,.09);
	border-radius: 8px;
	padding: 10px;
	box-shadow: 0 12px 38px rgba(0,0,0,.35);
	flex-direction: column;
	min-height: 260px;
}

.mp_photo_smiles_panel.show {
	display: flex;
}

.mp_photo_smiles_panel .site_chat_picker_list {
	flex: 1;
	min-height: 0;
	max-height: none;
	overflow-y: auto;
}

.mp_photo_comments {
	margin-top: 12px;
	display: grid;
	gap: 10px;
}

.mp_photo_comment {
	display: flex;
	gap: 9px;
	align-items: flex-start;
}

.mp_photo_comment_body {
	min-width: 0;
	flex: 1;
	background: rgba(255,255,255,.045);
	border: 1px solid rgba(255,255,255,.055);
	border-radius: 8px;
	padding: 9px 10px;
}

.mp_photo_comment_focus .mp_photo_comment_body {
	box-shadow: 0 0 0 2px rgba(47, 138, 181, .65);
}

.mp_photo_comment_head {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.mp_photo_comment_head a {
	color: #a9d8f2;
	font-weight: 800;
}

.mp_photo_comment_text {
	margin-top: 5px;
	color: #dfe9f1;
	line-height: 1.38;
	word-break: break-word;
}

.mp_photo_comment_reply_view,
.mp_photo_comment_quote {
	margin-top: 7px;
	width: 100%;
	text-align: left;
	border: 0;
	border-left: 3px solid #2f8ab5;
	background: rgba(47, 138, 181, .12);
	color: #bfd5e4;
	border-radius: 6px;
	padding: 7px 9px;
	cursor: pointer;
}

.mp_photo_comment_reply_view b,
.mp_photo_comment_reply_view span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mp_photo_comment_reply_view b {
	color: #eaf2f7;
}

.mp_photo_comment_quote {
	cursor: default;
	font-size: 12px;
	line-height: 1.35;
}

.mp_photo_comment_del {
	margin-top: 7px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ff8f9b;
	cursor: pointer;
	font-size: 12px;
}

.mp_photo_album_form,
.mp_photo_confirm {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0,0,0,.58);
}

.mp_photo_album_form_inner,
.mp_photo_confirm_box {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(92vw, 430px);
	background: #111d26;
	border: 1px solid rgba(255,255,255,.09);
	border-radius: 8px;
	padding: 16px;
	box-shadow: 0 20px 70px rgba(0,0,0,.45);
	display: grid;
	gap: 10px;
}

.mp_photo_album_form_inner h3,
.mp_photo_confirm_box h3 {
	margin: 0;
	font-size: 18px;
}

.mp_photo_confirm_box p {
	margin: 0;
	color: #b8c6cf;
	line-height: 1.45;
}

.mp_photo_close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	font-size: 22px;
}

@media (max-width: 860px) {
	.mp_photos_head,
	.mp_photo_upload {
		grid-template-columns: 1fr;
		flex-direction: column;
	}
	.mp_photos_actions {
		width: 100%;
		flex-wrap: wrap;
	}
	.mp_photo_btn {
		flex: 1;
	}
	.mp_photo_grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.mp_photo_viewer_shell {
		inset: 0;
		border-radius: 0;
		grid-template-columns: 1fr;
		grid-template-rows: clamp(210px, 46dvh, 390px) minmax(0, 1fr);
		height: 100dvh;
		max-height: 100dvh;
	}
	.mp_photo_stage {
		height: 100%;
		max-height: clamp(210px, 46dvh, 390px);
		padding: 10px;
	}
	#mp_photo_view_img,
	.mp_photo_stage img {
		height: var(--photo-view-height, 100%) !important;
		width: var(--photo-view-width, 100%) !important;
	}
	.mp_photo_info {
		padding-bottom: 22px;
	}
	.mp_photo_smiles_panel {
		position: fixed;
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		max-height: 70dvh;
		min-height: 0;
	}
	.mp_photo_nav {
		top: min(23dvh, 195px);
		width: 38px;
		height: 58px;
		font-size: 38px;
	}
	.mp_photo_nav_next {
		right: 12px;
	}
}

@media (max-width: 860px) and (max-height: 620px) {
	.mp_photo_viewer_shell {
		grid-template-rows: clamp(160px, 42dvh, 250px) minmax(0, 1fr);
	}
	.mp_photo_stage {
		max-height: clamp(160px, 42dvh, 250px);
	}
	.mp_photo_nav {
		top: min(21dvh, 125px);
	}
}

@media (max-width: 480px) {
	.mp_photos {
		padding: 8px;
		border-radius: 0;
	}
	.mp_photos_head {
		padding: 12px;
	}
	.mp_photos_head h1 {
		font-size: 20px;
	}
	.mp_photo_albums {
		grid-template-columns: 1fr;
	}
	.mp_photo_toolbar,
	.mp_photo_search {
		width: 100%;
	}
}
