.rbox-overlay {
	 
  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: 0px;
}

.rbox {
  padding: 0px;
  position: relative;
}

.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: #aaa;
}

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

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

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

.rbox-close {
	position: absolute;
	right: 0;
  top: 0;
	font-size: 20px;
}

.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 {
	object-fit: cover;
  
	display: block;
	margin: 0 ;
	height:100%;
  max-width: 100%; /* Remove if included in your site's global styles */
  
}

.rbox-content iframe {
	border: 0; /* Remove if included in your site's global styles */
}

/* Đưa 2 nút Prev/Next xuống dưới giữa, nằm trong khung trắng */
.rbox-next, .rbox-prev{
  position: absolute;
  top: auto !important;
  bottom: 22px !important;

  width: 44px;
  height: 44px;
  padding: 0 !important;

  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  z-index: 2;
}

/* canh giữa theo trục ngang */
.rbox-prev{
  left: 50% !important;
  right: auto !important;
  transform: translateX(-120%);
}

.rbox-next{
  left: 50% !important;
  right: auto !important;
  transform: translateX(20%);
}

