body
{
	background: linear-gradient(to right, #EFEFEF 360px, white 300px);
	--width: 680px;
    --height: 680px;
    --min-height: 150px;
    --width_sort: 150px;
    --height_sort: 150px;
}
main
{
	position:relative;
	display:grid;
	grid-template-areas: 
		"imgsList hOne bigImg"
		"imgsList text text"
		"contactsWrapper contactsWrapper contactsWrapper"
		"sotialWrap sotialWrap sotialWrap";
	grid-template-columns: 350px auto 720px;
	grid-gap: 0.1em;
	padding:0;
/*	grid-template-rows: auto auto calc(var(--height) + 20px) auto;
	grid-column-gap: 1em;
  	grid-row-gap: 1em;*/
}
.RN-wrapper{min-width: 90%;}
.contactsWrapper_off
{
	display: none;
}
.title
{
  width: 100%;
}
h1>.tox-tinymce
{
	min-height: 200px !important;
}
.gal_fix_size
{
 	width: var(--width);
    height: var(--height);
}
.gal_border
{
    width: var(--width);
    height: var(--height);
    border: 10px #ffffff solid;
    border-radius: 7.5em;
}
.gal_block_dot
{
    border: 1px dashed #6a6a6a;
 	overflow:hidden;
	width: calc(var(--width) + 20px);
    height: calc(var(--height) + 20px);
}
.gal_fix_size_small
{
    width: 350px;
}
.gal_img_add_prew
{
    display: grid;
    height: 100%;
    align-items: center;
    width: var(--width);
    justify-items: center;
    cursor: pointer;
}
.gal_small_img_yes_width
{
	width: var(--width_sort)!important;
	min-height: var(--height_sort)!important;
}
.modal_sort_images>.gal_small_img_tab 
{
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-column-gap: 0.5em;
    grid-row-gap: 0.5em;
}
.gal_small_img_tab
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1.2em;
    grid-row-gap: 1.2em;
    margin: 10px 10px 0 10px;
}
.gal_small_img_no
{
    background-color: #e2dede40;
    display: grid;
    align-items: center;
    justify-items: center;
    min-height: var(--min-height);
    width: var(--width_sort);
    transition: 300ms;
    cursor: pointer;
    border-radius: 1.5em;
	border-style: dashed;
	border-color: #373739;
	border-width: 1px;
}
.gal_small_img_yes
{
    border: 3px #D5966D solid;
    background-position: center;
    background-size: 100%;
    height: var(--min-height);
    width: var(--width_sort);
	position:relative;
    user-select: none;
    cursor: pointer;
    border-radius: 1.5em;
}
.gal_block_dot_small_img {
    border: 1px dashed #6a6a6a;
	padding-bottom: 10px;
}
.gal_block_small_img_client {
    margin: 1em 0 0 0.3em;
}

.sotialWrap
{
	display: grid;
    justify-items: center;
}
.sotialWrap_block{  }
.soc_adm_soc
{
	border-right: 3px solid #fff;
	padding: 0.5em 0.5em 0 0.5em;
}
.soc_adm_mes
{
 	padding: 0.5em 0.5em 0 0.5em;   
}
.imgsList
{
	grid-area: imgsList;
}
.imgsList_setup
{
/*	margin-left: 3em; */
	overflow: hidden;
	justify-content: flex-end;
}
.bigImg
{
	grid-area: bigImg;
}
.bigImg_setup
{
	display: flex;
    background: #f6f5f57d;
    border-radius: 8em;
    margin-bottom: 1em;
    width: calc(var(--width) + 20px);
}
/*.imgsList_tab
{
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-column-gap: 1em;
  	grid-row-gap: 1em;
}
*/
.imgItemWrap
{
	border: 2px #e2e2e2 solid;
	overflow: hidden;
}
.h1_block
{
	grid-area: hOne;
	display: grid;
    grid-template-columns: 0 auto 0;
 	padding: 0 1em;
 	align-content: center;
}
.h1_block_center
{
	display: grid;
	align-items: center;
    justify-items: center;
    align-content: center;
	padding: 1.5em;
}
.h1_block_center>h1>div
{
	/*display: inline-grid;*/
	padding: 1em 3em;
}
h1{margin:0;}

.contactsWrapper
{
	grid-area: contactsWrapper;
	width: auto;
 	margin-top: 4em;
    margin-bottom: 2em;
}

.links
{
	grid-area: links;
	width:100%;
	z-index:0;
	margin:0;
	padding: 10px 0 10px 5%;
}

.text
{
	grid-area: text;
	width: auto;
    text-align: justify;
	/*overflow: auto;*/
	padding: 0 2em 0 2em;
}
.text::-webkit-scrollbar { width: 0; }

.text { -ms-overflow-style: none; }

.text { overflow: -moz-scrollbars-none; }


.links>div
{
	display: flex;
	height: 100%;
    align-items: center;
	justify-content:center;
}

.links>div>div
{
	width:25%;
	background-color:var(--main-bg-color);
	height: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
	position:relative;
}

.links>div>div:first-child:before
{
	content:'';
	width: 0;
    height: 0;
    border-bottom: 70px solid var(--main-bg-color);
    border-left: 40px solid transparent;
    left: 0;
    position: relative;
	transform: translateX(-100%);
	position:absolute;
}

.links>div>div:last-child:before
{
	content:'';
	width: 0;
    height: 0;
    border-top: 70px solid var(--main-bg-color);
    border-right: 40px solid transparent;
    right: 0;
    position: absolute;
	transform: translateX(100%);
}

.links>div>div>a
{
	color:black;
}

.contactItem
{
	width: 25%;
	background-color:var(--main-bg-color);
	position:relative;
}

.contactItem:first-child:before
{
	content: '';
    width: 100px;
    height: 100%;
    background-color: var(--main-bg-color);
    transform: skew(-20deg, 0deg);
    left: -25px;
    position: absolute;
    top: 0;
    z-index: -1;
}

.contactItem:last-child:before
{
	content: '';
    width: 100px;
    height: 100%;
    background-color: var(--main-bg-color);
    transform: skew(-20deg, 0deg);
    right: -25px;
    position: absolute;
    top: 0;
    z-index: -1;
}

.contactItem>div
{
	display:block;
}

.bold 
{
	width:100%;
	padding:0;
}



.imgItem
{
    /*height: 100px;
    object-fit: cover; 
    width: 100%;
    margin-bottom: -11px;
    */
}

.imgsList_setup:before
{
	display:none;
}
.sotialWrap>.sotial
{
	justify-content:center;
}

figure.zoom,#myimage
{
	height: 100%;
	border-radius: 7.2em;
}

@media screen and (max-width: 1000px)
{
	.links
	{
		height: 80%;
	}
	
	.contactsWrapper
	{
		height: 100%;
	}
}

.imgItem{
	transition: transform 1s linear;
    -webkit-transform: rotateY(360deg);
    transform: rotateY(360deg);
}



@keyframes slidein {
  from {
    margin-left: 100%;
  }

  to {
    margin-left: 0%;
  }
}

.divL,.divR
{
	position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    height: 100%;
	z-index:100;
	cursor:pointer;
}

.divL
{
	left:0;
}

.divR
{
	right:0;
}

.divL:hover,.divR:hover
{
	background-color:black;
	opacity:0.3;
}
.bigImgItem_def
{
	display: grid;
    align-items: center;
}
.bigImgItem_def img {height: 15em;}
.bigImgItem:hover ~.img-zoom-result
{
	display:none;
}

@media screen and (max-width: 1300px)
{
	.contactsWrapper:before, .contactsWrapper:after
	{
		content:none;
	}
}


.cont_adm_block
{
    display: grid;
    background-color: #F6C9AC;
    justify-items: center;
}
.cont_adm_tab
{
    display: grid;
    grid-template-columns: auto auto auto;
    position: relative;
    z-index: 10;
    padding: 0.5em;
    grid-row-gap: 1em;
    grid-column-gap: 2em;
}
.cont_adm_dot
{
    border: 1px dashed #6a6a6a;
}
.cont_adm_center
{
    display: grid;
    height: 100%;
}
.adm_con_2cell
{
    display: grid;
    grid-template-columns: 70px auto;
    align-items: center;    
}
.adm_con_2cell_1
{
    height: 70px;
    border-right: 2px solid #000;
    display: grid;
    align-items: center;
    justify-items: center;
}
.adm_con_2cell_1 img
{
    height: 50px;
}
.adm_con_2cell_2
{
    text-align: left;
    padding: 0em 1em;
}
.block_btn_top_right_cell_1
{
    position: relative;
    display: grid;
    grid-template-columns: auto 30px;
    grid-column-gap: 0.3em;
    margin: -0.5em -0.5em -1em 0;
}
.block_btn_top_right_cell_2
{
    position: relative;
    display: grid;
    grid-template-columns: auto 30px 30px;
    grid-column-gap: 0.3em;
    margin: -0.5em 0 -1.2em 0;
}
.block_btn_top_right_cell_2_gal
{
    position: relative;
    display: grid;
    grid-template-columns: auto 30px 30px;
    grid-column-gap: 0.5em;
    margin: -0.7em -0.7em 0 0;
}
.left_corner
{
    display: none;
}
.right_corner
{
    display: none;
}
.soc_adm_block
{
    display: grid;
    grid-template-columns: auto auto;
    margin-bottom: 2em;
}
.gal_btn_tab
{
    display: inline-grid;
    grid-template-columns: auto;
    grid-row-gap: 1em;
    margin: 1.5em 0em 0em;
}
@media (max-width: 1700px)
{
	body
	{
		--width: 600px;
	    --height: 600px;
	    --min-height: 140px;
	    --width_sort: 140px;
	    --height_sort: 140px;
	    background: linear-gradient(to right, #EFEFEF 345px, white 300px);
	}
	main{grid-template-columns: 350px auto 640px;}
	.gal_fix_size_small{width: 335px;}
}
@media (max-width: 1500px)
{
	body
	{
		--width: 500px;
	    --height: 500px;
	    --min-height: 130px;
	    --width_sort: 130px;
	    --height_sort: 130px;
	    background: linear-gradient(to right, #EFEFEF 325px, white 300px);
	}
	main{grid-template-columns: 320px auto 540px;}
	.gal_fix_size_small{width: 315px;}
	.gal_small_img_tab{grid-column-gap: 1em; grid-row-gap: 1em;}
	.h1_block_center>h1>div{padding: 1em 1em;}
}
@media (max-width: 1400px)
{
	.gal_small_img_tab {grid-column-gap: 0.5em;}
	.gal_fix_size_small {width: 300px;}
	body{background: linear-gradient(to right, #EFEFEF 310px, white 300px);}
	main{grid-template-columns: 305px auto 530px;}
}
@media (max-width: 1350px)
{
	body
	{
		--width: 450px;
	    --height: 450px;
	    --min-height: 110px;
	    --width_sort: 110px;
	    --height_sort: 110px;
	    background: linear-gradient(to right, #EFEFEF 270px, white 250px);
	}
	main{grid-template-columns: 265px auto 480px;}
	.gal_fix_size_small {width: 265px;}
}
@media (max-width: 1200px)
{
	main
	{
	grid-template-areas: 
		"imgsList hOne hOne"
		"imgsList bigImg bigImg"
		"imgsList text text"
		"contactsWrapper contactsWrapper contactsWrapper"
		"sotialWrap sotialWrap sotialWrap";
	}
	body
	{
		--width: 600px;
	    --height: 600px;
	}
	.bigImg
	{
		display: grid;
    	justify-items: center;
	}
}
@media (max-width: 995px)
{
	main
	{
		position:relative;
		display:grid;
		grid-template-areas: 
			"hOne hOne"
			"bigImg bigImg"
			"imgsList imgsList"
			"text text"			
			"contactsWrapper contactsWrapper"
			"sotialWrap sotialWrap";
		grid-template-columns: 1fr;
		margin: 0em 0.5em 1em 0.5em;
		grid-template-rows: auto;
		grid-row-gap: 1em;
	}
	.h1_block{padding: 1em 1em;}
	.h1_block_center>h1>div{padding: 0;}
	body
	{
		--width: 600px;
	    --height: 600px;
	    --min-height: 120px;
	    --width_sort: 120px;
	    --height_sort: 120px;
	}
	.bigImgWrapper2 {height: 100%;}
	.btn-left-right{width: 1em; margin-top: 2.5em;}
	.imgIconsWrapper2{display: none;}
	.gal_fix_size_small{width: 100%;}
	.gal_btn_tab{grid-column-gap: 1em;}
	figure.zoom, #myimage{border-radius: 7.2em;}
	.gal_small_img_tab{grid-template-columns: 1fr 1fr 1fr 1fr 1fr; grid-column-gap: 1em; grid-row-gap: 1em; margin: 0 10px 0 10px; justify-items: center;}
	.gal_btn_tab{grid-template-columns: auto auto;}
	h1{line-height: 1.5;}
	.bigImg_setup, .imgsList_setup{margin-left: 0.5em; margin-right: 0.5em;}
	.contactsWrapper{margin-top: 1em;}
	.sotialWrap{justify-items: center;}
	.soc_adm_soc{border-right: none;}
	.text{padding: 1em;}
	.cont_adm_tab{grid-template-columns: auto; grid-row-gap: 0.7em;}
	.cont_adm_block{margin-bottom: 3em;}
	.soc_adm_block{grid-template-columns: 1fr; grid-row-gap: 0;}
	.bigImg, .imgsList{display: grid; justify-items: center;}
}
@media (max-width: 750px)
{
	body
	{
	    --min-height: 100px;
	    --width_sort: 100px;
	    --height_sort: 100px;
	}
}
@media (max-width: 640px)
{
	body
	{
		--width: 450px;
	    --height: 450px;
	    background: linear-gradient(to right, #EFEFEF 0px, white 0px);
	}
	.gal_small_img_tab{grid-template-columns: 1fr 1fr 1fr 1fr;}
	.modal_sort_images>.gal_small_img_tab{grid-template-columns: 1fr 1fr 1fr 1fr;}
	.gal_small_img_yes, .gal_small_img_no{border-radius: 1em;}
	.bigImg_setup, .gal_big_img, .gal_border{border-radius: 2em;}
	figure.zoom, #myimage{border-radius: 1.5em;}
	.gal_btn_info_block{right: 1em;}
}
@media (max-width: 550px)
{
	.gal_small_img_tab{grid-template-columns: 1fr 1fr 1fr;}
	.modal_sort_images>.gal_small_img_tab{grid-template-columns: 1fr 1fr 1fr;}
}
@media (max-width: 500px)
{
	body
	{
		--width: 370px;
	    --height: 370px;
	    --min-height: 100px;
	    --width_sort: 100px;
	    --height_sort: 100px;
	}
	.gal_btn_tab{grid-template-columns: auto;}
}
@media (max-width: 400px)
{
	body
	{
		--width: 350px;
	    --height: 350px;
	}
}


/*Text Edit*/
         
        .custom-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0);
            z-index: 101;
            pointer-events: none; /* Позволяет кликать на текстовое поле */
            transition: background-color 0.5s ease-in-out;
        }

        .custom-fixed-block {
            position: fixed;
            top: -180px;
            margin-top: -30px;
            left: 0;
            width: 100%;
            height: 60px;
            background-color: #F3F3F3;
            /* line-height: 80px; */
            display: none;
            z-index: 20000;
            box-shadow: 0px 0px 12px -1px #7A7E80;
            animation: slideInbg 0.5s forwards;
            padding: 5px 0 5px 15px;
        }

        .custom-editor {
            width: 100%;
            height: auto;
            padding: 10px;
            /*box-sizing: border-box;*/
            background-color: #fff;
            position: relative;
            border: 1px #E9EBED solid;
            border-radius: 5px;
            z-index: 102;
            font-size: 4em;
            font-weight: bold;
            line-height: 1;
            cursor: pointer;
        }
        .custom-editor:focus 
        {
        	outline: 1px #646464 solid;
        	border-radius: 5px;
        }
        .custom-editor:hover
        {
        	/*cursor: url('/templates/imgs/start_imgs/cursor-click.png') 25 25, none;*/
        	 cursor: text; 
        	/* cursor: url('/templates/imgs/start_imgs/cursor-click-text.png') 20 20, none; */
        }
        .textEditSave 
        {
            display: none;
            text-align: center;
		    padding: 0.2em 2em;
		    border-radius: 0 0 5px 5px;
		    background-color: #2E826A;
		    margin-top: 1px;
		    border: 1px #1d6752 solid;
		    border-top: none;
		    box-shadow: 2px 2px 10px -3px #000000;
		    color: white;
		    cursor: pointer;
		    width: auto;
		    z-index: 102;
		    animation: textEditSave 1.5s forwards;
        }
        .textEditPos
        {
        	width: calc(100% + 12px);
		    position: relative;
		    z-index: 103;
        }
        .active .custom-overlay {
            background-color: rgba(0, 0, 0, 0.5);
        }

        @keyframes slideInbg {
            from {
                top: 0;
            }
            to {
                top: 30px;
            }
        }
        @keyframes slideBodyTop {
            from {
                top: 0;
            }
            to {
                top: 30px;
            }
        }
        @keyframes slideBodyTopOut {
            from {
                top: 30px;
            }
            to {
                top: 0;
            }
        }     
        @keyframes textEditSave {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        .text_control_tab_close
        {
        	display: grid;
        	grid-template-columns: auto 90px;
        	height: 100%;
        	align-items: center;
        }
        .text_control_tab
        {
        	display: inline-grid;
        	grid-template-columns: auto auto auto auto auto;
        	height: 50px;
        }
        .text_control_tab_cell
        {
        	display: grid;
		    align-items: center;
		    grid-template-columns: 1fr 1fr 1fr 1fr;
		    padding: 0 15px;
        }
        .text_control_tab_cell_2
        {
        	display: grid;
		    align-items: center;
		    grid-template-columns: 1fr 1fr;
		    padding: 0 10px;
        }
        .text_control_tab_cell_1
        {
        	display: grid;
		    align-items: center;
		    padding: 0 10px;
        }        
        .text_control_tab img
        {
        	width: 22px;
		    padding: 5px;
		    border: 1px #d0d0d0 solid;
		    border-radius: 5px;
		    margin-right: 5px;
		    background: linear-gradient(to top, #f3f3f3bd, #ffffff);
		    box-shadow: 0px 0px 10px -5px #9b9b9b;
		    transition: 200ms;
		    cursor: pointer;
        }
        .text_control_tab img:hover
        {
        	box-shadow: none;
        	background: linear-gradient(to top, #fff, #fff);
        	transform:scale(1.1);
        	transition: 200ms;
        }
        .text_control_tab div
        {
        	border-left: 1px solid #000;
        }
        .text_control_tab div:first-child 
        {
        	border-left: none;
        }
        .text_select
        {
        	
        	border-style: none;
		    background-color: #ffffffb0;
		    border: 1px #525252 solid;
		    border-radius: 5px;
		    padding: 5px;
        }
/*Text Edit END*/
.RN-table th {
    background-color: #f2f2f2;
}