body {
	padding: 0;
	margin: 0;
    box-sizing: border-box;
	background-color: #55ceec;
}

img { 
	max-width: 100%; 
	height: auto; 
}

html, body { 
    overflow-x: hidden;
}

nav {
	position: fixed;
	z-index: 10;
	left: 0;
	right: 0;
	top: 0;
	font-family: 'Montserrat', sans-serif;
	padding: 0 5%;
	height: 100px;
	background-color: #01030a;
	background-image: url(Kuvat/Background1.jpg);
	box-shadow: 0 6px 6px 0 rgba(0,0,0,.2);
}
nav .logo {
	float: left;
	width: 40%;
	height: 100%;
	display: flex;
	align-items: center;
	font-size: 28px;
	color: #f8e80e;
    text-transform: uppercase;
	text-shadow: 3px 0px 7px rgba(81,67,21,0.8), 
	  -3px 0px 7px rgba(81,67,21,0.8), 
	  0px 4px 7px rgba(81,67,21,0.8);
}
nav .links {
	float: right;
	padding: 0;
	margin: 0;
	width: 60%;
	height: 100%;
	display: flex;
	justify-content: space-around;
	align-items: center;
}
nav .links li {
	list-style: none;
	border: 2px solid rgb(255, 255, 255);
	border-radius: 10px;
	box-shadow: 0 6px 6px 0 rgba(0,0,0,.2);
}

nav .links a {
	display: block;
	padding: 1em;
	font-size: 18px;
	font-weight: bold;
	color: rgb(0, 0, 0);
	text-decoration: none;
	text-shadow: 2px 2px 5px rgba(7, 7, 6, 0.8);
}

nav .links a:hover {
    transform: scale(1.15);
    transition: transform 0.3s ease-in;
    color: orange;
}

#nav-toggle {
	position: absolute;
	top: -100px;
}
nav .icon-burger {
	display: none;
	position: absolute;
	right: 5%;
	top: 50%;
	transform: translateY(-50%);
}

nav .icon-burger .line {
	width: 30px;
	height: 5px;
	background-color: rgb(0, 0, 0);
	margin: 5px;
	border-radius: 3px;
	transition: all .3s ease-in-out;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    padding-top: 100px;
    position: relative;
}

.gallery > div {
    height: 100%;
    overflow: hidden;
	
}

.kontti1 img {
	object-fit: cover;
	width: 100%;
	height: 500px;
}

.gallery > .kontti2 {
	position: relative;
}
.kontti2 h3 {
	margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: auto;
    transform: translate(-50%, -50%);
	color: rgb(255, 238, 0);
	text-shadow: 0px 4px 3px rgba(0,0,0,0.4),
	0px 8px 13px rgba(0,0,0,0.1),
	0px 18px 23px rgba(0,0,0,0.1);
	font-size: 2rem;
}



.gallery2 > .tavara3 > a > img{
    display: block;
    margin-left: auto;
    margin-right: auto;
   
}

.gallery > .tavara3 {
	max-width: 100%;
}

.pitch h1 {
	text-align: center;
	text-transform: uppercase;
	color: #f8e80e;
	text-shadow: 1px 1px#01030a;
}

.pitch video {
	width: 700px;
	height: 400px;
	margin-left: auto;
	margin-right: auto;
	display: block;
	padding-bottom: 3rem;
}


.gallery2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}


.gallery3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	grid-gap: 2px;
	
}

.tavara4 {
	background-color: rgb(28, 80, 83);
}

.tavara4 > video {
	width: 100%;
	height: 100%;
}

.grid-container {
	display: grid;
	grid-template-columns: auto auto auto auto auto;
	background-color: #2196F3;
	padding: 10px;
  }

.grid-item {
	background-color: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(0, 0, 0, 0.8);
	padding: 20px;
	text-align: center;

  }

div.galleria {
	
	text-align: center;
  }
  
  
  
div.galleria img {
	width: auto;
	height: 400px;
	object-fit: cover;
	
  }
  
div.desc {
	padding: 15px;
	text-align: center;
	font-size: 1.2rem;
  }
  
  * {
	box-sizing: border-box;
  }
  
  .responsive {
	padding: 0 6px;
	float: left;
	width: 24.99999%;
  }
 
@media screen and (max-width: 768px) {
	nav .logo {
		float: none;
		width: auto;
		justify-content: center;
	}
	nav .links {
		float: none;
		position: fixed;
		z-index: 9;
		left: 0;
		right: 0;
		top: 100px;
		bottom: 100%;
		width: auto;
		height: auto;
		flex-direction: column;
		justify-content: space-evenly;
		background-color: rgba(0,0,0,.8);
		overflow: hidden;
		box-sizing: border-box;
		transition: all .5s ease-in-out;
	}
	nav .links a {
		font-size: 20px;
		color: white;
	}
	nav :checked ~ .links {
		bottom: 0;
	}
	nav .icon-burger {
		display: block;
	}

	nav :checked ~ .icon-burger .line:nth-child(1) {
		transform: translateY(10px) rotate(225deg);
	}
	nav :checked ~ .icon-burger .line:nth-child(3) {
		transform: translateY(-10px) rotate(-225deg);
	}
	nav :checked ~ .icon-burger .line:nth-child(2) {
		opacity: 0;
	}

	.pitch video {
		width: 100%;
	}

	.grid-container {
		display: inline-block;
		margin: 0 auto;
		text-align: center;

	}
}
@media only screen and (max-width: 700px) {
	.responsive {
	  width: 49.99999%;
	  margin: 6px 0;
	}
  }
  
  @media only screen and (max-width: 500px) {
	.responsive {
	  width: 100%;
	}
  }
  
  .clearfix:after {
	content: "";
	display: table;
	clear: both;
  }