*{
	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,.95);
	z-index: 99999 !important;
	overflow: auto;
	animation: lightboxIn .5s;
	transition: opacity .3s;
}

.lightbox.fadeOut{
	opacity: 0;
}

.lightbox button{
	position: fixed;
	opacity: .7;
	transition: all .3s ease;
	cursor: pointer;
	text-indent: -3000px;
	border: none;
	z-index: 100000 !important;
	background-color: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.lightbox button:hover{
	opacity: 1;
	background-color: rgba(255, 255, 255, 0.2);
	transform: scale(1.1);
}

.lightbox-next, .lightbox-prev{
	background: url("../images/arrow.svg") center center/16px 28px no-repeat, rgba(255, 255, 255, 0.1);
	width: 60px;
	height: 60px;
	top: 50%;
	right: 20px;
	margin-top: -30px;
	border-radius: 50%;
}

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

.lightbox-prev:hover {
	transform: rotate(180deg) scale(1.1);
}

.lightbox-close{
	width: 50px;
	height: 50px;
	background: url('../images/close.svg') center center/20px 20px no-repeat, rgba(255, 255, 255, 0.1);
	top: 90px;
	right: 20px;
	z-index: 100001 !important;
	border-radius: 50%;
}

.lightbox-container{
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 20px 100px;
	box-sizing: border-box;
}

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

.lightbox-container img{
	max-width: calc(100% - 40px);
	max-height: calc(100vh - 40px);
	height: auto;
	animation: lightboxIn .5s;
	border-radius: 12px;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

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

/* Mobile responsive */
@media (max-width: 768px) {
	.lightbox-container {
		padding: 20px;
	}
	
	.lightbox-next, .lightbox-prev {
		width: 44px;
		height: 44px;
		bottom: 30px;
		top: auto;
		margin-top: 0;
	}
	
	.lightbox-next {
		right: 20px;
	}
	
	.lightbox-prev {
		left: 20px;
	}
	
	.lightbox-close {
		width: 44px;
		height: 44px;
		top: 15px;
		right: 15px;
	}
	
	.lightbox-container img {
		max-width: 100%;
		max-height: calc(100vh - 120px);
		border-radius: 8px;
	}
}