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

.imgsList
{
	grid-area: imgsList;
    width: 100%;
    z-index: 55;
    right: 0;
    bottom: 10px;
    top: auto;
    height: auto;
    display: flex;
    flex-wrap: wrap;
}

.bigImg
{
	grid-area: bigImg;
    top: 50%;
    bottom: 0;
    right: 0;
    width: 100%;
	height:70vh;
	transform: translateY(-50%);
}

.bigImg>div
{
	transform: none;
    left: auto;
    position: relative;
	height:100%;
}

h1
{
	grid-area: hOne;
	font-size: 2em;
    padding: 20px 0 10px 5%;
	margin:0;
}

.contactsWrapper
{
	grid-area: contactsWrapper;
	margin: 0;
    width: auto;
    display: flex;
	padding: 0 0 0 5%;
	text-align:center;
	justify-content: center;
}

.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: 50px 0;
}

.sotialWrap
{
	margin:0 auto;
}

.text::-webkit-scrollbar { width: 0; }

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

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

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

.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;
}

.imgsList
{
	justify-content: flex-end;
}

.imgsList>div
{
	height:auto;
}

.imgsList>div>div
{
	border:none;
	display: inline-block;
	height: 100px;
}

body:before
{
	content:'';
	width: 0;
    height: 0;
    border-top: 1000px solid var(--main-bg-color);
    border-right: 400px solid transparent;
    position: fixed;
    opacity: .5;
	transform: translateY(-30px);
}

body:after
{
	content:'';
	width: 0; 
	height: 0;
	border-bottom: 1000px solid var(--main-bg-color);
	border-left: 400px solid transparent;
	position: fixed;
    opacity: .5;
	right:0;
	top:0;
	z-index:-1;
}

.imgItem
{
	width: auto;
    height: 100px;
}

.imgsList:before
{
	display:none;
}

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

.sotialWrap>.sotial
{
	justify-content:center;
}

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

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

@media screen and (max-width: 1300px) and (min-width: 1000px)
{
	main
	{
		grid-template-areas:
			"hOne hOne"
			"text bigImg"
			"text imgsList"
			"contactsWrapper contactsWrapper"
			"sotialWrap sotialWrap";
		grid-template-columns: 49% 49%;
		grid-template-rows: auto 60vh auto auto auto;
	}
	
	.imgsList
	{
		width: 100%;
		position: relative;
	}
	
	.imgsList>div
	{
		justify-content:flex-end;
	}
	
	.bigImg
	{
		position: relative;
		width: auto;
		min-height: 400px;
	}
	
	.bigImg>div
	{
		left:0;
	}
	
	.contactsWrapper
	{
		display: block;
		overflow: inherit;
	}
	
	.contactItem
	{
		width: 90%;
	}
	
	.contactsWrapper: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;
		bottom: 0;
	}
	
	.contactsWrapper:after
	{
		content: '';
		width: 100px;
		height: 100%;
		background-color: var(--main-bg-color);
		transform: skew(-20deg, 0deg);
		right: 0;
		position: absolute;
		top: 0;
		z-index: -1;
		bottom: 0;
	}
	
	.contactItem:first-child:before,.contactItem:last-child:before
	{
		display:none;
	}
	
	#myimage
	{
		top: 0;
		left:0;
		transform: none;
		position:static;
	}
	
	figure.zoom,#myimage
	{
		max-height:calc(60vh - 20px);
		height:auto;
	}
	
	h1
	{
		text-align:center;
		display:block;
	}
}

@media screen and (max-width: 999px) and (min-width: 500px)
{
	main
	{
		grid-template-areas:
			"hOne"
			"bigImg"
			"imgsList"
			"text"
			"contactsWrapper"
			"sotialWrap";
		grid-template-columns: 100%;
		grid-template-rows: auto 40vh auto auto auto;
	}
	
	.bigImg
	{
		position:relative;
		margin: 0 auto;
		z-index: 1;
		width:100%;
	}
	
	.bigImg>div
	{
		left:0;
	}
	
	.imgsList
	{
		position:relative;
		width:95%;
		justify-content: center;
	}
	
	.text
	{
		margin:5%;
		min-height:auto;
		max-height:auto;
	}
	
	.links>div>div
	{
		width:30%;
	}
	
	.contactsWrapper:before
	{
		content: '';
		width: 100px;
		height: 100%;
		background-color: var(--main-bg-color);
		transform: skew(-20deg, 0deg);
		left: 0;
		position: absolute;
		top: 0;
		z-index: -1;
		bottom: 0;
	}
	
	.contactsWrapper:after
	{
		content: '';
		width: 100px;
		height: 100%;
		background-color: var(--main-bg-color);
		transform: skew(-20deg, 0deg);
		right: -50px;
		position: absolute;
		top: 0;
		z-index: -1;
		bottom: 0;
	}
	
	.links
	{
		height: 80%;
		width: 95%;
	}
	
	.links>div:before
	{
		content: '';
		width: 100px;
		height: 100%;
		background-color: var(--main-bg-color);
		transform: skew(-20deg, 0deg);
		left: 0;
		position: absolute;
		top: 0;
		z-index: -1;
		bottom: 0;
	}
	
	.links>div:after
	{
		content: '';
		width: 100px;
		height: 100%;
		background-color: var(--main-bg-color);
		transform: skew(-20deg, 0deg);
		right: 0;
		position: absolute;
		top: 0;
		z-index: -1;
		bottom: 0;
	}
	
	.links>div
	{
		justify-content:center;
	}
	
	.contactItem:first-child:before,.contactItem:last-child:before,.links>div>div:first-child:before,.links>div>div:last-child:before
	{
		display:none;
	}
	
	.contactItem
	{
		width:100%;
		min-width: 300px;
	}
	
	.contactsWrapper
	{
		justify-content:center;
		z-index:1;
		width: 90%;
		flex-wrap: wrap;
	}
	
	#myimage
	{
		left: auto;
		transform: none;
		top: 0;
	}
	
	figure.zoom,#myimage
	{
		max-height:580px;
		height:auto;
	}
	
	.imgsList
	{
		width:95%;
	}
	
	h1
	{
		display: block;
		text-align: center;
	}
	
	.sotialWrap
	{
		width:100%;
	}
	
	.text {
		max-height: 100%;
	}
}

@media screen and (max-width: 499px)
{
	main
	{
		grid-template-areas:
			"hOne"
			"bigImg"
			"imgsList"
			"text"
			"contactsWrapper"
			"sotialWrap";
		grid-template-columns: 100%;
		grid-template-rows: auto 50vh auto auto auto;
	}
	
	.bigImg
	{
		position:relative;
		margin: 0 auto;
		z-index: 1;
		width:100%;
		min-height:500px;
	}
	
	.imgItem
	{
		height:50px;
	}
	
	.bigImg>div
	{
		left:0;
	}
	
	.imgsList
	{
		position:relative;
		width:90%;
		justify-content: center;
	}
	
	.text
	{
		margin:5%;
		z-index:1;
	}
	
	.links
	{
		padding:0;
	}
	
	.links>div>div
	{
		width:30%;
	}
	
	.links>div
	{
		justify-content:center;
	}
	
	.contactItem:first-child:before,.contactItem:last-child:before,.links>div>div:first-child:before,.links>div>div:last-child:before,.contactsWrapper:after,.contactsWrapper:before
	{
		display:none;
	}
	
	.contactItem
	{
		width:100%;
		min-width: 300px;
	}
	
	.contactsWrapper
	{
		justify-content:center;
		z-index:1;
		width: 100%;
		display:block;
		padding:0;
	}
	
	#myimage
	{
		left: auto;
		transform: none;
		top: 0;
	}
	
	figure.zoom,#myimage
	{
		max-height:calc(50vh - 20px);
		height:auto;
	}
	
	.sotialWrap
	{
		width:100%;
	}
	
	.text {
		max-height: 100%;
	}
}

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

.imgsList
{
	overflow:hidden;
}

#myimage
{
	animation-duration: 3s;
	animation-name: slidein;
	animation-iteration-count: 1;
}

@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:hover ~.img-zoom-result
{
	display:none;
}

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

@media screen and (max-width: 500px)
{
	.sotialWrap
	{
		flex-direction: column;
	}
	
	.sotialWrap>.sotial
	{
		padding:0;
	}
}