/* Fix for safari wrapping when display: flex; is applied to Bootstrap 3 rows. */
.row:before,
.row:after { width: 0; }

.bupuf-layout.row {
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
    position: relative;
}

.bupuf-layout:not(.bupuf-resist-spacing) {
	padding-top: 1em;
	padding-bottom: 1em;
}

.bupuf-preview-container .bupuf-layout.row {
	margin-top: 0;
	margin-bottom: 0;
}

.bupuf-layout.row.has-overlay {
	padding-top: 0;
	padding-bottom: 0;
}

.bupuf-layout.row .bg-overlay:not(.bupuf-resist-spacing) {
	padding-top: 1em;
	padding-bottom: 1em;
}

.bupuf-layout.row.parallax {
	background-attachment: fixed;
}

.bupuf-preview-container {
	background-color: white;
}

.row.full-width .container {
	width: auto;
    max-width: unset;
}

iframe {
	max-width: 100%;
}

/* WP alignment classes */
img.alignright { float: right; margin: 0 0 1em 1em; }
img.alignleft { float: left; margin: 0 1em 1em 0; }
img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright { float: right; }
.alignleft { float: left; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.col-xs-12,
.col-sm-12,
.col-md-12,
.col-lg-12 {
	position: relative;
	min-height: 1px;
	padding-right: 15px;
	padding-left: 15px;
	float: left;
}

.col-xs-20 {
	width: 20%;
}

@media (min-width: 768px) {
	.col-sm-20 {
		width: 20%;
	}
}
@media (min-width: 992px) {
	.col-md-20 {
		width: 20%;
	}
}
@media (min-width: 1200px) {
	.col-lg-20 {
		width: 20%;
	}
}
/* Separator Styles START */
.bupuf-separator {
	text-align: center;
}
.bupuf-separator > div.separator-repeat-x {
	background-repeat: repeat-x;
	background-position: top;
	height: auto;
	padding: 0;
	margin: 0;
}
.bupuf-separator > img {
	height: auto;
}
.bupuf-separator hr {
	height: 0;
	margin-left: 15px;
	margin-right: 15px;
}
/* Separator Styles END */

@media (max-width: 768px) {
	.hide-mobile {
		display: none;
	}
}
/* N-Column Styles START */
.n-column-row { /* makes columns equal height. important if borders are turned on. */
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	flex-wrap: wrap;
    align-items: stretch;
}

.n-column {
	border-width: 1px;
	border-right-style: solid;
	border-color: transparent;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
}

.n-column:last-of-type {
	border-right-style: none;
}

@media (max-width: 767px) {
	.n-column {
		border-right-style: none;
		border-bottom-style: solid;
	}
	.n-column:last-child {
		border-bottom-style: none;
	}
}

@media (max-width: 991px) {
	.n-column.col-sm-6:nth-child(2n),
	.n-column.col-sm-4:nth-child(3n) {
		border-right-style: none;
	}
	
	.n-4 .n-column.col-sm-4:nth-child(-n+3),
	.n-5 .n-column.col-sm-4:nth-child(-n+3),
	.n-6 .n-column.col-sm-4:nth-child(-n+3),
	.n-3 .n-column.col-sm-6:nth-child(-n+2),
	.n-4 .n-column.col-sm-6:nth-child(-n+2),
	.n-5 .n-column.col-sm-6:nth-child(-n+2),
	.n-6 .n-column.col-sm-6:nth-child(-n+2) {
		border-bottom-style: solid;
	}
}

/* N-Column Styles END */

ol.letter-list {
	list-style-type: lower-alpha;
}

/* Member Group Related Styles START */

.next-external + * {
    border: 3px dashed black;
    opacity: 0.5;
}

/* Member Group Related Styles END */
/* Layout Render V2 General Styles START */

.bupuf-layout .floating-anchor {
    position: absolute;
    top: -140px;
}

/* Layout Render V2 General Styles END */
/* Impromptu Lightbox Styles START */

.bupuf-impromptu-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
}

.bupuf-impromptu-lightbox-overlay {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.6);
}

.bupuf-impromptu-lightbox-frame {
    position: relative;
    background-color: white;
    padding: 30px;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    width: max-content;
    height: auto;
}

.bupuf-impromptu-lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-block;
    color: black;
    opacity: 0.5;
    font-size: 20px;
}

/* Impromptu Lightbox Styles END */
/* Content Styles START */

.checked-list ul li::before, ul.checked-list li::before {
	position: absolute;
	left: -45px;
	top: 0;
	content: "\f00c";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
}

/* Content Styles END */