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

@font-face 
{
    font-family: Raleway; /* Èìÿ øðèôòà */
    src: url(/templates/fonts/Raleway-VariableFont_wght.ttf); /* Ïóòü ê ôàéëó ñî øðèôòîì */
}

.imgsList
{
	grid-area: imgsList;
	width:100%;
	margin:0;
	padding:0;
	height:150px;
	transform: translateY(20px);
}

.imgsList>div
{
	display:flex;
	padding: 0 0 30px 0;
}

main>div.sotialWrap
{
	width:100%;
}

.sotialWrap
{
	flex-wrap: wrap;
}

.bigImg
{
	grid-area: bigImg;
	margin:0;
	padding:0;
	width:100%;
}

.bigImg>div
{
	height: 100%;
    position: relative;
}

.bigImgItem
{
	z-index:1;
}

h1.title
{
	grid-area: hOne;
	margin:0;
	padding:0;
	display: flex;
    justify-content: center;
    align-items: center;
	transform: translateX(10px);
	font-size: 3em;
    font-weight: 600;
}

h1,div,p,a
{
	font-family: Raleway; /* Èìÿ øðèôòà */
    src: url(/templates/fonts/Raleway-VariableFont_wght.ttf); /* Ïóòü ê ôàéëó ñî øðèôòîì */
}

html, body 
{
    height:100%;
	width:100%;
	margin:0 auto;
}

.contactsWrapper
{
	grid-area: contactsWrapper;
	width:100%;
	height:100%;
	margin:0;
	padding:0;
}

.links
{
	grid-area: links;
	width: 100%;
	margin:0;
	padding:0;
}

.contactsWrapper
{
	height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

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

.text
{
	grid-area: text;
	width: calc(99% - 20px);
    margin:0;
	padding:50px 20px 20px;
	text-align:justify;
	transform: translateX(10px);
	background-color:#dedede;
	overflow:auto;
}

.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"
		"bigImg text"
		"imgsList text"
		"contactsWrapper text"
		"sotialWrap text"
		". text";
	grid-template-columns: 50% 50%;
	grid-template-rows: 150px 70vh 200px 250px 150px auto;
	padding:0;
	min-height:100%;
	margin:0 auto;
	width:90%;
	height:auto;
}

.imgsList>div>div
{
	display:contents;
}

.imgItem
{
	width:auto;
}

.img-zoom-result
{
	display:none;
}

.text:before
{
	content: '';
    width: 100%;
    height: 100%;
    background-color: #dedede;
    position: absolute;
    transform: translate(-50px,-100%);
    margin: 10px;
    z-index: -1;
}

figure.zoom
{
	max-height: 100%;
    position: relative;
    transform: translateX(-50%);
    width: auto;
}

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

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

@media screen and (min-width: 1000px) and (max-width: 1200px)
{
	main
	{
		grid-template-areas: 
			"hOne hOne"
			"bigImg bigImg"
			"imgsList imgsList"
			"text text"
			"contactsWrapper contactsWrapper"
			"sotialWrap sotialWrap";
		grid-template-columns: 50% 50%;
		grid-template-rows: 150px 80vh 200px auto auto auto;
	}
	
	.sotialWrap
	{
		flex-wrap:wrap;
	}
	
	.text:before
	{
		display:none;
	}
	
	.contactsWrapper
	{
		overflow:hidden;
		margin: 30px 0 0 0;
	}
	
	.text{
		grid-area: text;
		width: 90%;
		margin: 0;
		padding: 20px;
		text-align: justify;
		transform: translateX(0);
		background-color: #dedede;
		border-left: 1px solid;
	}
	
	.bigImg>div
	{
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	#myimage
	{
		transform:none;
		max-height: calc(80vh - 20px);
	}
	
	figure.zoom
	{
		transform: translate(-50%,-50%);
		top: 50%;
		max-height: calc(80vh - 20px);
	}
}

@media screen and (max-width: 999px)
{
	main
	{
		grid-template-areas: 
			"hOne"
			"bigImg"
			"imgsList"
			"text"
			"contactsWrapper"
			"sotialWrap";
		grid-template-columns: 100%;
		grid-template-rows: 150px 50vh 200px auto auto auto;
	}
	
	.text{
		width: 95%;
		transform: translateX(0px);
	}
	
	.text:before
	{
		display:none;
	}
	
	.contactsWrapper
	{
		overflow:hidden;
		padding:30px 0;
	}
	
	.links
	{
		height: 100%;
		text-align: center;
	}
	
	.links>div
	{
		display: block;
	}
	
	.bigImgItem
	{
		top: 50%;
		transform: translateY(-50%);
	}
	
	.sotialWrap
	{
		flex-wrap:wrap;
	}
	
	#myimage
	{
		transform:none;
		max-height: calc(50vh - 20px);
	}
	
	figure.zoom
	{
		transform: none;
		top: 0;
		max-height: calc(50vh - 20px);
		position: relative;
		min-width: fit-content;
		width: auto;
		left:0;
	}
}