.ostrich {
	width: 100px;
	height: 100px;
	float: left;
	margin-right: 2rem;
	border-radius: 50%;
}
@media (min-width: 768px) { .ostrich { width: 150px; height: 150px; } }
.sr-only { /* better solution */
    height: auto; 
    margin: 0; 
}
html {
	height: 100%;
	transition: font-size .2s linear;
	scroll-behavior: smooth;
}
/***** B O D Y *****/
body {
	height: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: rgba(0,0,0,0); 
	color: #111;
	padding-top: 3.125rem;
}
.background {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100vw;
	height: 100vh;
	background: #c0d5e7 url(../images/bkgd_rainbow-mobile.jpg) no-repeat center top;
	background-size: cover;
	z-index: -1;
}
@media only screen and (min-width: 576px) {
	.background { background-image: url(../images/bkgd_rainbow-small.jpg); }	
}
@media only screen and (min-width: 992px) {
	.background { background-image: url(../images/bkgd_rainbow.jpg); }	
}

/***** H E A D I N G S  /  P *****/ 
h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: bold;
	letter-spacing: .05em;
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 -1px 0 rgba(0, 0, 0, 0.7);
}
h1, .h1 {
	display: none;
	font-size: 1.75rem;
	letter-spacing: .1em;
}
h2, .h2 { font-size: 1.5rem; }
h3, .h3 {
	color: #800000;
	font-size: 1.125rem;
}
h4, .h4 {
	color: #800000;
	font-size: 1rem;
}
.copyright { text-align: center; font-size: .75rem; }
@media only screen and (min-width: 768px) {
	h1, .h1 { font-size: 2.25rem; }
	h2, .h2 { font-size: 1.875rem; }
	h3, .h3 { font-size: 1.5rem; }
	.copyright { font-size: .875rem; }
}
@media only screen and (max-width: 575px) { .lead { font-size: 1.1 rem; } }

/***** L I N K S *****/ 
a {
	color: #800000;
	cursor: pointer;
	transition: all .3s ease-in-out;
	-webkit-touch-callout: none;
	-ms-user-select: none; /* IE 10 version for Windows Phone 8 */
}
a:hover, a:focus {
	background-color: rgba(0,0,0,.1);
	color: #800000;
}
.imgLink { text-decoration: none; }
.imgLink:hover, .imgLink:focus { 
	background: transparent; 
	opacity: 0.75;
}
.textLink, p > a {
	position: relative;
	display: inline-block;
	color: #800000;
	font-weight: 700;
	padding: .1em .2em;
	border-radius: .2em;
	text-decoration: none;
}
.textLink:hover, .textLink:focus, p > a:hover, p > a:focus { text-decoration: none; }
.textLink::after, p > a::after {
    position: absolute;
    left: 0;
    bottom: .2em;
    width: 100%;
    content: '';
    border-bottom: .1em solid currentColor;
    transition: opacity .25s linear, transform .2s ease-in-out;
}
.textLink:not(:hover)::after, p > a:not(:hover)::after {
    opacity: 0;
    transform: scaleX(0);
}
main a.plain-link { background: none; }
main a.plain-link:hover, main a.plain-link:focus { background: #800000; }
img { font-size: .6875rem; font-style: italic; } /* Style Alt Text */

/***** M O B I L E  N A V I G A T I O N *****/
.navbar-header {
	width: 100vw;
	height: 3.125rem;
	display: flex;
	background-color: #ddd;
	margin: 0;
	padding: 0;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.02), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
}
.navbar-header a {
	position: relative;
	display: flex; 
	flex-direction: column;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-around;
	text-decoration: none;
	z-index: 5;
}
.navbar-header a:last-child { margin-top: .2em; }
.navbar-header a:hover, .navbar-header a:focus { background: rgba(0,0,0,0.1); }
.navbar-header a:hover i::before, .navbar-header a:focus i::before { 
	color: currentColor; 
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 -1px 0 rgba(0, 0, 0, 0.7);
}
.navbar-brand { margin: 0; }

/***** N A V I G A T I O N *****/
.fa-facebook-official::before, .fa-linkedin-square::before { color: currentColor; }
.navbar-form .btn { border-radius: 0 .25rem .25rem 0; }
.navbar {
    width: 100%;
    height: 3.125rem;
	display: flex;
	background-color: rgba(255,255,255,0.7);
	margin: 0;
	padding: 0;
	border: 0;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.02), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px) saturate(100%);
	transition: transform 0.5s ease;  
	transform: translateY(0); 
}
.navbar-hide { transform: translateY(-110%); }
.navbar-nav { 
	flex-direction: row;
	justify-content: center;
	width: 100%; 
}
.nav-item { 
	flex: 0 0 10%;
	max-width: 10%;
}
.nav-link {
	display: flex; 
	flex-direction: column;            
	align-items: center;
	justify-content: space-between;
	flex: 1 1 auto;
	text-decoration: none;
	padding-top: .1rem;
	padding-bottom: .1rem;
}
.nav-link.active, .nav-link:hover, .nav-link:focus { background-color: rgba(0,0,0,0.1); }
.nav-link:hover i::before, .nav-link:focus i::before { 
	color: currentColor; 
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 -1px 0 rgba(0, 0, 0, 0.7);
}
.nav-link:hover .fa-facebook-official::before { color: #3b5998!important;}
.nav-link:hover .fa-linkedin-square::before { color: #3399cc!important; }
#home a.home, #member a.member, #ministries a.ministries, #donate a.donate,
#events a.events, #about a.about, #contact a.contact, #history a.history {
	background: rgba(0,0,0,0.1);
	color: currentColor;
}
.navbar-form {
	width: 20rem;
	max-width: 100%;
	margin: .5rem auto 0;
}
.icon_canvas {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	text-align: center;
}
.icon_canvas i {
	display: block;
	width: 100%;
	height: auto;
	line-height: 1;
	font-size: 1.75rem;
	color: #800000;
}
.iconText {
	line-height: 1.125rem;
	font-size: .6875rem;
	color: #800000;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.navbar-more {
	top: -.5rem;
	width: 3.5rem;
	height: 3.5rem;
	flex: 0 0 3.5rem;
	max-width: 3.5rem;
	background-color: #fff!important;
	border: 2px solid #ddd!important;
	border-radius: 50%;
	z-index: 9999;
}
.navbar-more i, .navbar-more:hover i::before  { color: #800000!important; }
@media only screen and (max-width: 767.98px) {
	body {  padding-top: 0; }
	.copyright { height: 6rem; }
	.fixed-top { top: auto; bottom: 0; }
	.navbar { background-color: #ddd; }
	.navbar-hide { transform: translateY(0); }
	.navbar-collapse, .navbar-collapse.show {
		position: absolute;
		bottom: 3.125rem;
		left: 50%;
		width: 100%;
		max-width: 28.125rem;
		background: url(../images/bkgd_gray_texture.jpg) repeat-y #eee5d3;
		margin: 0;
		padding: 1rem;
		border: .25rem solid #ddd;
		border-bottom: none;
		border-radius: .375rem .375rem 0 0;
		transform: translateX(-50%);
	}
	.navbar-nav { 
		flex-wrap: wrap;
		margin: 0 auto; 
	}
	.icon_canvas i { font-size: 2.25rem; }
	.navbar-more[aria-expanded="false"] .icon_canvas i::before { content: "\f0c9"; }
	.navbar-more[aria-expanded="true"] .icon_canvas i::before { content: "\f00d"; }
	.nav-item { 
		flex: 0 0 25%;
		max-width: 25%;
		margin: 0 auto 1rem;
	}
	.searchBox { 
		flex: 0 0 90%;
		max-width: 90%;
		margin: .25rem;
	}
	.nav-link, .navbar-nav i::before, .navbar-nav .iconText, .nav-link:hover i::before, .nav-link:focus i::before{ 
		color: #800000; 
	}
	.navbar-nav button i.fa-search::before { color: #fff; }
	.nav-link:hover .iconText, .nav-link:focus .iconText { text-decoration: underline; }
}
@media only screen and (max-width: 400px) {
	.nav-item { 
		flex: 0 0 33%;
		max-width: 33%;
	}
	.searchBox { 
		flex: 0 0 96%;
		max-width: 96%;
	}
}
@media only screen and (min-width: 768px) {
	.navbar-form { 
		display: none;
		position: absolute;
		top: 60px;
		right: 0;
		width: 200px;
		margin: 0; 
	}
}
@media only screen and (min-width: 992px) { .iconText { font-size: .8125rem; } }
p a[href^="http"]:not([href*="bernreformeducc.org"])::after { content: ""; }

/***** P A G E  H E A D E R *****/
.page-header {
	position: relative;
	text-align: center;
	margin: 2rem auto;
}
.page-header h2 {
	position: relative;
	display: inline-block;
}
.page-header h2::after {
	position: absolute;
	left: 10%;
	right: 0;
	bottom: -8px;
	height: 2px;
	width: 100%;
	content: "";
	display: inline-block;
	background-image: -webkit-linear-gradient(left, rgba(255,255,255,0), rgba(255,255,255,1), rgba(255,255,255,0)); 
	background-image: -moz-linear-gradient(left, rgba(255,255,255,0), rgba(255,255,255,1), rgba(255,255,255,0)); 
	background-image: -ms-linear-gradient(left, rgba(255,255,255,0), rgba(255,255,255,1), rgba(255,255,255,0)); 
	background-image: -o-linear-gradient(left, rgba(255,255,255,0), rgba(255,255,255,1), rgba(255,255,255,0)); 
	margin-left: -10%;
	margin-right: -10%;
}
@media only screen and (min-width: 768px) {
	.page-header h2::after {
		width: 120%;
		left: 0;
	}
}

/***** B T N B O X *****/
.btnBox {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	width: 100%;
	margin: 1.5rem auto 0;
	padding-left: 0;
	list-style: none;
}
.btnBox > li { 
	flex: 0 0 50%;
	max-width: 50%;
	display: inline-block;
	text-align: center; 
	margin-bottom: 1.25rem;
}
@media only screen and (min-width: 768px) {
	.btnBox > li { flex: 0 0 25%; max-width: 25% }
}
@media only screen and (min-width: 992px) {
	.btnBox { flex-wrap: no-wrap; }
	.btnBox > li { 
		flex: 0 0 20%;
		max-width: 20%;
		margin: 0 auto 1.25rem;
	}
}

/***** I C O N  G R O W *****/
.grow {
	display: inline-block;
	position: relative;
	vertical-align: middle;
	padding-left: 2.2em;
	transform: translateZ(0);
	box-shadow: 0 0 1px rgba(0, 0, 0, 0);
	backface-visibility: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: auto;
	transition-duration: 0.3s;
}
.grow:before {
	content: "\f03e";
	position: absolute;
	left: .7em;
	font-family: FontAwesome;
	text-shadow: 0 1px 0 rgba(255,255,255,0.3), 0 -1px 0 rgba(0,0,0,0.7);
	padding: 0 1px;
	transform: translateZ(0);
	transition-duration: 0.3s;
	transition-property: transform;
	transition-timing-function: ease-out;
}

.divider {
	clear: both;
	width: 80%;
	margin: 1em auto;
	border-top: 2px solid rgba(0,0,0,0.2);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}
.spacer {
    clear: both;
    margin: 1.25rem auto;
    border-top: 1px solid transparent;
}
.spacer::before, .spacer::after {
	display: table;
	content: " ";
}
.spacer::after { clear: both; }
.btn-outline-dark:hover {
  color: #343a40;
  background-color: #ddd;
  border-color: #343a40;
}

/***** T O O L T I P S  /  P O P O V E R S *****/
.tooltip-inner {
	max-width: 20rem;
	background-color: #800000;
	background-image: -webkit-linear-gradient(top, #e66666 0%, #800000 100%);
	background-image:      -o-linear-gradient(top, #e66666 0%, #800000 100%);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#e66666), to(#800000));
	background-image:         linear-gradient(to bottom, #e66666 0%, #800000 100%);
	background-repeat: repeat-x;
	font-weight: 700;
	border: 1px solid #fff;
	box-shadow: .1rem .1rem .15rem rgba(0,0,0,0.5);
}
.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before { border-top-color: #fff; }
.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { border-bottom-color: #fff; }
.bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before { border-left-color: #fff; }
.bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before { border-right-color: #fff; }
.popover { 
	width: 170px; 
	background-color: #800000;
	background-image: -moz-linear-gradient(135deg, #cc9999 0%, #800000 50%, #cc9999 100%); /* ff3.6+ */
	background-image: -webkit-gradient(linear, left top, right bottom, color-stop(0%, #cc9999), color-stop(50%, #800000), color-stop(100%, #cc9999)); /* safari4+,chrome */
	background-image: -webkit-linear-gradient(135deg, #cc9999 0%, #800000 50%, #cc9999 100%); /* safari5.1+,chrome10+ */
	background-image: -o-linear-gradient(135deg, #cc9999 0%, #800000 50%, #cc9999 100%); /* opera 11.10+ */
	background-image: -ms-linear-gradient(135deg, #cc9999 0%, #800000 50%, #cc9999 100%); /* ie10+ */
	background-image: linear-gradient(315deg, #cc9999 0%, #800000 50%, #cc9999 100%); /* w3c */
	border-color: #fff;
}
.popover-body { color: #fff; }
.popover.bottom > .arrow::after { border-bottom-color: #fff; }

/***** G O T O P *****/
.gotop, .gotop:focus {
	display: none;
	position: fixed;
	bottom: .5rem;
	right: .5rem;
	background-color: rgba(0,0,0,0);
	font-size: 2rem;
	opacity: 1;
	padding: 0;
	border: 0;
	-webkit-appearance: none; /* Safari */
	z-index: 50;
}
.gotop:hover { opacity: 0.8; }
@media (max-width: 991px) { .gotop { display: none !important; } }

/***** P H O T O  G A L L E R Y *****/
.galleryBox  {
	position: relative;
	height: 30em;
	font-size: 13px;
	margin: 3rem auto 0;
	perspective: 80em; 
}
@media only screen and (min-width: 576px) { .galleryBox  { font-size: 16px; } }
.gallery {
	position: relative;
	margin-top: 7em;
	padding: 0;
	list-style: none;
	transform-style: preserve-3d;
}
.gallery > li {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6em;
	height: 6em;
	background: url(../images/gallery/thumb/strawberry-festival1901.jpg) no-repeat 50% 50%;
	background-size: cover;
	margin: -3em;
	box-shadow: 1px 1px .2em black;
}
.gallery > li a {
	display: block;
	height: 6em;
	outline: 0;
	overflow: hidden;
	cursor: pointer;
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}
.gallery > li:nth-child(28n + 2) {
	background-image: url(../images/gallery/thumb/strawberry-festival1902.jpg);
}
.gallery > li:nth-child(28n + 3) {
	background-image: url(../images/gallery/thumb/strawberry-festival1903.jpg);
}
.gallery > li:nth-child(28n + 4) {
	background-image: url(../images/gallery/thumb/strawberry-festival1904.jpg);
}
.gallery > li:nth-child(28n + 5) {
	background-image: url(../images/gallery/thumb/strawberry-festival1905.jpg);
}
.gallery > li:nth-child(28n + 6) {
	background-image: url(../images/gallery/thumb/strawberry-festival1906.jpg);
}
.gallery > li:nth-child(28n + 7) {
	background-image: url(../images/gallery/thumb/strawberry-festival1907.jpg);
}
.gallery > li:nth-child(28n + 8) {
	background-image: url(../images/gallery/thumb/strawberry-festival1908.jpg);
}
.gallery > li:nth-child(28n + 9) {
	background-image: url(../images/gallery/thumb/strawberry-festival1909.jpg);
}
.gallery > li:nth-child(28n + 10) {
	background-image: url(../images/gallery/thumb/strawberry-festival1910.jpg);
}
.gallery > li:nth-child(28n + 11) {
	background-image: url(../images/gallery/thumb/strawberry-festival1911.jpg);
}
.gallery > li:nth-child(28n + 12) {
	background-image: url(../images/gallery/thumb/strawberry-festival1912.jpg);
}
.gallery > li:nth-child(28n + 13) {
	background-image: url(../images/gallery/thumb/strawberry-festival1913.jpg);
}
.gallery > li:nth-child(28n + 14) {
	background-image: url(../images/gallery/thumb/strawberry-festival1914.jpg);
}
.gallery > li:nth-child(28n + 15) {
	background-image: url(../images/gallery/thumb/strawberry-festival1915.jpg);
}
.gallery > li:nth-child(28n + 16) {
	background-image: url(../images/gallery/thumb/strawberry-festival1916.jpg);
}
.gallery > li:nth-child(28n + 17) {
	background-image: url(../images/gallery/thumb/strawberry-festival1917.jpg);
}
.gallery > li:nth-child(28n + 19) {
	background-image: url(../images/gallery/thumb/strawberry-festival1918.jpg);
}
.gallery > li:nth-child(28n + 19) {
	background-image: url(../images/gallery/thumb/strawberry-festival1919.jpg);
}
.gallery > li:nth-child(28n + 20) {
	background-image: url(../images/gallery/thumb/strawberry-festival1920.jpg);
}
.gallery > li:nth-child(28n + 21) {
	background-image: url(../images/gallery/thumb/strawberry-festival1921.jpg);
}
.gallery > li:nth-child(28n + 22) {
	background-image: url(../images/gallery/thumb/strawberry-festival1922.jpg);
}
.gallery > li:nth-child(1) {
	opacity: 0.8deg;
	animation: rot1 30s linear -15s infinite;
}
@keyframes rot1 {
	0% { transform: translateY(.75em) rotateY(36deg) translateZ(13em) rotate(3.2deg); }
	40% { opacity: 0; }
	90% { opacity: 1; }
	100% { transform: translateY(.75em) rotateY(396deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(2) {
	opacity: 0.6deg;
	animation: rot2 30s linear -15s infinite;
}
@keyframes rot2 {
	0% { transform: translateY(1.5em) rotateY(72deg) translateZ(13em) rotate(3.2deg); }
	30% { opacity: 0; }
	80% { opacity: 1; }
	100% { transform: translateY(1.5em) rotateY(432deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(3) {
	opacity: 0.4deg;
	animation: rot3 30s linear -15s infinite;
}
@keyframes rot3 {
	0% { transform: translateY(2.25em) rotateY(108deg) translateZ(13em) rotate(3.2deg); }
	20% { opacity: 0; }
	70% { opacity: 1; }
	100% { transform: translateY(2.25em) rotateY(468deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(4) {
	opacity: 0.2deg;
	animation: rot4 30s linear -15s infinite;
}
@keyframes rot4 {
	0% { transform: translateY(3em) rotateY(144deg) translateZ(13em) rotate(3.2deg); }
	10% { opacity: 0; }
	60% { opacity: 1; }
	100% { transform: translateY(3em) rotateY(504deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(5) {
	opacity: 0deg;
	animation: rot5 30s linear -15s infinite;
}
@keyframes rot5 {
	0% {
		opacity: 0;
		transform: translateY(3.75em) rotateY(180deg) translateZ(13em) rotate(3.2deg);
	}
	50% { opacity: 1; }
	100% {
		opacity: 0;
		transform: translateY(3.75em) rotateY(540deg) translateZ(13em) rotate(3.2deg);
	}
}
.gallery > li:nth-child(6) {
	opacity: 0.2deg;
	animation: rot6 30s linear -15s infinite;
}
@keyframes rot6 {
	0% { transform: translateY(4.5em) rotateY(216deg) translateZ(13em) rotate(3.2deg); }
	40% { opacity: 1; }
	90% { opacity: 0; }
	100% { transform: translateY(4.5em) rotateY(576deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(7) {
	opacity: 0.4deg;
	animation: rot7 30s linear -15s infinite;
}
@keyframes rot7 {
	0% { transform: translateY(5.25em) rotateY(252deg) translateZ(13em) rotate(3.2deg); }
	30% { opacity: 1; }
	80% { opacity: 0; }
	100% { transform: translateY(5.25em) rotateY(612deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(8) {
	opacity: 0.6deg;
	animation: rot8 30s linear -15s infinite;
}
@keyframes rot8 {
	0% { transform: translateY(6em) rotateY(288deg) translateZ(13em) rotate(3.2deg); }
	20% { opacity: 1; }
	70% { opacity: 0; }
	100% { transform: translateY(6em) rotateY(648deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(9) {
	opacity: 0.8deg;
	animation: rot9 30s linear -15s infinite;
}
@keyframes rot9 {
	0% { transform: translateY(6.75em) rotateY(324deg) translateZ(13em) rotate(3.2deg); }
	10% { opacity: 1; }
	60% { opacity: 0; }
	100% { transform: translateY(6.75em) rotateY(684deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(10) {
	opacity: 1deg;
	animation: rot10 30s linear -15s infinite;
}
@keyframes rot10 {
	0% {
		opacity: 1;
		transform: translateY(7.5em) rotateY(360deg) translateZ(13em) rotate(3.2deg);
	}
	50% { opacity: 0; }
	100% {
		opacity: 1;
		transform: translateY(7.5em) rotateY(720deg) translateZ(13em) rotate(3.2deg);
	}
}
.gallery > li:nth-child(11) {
	opacity: 0.8deg;
	animation: rot11 30s linear -15s infinite;
}
@keyframes rot11 {
	0% { transform: translateY(8.25em) rotateY(396deg) translateZ(13em) rotate(3.2deg); }
	40% { opacity: 0; }
	90% { opacity: 1; }
	100% { transform: translateY(8.25em) rotateY(756deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(12) {
	opacity: 0.6deg;
	animation: rot12 30s linear -15s infinite;
}
@keyframes rot12 {
	0% { transform: translateY(9em) rotateY(432deg) translateZ(13em) rotate(3.2deg); }
	30% { opacity: 0; }
	80% { opacity: 1; }
	100% { transform: translateY(9em) rotateY(792deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(13) {
	opacity: 0.4deg;
	animation: rot13 30s linear -15s infinite;
}
@keyframes rot13 {
	0% { transform: translateY(9.75em) rotateY(468deg) translateZ(13em) rotate(3.2deg); }
	20% { opacity: 0; }
	70% { opacity: 1; }
	100% { transform: translateY(9.75em) rotateY(828deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(14) {
	opacity: 0.2deg;
	animation: rot14 30s linear -15s infinite;
}
@keyframes rot14 {
	0% { transform: translateY(10.5em) rotateY(504deg) translateZ(13em) rotate(3.2deg); }
	10% { opacity: 0; }
	60% { opacity: 1; }
	100% { transform: translateY(10.5em) rotateY(864deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(15) {
	opacity: 0deg;
	animation: rot15 30s linear -15s infinite;
}
@keyframes rot15 {
	0% {
		opacity: 0;
		transform: translateY(11.25em) rotateY(540deg) translateZ(13em) rotate(3.2deg);
	}
	50% { opacity: 1; }
	100% {
		opacity: 0;
		transform: translateY(11.25em) rotateY(900deg) translateZ(13em) rotate(3.2deg);
	}
}
.gallery > li:nth-child(16) {
	opacity: 0.2deg;
	animation: rot16 30s linear -15s infinite;
}
@keyframes rot16 {
	0% { transform: translateY(12em) rotateY(576deg) translateZ(13em) rotate(3.2deg); }
	40% { opacity: 1; }
	90% { opacity: 0; }
	100% { transform: translateY(12em) rotateY(936deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(17) {
	opacity: 0.4deg;
	animation: rot17 30s linear -15s infinite;
}
@keyframes rot17 {
	0% { transform: translateY(12.75em) rotateY(612deg) translateZ(13em) rotate(3.2deg); }
	30% { opacity: 1; }
	80% { opacity: 0; }
	100% { transform: translateY(12.75em) rotateY(972deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(18) {
	opacity: 0.6deg;
	animation: rot18 30s linear -15s infinite;
}
@keyframes rot18 {
	0% { transform: translateY(13.5em) rotateY(648deg) translateZ(13em) rotate(3.2deg); }
	20% { opacity: 1; }
	70% { opacity: 0; }
	100% { transform: translateY(13.5em) rotateY(1008deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(19) {
	opacity: 0.8deg;
	animation: rot19 30s linear -15s infinite;
}
@keyframes rot19 {
	0% { transform: translateY(14.25em) rotateY(684deg) translateZ(13em) rotate(3.2deg); }
	10% { opacity: 1; }
	60% { opacity: 0; }
	100% { transform: translateY(14.25em) rotateY(1044deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(20) {
	opacity: 1deg;
	animation: rot20 30s linear -15s infinite;
}
@keyframes rot20 {
	0% {
		opacity: 1;
		transform: translateY(15em) rotateY(720deg) translateZ(13em) rotate(3.2deg);
	}
	50% { opacity: 0; }
	100% {
		opacity: 1;
		transform: translateY(15em) rotateY(1080deg) translateZ(13em) rotate(3.2deg);
	}
}
.gallery > li:nth-child(21) {
	opacity: 0.8deg;
	animation: rot21 30s linear -15s infinite;
}
@keyframes rot21 {
	0% { transform: translateY(15.75em) rotateY(756deg) translateZ(13em) rotate(3.2deg); }
	40% { opacity: 0; }
	90% { opacity: 1; }
	100% { transform: translateY(15.75em) rotateY(1116deg) translateZ(13em) rotate(3.2deg); }
}
.gallery > li:nth-child(22) {
	opacity: 0.6deg;
	animation: rot22 30s linear -15s infinite;
}
@keyframes rot22 {
	0% { transform: translateY(16.5em) rotateY(792deg) translateZ(13em) rotate(3.2deg); }
	30% { opacity: 0; }
	80% { opacity: 1; }
	100% { transform: translateY(16.5em) rotateY(1152deg) translateZ(13em) rotate(3.2deg); }
}

/***** M A G N I F I C  P O P U P  *****/
.mfp-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
	opacity: 0.8;
	z-index: 902;
}
.mfp-wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	outline: none !important;
	-webkit-backface-visibility: hidden;
	z-index: 903;
}
.mfp-container {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	padding: 0 8px;
	box-sizing: border-box; 
}
.mfp-container:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}
.mfp-align-top .mfp-container:before { display: none; }
.mfp-content {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	margin: 0 auto;
	text-align: left;
	z-index: 905;
}
.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
	width: 100%;
	cursor: auto;
}
.mfp-ajax-cur { cursor: progress; }
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
	cursor: -moz-zoom-out;
	cursor: -webkit-zoom-out;
	cursor: zoom-out;
}
.mfp-zoom {
	cursor: pointer;
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}
.mfp-auto-cursor .mfp-content { cursor: auto; }
.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter { user-select: none; }
.mfp-loading.mfp-figure { display: none; }
.mfp-hide { display: none !important; }
/***** Animated preloader *****/
.mfp-preloader {
	position: absolute;
	top: 50%;
	left: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	background-color: #fff;
	margin: 0 auto;
	opacity: 0.65;
	border-radius: 50%;
	animation: rotateplane 1.2s infinite ease-in-out;
	z-index: 904;
}
@keyframes rotateplane {
  0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
  50% { transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); }
  100% { transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); }
}
.mfp-preloader a { color: #cccccc; }
.mfp-preloader a:hover { color: #fff; }
.mfp-s-ready .mfp-preloader { display: none; }
.mfp-s-error .mfp-content { display: none; }
button.mfp-close, button.mfp-arrow {
	display: block;
	background: transparent;
	overflow: visible;
	padding: 0;
	cursor: pointer;
	border: 0;
	-webkit-appearance: none;
	z-index: 906;
}
button::-moz-focus-inner {
	padding: 0;
	border: 0;
}
.mfp-close {
	position: absolute;
	right: 0;
	top: 0;
	width: 44px;
	height: 44px;
	color: #ff0;
	font-size: 36px;
	line-height: 44px;
	text-decoration: none;
	text-align: center;
	opacity: 0.65;
	padding: 0 0 18px 10px;
}
.mfp-close:hover, .mfp-close:focus { opacity: 1; }
.mfp-close:active { top: 1px; }
.mfp-close-btn-in .mfp-close { color: #333333; }
.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
	color: #fff;
	right: -6px;
	text-align: right;
	padding-right: 6px;
	width: 100%;
}
.mfp-counter {
	position: absolute;
	top: 0;
	right: 0;
	color: #ff0;
	font-size: 12px;
	line-height: 1.5;
}
.mfp-arrow {
	position: absolute;
	top: 50%;
	width: 90px;
	height: 110px;
	opacity: 0.65;
	margin: -55px 0 0;
	padding: 0;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.mfp-arrow:active { margin-top: -54px; }
.mfp-arrow:hover, .mfp-arrow:focus { 
	opacity: 1; 
	outline: none;
}
.mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
	content: '';
	display: block;
	width: 0;
	height: 0;
	position: absolute;
	left: 0;
	top: 0;
	margin-top: 35px;
	margin-left: 35px;
	border: solid transparent;
}
.mfp-arrow:after, .mfp-arrow .mfp-a {
	opacity: 0.8;
	border-top-width: 12px;
	border-bottom-width: 12px;
	top: 8px;
}
.mfp-arrow:before, .mfp-arrow .mfp-b {
	border-top-width: 20px;
	border-bottom-width: 20px;
}
.mfp-arrow-left { left: 0; }
.mfp-arrow-left:after,  .mfp-arrow-left .mfp-a {
	border-right: 12px solid black;
	left: 5px;
}
.mfp-arrow-left:before,  .mfp-arrow-left .mfp-b { border-right: 20px solid white; }
.mfp-arrow-right { right: 0; }
.mfp-arrow-right:after,  .mfp-arrow-right .mfp-a {
	border-left: 12px solid black;
	left: 3px;
}
.mfp-arrow-right:before, .mfp-arrow-right .mfp-b { border-left: 20px solid white; }
.mfp-iframe-holder {
	padding-top: 40px;
	padding-bottom: 40px;
}
.mfp-iframe-holder .mfp-content {
	line-height: 0;
	width: 100%;
	max-width: 900px;
}
.mfp-iframe-scaler {
	width: 100%;
	height: 0;
	overflow: hidden;
	padding-top: 56.25%;
}
.mfp-iframe-scaler iframe {
	position: absolute;
	top: -3px;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);

	background: black;
}
.mfp-iframe-holder .mfp-close { top: -43px; }
/* Main image in popup */
img.mfp-img {
	width: auto;
	max-width: 100%;
	height: auto;
	display: block;
	line-height: 0;
	padding: 40px 0 40px;
	margin: 0 auto;
	box-sizing: border-box; 
}
/* The shadow behind the image */
.mfp-figure:after {
	content: '';
	position: absolute;
	left: 0;
	top: 40px;
	bottom: 40px;
	display: block;
	right: 0;
	width: auto;
	height: auto;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
	z-index: -1;
}
.mfp-figure { line-height: 0; }
.mfp-bottom-bar {
	margin-top: -36px;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	cursor: auto;
}
.mfp-title {
	font-size: 14px; font-size: 1.4rem;
	text-align: left;
	line-height: 1.5;
	color: #fafafa;
	word-break: break-word;
	padding-right: 45px;
}
.mfp-figure small {
	color: #bdbdbd;
	display: block;
	font-size: 12px;
	line-height: 14px;
}
.mfp-image-holder .mfp-content { max-width: 100%; }
.mfp-gallery .mfp-image-holder .mfp-figure { cursor: pointer; }

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
/***** Remove all paddings around the image on small screen *****/
  	.mfp-img-mobile .mfp-image-holder {
		padding-left: 0;
		padding-right: 0;
	}
	.mfp-img-mobile img.mfp-img { padding: 0; }
	/* The shadow behind the image */
	.mfp-img-mobile .mfp-figure:after {
		top: 0;
		bottom: 0;
	}
	.mfp-img-mobile .mfp-bottom-bar {
		background: rgba(0, 0, 0, 0.6);
		bottom: 0;
		margin: 0;
		top: auto;
		padding: 3px 5px;
		position: fixed;
		box-sizing: border-box;
	}
	.mfp-img-mobile .mfp-bottom-bar:empty { padding: 0; }
	.mfp-img-mobile .mfp-counter {
		right: 5px;
		top: 3px;
	}
	.mfp-img-mobile .mfp-close {
		top: 0;
		right: 0;
		width: 35px;
		height: 35px;
		line-height: 35px;
		background: rgba(0, 0, 0, 0.6);
		position: fixed;
		text-align: center;
		padding: 0;
	}
	.mfp-img-mobile .mfp-figure small {
		display: inline;
		margin-left: 5px;
	}
}
@media all and (max-width: 800px) {
	.mfp-arrow { transform: scale(0.75); }
	.mfp-arrow-left { transform-origin: 0; 	}
	.mfp-arrow-right { transform-origin: 100%; }
	.mfp-container {
		padding-left: 6px;
		padding-right: 6px;
	}
}

/***** A N I M A T I O N S *****/
/* ====== Zoom-out effect ====== */
/* start state */
.mfp-zoom-out.mfp-bg {
	opacity: 0;
	transition: all 0.3s ease-out;
}
.mfp-zoom-out.mfp-bg.mfp-ready { opacity: 0.8; }
.mfp-zoom-out.mfp-bg.mfp-removing { opacity: 0; }
.mfp-zoom-out .mfp-content{
	opacity: 0;
	transition: all 0.3s ease-in-out;
	transform: scale(1.3);
}
/* animate in */
.mfp-zoom-out.mfp-ready .mfp-content {
	opacity: 1;
	transform: scale(1);
}
/* animate out */ 
.mfp-zoom-out.mfp-removing .mfp-content {
	opacity: 0;
	transform: scale(1.3);
}
