/*
// add example for custom nav markup
// add disable styles for next prev
// HTML5 Video with Custom Videoposter demo
  // is loading working? Not sure how to replicate and customize it?
  // add docs for close on esc disabled
 // add aria role


 // custom close class needs to be deactivated
 // on closing gallery type, scroll is not handled
  // instead of fitvids, can we have js for iframe width: 100vw,
 height: padding-bottom vw; http://stackoverflow.com/questions/25302836/responsive-video-iframes-keeping-aspect-ratio-with-only-css, doesn't seem to work if you need to constrain the parent width
// arrays for custom navmarkup defaults
// separate close and next prev
// create arrays for custom classes for nav
// duplication in code in js for next previous logic
// Video type shows error in console when playing bunny video: Uncaught TypeError: Cannot read property 'pause' of undefined;
// why data height or height is showing smaller than height i'm defining for video?
// data height and widths for video and iframes broken? or only height? update demos accorindingly. iframe is not getting height only properly
// is it a problem to have defaults for next prev close declared in CSS as well as opts inside js?
// replace bind with on method
// Namespace
// opt: throttle window resize;
*/

* {
	box-sizing: border-box; /* Remove if included in your site's global styles */
}

.rbox-overlay {
	text-align: center;
  background: #000;
  background: rgba(0, 0, 0, 0.8);
	opacity: 0;
	display: flex;
	align-items: center;
  position: fixed;
  left: 0;
  top: 0;
	bottom: 0;
	right: 0;
	z-index: -1;
	transition: opacity 0.25s ease; /* animates the fade */
}

.rbox-overlay--show {
	opacity: 1;
  z-index: 10000;
}

.rbox-overlay--short {
	align-items: flex-start; /* for when rbox content is taller than viewport */
	position: absolute;
}

.rbox-wrap {
	margin: 25px auto;
	max-width: 80%;
  position: relative;
	display: inline-block;
}

.rbox-wrap--inline, .rbox-wrap--html, .rbox-wrap--ajax {
	background: #fff;
	padding: 20px;
}

.rbox {
  position: relative;
  /* background: var(--color_white);
  width: 67.4vw;
  padding: 5rem 0rem 10rem; */
}

.rbox-next, .rbox-prev, .rbox-close {
	color: #777;
	text-decoration: none;
	padding: 10px;
}

.rbox-next:hover, .rbox-next:focus, .rbox-prev:hover, .rbox-prev:focus, .rbox-close:hover, .rbox-close:focus {
	color: var(--color24);
}

/*.rbox-close:after {
	content: "\274c";
}

.rbox-next:after {
	content: "\25b6";
}

.rbox-prev:after {
	content: "\25c0";
}*/

.rbox-close {
	position: absolute;
    right: 4rem;
    top: 3rem;
    font:var(--font18);
    padding: 0;
}

.rbox-next, .rbox-prev {
	position: absolute;
	top: 44%;
	font-size: 20px;
}

.rbox-next {
	right: -30px;
}

.rbox-prev {
	left: -30px;
}

.rbox-content image {
	height: 70vh;
}

.rbox-content iframe {
	max-width: 100%;
	width: 100vw;
	height: 70vh;
}

.rbox-content img, .rbox-content video {
	display: block;
	margin: 0 auto;
  max-width: 100%; /* Remove if included in your site's global styles */
  height: auto; /* Remove if included in your site's global styles */
}

.rbox-content iframe {
	border: 0; /* Remove if included in your site's global styles */
}
.rbox-next, .rbox-prev {background: url(../images/popup-right-arrow.svg);
    width: 3.3rem;
    height: 3.3rem;
    background-size: cover;
    font-size: 0;
    position: static;
    margin-top: 0;
	position: absolute;
    bottom: -5rem;
	filter: invert(1) brightness(100);

}
.rbox-next{top: 50%;right:-5rem;}
.rbox-prev{ top:50%; left:-5rem;transform:rotate(180deg) ; -webkit-transform:rotate(180deg) ; -moz-transform:rotate(180deg) ; -ms-transform:rotate(180deg) ; -o-transform:rotate(180deg) ; }
.rbox-caption {position: absolute;left: 50%;transform:translateX(-50%) ;bottom: 3.2rem;-webkit-transform:translateX(-50%) ;-moz-transform:translateX(-50%) ;-ms-transform:translateX(-50%) ;-o-transform:translateX(-50%) ;font: var(--font21);color: var(--color3b);}
.rbox-content {border-bottom: .1rem solid rgb(0 0 0 / 8%);}
/* .rbox-close{ background: url(../images/popup-cross-icon.svg); background-repeat: no-repeat; background-size: contain; width: 3.3rem;
height: 3.3rem;font-size: 0; filter: invert(1) brightness(100); right: 0; top: -2.5rem;border: .1rem solid var(--color_white);} */
.rbox-close { width: 3.3rem; height: 3.3rem; font-size: 1.3rem; top: -4.5rem; border: .1rem solid var(--color_white);right:0; }
.rbox-close:hover, .rbox-next:hover, .rbox-prev:hover{filter: none;}
@media (max-width:1199px) {
	.rbox {width: 80vw;padding: 3rem 0rem 8rem;}
	.rbox-next {top: inherit;bottom: 2.2rem;right:calc(50% - 3.6rem);}
	.rbox-prev {top: inherit; left:calc(50% - 3.6rem);}
	.rbox-next, .rbox-prev {width: 2.3rem;height: 2.3rem;margin-top: 0rem;bottom: 2.2rem;}
	.rbox-caption {bottom: 2rem;}
	.rbox-close {right:0;top:-3rem;}

}
@media (max-width:991px) {
	.rbox-close { width: 2.3rem; height: 2.3rem; display: flex; justify-content: center; font-size: 1rem; line-height: 0.9; align-items: center;top: -1rem;}
	.rbox-next {right:calc(50% - 2.6rem);}
	.rbox-prev {left:calc(50% - 2.6rem);}
	.rbox-next, .rbox-prev { bottom: 4rem; }
}
@media (max-width:575px) {
	.rbox-wrap{margin: 25px auto;max-width: 100%;position: relative;display: inline-block;text-align: center;display: flex;justify-content: center;}
	.rbox {width:calc(100% - 3rem);}
}