*{
	margin: 0;
	padding: 0;
}

::-webkit-scrollbar{
	width: 7px;
}

::-webkit-scrollbar-track{
	background: #fff;
	padding: 1px;
}

::-webkit-scrollbar-thumb{
	background: #9ca2b0;
	border-radius: 4px;
}

.lightbox::-webkit-scrollbar-track{
	background: #000;
}

.lightbox::-webkit-scrollbar-thumb{
	background: rgb(255,255,255,.3);
}

.grid{
	padding: 16px;
	display: grid;
	justify-content: center;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	grid-gap: 16px;
}

.grid img{
	display: block;
	width: 100%;
}


.lightbox{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.9);
	z-index: 10;
	overflow: auto;
	animation: lightboxIn .5s;
	transition: opacity .3s;
}

.lightbox.fadeOut{
	opacity: 0;
}

.lightbox button{
	position: fixed;
	opacity: .5;
	transition: opacity .3s;
	cursor: pointer;
	text-indent: -3000px;
	border: none;
	z-index: 20;
}

.lightbox button:hover{
	opacity: 1;
}

.lightbox-next, .lightbox-prev{
	background: url("../images/arrow.svg") center center/16px 28px no-repeat;
	width: 50px;
	height: 100%;
	top: 70px;
	right: 0;
	margin-top: -14px;
	
}

.lightbox-prev{
	right: auto;
	left: 0;
	transform: rotate(180deg);
}

.lightbox-close{
	width: 30px;
	height: 30px;
	background: url('../images/close.svg') center center/100% 100% no-repeat;
	top: 20px;
	right: 10px;
	z-index: 30;
}

.lightbox-container{
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	margin-left: 50px;
	margin-right: 50px;
}

.lightbox-loader{
	background: url("../images/loader.svg") center center no-repeat;
	width: 38px;
	height: 38px;
	opacity: .5;
}

.lightbox-container img{
	max-width: 100%;
	max-height: 100vh;
	height: auto;
	animation: lightboxIn .5s;
}

@keyframes lightboxIn {
	from { opacity: 0; }
	to 	 { opacity: 1; }
}