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

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

.imgsList
{
	grid-area: imgsList;
    width: 400px;
    margin: 0;
    padding: 0;
    height: 100vh;
    position: fixed;
    background-color: #dddddd;
}

.imgsList>div
{
	display: block;
	overflow-x: scroll;
    width: 400px;
}

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

.bigImgItem
{
	z-index:1;
	height: 70vh;
	/*clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);*/
}

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

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%;
	padding:0;
	background-color: #2f2f2f;
	height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
	color: #cbcbcb;
}

.links
{
	grid-area: links;
	width: 100%;
	margin:0;
	padding:0;
	background-color: #2f2f2f;
}

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

.text
{
	grid-area: text;
	width:95%;
    margin:0 auto;
	padding:0 0 50px 0;
	text-align:justify;
	overflow:auto;
}

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

/* ???????? ?????????? */
.hideScroll>div::-webkit-scrollbar-thumb {
    background-color: #813636;
}

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

.text:before
{
	content: '';
    height: 8px;
    width: 30%;
    position: absolute;
    background-color: #894040;
    /* clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%); */
    z-index: 0;
    opacity: 1;
    top: 10px;
	right:0;
}

h1.title:after
{
	content: '';
    height: 8px;
    width: 90%;
    position: absolute;
    background-color: #894040;
    /* clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%); */
    z-index: -10;
    opacity: 1;
	right: 0;
    bottom: -30px;
}

.sotialWrap
{
	margin: 0 auto;
    flex-wrap: wrap;
    width: 100%;
    background-color: #2f2f2f;
    display: flex;
    text-align: revert;
    justify-content: end;
}

main
{
	position: relative;
    display: grid;
    grid-template-areas:
        "imgsList hOne hOne"
        "imgsList text text"
        "imgsList contactsWrapper sotialWrap";
    grid-template-columns: 400px auto auto;
    grid-template-rows: auto auto auto;
    padding: 0;
    min-height: 100%;
    margin: 0 auto;
    width: auto;
    height: auto;
	background-color: #ededed;
}

.hideScroll:before {
    /*content: '';*/
    background-color: white;
    position: absolute;
    top: auto;
    bottom: 0;
    right: 0;
	left:0;
    width: 100%;
    z-index: 1;
	height:20px;
	display:none;
}

.imgsList>div.whiteScroll
{
	display:none;
}

.imgsList>div
{
	overflow-x: clip;
    overflow-y: scroll;
}

.imgsList>div>div
{
	border: none;
    display: flex;
    width: 380px;
    height: 380px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.imgItem
{
	width: auto;
    height: 350px;
    cursor:auto;
    box-shadow: 0 0 5px;
}

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

.contactItem>div
{
	padding: 0 0 0 40px;
}

.links
{
	overflow:hidden;
}

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

figure.zoom,#myimage
{
	max-height: calc(70vh - 40px);
	height: auto;
}

.sotialWrap>.sotial
{
	display: flex;
    width: 80%;
    text-align: right;
    justify-content: end;
    align-items: center;
    transform: translateX(-30px);
}

@media screen and (max-width: 1200px)
{
	main
	{
		grid-template-areas:
			"hOne hOne"
			"imgsList imgsList"
			"text text"
			"contactsWrapper contactsWrapper"
			"sotialWrap sotialWrap";
		grid-template-columns: 50% 50%;
		grid-template-rows: auto calc(60vh + 50px) auto auto auto;
	}
	
	.contactsWrapper
	{
		overflow:hidden;
	}
	
	.links
	{
		height: 100%;
		text-align: center;
	}
	
	.links>div
	{
		top: 0;
		transform: translateY(0px);
	}
	
	figure.zoom,#myimage
	{
		max-height: calc(80vh - 20px);
		height: auto;
	}
	
	h1.title
	{
		padding:50px 0;
	    margin: 0;
	}
	
	.imgsList
	{
		padding: 0;
		position: relative;
		height: 60vh;
		width: calc(100% - 10px);
	}
	
	.imgsList>div 
	{
		margin: 0 auto;
		width: calc(100% - 10px);
	}
	
	.imgsList>div>div
	{
		width: calc(100% - 10px);
	}
	
	.contactItem {
		margin: 10px 0;
	}
	
	h1.title:after
	{
		bottom:0;
	}
	
	.sotialWrap>.sotial
	{
		justify-content: center;
	}
}