/*
	==================================== 
	Responsive inline-block gallery with Full Screen View
	Use in both Separate and Integrated Folder Gallery
	The jQuery:
	1. 	Creates a Fixed Container with the ID: #sxFixedScreen
	2. 	Clones the container (with the class: .ps_inline_gallery) of the inline gallery  
		and appends it to the above Fixed Container
	3.	Change the class name of the cloned and appended inline gallery container 
		from .ps_inline_gallery to .ps_inline_gallery_absolute
	==================================== 
*/

/*
	Bobile CSS For Inline-Block Gallery
*/

* {
	box-sizing: border-box;
}

.ps_inline_gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 2rem 0 4rem 0;
	gap: 0.2rem;
}

#body_about .ps_inline_gallery {
	gap: 1rem;
}

.ps_inline_gallery figure {
	position: relative;
	margin: 0;
	padding: 0;
	width: 100%;
	vertical-align: top;
}

#body_about .ps_inline_gallery figure {
	border: 1px solid #e1e1e1;
	padding: 5px;
}

.ps_inline_gallery figure img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	cursor: zoom-in;
}

.ps_inline_gallery figcaption {
	margin: 0;
	padding: 5px 0;
	font-size: 0.9rem;
	line-height: 1.2;
	text-align: center;
	color: var(--grey);
}

/*
	An ID for a DIV element that is added by jQuery to appand the cloned inline gallery
*/

#sxFixedScreen {
	opacity: 0;
	overflow: hidden;
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: #000;
	z-index: 9000;
}

/*
	Replaces the class ps_inline_gallery when the inline gallery element is cloned and appended in #sxFixedScreen
*/
.ps_inline_gallery_absolute {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.ps_inline_gallery_absolute figure {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 2rem;
	padding: 10px 0 0 0;
	margin: 0;
	text-align: center;
}

.ps_inline_gallery_absolute figure img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: auto;
	display: block;
	cursor: zoom-out;
}

/*
	An UL witn 3 LI elemets for navigation and image description are added by jQuery
*/
.ps_inline_gallery_absolute .nav {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 50%;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
	background: transparent;
	color: rgba(255,255,255,0.25);
}

.ps_inline_gallery_absolute .nav [class^='nav-'] {
	font-size: 2.5rem;
	margin: 0;
	padding: 1rem;
	cursor: pointer;
}

.ps_inline_gallery_absolute .nav [class^='nav-']:hover {
	color: rgba(255,255,255,0.75);
}

.ps_inline_gallery_absolute .nav-prev {
	padding-left: 0;
}
.ps_inline_gallery_absolute .nav-next {
	padding-right: 0;
}

.ps_inline_gallery_absolute .nav-prev::after {
	content: "\276E \276E";
}

.ps_inline_gallery_absolute .nav-next::after {
	content: "\276F \276F";
}


.ps_inline_gallery_absolute .notes {
	flex: 2;
	align-self:flex-end;
	padding: 0.4em;
	font-size: 0.9rem;
	color: rgba(255,255,255,0.5);
}

.ps_inline_gallery_absolute .nav-close {
	position: fixed;
	top: 1px;
	right: 1px;
	font-size: 1.5rem;
	padding: 0 0.5rem;
	font-weight: normal;
	text-align: center;
	color: rgba(255,255,255,0.25);
	cursor: pointer;
}

.ps_inline_gallery_absolute .nav-close:hover {
	color: rgba(255,255,255,0.75);
}

.ps_inline_gallery_absolute .nav-close::after {
	content: "\2716";
}



@media only screen and (min-width: 576px) {
	.ps_inline_gallery figure {
		width: 49%;
	}
}

@media only screen and (min-width: 992px) {
	.ps_inline_gallery figure {
		max-width: 32%;
	}
}

@media only screen and (min-width: 1200px) {
	.ps_inline_gallery figure {
		max-width: 24.5%;
	}

	#body_about .ps_inline_gallery figure {
		max-width: 32%;
	}
}

@media only screen and (min-width: 1600px) {
	.ps_inline_gallery figure {
		width: 24.5%;
	}

	#body_about .ps_inline_gallery figure {
		max-width: 32%;
	}
}