.pf-gallery-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0,0,0,0.9);
	z-index: 999;
	display: flex;
	justify-content: center;
	align-items: center;
}
.pf-gallery-container * {
	box-sizing: border-box;
}
.pf-image-gallery {
	position: relative;
	display: grid;
	grid-gap: 8px;
	grid-template-rows: 80% 1fr;
	justify-items: center;
	align-items: center;
	box-sizing: border-box;
	max-width: 90vw;
	max-height: 90vh;
	width: 80vw;
	height: 80vh;
}
.pf-image-gallery .pf-gallery-master{
	max-width: 80vw;
}
@media (max-width: 767px) {
	.pf-image-gallery .pf-gallery-master{
		width: 80vw;
	}
}

.pf-gallery-master {
	position: relative;
	display: flex;
	height: 100%;
	overflow: hidden;
}

.pf-gallery-hint {
	position: relative;
	display: none;
	background-color: black;
	color: white;
	margin-top: 16px;
	padding: 8px;
	outline: none;
	font-weight: bold;
	transition: visibility 0s 2s, opacity 2s ease-in-out 2s;
}
.pf-gallery-hide {
	visibility: hidden;
	opacity: 0;
}
.pf-gallery-list {
	height: 100%;
	display: grid;
	width: 80vw;
	overflow: hidden;
	grid-gap: 8px;
	grid-template-columns: repeat(10, minmax(100px, 1fr));
}
.pf-gallery-item {
	overflow: hidden;
	height: 0;
	padding-bottom: 100%;
	opacity: .5;
	position: relative;
}
.pf-gallery-item img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	position: absolute;
}
.pf-gallery-item[data-hidden] {
	display: none;
}
.pf-gallery-item[data-active] {
	opacity: 1;
}
.pf-item-cover {
	position: relative;
}
.pf-gallery-master img {
	cursor: zoom-in;
	object-fit: contain;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
}
.pf-gallery-exit, .pf-gallery-arrow{
	color: white;
	position: absolute;
	z-index: 1000;
	cursor: pointer;
	width: 50px;
	height: 50px;
	line-height: 45px;
	text-align: center;
	user-select: none;
}

.pf-gallery-exit {
	top: 0;
	font-size: 45px;
	right: 2vw;
}
.pf-gallery-arrow {
	top: calc(35% - 50px);
	font-size: 50px;

}
.pf-gallery-arrow.pf-left {
	left: -50px;
}
.pf-gallery-arrow.pf-right {
	right: -50px;
}
.pf-hide {
	display: none;
}
.pf-gallery-pagination {
	position: absolute;
	visibility: hidden;
	bottom: 5%;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	background-color: #888;
	padding: 2px 4px;
}
.pf-gallery-pagination span {
	background-color: #fff;
	width: 8px;
	height: 8px;
	border-radius: 10px;
	opacity: .5;
}
.pf-gallery-pagination span[data-active="true"]{
	opacity: 1;
}
.pf-gallery-pagination span:not(:last-child) {margin-right: 4px;}
@media (max-width: 991px) {
	.pf-gallery-container {
		background-color: rgb(255,255,255);
	}
	.pf-image-gallery {
		grid-template-rows: 70% 54px 1fr;
	}
	.pf-gallery-list {
		grid-template-columns: repeat(5, 1fr);
		/*grid-template-columns: repeat(5, minmax(60px, 1fr));*/
	}
	.pf-gallery-master {
		max-height: fit-content;
	}
	.pf-gallery-pagination {
		visibility: visible;
	}
	.pf-gallery-hint {
		display: block;
		visibility: visible;
	}
	.pf-gallery-arrow {
		display: none;
	}
	.pf-gallery-exit {
		color: black;
	}
}