/* basic styles */
html {
	font-size: 100%; 
	line-height: 1.5rem; 
	box-sizing: border-box;
	font-family: 'Roboto', sans-serif;
	background-color: rgb(50, 50, 50);
	color: #CACACA;
}

body {
	margin: 0 auto;
	padding: 0;
	height: 100vh;
	max-width: 2000px;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

img {
	width: 100%;
	height: auto;
	display: block;
}

.header-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	align-items: center;
	line-height: 1rem;
	overflow: hidden;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.logo,
.nav-menu {
	text-transform: uppercase;
}

.nav-menu {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0;
	margin: 0;
}

.nav-item {
	flex: 1 0 10%
	text-align: left;
}

.logo a,
.nav-menu a {
	display: block;
	text-decoration: none;
	padding: 0.8rem;
	color: #CACACA;
	transition: 0.3s ease-in-out;
}

.logo a {
	font-weight: bold;
	font-size: 2rem;
}

.logo {
	margin: 0 0 0 0.3rem;
}

.nav-menu a:hover {
	transform: scale(1.2);
	color: #fff;
	transition: 0.3s ease-in-out;
}
.logo a:hover {
	transform: scale(1.1);
	color: #fff;
	transition: 0.3s ease-in-out;
}

.nav-menu a:active {
	transform: scale(1);
}

/* grid gallery style */

.gallery-page {
	padding: 0 1rem 10rem 1rem;
}

.gallery-auto-fit {
	display: grid;
	grid-template-columns: repeat(auto-fill, 256px);
	grid-gap: 1rem;
	justify-content: center;
}

.gallery-item {
	height: 110%;
	width: 100%;
	overflow: hidden;
	transition: 0.3s ease-in-out;
}

.gallery-img {
	box-shadow: rgba(0, 0, 0, 0.4) 0px 0.75rem 0.75rem;
}

/* add this above to make strict grid
height: 100%;
object-fit: cover;
*/

.gallery-item:hover {
	transform: scale(1.1);
	transition: 0.3s ease-in-out;
}

/* code for larger screens */

@media (min-width: 600px) {
	.header-nav {
		justify-content: space-between;
	}
	.nav-menu {
		width: auto;
	}
	.logo {
		margin: 0 0 0 0.3rem;
	}
}

/* Gallery Link */
.gallery__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}