
/* popups */
#popup-background-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: calc(100vh + 500px); /*100%;*/
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	overflow-y: hidden;
}
.popup {
	position: fixed;
	border: 2px solid var(--main-book-color);
	top: 200px;
	max-width: 680px;
	width: calc(100% - 20px); /*100%;*/
	margin-left: auto;
	margin-right: auto;
	left: 0;
	right: 0;
	display: none;
}

.popup.large {
	top: 100px;
	max-width: 50%; /*1130px;*/
}

#popup-image-with-carousel-information.popup.large {
	top: 80px; /*60px;*/
}

.popup .close-popup {
	cursor: pointer;
	position: absolute;
	right: 15px;
	top: 50%;
	margin-top: -10px;
	height: 20px;
}

.popup .popup-header {
	color: #FFF;
	background-color: var(--main-book-color);
	font-family: 'OpenSans';
	font-weight: 600; /* 700 */
	font-size: 16px;
	height: 52px;
	line-height: 52px;
	padding-left: 20px;
	padding-right: 20px;
	position: relative;
}

.popup .popup-body {
	padding-top: 20px;
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 20px;
	background-color: #FFF;
	color: #4D4D4D;
	font-family: 'OpenSans';
	font-weight: 400;
	font-size: 16px;
	position: relative;
}

.popup .popup-body .video-popup-play {
	position: absolute;
	cursor: pointer;
	left: 0;
	right: 0;
	top: 50%;
	margin-left: auto;
	margin-right: auto;
	margin-top: -38px; 
}

.popup .popup-buttons {
	text-align: right;
	/*padding-bottom: 20px;
	padding-left: 20px;
	padding-right: 20px;*/
	background-color: #FFF;
	padding-top: 20px;
}

.popup .popup-buttons button {
	font-family: 'OpenSans';
	font-weight: 600; /* 700 */
	font-size: 14px;
	border: 2px solid var(--main-book-color);
	line-height: 40px;
	width: 90px;
	cursor: pointer;
	border-radius: 2px;	
}

.popup .popup-buttons button:first-child {
	margin-right: 20px;
}

.popup .popup-buttons button.cancel {
	background-color: #FFF;
	color: var(--main-book-color);
}

.popup .popup-buttons button.accept {
	background-color: var(--main-book-color);
	color: #FFF;
}

.popup .popup-body textarea {
	border: 2px solid var(--main-book-color);
	border-radius: 2px;
	display: block;
	width: 100%;
	resize: none;
	color: #4D4D4D;
	font-family: 'OpenSans';
	font-weight: 400;
	font-size: 16px;
	margin-top: 5px;
}

.popup .image-footer {
	font-family: 'OpenSans';
	font-weight: 400;
	font-size: 16px;
	color: #FFF;
	background-color: #4D4D4D;
	line-height: 40px;
	padding-left: 20px;
	padding-right: 20px;
}

#popup-image-information.popup {
	/*max-width: none;*/
}

#popup-image-information.popup .popup-body, #popup-image-with-carousel-information.popup .popup-body, #popup-video-information.popup .popup-body {
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 0;
	padding-right: 0; 
}

.popup .image {
	width: 100%;
	height: auto;
	display: block;
}

.popup video {
	width: 100%;
	height: auto;
	display: block;
}

.popup .video-controls {
	height: 50px;
	background-color: var(--main-book-color);
}

.popup .video-controls .time-video-container {
	font-family: 'OpenSans';
	font-weight: 200;
	font-size: 20px;
	color: #FFF;
}

.popup .video-controls ul {
	list-style: none;
	padding-left: 0;
	margin-top: 0;
	margin-bottom: 0;
}

.popup .video-controls ul li {
	display: inline-block;
	margin-right: 2px;
}

.popup .video-controls ul li:last-child {
	margin-right: 0;
}

#expand-video-popup, #volume-video-popup, #stop-video-popup {
	cursor: pointer;
	height: 35px;
}

.popup .video-controls .popup-video-player-slider-container {
	/*width: 80%;*/
	padding-left: 10px;
	padding-right: 10px;
}

.popup .video-controls .stop-video-container {
	padding-left: 10px;
	width: 50px;
}

.popup .video-controls .options-video-container {
	width: 92px;
}

.popup .video-controls .time-video-container {
	width: 50px;
}

#popup-video-player-slider.ui-widget.ui-widget-content {
    border: 0;
    background-color: #0054b4;
    border-radius: 0;
}

#popup-video-player-slider.ui-state-default, #popup-video-player-slider.ui-widget-content .ui-state-default, #popup-video-player-slider.ui-state-default, #popup-video-player-slider .ui-button.ui-state-disabled:hover, #popup-video-player-slider .ui-button.ui-state-disabled:active {
    background-color: #F6F6F6;
    border: 0;
}

#popup-video-player-slider.ui-slider .ui-slider-handle {
    width: 5px;
    height: 20px;
    margin-left: 0;
    top: -8px;
    border-radius: 0;
}

#popup-video-player-slider.ui-widget.ui-slider-horizontal {
    height: 4px;
}

.popup .video-controls .table .table-cell {

}

.popup .video-controls img {
	padding-top: 4px;
}

.popup .carousel-wrapper {
	cursor: pointer;
}

.popup .carousel-wrapper {
	background-color: var(--main-book-color);
	padding-left: 67px;
	padding-right: 67px;
	padding-top: 20px;
	padding-bottom: 20px;
	position: relative;
}

.popup .carousel-wrapper .arrow {
	position: absolute;
	top: 50%;
	margin-top: -19px;
	cursor: pointer;
	height: 38px;
}

.popup .carousel-wrapper .arrow.left-arrow {
	left: 20px;
}

.popup .carousel-wrapper .arrow.right-arrow {
	right: 20px;
}

#expand-video-popup-mobile {
	display: none;
}

#volume-video-popup-mobile {
	display: none;
}
/* fin popups */

@media (max-width: 768px) {
	/* popups */
	.popup {
		top: 75px;
		max-height: calc(100vh - 150px);
	}

	.popup:not(.hidden) {
		display: flex!important;
		flex-direction: column;
	}

	.popup .popup-body {
		overflow-y: scroll;
	}

	.popup .popup-buttons {
		/*padding-top: 15px;
		padding-bottom: 20px;*/
	}

	.popup.large {
		max-width: 100%;
	}

	.popup.large {
		top: 75px;
	}

	.popup .carousel-wrapper {
		padding-left: 42px;
		padding-right: 42px;
	}

	.popup .carousel-wrapper .arrow.left-arrow {
		left: 10px;
	}

	.popup .carousel-wrapper .arrow.right-arrow {
		right: 10px;
	}

	.popup .popup-body .video-popup-play {
		width: 33px;
		height: auto;
		margin-top: -16.5px;
		display: none!important;
	}

	#popup-image-information.popup .popup-body, #popup-image-with-carousel-information.popup .popup-body, #popup-video-information.popup .popup-body {
		overflow-y: visible;
	}

	#expand-video-popup {
		display: none;
	}

	#volume-video-popup {
		display: none;
	}

	#expand-video-popup-mobile {
		display: inline;
		margin-right: 5px;
		height: 21px;
	}

	#volume-video-popup-mobile {
		display: inline;
	}

	.popup .video-controls .options-video-container {
		width: 55px;
	}

	.popup .video-controls ul li {
		vertical-align: bottom;
		position: relative;
		bottom: 5px;
	}
	/* fin popups */

}
