
.user_photo_block {
	display: grid;
	gap:15px;
	grid-template-columns:17px 100px 200px auto 28px;
	grid-template-areas: "upb_cbox upb_img upb_img_links upb_img_comment upb_img_del";
}

.upb_cbox {
	grid-area: upb_cbox;
}

.upb_img {
	grid-area: upb_img;
}

.upb_img_links {
	grid-area: upb_img_links;
}

.upb_img_comment {
	grid-area: upb_img_comment;
}

.upb_img_del {
	grid-area: upb_img_del;
}

.upb_img_links>div {
	display: grid;
	gap:8px;
	grid-template-columns: auto;
}


@media screen and (max-width: 1024px) {

.user_photo_block {
	grid-template-columns:17px 100px auto 28px;
	grid-template-areas: 
		"upb_cbox upb_img upb_img_links upb_img_del"
		"upb_cbox upb_img upb_img_comment upb_img_del";
}

.upb_img_links>div {
	grid-template-columns: 1fr 1fr;
	gap:8px 20px;
}

}

@media screen and (max-width: 600px) {

.upb_img_links>div {
	grid-template-columns: auto;
	gap:8px;
}
}


@media screen and (max-width: 480px) {

.user_photo_block {
	grid-template-columns:100px auto 28px;
	grid-template-areas: 
		"upb_img upb_img_links upb_img_del"
		"upb_cbox upb_img_links upb_img_del"
		"upb_img_comment upb_img_comment upb_img_comment";
}

}


.upb_img img {
	display: block;
	width: 100px;
	margin: 0;
	padding: 0;
}


.upb_img_links>div div, .btn_editimg {
	border-radius: 5px;
	border:1px solid var(--color-usermenu);
	transition: background-color 0.3s;
}

.upb_img_links>div div:hover {
	background-color: var(--color-usermenu);
}

.upb_img_links a, .upb_img_links strong, .upb_img_links span, .btn_editimg a {
	padding: 5px 5px 5px 30px;
	display: block;
}

.btn_editimg {
	width: fit-content;
}



.btn_rotate_image a{
	background: url(/images8/circular-clockwise-arrow.svg) no-repeat 5px center / 1rem 1rem;
}

.btn_crop_image a{
	background: url(/images8/crop.svg) no-repeat 5px center / 1rem 1rem;
}

.btn_make_main_foto a, .btn_make_main_foto strong{
	background: url(/images8/user.svg) no-repeat 5px center / 1rem 1rem;
}

.btn_comments a, .btn_comments span{
	background: url(/images10/comments.svg) no-repeat 5px center / 1rem 1rem;
}

.upb_votes {
	font-size: 0.9rem;
	text-align: right;
}

.upb_save_podpis {
	display: none;
	background: var(--color-usermenu);
	padding: 5px 10px 5px 5px;
	border-radius: 5px;
	width: fit-content;
	position:absolute;
	margin-left: 5px;
	margin-top: 5px;
}

/*
.td_foto_editlinks div {
	margin-bottom: 8px;
}

.td_foto_editlinks div:last-child {
	margin-bottom: 0px;
}

.td_foto_editlinks a, .td_foto_editlinks strong, .td_foto_editlinks span, .btn_editimg a {
	padding: 0 0 0 25px;
	display: block;
	float: left;
}

.btn_rotate_image a{
	background: url(/images8/circular-clockwise-arrow.svg) no-repeat 5px center / 16px 16px;
}

.btn_crop_image {
	background: url(/images8/crop.svg) no-repeat 5px center / 16px 16px;
}

.btn_make_main_foto {
	background: url(/images8/user.svg) no-repeat 5px center / 16px 16px;
}

.btn_comments {
	background: url(/images8/comments.svg) no-repeat 5px center / 16px 16px;
}

.btn_edit_podpis {
	background: url(/images8/pencil.svg) no-repeat 0 2px / 14px 14px;
	padding: 0 0 4px 22px;
	margin-top: 5px;
}

@media screen and (max-width: 800px) {

.td_foto_editlinks a{
	padding: 5px 5px 5px 25px;
	border-radius: 5px;
	border:1px solid var(--color-tabbutton_selected);	
	float: none;
}

.btn_make_main_foto strong {
	display: block;
	padding: 5px 5px 5px 25px;
	border-radius: 5px;
	border:1px solid var(--color-link);	
	float: none;
}

.td_foto_editlinks span {
	display: block;
	padding: 6px 6px 6px 26px;
	float: none;
}

}
*/
.img_quality {padding:1px 5px; width:15px; text-align:center; color:white; font-size: 11px; cursor:pointer}
.img_qu_hd {background: #00cc00}
.img_qu_nm {background: #ffcc00}
.img_qu_lo {background: #ff3300}
.img_qu_abs {position:absolute; margin-top:-22px; margin-left:5px;}

/*
.sft_photoalbom {
	padding-left: 32px;
	background: url(/images8/folder-album.svg) no-repeat 0px 0px / 22px 22px;
}

.sft_photoalbom_new {
	padding-left: 32px;
	background: url(/images8/plus.svg) no-repeat 12px 12px / 15px 15px, url(/images8/folder-album.svg) no-repeat 0px 0px / 22px 22px;
}
*/

.count_photos {
	background: url(/images8/photograph.svg) no-repeat center 15px / 20px 20px, var(--color-bg);
}

.count_photos a {
	display: block;
	text-align: center;
	padding: 40px 10px 10px 10px;
	height: 50px;
	width: 80px;
}


/*
.rename_form {
	padding:10px 10px 0 10px; 
	border-radius:5px; 
	background:#ffffff;
}
*/

.upload_white {
	padding:10px; 
	border-radius:5px; 
	background:var(--color-bg);
}

/*
.photoalbom_table {
	width: 100%;
	border-collapse: collapse;
}

.photoalbom_table td, .photoalbom_table th {
	padding: 10px 0;
	margin: 0;
	padding-right: 10px;
	vertical-align: top;
}

.photoalbom_table tr {
	border-style: dotted;
	border-width: 0 0 1px 0;
	border-color: var(--color-gray);
}

.photoalbom_table td {

}

.photoalbom_table th {
	background: var(--color-usermenu);
	text-align: left;
}

.photoalbom_table tr td:last-child, .photoalbom_table tr th:last-child {
	padding-right: 0px;
}

.td_foto_img {
	width: 100px;
}

.td_foto_img img {
	width: 100px;
	margin: 0;
	padding: 0;
}

.td_foto_checkbox {
	width: 30px;
}

.photo_rating {
	background: url(/images8/like.svg) no-repeat 6px 6px / 14px 14px, var(--color-tabbutton_selected);
	padding: 5px 5px 5px 27px;
	border-radius:5px;
	font-size: 13px;

}



.foto_edit_podpis {
	margin-bottom: 10px;
	padding: 5px;
	border:1px dotted var(--color-menu);
}

.foto_edit_podpis_textarea {
	display: none;
	margin-bottom: 10px;
}

.foto_edit_podpis_textarea textarea {
	margin-bottom: 10px;
}

.td_foto_delete {
	width: 22px;
}

.td_foto_rating {
	width: 100px;
}

.td_foto_editlinks {
	width: 180px;
}

.photos_grid {
	display: grid;
	grid-template-columns: auto 300px;
	grid-gap: 15px 40px;
}
*/

.crop_div {
	padding: 10px;
	border:1px solid #7da1ba;
	float: left;
	margin-right: 20px;
	margin-bottom: 10px;
	border-radius:5px;

}

.rotate_protiv, .rotate_po {
	position: absolute;
	padding: 10px;
	margin: 5px;
	background-color: White;
	border-radius:5px;
}

.rotate_po {
	margin-left: 60px;
}

.rotate_protiv input[type="image"], .rotate_po input[type="image"] {
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
}

.rotated_image_img{
	width: auto;
	max-width: 100%;
	display: block;
	padding: 0;
	margin: 0;
}

.crop_img_help {
	min-width: 300px;
}

.crop_img_help .block_info{
	min-width: 200px;
}

.miniatura_title {
	margin-bottom: 10px;
	font-weight: bold;
}

.miniatura {
	margin-bottom: 10px;
	width: 130px;
	float: left;
}

.miniatura img, .miniatura canvas{
	display: block;
	padding: 0;
	margin: 0;
	padding: 10px;
	background-color: var(--color-tabbutton);
	border-radius:5px;
	width: 100px;
	height: 100px;
}

.min_current {
	float: left;
	margin-right: 10px;
}

.small_foto {
	float: left;
	margin-right: 10px;
	margin-bottom: 10px;
	border-radius:5px;
}

.small_foto img {
	display: block;
	padding: 0;
	margin: 0;
	width: 100px;
}

@media screen and (max-width: 425px) {

.small_foto img {
	width: 75px;
}

}


/*
@media screen and (max-width: 1439px) {

.photos_grid {
	grid-template-columns: auto;
	grid-gap: 15px;
}

}
*/

@media screen and (max-width: 700px) {

.crop_div {
	margin-right: 0px;

}

}


/*
@media screen and (max-width: 900px) {


.photoalbom_table, .photoalbom_table tbody {
	display: block;
}

.photoalbom_table th {
	display: none;
	padding: 0;
}

.photoalbom_table tr {
	display: grid;
	grid-gap:10px;
	grid-template-columns: 30px 100px auto 100px 28px;
	margin: 10px 0;
}

.photoalbom_table td {
	padding: 0;
}

.td_foto_podpis {
	grid-row: 2 / 2;
	grid-column: 2 / 5;
}

.td_foto_delete {
	grid-row: 1 / 1;
	grid-column: 5 / 6;
}

.td_foto_editlinks {
	width: auto;
}

}


@media screen and (max-width: 479px) {

.photoalbom_table tr {
	grid-template-columns: 30px 100px auto 28px;
}

.td_foto_delete {
	grid-row: 1 / 1;
	grid-column: 4 / 5;
}

.td_foto_rating {
	grid-row: 2 / 2;
	grid-column: 3 / 4;
}

.td_foto_podpis {
	grid-row: 3 / 3;
	grid-column: 1 / 5;
}


}


*/


@media screen and (max-width: 425px) {

.count_photos {
	background: url(/images8/photograph.svg) no-repeat center 10px / 20px 20px, var(--color-bg);
	font-size: 13px;
}

.count_photos a {
	padding: 35px 5px 5px 5px;
	height: 35px;
	width: 65px;
}


.open_upload_form a {
	padding: 35px 5px 5px 5px;
	height: 35px;
	width: 65px;
	background: url(/images8/plus.svg) no-repeat center 20px / 15px 15px, 
	url(/images8/photograph.svg) no-repeat center 10px / 20px 20px;
	font-size: 13px;
}


}

@media screen and (max-width: 375px) {

.count_photos a {
	height: 35px;
	width: 65px;
}

.open_upload_form a {
	height: 35px;
	width: 65px;
}

}

/*
@media screen and (max-width: 320px) {

.photoalbom_table tr {
	grid-template-columns: 30px 60px auto 28px;
}

.td_foto_img img{
	width: 60px;
	height: 60px;
}

}

*/