:root 
{
  --main-bg-color: #95afd6;
}

.imgsList
{
	grid-area: imgsList;
	overflow:hidden;
	padding: 5px 0;
}

.bigImg
{
	grid-area: bigImg;
	width: 100%;
	background-color: var(--main-bg-color);
	height: 80vh;
}

.bigImg>div{
	width:100%;
	height:100%;
	height: 80vh;
}

h1
{
	grid-area: hOne;
	font-size: 2em;
    margin: 5px;
}

.contactsWrapper
{
	grid-area: contactsWrapper;
}

.links
{
	grid-area: links;
	width:100%;
	z-index:0;
}

.text
{
	grid-area: text;
	overflow: auto;
	padding:50px 0 0 0;
}

.hideScroll>div::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #e9e9e9;
}

/* ползунок скроллбара */
.hideScroll>div::-webkit-scrollbar-thumb {
    background-color: #979797;
}

.hideScroll>div::-webkit-scrollbar-thumb:hover {
    background-color: #5c5c5c;
}

main
{
	position:relative;
	display:grid;
	grid-template-areas: 
		"hOne hOne hOne"
		"imgsList text bigImg"
		"imgsList text ."
		"contactsWrapper contactsWrapper sotialWrap";
	grid-template-columns: 150px auto 30%;
	grid-template-rows: auto 80vh auto auto;
	grid-gap: 70px;
	padding: 2%;
}

main>div
{
	width:100%;
}

.links>div
{
	display:flex;
	height:100%;
}

.links>div>div
{
	width:33%;
	text-align:center;
	border-radius: 0 0 30px 30px;
}

.links>div>div:hover
{
	background-color:var(--main-bg-color);
}

.links>div>div:hover>a
{
	color:white;
}

.links>div>div>a
{
	position: relative;
    top: 50%;
    transform: translateY(-50%);
    display: block;
	color:black;
}

.bigImgItem
{
	max-width: 100%;
    max-height: 100vh;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    min-width: 70%;
    min-height: auto;
}

.imgsList
{
	width:100%;
}

body:before
{
	/*content: '';*/
    height: 100%;
    bottom: 0;
    right: 0;
    width: 25%;
    background-color: var(--main-bg-color);
    position: absolute;
}

body:after
{
	/*content: '';*/
    height: 100%;
    bottom: 0;
    right: 25%;
    width: 50%;
    background-color: var(--main-bg-color);
    position: absolute;
    border-radius: 50%;
	transform: translateX(50%);
    z-index: -1;
}

.imgsList>div
{
	overflow-y: scroll;
	position: absolute;
	padding-bottom: 100px;
}

.sotialWrap
{
	display: block;
}

.sotialWrap>.sotial
{
	padding:0;
	justify-content: right;
	width: 100%;
}

figure.zoom
{
	left: auto;
    transform: none;
    position: relative;
    top: 0;
	height: auto;
	max-height: calc(80vh - 20px);
}

#myimage
{
	max-height: calc(80vh - 20px);
	height:auto;
}

.bigImgItem
{
	top: 0;
}

.bold
{
	width: 100px;
}

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

@media screen and (max-width: 1200px) and (min-width: 800px)
{
	main
	{
		position:relative;
		display:grid;
		grid-template-areas: 
			"hOne hOne"
			"imgsList bigImg"
			"text text"
			"contactsWrapper contactsWrapper"
			"sotialWrap sotialWrap";
		grid-template-columns: 150px 1fr;
		grid-template-rows: auto 70vh auto auto auto;
		grid-gap: 2%;
		padding: 2%;
	}
	
	.bigImg,.bigImg>div,figure.zoom
	{
		height:70vh;
	}
	
	.bigImgItem
	{
		max-width: auto;
		max-height: 60vh;
		min-width: auto;
	}
	
	.imgsList>div
	{
		position:relative;
		padding-bottom: 0px;
		margin-top: 0px;
	}
	
	.sotialWrap
	{
		flex-wrap:wrap;
	}
	
	.sotialWrap>.sotial
	{
		justify-content: center;
	}
	
	figure.zoom,#myimage
	{
		max-height:calc(70vh - 20px);
		height:auto;
	}
}

.hideScroll:before
{
	bottom:auto;
}

.imgsList>div
{
	overflow-y: auto;
}

.imgsList>.whiteScroll
{
	position:absolute;
	top:0;
	bottom:0;
	right:0;
	width:17px;
	background-color:white;
	border-radius:0;
	border:none;
	
}

.bold
{
	margin: 10px 10px 10px 0;
    background-color: var(--main-bg-color);
    border-radius: 0 10px 10px 0;
    padding: 0 0 0 10px;
}

div[name="contacts"]
{
	margin: 3px 3px 3px 0;
}

.contactItem
{
	padding:0;
}

a[name="links"]
{
	font-weight:600;
}

.sotialWrap
{
	background-color:transparent;
}

@media screen and (max-width: 799px)
{
	main {
		grid-template-areas:
			"hOne"
			"bigImg"
			"imgsList"
			"text"
			"contactsWrapper"
			"sotialWrap";
		grid-template-columns: 1fr;
		grid-template-rows: auto 60vh auto auto auto auto;
		grid-gap: 10px;
	}
	
	.bigImg,.bigImg>div,figure.zoom
	{
		height:60vh;
	}
	
	.bigImgItem
	{
		max-width: auto;
		max-height: 60vh;
		min-width:auto;
		min-height:auto;
	}
	
	#myimage
	{
		top:50%;
		transform: translate(-50%,-50%);
	}
	
	.imgsList
	{
		height:auto;
	}
	
	.imgsList>div
	{
		display:flex;
		height:170px;
		padding-bottom: 0px;
		margin-top: 0px;
	}
	
	.imgsList>div>div,.imgsList>div>div>img
	{
		height:145px;
		width: auto;
	}
	
	.imgsList
	{
		overflow-x: auto;
	}
	
	h1
	{
		margin: 15px 5px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.text
	{
		background-color: white;
		padding: 10px;
		width: 95%;
		text-align: justify;
		line-height: 1.7;
		font-size: 15px;
	}
	
	.contactsWrapper
	{
		background-color: white;
		width: 95%;
	}
	
	.links
	{
		border-radius: 20px;
	}
	
	.img-zoom-container:before
	{
		content:'';
		top:0;
		bottom:0;
		left:0;
		right:0;
		position: absolute;
		z-index: 5;
	}
	
	.imgsList>div
	{
		position:relative;
	}
	
	.contactItem>div,.sotialWrap
	{
		flex-direction: column;
	}
	
	.sotialWrap>.sotial
	{
		justify-content: center;
		flex-wrap: wrap;
	}
	
	.tox-tinymce
	{
		width: 95%;
	}
}

.imgsList>.whiteScroll
{
	display:none;
}

.bigImg>div
{
	text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 1199px)
{
	.bigImg>div
	{
		text-align: center;
	}
	
	.text{
		height: auto;
	}
}