.member-gallery .mfp-image-holder .mfp-content {
	float: left;
	left: 90px;
}

.member-gallery .mfp-bottom-bar {
	top: 100px;
	left: calc(100% + 30px);
	bottom: 0;
}

.member-gallery .mfp-bottom-bar .mfp-title {
	position: absolute;
	bottom: 40px;
	max-height: 90%;
	overflow: auto;
}

.member-gallery .mfp-content h4,.mfp-content p {
	color: white;
	font-size: 2vh;
	line-height: 1.3;
	margin-top: 0;
}

.member-gallery .mfp-content p {
	margin-bottom: 0;
}

.popup-gallery .image-wrap {
	margin-bottom: 5px;
}

.popup-gallery .gallery-item {
	text-decoration: none;
	color: #BD3584;
	line-height: 1;
	overflow-wrap: break-word;
	margin-bottom: 2rem;
}

.popup-gallery .gallery-item.fa-single-image-preview {
	position: relative;
}


.popup-gallery .gallery-item.fa-single-image-preview .fa-gallery-footer {
	position: absolute;
	top: 0;
	/* bottom: 0; */
	width: 100%;
	height: 2em;
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	font-size: 0.8em;
}

.popup-gallery .gallery-item.fa-single-image-preview .fa-gallery-footer :first-child {
	float: left;
	padding-top: 0.6em;
	padding-bottom: 0.6em;
	padding-left: 0.6em;
}

.popup-gallery .gallery-item.fa-single-image-preview .fa-gallery-footer :last-child {
	float: right;
	padding-top: 0.6em;
	padding-bottom: 0.6em;
	padding-right: 0.6em;
}

.popup-gallery .gallery-caption {
	margin-left: 0;
}

.popup-gallery {
	margin: auto;
}

@media (min-width: 992px) {	
	.popup-gallery .row .col-md-4:nth-child(3n+1) {
		clear: both;
	}
}


@media (max-width: 767px) {
	.member-gallery .mfp-image-holder .mfp-content {
		float: none;
		left: 0;
	}

	.member-gallery .mfp-bottom-bar {
		top: auto;
		left: auto;
		bottom: auto;
		position: relative;
	}
	
	.member-gallery .mfp-bottom-bar .mfp-title {
		position: relative;
		bottom: auto;
	}

	
	.popup-gallery .row .col-xs-6:nth-child(2n+1) {
		clear: both;
	}
}