*{
    margin:0;
    padding:0;
}
header{
    position: fixed;
	z-index: 2;
	left: 0;
	right: 0;
	top: 0;
	height: 70px;
	padding: 0 1.5em 0 0.5em;
	background-color: #faf14f;
	font-family: 'Montserrat', sans-serif;
    display:block;
}
nav {
	position: fixed;
	z-index: 2;
	left: 0;
	right: 0;
	top: 0;
	height: 70px;
	padding: 0 1.5em 0 0.5em;
	background-color: #faf14f;
	font-family: 'Montserrat', sans-serif;
}
nav .logo img{
	height:60px;
    width:60px;
    padding:5px 0;
}
nav .nav-menu {
	position: absolute;
	right: 1.5em;
	top: 0;
	padding: 0;
	margin: 0;
	list-style: none;
}
nav .nav-item {
	display: inline-block;
}
nav .nav-item > a {
	display: inline-block;
	padding: 0 1.5em;
	line-height: 70px;
	color: black;
	text-decoration: none;
}
nav .dropdown {
	position: relative;
}
nav .dropdown a::after {
	content: '';
	display: inline-block;
	margin-left: .5em;
	vertical-align: middle;
	border-top: .3em solid black;
	border-right: .3em solid transparent;
	border-left: .3em solid transparent;
}
nav .dropdown.show a::after {
	transform: rotate(180deg);
}
nav .dropdown-menu {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	padding: .5em 0;
	margin-top: -.5em;
	border: 1px solid rgba(0,0,0,.3);
	border-radius: .5em;
	background-color: black;
}
nav .dropdown.show .dropdown-menu {
	display: block;
}
nav .dropdown-item {
	display: block;
	padding: 0 1.5em;
	font-size: .875em;
	color: white;
	line-height: 3;
	text-decoration: none;
}
nav .btn-hamburger {
	display: none;
	position: absolute;
	right: 1.5em;
	top: 50%;
	background-color: transparent;
	border: 0;
	cursor: pointer;
	outline: none;
	transform: translateY(-50%);
}
nav .btn-hamburger span {
	display: block;
	width: 30px;
	height: 4px;
	background-color: black;
	margin: 6px;
	border-radius: 2px;
	transition: .3s ease-in-out;
}
nav .btn-hamburger span:nth-child(4),
nav .btn-hamburger span:nth-child(5) {
	position: absolute;
	top: 10px;
	opacity: .5;
}
nav .btn-hamburger span:nth-child(4) {
	transform: rotate(45deg) scale(0);
}
nav .btn-hamburger span:nth-child(5) {
	transform: rotate(-45deg) scale(0);
}
nav.opened .btn-hamburger span:nth-child(4) {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}
nav.opened .btn-hamburger span:nth-child(5) {
	opacity: 1;
	transform: rotate(-45deg) scale(1);
}
nav.opened .btn-hamburger span:nth-child(1),
nav.opened .btn-hamburger span:nth-child(2),
nav.opened .btn-hamburger span:nth-child(3) {
	opacity: 0;
}
@media screen and (max-width: 980px) {
	nav .nav-menu {
		position: fixed;
		left: 0;
		right: 0;
		top: 70px;
		bottom: 100%;
		display: flex;
		flex-direction: column;
		justify-content: start;
		background-color: white;
		transition: bottom .5s ease-in-out;
		overflow: hidden;
	}
	nav.opened .nav-menu {
		bottom: 0;
	}
	nav .nav-item > a {
		display: block;
	}
	nav .dropdown-menu {
		position: relative;
		top: 0;
		margin: 0 1.5em;
	}
	nav .btn-hamburger {
		display: block;
	}
}
footer{
    height: auto;
    width: 100%;
    padding:0;
    background-color: #faf14f;
	font-family: 'Montserrat', sans-serif;
    text-align: center;
    display: block;
}

footer address{
    font-style: normal;
}

footer address a{
    text-decoration: none;
    color:blue;
}

.icons{
    display:flex;
    width:100%;
    height:auto;
    justify-content: center;
    column-gap: 1rem;
    transform-style: preserve-3d;
}

.icons #vk, .icons #tg, .icons #gh{
    width:3rem;
    height:2.25rem;
    font-size: 1.5rem;
    text-align: center;
    border-radius: 50%;
    color:white;
    padding-top: 0.75rem;
    cursor:pointer;
    margin-top:1rem;
    box-shadow: 0px 0px 9px 2.5px rgba(20, 20, 21, 0.45);
    position:relative;
    background:black;
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 2;
}

.icons a{
    color:white;
}

.icons #vk:after{
    content:'';
    position:absolute;
    background:radial-gradient(rgb(17, 82, 223), rgb(69, 111, 248));
    width:100%;
    height:100%;
    top:-3rem;
    left:0;
    transition:1s ease-in;
    z-index: -1;
}

.icons #tg:after{
    content:'';
    position:absolute;
    background:radial-gradient(rgb(1, 42, 131), rgb(27, 61, 175));
    width:100%;
    height:100%;
    top:-3rem;
    left:0;
    transition:1s ease-in;
    z-index: -1;
}

.icons #gh:after{
    content:'';
    position:absolute;
    background:linear-gradient(to bottom right, rgb(94, 94, 94), rgb(153, 153, 153));
    width:100%;
    height:100%;
    top:-3rem;
    left:0;
    transition:1s ease-in;
    z-index: -1;
}

.icons #vk:hover:after, .icons #tg:hover:after, .icons #gh:hover:after{
    transform:translateY(3rem);
    z-index: -1;
}

main{
    background-image: url(../images/sky.jpg);
    background-size: cover;
    position:relative;
    padding-top: 90px;
    display:block;
    width:100%;
    min-height:100vh;
}

.gallery{
    height:auto;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    background: transparent;
    padding:1rem;
    gap:1rem;
    justify-items: stretch;
    align-items: stretch;
}
.item{
    background: #000000;
    transition:.5s all;
    display:grid;
    justify-items: center;
    align-items: center;
    border-width: 2px;
    border-color: #000000;
    border-style:solid;
}
.item .info{
    color:white;
    padding:1rem;
    text-align: center;
}
.item .info img{
    height:100px;
    width:100px;
}
.item:hover{
    border-color:blue;
    cursor: pointer;
}

h2{
    font-family: 'Courier New', Courier, monospace;
    color:white;
    text-align: center;
}

.text{
    padding:1rem;
    border-radius: 12px;
    margin:1rem;
    background-color: #3832329d;
    color:white;
    font-family: 'Courier New', Courier, monospace;
}

@media screen and (max-width: 480px) {
	.gallery{
		grid-template-columns: repeat(1, 1fr);
		grid-template-rows: repeat(9, 1fr);
		grid-template-areas: 
		"it1"
		"it2"
		"it3"
		"it4"
		"it5"
		"it6"
		"it7"
		"it8"
		"it9";
	}
}
