@import url(monoid.css);
body {
	overflow-y: hidden;
}
.gallery {
	display: grid;
	grid-template-columns: 50px repeat(3, minmax(270px, 1fr));
	grid-template-rows: repeat(auto-fill, minmax(150px, 1fr));
	height: 544px;
	grid-auto-flow: column;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	grid-gap: 5px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
.item {
	height: 100%;
	width: 100%;
}
.item:hover {
	cursor: url(../images/mglass.png), zoom-in;
}
img {
	height: 100%;
	width: 270px;
	object-fit: cover;
}

.h1 {
	grid-row-end: span 1;
}
.h2 {
	grid-row-end: span 2;
}
.h3 {
	grid-row-end: span 3;
}

.item {
	position: relative;
}
.sttext {
	width: 60px;
	z-index: 50;
	position: fixed;
	height: 544px;
	display: block;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
}
.stimg {
	width: 65px;
	height: 544px;
	opacity: .7;
	object-fit: contain;
}
.content {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
.nav-icon {
	top: 3%;
}
.nav {
	top: 4%;
}

/* lightbox start */
.lb-anchor {
	cursor: url(../images/mglass.png), zoom-in;
}
.lightbox-holder {
	position: absolute;
	z-index: 99;
	height: 100vh;
	width: 100vw;
	top: 0;
	left: 0;
	pointer-events: none;
}
.lightbox-content:target {
	transform: scale(1, 1);
	background-color: rgba(0, 0, 0, .7);
	pointer-events: fill;
	opacity: 1;
}
.lightbox-content {
	position: fixed;
	z-index: 100;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0, 0);
	opacity: 0;
	transition: opacity .5s ease;
}
.lightbox-img {
	position: fixed;
	display: block;
	width: 80%;
	max-width: 800px;
	z-index: 150;
	height: auto;
	max-height: 600px;
	background-color: rgba(0, 0, 0, 0);
	object-fit: contain;
	/* padding: 20px; */
	/* background-color: #fff; */
}

/* lightbox end */

@media screen and (max-width: 768px) {
	.sttext {
		display: none;
	}
	.gallery {
		position: absolute;
		left: 0;
		top: 50%;
		/* grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-template-rows: repeat(auto-fill, minmax(160px, 1fr));
        grid-auto-flow: dense; */
		display: flex;
		flex-wrap: wrap;
		overflow: auto;
		height: 88%;
		width: 100vw;
		overflow-x: hidden;
	}
	.item {
		/* width: 100%; */
		height: 30%;
		max-height: 139px;
		width: 20%;
		min-width: 160px;
		border: 2px solid #fff;
	}
	.h3 {
		display: none;
	}
	img {
		width: 100%;
		height: 100%;
	}
	.h1 {
		flex-grow: 3;
	}
	.h2 {
		flex-shrink: 2;
	}
	.nav-icon {
		top: -10px;
	}
	.nav {
		top: -12px;
	}

	.arrright {
		height: 50px;
		width: 35px;
		background-image: url(../images/right.png);
		background-repeat: no-repeat;
		position: fixed;
		right: 0%;
	}
	.arrleft {
		height: 50px;
		width: 35px;
		background-image: url(../images/right.png);
		background-repeat: no-repeat;
		position: fixed;
		left: 0;
	}
	.close {
		height: 50px;
		width: 50px;
		bottom: 0;
		right: 0;
		position: fixed;
		background-image: url(../images/close.png);
		pointer-events: fill;
	}
	.lightbox-content:target {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
	}
}
@media screen and (max-width: 324px) {
	.h2 {
		flex-grow: 2;
	}
}
