.hidden {
    display: none;
}

.overlayBox.popupOverlay {
    max-width: 600px;
    text-align: center;
}

.popupOverlay p {
    margin-bottom: 10px;
}

.popupOverlay .button {
    display: inline-block;
    margin-bottom: 10px;
}


.popupOverlay .button:last-child {
    margin-bottom: 0;
}

.popupOverlay p:last-child {
    margin-bottom: 0;
}

/* Overlay */

html.blur .siteWrapper {
	 filter: blur(5px);
}
html.noScroll {
	 overflow: hidden;
}
.overlayBoxOuter {
	 position: fixed;
	 z-index: 9100;
	 top: 0;
	 width: 100%;
	 min-height: 100%;
	 height: 100%;
	 background: #090909;
	 background: rgba(0,0,0,0.5);
	 overflow: hidden;
}
.overlayBoxOuter .ps-container {
	 position: relative;
}
.overlayBoxOuter .ps-container > .ps-scrollbar-y-rail {
	 opacity: 1;
}
.overlayBox {
	 position: absolute;
	 opacity: 0;
	 display: block;
	 max-width: 100%;
}
.overlayBox .overlayContent {
	 background: #fff;
	 margin-top: 33px;
	 max-height: calc(100% - 33px);
	 position: relative;
	 height: 100%;
}
.overlayBox.hasLink .overlayImage {
	 position: relative;
}
.overlayBox .overlayImage img {
	 max-width: 100%;
	 height: auto;
	 display: block;
}
.overlayBox .overlayVideo {
	 position: relative;
}
.overlayBox .overlayVideo iframe {
	 position: absolute;
	 top: 0;
	 left: 0;
	 display: block;
}
.overlayBox.overlayFullscreen .overlayAjax {
	 height: 100% !important;
}
.overlayBox.overlayFullscreen .overlayAjax iframe {
	 width: 100%;
	 height: 100%;
}
.overlayBox.overlayFullscreen .overlayContent, .overlayBox.overlayFullscreen .overlayVideo {
	 height: 100% !important;
	 padding: 0 !important;
}
.overlayBox .overlayAjax {
	 overflow-y: auto;
	 max-height: 100%;
}
.overlayContentLoading:before, .overlayLoading:before {
	 position: absolute;
	 top: 50%;
	 left: 50%;
	 transform: translate(-50%,-50%);
	 animation: overlay-spinner 2s infinite linear;
}
@keyframes overlay-spinner {
	 0% {
		 transform: translate(-50%,-50%) rotate(0);
	}
	 100% {
		 transform: translate(-50%,-50%) rotate(350deg);
	}
}
.noScroll {
	 overflow: hidden;
	 position: relative;
}
.overlayCloseButton {
	 z-index: 9200;
	 text-align: right;
	 position: absolute;
	 top: 0;
	 right: 0;
}
.overlayCloseButton a {
	 background: ;
	 color: #fff;
	 font-weight: bold;
	 display: inline-block;
	 cursor: pointer;
	 padding: 5px 10px;
	 font-family: ;
	 font-size: 14px;
	 text-transform: uppercase;
	 z-index: 9200;
	 outline: 0;
	 text-decoration: none;
}
.overlayAjax {
	 padding: 20px;
}
.overlayBoxTitle {
	 position: relative;
	 bottom: 0;
	 line-height: 30px;
	 font-size: 18px;
	 width: 100%;
	 text-align: center;
	 left: 0;
	 display: block;
	 color: #fff;
}
.overlayBoxLink {
	 position: absolute;
	 top: 0;
	 left: 0;
	 width: 100%;
	 height: 100%;
	 display: block;
}
.overlayBox .galleryPrev, .overlayBox .galleryNext {
	 position: absolute;
	 top: 50%;
	 left: 20px;
	 transform: translateY(-50%);
	 background: rgba(255,255,255,0.3);
	 width: 40px;
	 height: 40px;
	 line-height: 40px;
	 border-radius: 50%;
	 transition: background 0.3s;
	 text-align: center;
	 cursor: pointer;
	 z-index: 100;
}
.overlayBox .galleryPrev:before, .overlayBox .galleryNext:before {
	 color: #fff;
}
.overlayBox .galleryPrev:hover, .overlayBox .galleryNext:hover {
	 background: rgba(255,255,255,0.5);
}
.overlayBox .galleryPrev:focus, .overlayBox .galleryNext:focus {
	 border: none;
	 outline: none;
}
.overlayBox .galleryPrev.arrowInactive, .overlayBox .galleryNext.arrowInactive {
	 display: none;
}
.overlayBox .galleryNext {
	 right: 20px;
	 left: auto;
}
.overlayBox .galleryNext:before {
	 content: '\f105';
}


/* Perfect scoll */

.ps-container {
    overflow: hidden !important;
}

.ps-container.ps-active-x > .ps-scrollbar-x-rail, .ps-container.ps-active-y > .ps-scrollbar-y-rail {
    display: block;
}

.ps-container.ps-in-scrolling {
    pointer-events: none;
}

.ps-container.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail {
    background-color: #eee;
    opacity: 0.9;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
}

.ps-container.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail > .ps-scrollbar-x {
    background-color: #999;
}

.ps-container.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail {
    background-color: #eee;
    opacity: 0.9;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
}

.ps-container.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail > .ps-scrollbar-y {
    background-color: #999;
}

.ps-container > .ps-scrollbar-x-rail {
    display: none;
    position: absolute;
    /* please don't change 'position' */
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    border-radius: 4px;
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    -webkit-transition: background-color .2s linear, opacity .2s linear;
    -moz-transition: background-color .2s linear, opacity .2s linear;
    -o-transition: background-color .2s linear, opacity .2s linear;
    transition: background-color .2s linear, opacity .2s linear;
    bottom: 3px;
    /* there must be 'bottom' for ps-scrollbar-x-rail */
    height: 8px;
}

.ps-container > .ps-scrollbar-x-rail > .ps-scrollbar-x {
    position: absolute;
    /* please don't change 'position' */
    background-color: #aaa;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    border-radius: 4px;
    -webkit-transition: background-color .2s linear;
    -moz-transition: background-color .2s linear;
    -o-transition: background-color .2s linear;
    transition: background-color .2s linear;
    bottom: 0;
    /* there must be 'bottom' for ps-scrollbar-x */
    height: 8px;
}

.ps-container > .ps-scrollbar-y-rail {
    display: none;
    position: absolute;
    /* please don't change 'position' */
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    border-radius: 4px;
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    -webkit-transition: background-color .2s linear, opacity .2s linear;
    -moz-transition: background-color .2s linear, opacity .2s linear;
    -o-transition: background-color .2s linear, opacity .2s linear;
    transition: background-color .2s linear, opacity .2s linear;
    right: 3px;
    /* there must be 'right' for ps-scrollbar-y-rail */
    width: 8px;
}

.ps-container > .ps-scrollbar-y-rail > .ps-scrollbar-y {
    position: absolute;
    /* please don't change 'position' */
    background-color: #aaa;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    border-radius: 4px;
    -webkit-transition: background-color .2s linear;
    -moz-transition: background-color .2s linear;
    -o-transition: background-color .2s linear;
    transition: background-color .2s linear;
    right: 0;
    /* there must be 'right' for ps-scrollbar-y */
    width: 8px;
}

.ps-container:hover.ps-in-scrolling {
    pointer-events: none;
}

.ps-container:hover.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail {
    background-color: #eee;
    opacity: 0.9;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
}

.ps-container:hover.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail > .ps-scrollbar-x {
    background-color: #999;
}

.ps-container:hover.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail {
    background-color: #eee;
    opacity: 0.9;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
}

.ps-container:hover.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail > .ps-scrollbar-y {
    background-color: #999;
}

.ps-container:hover > .ps-scrollbar-x-rail, .ps-container:hover > .ps-scrollbar-y-rail {
    opacity: 0.6;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
    filter: alpha(opacity=60);
}

.ps-container:hover > .ps-scrollbar-x-rail:hover {
    background-color: #eee;
    opacity: 0.9;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
}

.ps-container:hover > .ps-scrollbar-x-rail:hover > .ps-scrollbar-x {
    background-color: #999;
}

.ps-container:hover > .ps-scrollbar-y-rail:hover {
    background-color: #eee;
    opacity: 0.9;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
}

.ps-container:hover > .ps-scrollbar-y-rail:hover > .ps-scrollbar-y {
    background-color: #999;
}