/* Popups with messages */
#themerex_modal_bg {
	position:fixed;
	left:0;
	top:0;
	right:0;
	bottom:0;
	background-color: rgba(0,0,0,0.3);
	display:none;
	z-index:100000;
}
.themerex_message {
	display:block;
	position:absolute;
	max-width:800px;
	min-width:280px;
	overflow:hidden;
	border-radius:4px;
	border:2px solid #e5e5e5;
	background-color:#ffffff;
	color:#4c4c4c;
	opacity:0;
	top:0;
	left:40%;
	margin-left:-200px;
	padding:12px;
	line-height:140%;
	z-index:100001
}
.themerex_message .themerex_message_close {
	display:block;
	position:absolute;
	width:16px;
	height:16px;
	line-height:16px;
	text-align:center;
	font-size:16px;
	font-weight:bold;
	right:6px;
	top:4px;
	cursor:pointer;
	color:#4c4c4c;
}
.themerex_message .themerex_message_icon {
	float:left;
	display:block;
	width:35px;
	height:35px;
	line-height:28px;
	text-align:center;
	border: 4px solid #c9c9c9;
	border-radius:50%;
	margin: 0 20px 6px 0;
	font-size:24px;
	font-weight:bold;
	color:#c9c9c9;
}
.themerex_message .themerex_message_icon:before {
	padding:0;
	margin:0;
}
.themerex_message .themerex_message_header {
	color:#4c4c4c;
	padding: 0;
	font-size:18px;
	font-weight:bold;
}
.themerex_message:not(.themerex_message_dialog) .themerex_message_body {
	padding:12px 0 0 63px;
}

/* Warning popup */
.themerex_message_warning {
	border-color:#d7a9b1;
	background-color:#ffcdde;
	color:#a63a4b;
}
.themerex_message_warning .themerex_message_close {
	color:#a63a4b;
}
.themerex_message_warning .themerex_message_icon {
	border-color: #a63a4b;
	color:#a63a4b;
}
.themerex_message_warning .themerex_message_icon {
	line-height:34px;
}
.themerex_message_warning .themerex_message_header {
	color:#a63a4b;
}
/* Success popup */
.themerex_message_success {
	border-color:#b3e7a8;
	background-color:#d8ffd0;
	color:#517d48;
}
.themerex_message_success .themerex_message_close {
	color:#517d48;
}
.themerex_message_success .themerex_message_icon {
	border-color: #517d48;
	color:#517d48;
}
.themerex_message_success .themerex_message_icon {
	line-height:34px;
}
.themerex_message_success .themerex_message_header {
	color:#517d48;
}
/* Info popup */
.themerex_message_info {
	border-color:#9ecade;
	background-color:#ebf7fe;
	color:#4cb2e1;
}
.themerex_message_info .themerex_message_close {
	color:#4cb2e1;
}
.themerex_message_info .themerex_message_icon {
	border-color: #4cb2e1;
	color:#4cb2e1;
}
.themerex_message_info .themerex_message_icon {
	line-height:34px;
}
.themerex_message_info .themerex_message_header {
	color:#4cb2e1;
}
/* Dialog popup */
.themerex_message_dialog .themerex_message_icon {
	line-height:36px;
}
.themerex_message_dialog .themerex_message_buttons {
	margin-top:20px;
}
.themerex_message_dialog .themerex_message_button {
	display:inline-block;
	padding:0 12px;
	margin-right:6px;
	min-width:60px;
	height:30px;
	line-height:30px;
	background-color:#4b4b4b;
	border-radius:6px;
	color:#ffffff;
	cursor:pointer;
	text-align:center;
	font-weight:bold;
}
.themerex_message_dialog .themerex_message_button:hover {
	background-color:#4cb2e1;
}/* PhotoSwipe Plugin */
.psgal {
    margin: auto;
    padding-bottom:40px;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
    opacity:0.1;
}
.psgal.use_masonry_{
    opacity:1;
}

.psgal.use_masonry_1{
    opacity:1; 
    text-align:center;
}
.psgal.photoswipe_showme{
    opacity:1;
}
.psgal figure {
    float: left;
    text-align: center;
    padding:5px;
    margin: 0px;
    box-sizing:border-box;
}
.psgal.use_masonry_1 figure {
    float:none; 
    display:inline-block;
}
.psgal a{
    display:block;
}
.psgal img{
    margin:auto;
    max-width:100%;
    width: auto;
    height: auto;
    border: 0;
}
.psgal figure figcaption{
    font-size:13px;
}
.msnry{
    margin:auto;
}
.pswp__caption__center{
    text-align: center;
}
.psgal.show_captions_ figure.photoswipe-gallery-caption {
    display:none;
}
@media(max-width:650px){
    .photoswipe_showme figure{
        width: 100% !important;
        max-width: auto;
        height: auto;
    }
    .photoswipe_showme figure a {
        height: auto !important;
    }
}