body
{

	--width: 650px;
    --height: 650px;
    --min-height: 80px;
    --width_sort: 80px;
    --height_sort: 80px;
    background-color: #F5F5F5;
    background-image: url(/katia/webring/parts/imgs/templ009_bg.png);
    background-repeat: no-repeat;
    background-position: top center;
}
main
{
	position:relative;
	display:grid;
	grid-template-areas: 
		"hOne bigImg contactsWrapper"
        "hOne bigImg sotialWrap"
        "imgsList imgsList imgsList"
        "text text text";
	grid-template-columns: 1fr 730px 1fr;
    grid-template-rows: 27em 8.5em 16em auto;
	grid-gap: 0.1em;
	padding:0;
}
.RN-table th {
    background-color: #c1c1c1;
}
.h1_block_center>.RN-wrapper>#RN-save
{
    margin-top: 0px;
}
.gal_fix_size
{
 	width: calc(var(--width) + 60px);
    height: calc(var(--height) + 60px);
    border: 10px #A19682 solid;
    border-radius: 50%;
    border-top: none;
    border-bottom: none;
    margin-top: 10px;
}
.contactsWrapper_off{display: none !important;}
.gal_border
{
    width: var(--width);
    height: var(--height) !important;
    border: 30px #f3b51500 solid;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}
.gal_block_dot
{
    border: 1px dashed #6a6a6a;
	overflow:hidden;
	width: calc(var(--width) + 80px) !important;
    height: calc(var(--height) + 80px);
}
.gal_fix_size_small
{
  /*  width: var(--width); */
}
.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-template-areas:
       "img_prev_1 img_prev_2 img_prev_3 img_prev_4 img_prev_5"
       "img_prev_6 img_prev_7 img_prev_8 img_prev_9 img_prev_10"; 
}
.gal_small_img_tab
{
    display: grid;
    grid-template-areas:
        "img_prev_9 img_prev_7 img_prev_5 img_prev_3 img_prev_1 bigImg_cell img_prev_2 img_prev_4 img_prev_6 img_prev_8 img_prev_10";
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 750px 1fr  1fr  1fr  1fr  1fr;
    grid-column-gap: 1em;
    grid-row-gap: 0;
    margin: 10px 10px 0 10px;
    justify-items: center;
    padding-top: 0.2em;
}
.gal_small_img_tab_3cell
{
    width: 100%; 
    height: 5px; 
    display: grid; 
    grid-template-columns: 1fr 730px 1fr;
    margin: 0 5px;
}
.gal_small_img_tab_3cell_top{border-top: 5px solid #A19682;}
.gal_small_img_tab_3cell_bottom{border-top: 2px solid #A19682;}
.gal_small_img_no
{
    background-color: #ffffffe8;
    display: grid;
    border-style: dashed;
    border-color: #373739;
    border-width: 1px;
    align-items: center;
    justify-items: center;
    min-height: var(--min-height);
    width: var(--width_sort);
    transition: 300ms;
    cursor: pointer;
    box-shadow: 3px 3px 8px 1px #3f3f3fa1;
    margin-bottom: 1em;
    border-radius: 1em;
}
.gal_small_img_yes
{
    background-size: 100%;
    min-height: var(--min-height);
    width: var(--width_sort);
	position:relative;
    user-select: none;
    cursor: pointer;
    box-shadow: 3px 3px 8px 1px #3f3f3fa1;
    margin-bottom: 1em;
    border-radius: 1em;
}
.gal_block_dot_small_img {
    border: 1px dashed #6a6a6a;
	margin: 0 0 0 3em;
	width: auto;
	padding-bottom: 10px;
}
.img_prev_1{grid-area: img_prev_1;}
.img_prev_2{grid-area: img_prev_2;}
.img_prev_3{grid-area: img_prev_3;}
.img_prev_4{grid-area: img_prev_4;}
.img_prev_5{grid-area: img_prev_5;}
.img_prev_6{grid-area: img_prev_6;}
.img_prev_7{grid-area: img_prev_7;}
.img_prev_8{grid-area: img_prev_8;}
.img_prev_9{grid-area: img_prev_9;}
.img_prev_10{grid-area: img_prev_10;}
.gal_btn_tab_block{grid-area: gal_btn_tab_block;}
.bigImg_cell{grid-area: bigImg_cell; height: calc(var(--height) + 60px);
}
.sotialWrap
{

}
.sotialWrap_block
{
	width: 100%;
}
.soc_adm_soc
{
	padding: 0.5em 0.5em 0 0.5em;
	display: grid;
    justify-items: end;
}
.soc_adm_mes
{
 	padding: 0.5em 0.5em 0 0.5em;
 	display: grid;
    justify-items: end;
}
.imgsList
{
	grid-area: imgsList;
    padding-bottom: 0.5em;
}
.imgsList_setup
{
	margin-left: 0;
	overflow: hidden;
	justify-content: flex-end;
}
.bigImg
{
	grid-area: bigImg;
	margin: 6em 0 1em 0;
	height: calc(var(--height) + 60px);
}
.bigImg_setup
{
	display: flex;
    /*background: #f6f5f57d;*/
    width: var(--width);
}
/*.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: auto 1fr auto;
    margin: 1em 2em 0 2em;
    line-height: 1.2;
}
.h1_block_center
{
/*	display: grid;
	justify-items: center;
	*/
}
.h1_block_center>h1>div
{
	padding: 1em;
    border-radius: 1em;
}
h1{margin:0;}

.contactsWrapper
{
	grid-area: contactsWrapper;
	margin: 0;
    width: auto;
	margin-top: 4em;
    margin-bottom: 2em;
    display: grid;
    justify-items: end;
}

.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;
	padding: 0 2em 0 2em;
	margin: 3em 1em 0.5em 1em;
	padding: 1em;
    border-radius: 10px;
    background-color: #EAE8DA;
}
.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: 50%;
}

@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: block;
    padding: 0.5em;
    margin: 0 0.5em;
}
.cont_adm_tab
{
    display: inline-grid;
    grid-template-columns: auto;
    position: relative;
    z-index: 10;
    padding: 0.5em;
    grid-row-gap: 1em;
    grid-column-gap: 1em;
}
.cont_adm_dot
{
    border: 1px dashed #babec3 !important;
}
.cont_adm_center
{
    display: grid;
    height: 100%;
}
.adm_con_2cell
{
    display: grid;
    grid-template-columns: auto 70px !important;
    align-items: center;
    grid-template-areas: "adm_con_two adm_con_one"
}
.adm_con_2cell_1
{
    height: 70px;
    border-right: none !important;
    border-radius: 50%;
    display: grid;
    align-items: center;
    grid-area: adm_con_one;
    background-color: #fff;
    box-shadow: 6px 1px 7px -5px #7A7E7F;
    justify-items: center;
}
.adm_con_2cell_1 img
{
    height: 45px;
}
.adm_con_2cell_2
{
    text-align: right !important;
    padding: 0em 1em;
    grid-area: adm_con_two;
}
.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: 0 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: 0px 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;
    margin-bottom: 1em;
}
.gal_btn_tab
{
    display: inline-grid;
    grid-template-columns: auto auto;
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    margin: 0.5em 0em 0em;
}
.cont_adm_top_btn
{
	margin-right: 6em !important;
}
@media (max-width: 1850px)
{
    body{--width: 550px; --height: 550px;}
    main{grid-template-columns: 1fr 630px 1fr;}
    .gal_small_img_tab{grid-template-columns: 1fr 1fr 1fr 1fr 1fr 600px 1fr 1fr 1fr 1fr 1fr;}
    .gal_small_img_tab_3cell{grid-template-columns: 1fr 630px 1fr; margin: 0 2px;}
}

@media (max-width: 1600px)
{
    .gal_small_img_tab
    {
       display: grid;
       grid-template-areas:
           "img_prev_7 img_prev_5 img_prev_3 img_prev_1 bigImg_cell img_prev_2 img_prev_4 img_prev_6 img_prev_8"
           ". . . img_prev_9 bigImg_cell img_prev_10 . . .";
       grid-template-columns: 1fr 1fr 1fr 1fr 600px 1fr  1fr  1fr 1fr;
    }  
}
@media (max-width: 1400px)
{
    .gal_small_img_tab
    {
       display: grid;
       grid-template-areas:
           "img_prev_5 img_prev_3 img_prev_1 bigImg_cell img_prev_2 img_prev_4 img_prev_6"
           ". img_prev_7 img_prev_9 bigImg_cell img_prev_10 img_prev_8 .";
       grid-template-columns: 1fr 1fr 1fr 635px 1fr  1fr  1fr;
    }  
    .contactsWrapper{margin-top: 2em;}
    .cont_adm_block{margin: 0 1em 0 0;}
    main
    {
        grid-template-areas: 
            "hOne hOne hOne"
            ". bigImg ."
            "imgsList imgsList imgsList"
            "text text text"
            "contactsWrapper contactsWrapper contactsWrapper"
            "sotialWrap sotialWrap sotialWrap";
        grid-template-columns: 1fr 630px 1fr;
        grid-template-rows: auto 16em auto auto auto;
    }
    .bigImg{margin: 3em 0 1em 0;}
    .text{margin: 13em 1em 0.5em 1em;}
    .gal_small_img_tab{grid-column-gap: 0.5em;}
}
@media (max-width: 1200px)
{
    .gal_small_img_tab
    {
       display: grid;
       grid-template-areas:
           "img_prev_3 img_prev_1 bigImg_cell img_prev_2 img_prev_4"
           "img_prev_7 img_prev_5 bigImg_cell img_prev_6 img_prev_8"
           ". img_prev_9 bigImg_cell img_prev_10 .";
       grid-template-columns: 1fr 1fr 635px 1fr  1fr;
    }
    main{grid-template-rows: auto 13em auto auto auto;}
}
@media (max-width: 1100px)
{
    body {--width: 520px; --height: 520px;}
    main{grid-template-columns: 1fr 600px 1fr;}
}
@media (max-width: 995px)
{
	h1{line-height: 1.2;}
	main
    {
        grid-template-areas: 
            "hOne"
            "bigImg"
            "imgsList"
            "text"
            "contactsWrapper"
            "sotialWrap";
        grid-template-columns: auto;
        grid-template-rows: auto;
    }
    .bigImg
    {
        margin: 0em 0 1em 0;
        display: grid;
        justify-items: center;
    }
    .btn-left-right{width: 1em; margin-top: 2.5em;}
    .imgIconsWrapper2{display: none;}
    .bigImg_setup{width: auto;}
    .h1_block{margin: 1em 1em 0 1em; min-height: auto;}
    .gal_small_img_tab_3cell{display: none;}
    .gal_small_img_tab
    {
        grid-template-columns: 1fr 1fr 1fr  1fr  1fr;
        grid-template-areas:
           "img_prev_1 img_prev_2 img_prev_3 img_prev_4 img_prev_5"
           "img_prev_6 img_prev_7 img_prev_8 img_prev_9 img_prev_10"; 
    }
    .text{margin: 1em 1em 0.5em 1em;}
    .adm_con_2cell
    {
        grid-template-areas: "adm_con_one adm_con_two";
        grid-template-columns: 70px auto !important;
    }
    .adm_con_2cell_2{text-align: left !important;}
    .cont_adm_block{margin: 0;}
    .contactsWrapper{justify-items: center;}
    .soc_adm_block{justify-items: center;}
}
@media (max-width: 640px)
{
    body {--width: 400px; --height: 400px;}
}


@media (max-width: 550px)
{
    .modal_sort_images>.gal_small_img_tab 
    {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-areas:
           "img_prev_1 img_prev_2 img_prev_3 img_prev_4"
           "img_prev_5 img_prev_6 img_prev_7 img_prev_8"
           "img_prev_9 img_prev_10 . ."; 
    }
}


@media (max-width: 500px)
{
    body {--width: 340px; --height: 340px;}   
    .gal_small_img_tab
    {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-areas:
           "img_prev_1 img_prev_2 img_prev_3 img_prev_4"
           "img_prev_5 img_prev_6 img_prev_7 img_prev_8"
           "img_prev_9 img_prev_10 . .";
    }
}
@media (max-width: 450px)
{
    body {--width: 320px; --height: 320px;}   
    .gal_small_img_tab
    {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas:
           "img_prev_1 img_prev_2 img_prev_3"
           "img_prev_4 img_prev_5 img_prev_6"
           "img_prev_7 img_prev_8 img_prev_9"
           ". img_prev_10 .";
    
}