
#stom_popups_wrapper {
	height: 0;
}

#stom_popups_wrapper .stom_popup_overlay {
	position: fixed;
	z-index: 10000;
}
#stom_popups_wrapper .stom_popup_overlay.full {
	display: table;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}
#stom_popups_wrapper .stom_popup_overlay.style-fold {
	max-width: 100%;
	max-height: 90vh;
	max-height: calc(100vh - 50px);
}
#stom_popups_wrapper .stom_popup_overlay.upper-left {
	top: 0;
    left: 0;
}
#stom_popups_wrapper .stom_popup_overlay.upper-right {
	top: 0;
    right: 0;
}
#stom_popups_wrapper .stom_popup_overlay.lower-left {
	bottom: 0;
    left: 0;
}
#stom_popups_wrapper .stom_popup_overlay.lower-right {
	bottom: 0;
    right: 0;
}

/* Admin-bar support */
.admin-bar #stom_popups_wrapper .stom_popup_overlay.upper-left,
.admin-bar #stom_popups_wrapper .stom_popup_overlay.upper-right {
	top: 32px;
}

#stom_popups_wrapper .full .stom_popup_wrapper {
	display: table-cell;
	vertical-align: middle;
}
#stom_popups_wrapper .stom_popup_wrapper > * {
	overflow: auto;
}

#stom_popups_wrapper .stom_popup {
	position: relative;
	margin: 0 auto;
}
#stom_popups_wrapper .stom_popup_bg {
	position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
#stom_popups_wrapper .bg-full .stom_popup_bg {
	left: 0;
}
#stom_popups_wrapper .bg-right .stom_popup_bg {
	left: 50%;
}
#stom_popups_wrapper .bg-left .stom_popup_bg {
	left: -50%;
}

#stom_popups_wrapper .stom_popup_toggle_wrapper {
	padding: 10px 25px;
	font-size: 1.5em;
	text-align: center;
	cursor: pointer;
}

#stom_popups_wrapper .stom_popup_content_wrapper {
	position: relative;
	padding: 20px 25px;
	z-index: 5;
}
#stom_popups_wrapper .bg-right  .stom_popup_content_wrapper,
#stom_popups_wrapper .bg-left  .stom_popup_content_wrapper {
	width: 50%;
}
#stom_popups_wrapper .bg-right  .stom_popup_content_wrapper {
	margin: 0 auto 0 0;
}
#stom_popups_wrapper .bg-left  .stom_popup_content_wrapper {
	margin: 0 0 0 auto;
}

#stom_popups_wrapper .stom_popup_content > *:first-child {
	margin-top: 0;
}
#stom_popups_wrapper .stom_popup_content > *:last-child {
	margin-bottom: 0;
}

#stom_popups_wrapper .stom_popup .popup-full-link {
	display: block;
    max-height: 100%;
    overflow: auto;
    text-decoration: none;
    color: inherit;
}
#stom_popups_wrapper .stom_popup .stom_popup_close {
	content: url('fontawesome/times-solid.svg');
	position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    padding: 3px 7px;
    line-height: 75%;
    cursor: pointer;
    z-index: 10;
}

#stom_popups_wrapper .stom_popup_title {
	display: block;
	margin-bottom: 25px;
	font-size: 2rem;
	text-align: center;
}
