/*
	Template Name 	: Ebook - Landing Page HTML Template
	Author 			: Awaiken Theme
	Author Url 		: https://awaikenthemes.com
*/


/************************************/
/***** 	      General css		 ****/
/************************************/
@font-face {
    font-family: 'UTM Alter Gothic';
    src: 
        url('../fonts/UTM-Alter-Gothic.svg') format('svg'),
        url('../fonts/UTM Alter Gothic.ttf') format('truetype');
}
@font-face {
    font-family: 'BroodFath';
    src: url('../fonts/9SLIDE06-BROOD-FATH.TTF') format('truetype');
}
@font-face {
    font-family: 'Tekton';
    src: url('../fonts/TEKTON.TTF') format('truetype'), url('../fonts/Tekton.woff2') format('woff2'), url('../fonts/Tekton.woff') format('woff'), url('../fonts/Tekton.eot') format('embedded-opentype');
}
@font-face {
    font-family: 'Tahoma';
    src: url('../fonts/Tahoma.eot') format('embedded-opentype'), url('../fonts/Tahoma.svg') format('svg'), url('../fonts/Tahoma.ttf') format('truetype'), url('../fonts/Tahoma.woff') format('woff'), url('../fonts/Tahoma.woff2') format('woff2');
}

body {
    font-size: 16px;
    font-family: 'Tahoma', cursive;
    /*font-family: 'Graduate', cursive;*/
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: 'UTM Alter Gothic', cursive;
    /*font-family: 'Yeseva One', cursive;*/
}

img{
	max-width: 100%;
}

a:hover{
	text-decoration: none;
	outline: 0;
}

a:focus{
	text-decoration: none;
	outline: 0;
}

::-moz-selection { /* Code for Firefox */
    color: #fff;
    background: #06b71f;
}

::selection {
    color: #fff;
    background: #06b71f;
}

.preloader{
    background: #24292f;
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999;
}

.browser-screen-loading-content {
    text-align: center;
    height: 2em;
    max-width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 3em;
    left: 0;
    margin: auto;
}

.loading-dots {
    margin-left: -1.5em;
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    -webkit-animation: loading-dots-fadein .5s linear forwards;
    -moz-animation: loading-dots-fadein .5s linear forwards;
    -o-animation: loading-dots-fadein .5s linear forwards;
    -ms-animation: loading-dots-fadein .5s linear forwards;
    animation: loading-dots-fadein .5s linear forwards;
}

.loading-dots i {
    width: .5em;
    height: .5em;
    display: inline-block;
    vertical-align: middle;
    background: #e0e0e0;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    margin: 0 .125em;
    -webkit-animation: loading-dots-middle-dots .5s linear infinite;
    -moz-animation: loading-dots-middle-dots .5s linear infinite;
    -o-animation: loading-dots-middle-dots .5s linear infinite;
    -ms-animation: loading-dots-middle-dots .5s linear infinite;
    animation: loading-dots-middle-dots .5s linear infinite;
}

.loading-dots.dark-gray i {
    background: #707070;
}

.loading-dots i:first-child {
    -webkit-animation: loading-dots-first-dot .5s infinite;
    -moz-animation: loading-dots-first-dot .5s linear infinite;
    -o-animation: loading-dots-first-dot .5s linear infinite;
    -ms-animation: loading-dots-first-dot .5s linear infinite;
    animation: loading-dots-first-dot .5s linear infinite;
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    -webkit-transform: translate(-1em);
    -moz-transform: translate(-1em);
    -o-transform: translate(-1em);
    -ms-transform: translate(-1em);
    transform: translate(-1em);
}

.loading-dots i:last-child {
    -webkit-animation: loading-dots-last-dot .5s linear infinite;
    -moz-animation: loading-dots-last-dot .5s linear infinite;
    -o-animation: loading-dots-last-dot .5s linear infinite;
    -ms-animation: loading-dots-last-dot .5s linear infinite;
    animation: loading-dots-last-dot .5s linear infinite;
}

.loading-text{
	color: #fff;
	margin-top: 20px;
	letter-spacing: 0.1em;
}

@-moz-keyframes loading-dots-fadein {
    100% {
        opacity: 1;
        -ms-filter: none;
        filter: none
    }
}

@-webkit-keyframes loading-dots-fadein {
    100% {
        opacity: 1;
        -ms-filter: none;
        filter: none
    }
}

@-o-keyframes loading-dots-fadein {
    100% {
        opacity: 1;
        -ms-filter: none;
        filter: none
    }
}

@keyframes loading-dots-fadein {
    100% {
        opacity: 1;
        -ms-filter: none;
        filter: none
    }
}

@-moz-keyframes loading-dots-first-dot {
    100% {
        -webkit-transform: translate(1em);
        -moz-transform: translate(1em);
        -o-transform: translate(1em);
        -ms-transform: translate(1em);
        transform: translate(1em);
        opacity: 1;
        -ms-filter: none;
        filter: none
    }
}

@-webkit-keyframes loading-dots-first-dot {
    100% {
        -webkit-transform: translate(1em);
        -moz-transform: translate(1em);
        -o-transform: translate(1em);
        -ms-transform: translate(1em);
        transform: translate(1em);
        opacity: 1;
        -ms-filter: none;
        filter: none
    }
}

@-o-keyframes loading-dots-first-dot {
    100% {
        -webkit-transform: translate(1em);
        -moz-transform: translate(1em);
        -o-transform: translate(1em);
        -ms-transform: translate(1em);
        transform: translate(1em);
        opacity: 1;
        -ms-filter: none;
        filter: none
    }
}

@keyframes loading-dots-first-dot {
    100% {
        -webkit-transform: translate(1em);
        -moz-transform: translate(1em);
        -o-transform: translate(1em);
        -ms-transform: translate(1em);
        transform: translate(1em);
        opacity: 1;
        -ms-filter: none;
        filter: none
    }
}

@-moz-keyframes loading-dots-middle-dots {
    100% {
        -webkit-transform: translate(1em);
        -moz-transform: translate(1em);
        -o-transform: translate(1em);
        -ms-transform: translate(1em);
        transform: translate(1em)
    }
}

@-webkit-keyframes loading-dots-middle-dots {
    100% {
        -webkit-transform: translate(1em);
        -moz-transform: translate(1em);
        -o-transform: translate(1em);
        -ms-transform: translate(1em);
        transform: translate(1em)
    }
}

@-o-keyframes loading-dots-middle-dots {
    100% {
        -webkit-transform: translate(1em);
        -moz-transform: translate(1em);
        -o-transform: translate(1em);
        -ms-transform: translate(1em);
        transform: translate(1em)
    }
}

@keyframes loading-dots-middle-dots {
    100% {
        -webkit-transform: translate(1em);
        -moz-transform: translate(1em);
        -o-transform: translate(1em);
        -ms-transform: translate(1em);
        transform: translate(1em)
    }
}

@-moz-keyframes loading-dots-last-dot {
    100% {
        -webkit-transform: translate(2em);
        -moz-transform: translate(2em);
        -o-transform: translate(2em);
        -ms-transform: translate(2em);
        transform: translate(2em);
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        filter: alpha(opacity=0)
    }
}

@-webkit-keyframes loading-dots-last-dot {
    100% {
        -webkit-transform: translate(2em);
        -moz-transform: translate(2em);
        -o-transform: translate(2em);
        -ms-transform: translate(2em);
        transform: translate(2em);
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        filter: alpha(opacity=0)
    }
}

@-o-keyframes loading-dots-last-dot {
    100% {
        -webkit-transform: translate(2em);
        -moz-transform: translate(2em);
        -o-transform: translate(2em);
        -ms-transform: translate(2em);
        transform: translate(2em);
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        filter: alpha(opacity=0)
    }
}

@keyframes loading-dots-last-dot {
    100% {
        -webkit-transform: translate(2em);
        -moz-transform: translate(2em);
        -o-transform: translate(2em);
        -ms-transform: translate(2em);
        transform: translate(2em);
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        filter: alpha(opacity=0)
    }
}

/************************************/
/*****    Navigation area css   *****/
/************************************/

.navbar{
	margin-bottom: 0;
}

.navbar-brand{
	padding: 0px 15px;
}

.navbar-brand h1{
	font-size: 30px;
	margin: 0;
	color: #fff;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	font-family: 'Graduate', cursive;
	text-transform: uppercase;
}

.navbar-brand h1 i{
	position: relative;
	top: 3px;
	color: #06b71f;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

.navbar-default{
	background: none;
	border: none;
	border-bottom: 1px solid rgba(255,255,255,0.10);
	padding: 15px 0;
	border-radius: 0;
	z-index: 12;
	transition: all 1s;
	-webkit-transition: all 1s;
	-moz-transition: all 1s;
}

.navbar-default .navbar-nav>li>a:hover{
	color: #06b71f;
}

.navbar-default .navbar-nav>li>a:focus{
	color: #fff;
}

.sticky-header{
	background: #06b71f;
	padding: 10px 0;
	border-bottom: none;
	transition: all 0.3s ease-out;
    -webkit-transition: all 0.3s ease-out;
}
.sticky-header .navbar-brand h1 i,
.sticky-header .navbar-brand h1{
	color: #24292f;
}

.navbar-default .navbar-nav>li>a{
	font-size: 14px;
	text-transform: uppercase;
	color: #fff;
	letter-spacing: 0.08em;
	padding: 17px 15px 13px; 
	position: relative;
}

.active a{
	background: none !important;
	color: #06b71f !important;
}

.sticky-header .navbar-nav>li>a{
	color: #24292f;
}

.sticky-header .navbar-nav>li>a:hover{
	color: #fff;
}

.sticky-header .navbar-nav>li>a:focus{
	color: #24292f;
}

.sticky-header .active a{
	background: none !important;
	color: #fff !important;
}

.navbar-default .active a:after{
	transform: scale(1) !important;
	-webkit-transform: scale(1) !important;
	-moz-transform: scale(1) !important;
}

.btn-custom{
	display: inline-block;
	background: #06b71f;
	color: #24292f;
	text-transform: uppercase;
	font-size: 16px;
	letter-spacing: 0.08em;
	padding: 16px 30px 14px;
	border-radius: 2px;
	transition: all 0.4s;
}

.btn-custom:hover{
	background: #24292f;
	color: #fff;
}

.navbar-default .navbar-toggle{
	border-radius: 0;
	border-color: #fff;
	padding: 0;
}

.navbar-default .navbar-toggle .icon-bar{
	background: #fff;
}

.navbar-default .navbar-toggle:hover{
	background: none;
}

/************************************/
/*****      Slider area css     *****/
/************************************/

.banner{
	position: relative;
	top: 0px;
	left: 0;
	width: 100%;
	background: url(../images/banner.jpg) no-repeat center center;
	background-size: cover;
	padding: 180px 0 100px;
}

.banner:after{
	content: '';
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.60);
}

.banner .row{
	position: relative;
	z-index: 1;
}


.banner-desc{
	padding-top: 20px;
}

.banner-desc h2{
	color: #06b71f;
	font-size: 76px;
	margin-bottom: 10px;
	line-height: 1.2em;	
}

.banner-desc p{
	color: #fff;
	line-height: 1.8em;
	margin-bottom: 1.3em;
	font-size: 20px;
}

.services-section{
	background: #f5f5f5;
	padding: 80px 0;
}

.title{
	text-align: center;
	margin-bottom: 80px;
}

.contentx {
    text-align: center;
    margin-bottom: 10px;
}

.title h2{
	color: #06b71f;
	font-size: 36px;
}

.title p{
	font-size: 14px;
	color: #24292f;
}

.service-box{
	background: #fff;
	text-align: center;
	padding: 20px 20px 30px;
	margin-bottom: 30px;
	transition: all 0.4s linear;
}

.service-box:hover{
	background: #06b71f;
}

.service-box:hover .lnr,
.service-box:hover h2{
	color: #fff;
}

.service-box:hover p{
	color: rgba(255,255,255,0.8);
}

.service-box .lnr{
	font-size: 60px;
	color: #06b71f;
	padding: 20px 0 30px;
	transition: all 0.2s linear;
}

.service-box h2{
	color: #24292f;
	font-size: 20px;
	margin-bottom: 20px;
	transition: all 0.2s linear;
}

.service-box p{
	font-size: 14px;
	line-height: 1.5em;
	color: #808080;
	transition: all 0.2s linear;
}

.about-author-section{
	padding: 80px 0 0;
	background: #fff;
}

.book-author-info p{
	font-size: 14px;
	color: #808080;
	line-height: 1.8em;
	margin-bottom: 1.8em;
}

.signature{
	font-family: 'Cedarville Cursive', cursive;
	color: #24292f;
	font-size: 40px;
	margin: 50px 0;
}

.author-social-icon a{
	width: 40px;
	height: 40px;
	text-align: center;
	border-radius: 50%;
	display: inline-block;
	font-size: 20px;
	padding-top: 6px;
	color: #06b71f;
	transition: all 0.3s;
}

.author-social-icon a:hover{
	background: #06b71f;
	color: #fff;
}

.infobar-section{
	background: #06b71f;
	padding: 60px 0 56px;
}

.infobar-desc h3{
	color: #fff;
	font-size: 36px;
	margin: 0;
}

.infobar-desc p{
	text-transform: lowercase;
	color: #fff;
	font-size: 16px;
	margin-bottom: 0;
}

.infobar-btn{
	text-align: right;
}

.infobar-btn a{
	display: inline-block;
	padding: 14px 40px;
	border: 3px solid #fff;
	border-radius: 50px;
	font-size: 24px;
	color: #fff;
	text-transform: uppercase;
	margin: 0 10px;
	transition: all 0.3s;
}

.infobar-btn a:hover{
	background: #fff;
	color: #06b71f; 
}

.faq-section{
	padding: 80px 0;
	background: #f5f5f5;
}

.panel-group .panel {
	border-radius: 0;
	box-shadow: none;
	border: none;
	margin-bottom: 18px;
}

.panel-default > .panel-heading {
	padding: 0;
	border-radius: 0;
	color: #fff;
	border: none;
	background-color: #06b71f;
}

.panel-title {
	font-size: 14px;
}

.panel-title > a {
	display: block;
	padding: 15px;
	font-size: 18px;
	text-decoration: none;
}

.more-less {
	float: right;
	color: #fff;
}

.panel-default > .panel-heading + .panel-collapse > .panel-body {
	border: none;
	padding: 30px 30px 16px;
}

.panel-default > .panel-heading + .panel-collapse > .panel-body p{
	font-size: 14px;
	color: #808080;
	line-height: 1.8em;
}

.testimonials-section{
	padding: 80px 0;
	background: #fff;
}

.reader-msg{
	margin-bottom: 60px;
}

.reader-msg:after{
	content: '';
	display: block;
	clear: both;
}

.reader-img{
	width: 16%;
	float: left;
	
}

.reader-img img{
	border-radius: 50%;
	border: 8px solid #f5f5f5;
}

.reader-message{
	width: 80%;
	float: right;
	background: #f5f5f5;
	padding: 30px;
	position: relative;
}

.reader-message:before{
	content: '';
	display: block;
	position: absolute;
	left: -20px;
	top: 40px;
	width: 0;
	height: 0;
	border-right: 20px solid #f5f5f5; 
	border-top: 20px solid transparent; 
	border-bottom: 8px solid transparent; 
}

.reader-message p{
	font-size: 16px;
	line-height: 1.8em;
	color: #808080;
	margin-bottom: 1em;
}

.reader-message h3{
	font-size: 18px;
	margin: 0;
	color: #24292f;
}

.reader-right .reader-img{
	float: right;
}

.reader-right .reader-message{
	float: left;
}

.reader-right .reader-message:before{
	left: auto;
	right: -20px;
	border-right: none; 
	border-left: 20px solid #f5f5f5; 
	border-top: 20px solid transparent; 
	border-bottom: 8px solid transparent; 
}

.contact-section{
	background: #f5f5f5;
	position: relative;
}

.contact-section .title{
	margin-bottom: 50px;
}


.contact-book-image{
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 50%;
	background: url(../images/book-cover.jpg) no-repeat center center;
	background-size: cover;
}

.contact-box{
	padding: 10%;
}

.contact-form .form-control{
	background: #fff;
	border: 1px solid #e2e2e2;
	box-shadow: none;
	outline: 0;
	border-radius: 0;
	font-size: 14px;
	text-transform: lowercase;
	padding: 12px 20px;
	height: auto;
}

.btn-contact{
	display: inline-block;
	border: none;
	background: #06b71f;
	color: #fff;
	text-transform: uppercase;
	font-size: 16px;
	letter-spacing: 0.08em;
	padding: 16px 30px 14px;
	border-radius: 2px;
	transition: all 0.4s;
	margin-top: 20px;
	transition: all 0.3s;
}

.btn-contact:hover{
	background: #24292f;
}

footer{
	padding: 60px 0;
	background: #fff;
}

.footer-box{
	text-align: center;
}

.footer-social a{
	display: inline-block;
	width: 36px;
	height: 36px;
	background: #f5f5f5;
	color: #24292f;
	border-radius: 50%;
	padding-top: 7px;
	margin: 0 4px;
	transform: all 0.3s;
}

.footer-social a:hover{
	background: #06b71f; 
	color: #fff;
}

.footer-siteinfo{
	margin-top: 30px;
}

.footer-siteinfo p{
	color: #24292f;
}

.footer-siteinfo a{
	color: #06b71f;
}

/****************************************
		Responsive Media Query
****************************************/

@media only screen and (max-width: 991px) {
	.navbar-default .navbar-nav>li>a{
		padding: 17px 5px 13px;
	}
	
	.banner-desc{
		padding-top: 0;
	}
	
	.banner-desc h2{
		font-size: 32px;
	}
	
	.banner-desc p{
		font-size: 16px;
	}
	
	.author-image{
		text-align: center;
		margin-top: 80px;
	}

	.author-image img{
		max-width: 480px;
		width: 100%;
	}
	
	.infobar-desc{
		text-align: center;
		margin-bottom: 30px;
	}
	
	.infobar-btn{
		text-align: center;
	}
	
}

/* Mobile Layout */
@media only screen and (max-width: 767px){
	.banner{
		text-align: center;
	}
	
	.banner-desc{
		margin-top: 40px;
	}
	
	#responsive-menu{
		display: block;
		
	}
	
	.slicknav_menu{
		margin-left: -15px;
		margin-right: -15px;
		padding: 0;
		background: none;
	}

	.slicknav_menu ul{
		background: #06b71f;
		position: relative;
		top: 16px;
	}
	
	
	
	.slicknav_menu li{
		padding: 0 10px;
	}

	.slicknav_menu .active a{
		color: #24292f;
	}
	
	.slicknav_menu a{
		color: #fff;
		padding-top: 6px;
		padding-bottom: 6px;
		text-transform: uppercase;
		border: 1px solid transparent;
	}

	.slicknav_menu a a{
		border: none !important;
	}
	
	.slicknav_nav .slicknav_row:hover,
	.slicknav_nav a:hover{
		color: #24292f;
	}
	
	.slicknav_menu  .active a{
		color: #24292f !important;
	}
	
	.slicknav_btn{
		padding: 4px 4px;
		background: none;
	}
	
	.slicknav_icon-bar{
		box-shadow: none;
		border-radius: 0;
		margin: 2px 0;
	}
	
	.faq-section,
	.services-section,
	.testimonials-section{
		padding: 40px 0;
	}
	
	.title{
		margin-bottom: 40px;
	}
	
	.title h2{
		font-size: 28px;
	}
	
	.contact-book-image{
		display: none;
	}
	
	.reader-img{
		width: 100%;
		float: none;
		max-width: 160px;
		margin: 0 auto 30px;
	}
	
	.reader-right .reader-img,
	.reader-message{
		width: 100%;
		float: none;
	}
	
	.reader-right .reader-message:before,
	.reader-message:before{
		left: 50%;
		top: -20px;
		margin-left: -20px;
	}
	
	.reader-right .reader-message:before{
		border-right: 20px solid #f5f5f5;
		border-left: none;
		border-top: 20px solid transparent;
		border-bottom: 8px solid transparent;
	}
	
	.reader-message p{
		font-size: 14px;
	}
	
	.reader-msg{
		margin-bottom: 40px;
	}
	
	.contact-box{
		padding: 40px 0;
	}
	
	.infobar-desc h3{
		font-size: 28px;
	}
	
	.infobar-desc p{
		font-size: 14px;
	}
	
	.infobar-btn a{
		border-width: 2px;
		font-size: 16px;
		margin-top: 15px;
	}
}

/* Small Mobile Layout */
@media only screen and (max-width: 480px) {
	.banner{
		padding: 140px 0 80px;
	}
	
	.panel-default > .panel-heading + .panel-collapse > .panel-body{
		padding: 14px;
	}
}


.portfolio-box {
    position: relative;
    display: block;
    max-width: 650px;
    margin: 0 auto;
}

    .portfolio-box .portfolio-box-caption {
        position: absolute;
        bottom: 0;
        display: block;
        width: 100%;
        height: 100%;
        text-align: center;
        opacity: 0;
        color: #fff;
        background: rgba(240, 95, 64, 0.9);
        -webkit-transition: all 0.2s;
        transition: all 0.2s;
    }

        .portfolio-box .portfolio-box-caption .portfolio-box-caption-content {
            position: absolute;
            top: 50%;
            width: 100%;
            -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
            text-align: center;
        }

            .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category,
            .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
                padding: 0 15px;
                font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
            }

            .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
                font-size: 14px;
                font-weight: 600;
                text-transform: uppercase;
            }

            .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
                font-size: 18px;
            }

    .portfolio-box:hover .portfolio-box-caption {
        opacity: 1;
    }

    .portfolio-box:focus {
        outline: none;
    }

@media (min-width: 768px) {
    .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
        font-size: 16px;
    }

    .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
        font-size: 22px;
    }
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.text-faded {
    color: rgba(255, 255, 255, 0.7);
}

/* Magnific Popup CSS */
.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1042;
    overflow: hidden;
    position: fixed;
    background: #0b0b0b;
    opacity: 0.8;
}

.mfp-wrap {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1043;
    position: fixed;
    outline: none !important;
    -webkit-backface-visibility: hidden;
}

.mfp-container {
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    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: 1045;
}

.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 {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.mfp-loading.mfp-figure {
    display: none;
}

.mfp-hide {
    display: none !important;
}

.mfp-preloader {
    color: #CCC;
    position: absolute;
    top: 50%;
    width: auto;
    text-align: center;
    margin-top: -0.8em;
    left: 8px;
    right: 8px;
    z-index: 1044;
}

    .mfp-preloader a {
        color: #CCC;
    }

        .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 {
    overflow: visible;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    display: block;
    outline: none;
    padding: 0;
    z-index: 1046;
    box-shadow: none;
    touch-action: manipulation;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.mfp-close {
    width: 44px;
    height: 44px;
    line-height: 44px;
    position: absolute;
    right: 0;
    top: 0;
    text-decoration: none;
    text-align: center;
    opacity: 0.65;
    padding: 0 0 18px 10px;
    color: #FFF;
    font-style: normal;
    font-size: 28px;
    font-family: Arial, Baskerville, monospace;
}

    .mfp-close:hover,
    .mfp-close:focus {
        opacity: 1;
    }

    .mfp-close:active {
        top: 1px;
    }

.mfp-close-btn-in .mfp-close {
    color: #333;
}

.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: #CCC;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

.mfp-arrow {
    position: absolute;
    opacity: 0.65;
    margin: 0;
    top: 50%;
    margin-top: -55px;
    padding: 0;
    width: 90px;
    height: 110px;
    -webkit-tap-highlight-color: transparent;
}

    .mfp-arrow:active {
        margin-top: -54px;
    }

    .mfp-arrow:hover,
    .mfp-arrow:focus {
        opacity: 1;
    }

    .mfp-arrow:before,
    .mfp-arrow:after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        position: absolute;
        left: 0;
        top: 0;
        margin-top: 35px;
        margin-left: 35px;
        border: medium inset transparent;
    }

    .mfp-arrow:after {
        border-top-width: 13px;
        border-bottom-width: 13px;
        top: 8px;
    }

    .mfp-arrow:before {
        border-top-width: 21px;
        border-bottom-width: 21px;
        opacity: 0.7;
    }

.mfp-arrow-left {
    left: 0;
}

    .mfp-arrow-left:after {
        border-right: 17px solid #FFF;
        margin-left: 31px;
    }

    .mfp-arrow-left:before {
        margin-left: 25px;
        border-right: 27px solid #3F3F3F;
    }

.mfp-arrow-right {
    right: 0;
}

    .mfp-arrow-right:after {
        border-left: 17px solid #FFF;
        margin-left: 39px;
    }

    .mfp-arrow-right:before {
        border-left: 27px solid #3F3F3F;
    }

.mfp-iframe-holder {
    padding-top: 40px;
    padding-bottom: 40px;
}

    .mfp-iframe-holder .mfp-content {
        line-height: 0;
        width: 100%;
        max-width: 900px;
    }

    .mfp-iframe-holder .mfp-close {
        top: -40px;
    }

.mfp-iframe-scaler {
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-top: 56.25%;
}

    .mfp-iframe-scaler iframe {
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
        background: #000;
    }

/* Main image in popup */
img.mfp-img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    line-height: 0;
    box-sizing: border-box;
    padding: 40px 0 40px;
    margin: 0 auto;
}

/* The shadow behind the image */
.mfp-figure {
    line-height: 0;
}

    .mfp-figure:after {
        content: '';
        position: absolute;
        left: 0;
        top: 40px;
        bottom: 40px;
        display: block;
        right: 0;
        width: auto;
        height: auto;
        z-index: -1;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
        background: #444;
    }

    .mfp-figure small {
        color: #BDBDBD;
        display: block;
        font-size: 12px;
        line-height: 14px;
    }

    .mfp-figure figure {
        margin: 0;
    }

.mfp-bottom-bar {
    margin-top: -36px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    cursor: auto;
}

.mfp-title {
    text-align: left;
    line-height: 18px;
    color: #F3F3F3;
    word-wrap: break-word;
    padding-right: 36px;
}

.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;
    }

    .mfp-img-mobile .mfp-figure:after {
        top: 0;
        bottom: 0;
    }

    .mfp-img-mobile .mfp-figure small {
        display: inline;
        margin-left: 5px;
    }

    .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;
    }
}

@media all and (max-width: 900px) {
    .mfp-arrow {
        -webkit-transform: scale(0.75);
        transform: scale(0.75);
    }

    .mfp-arrow-left {
        -webkit-transform-origin: 0;
        transform-origin: 0;
    }

    .mfp-arrow-right {
        -webkit-transform-origin: 100%;
        transform-origin: 100%;
    }

    .mfp-container {
        padding-left: 6px;
        padding-right: 6px;
    }
}
