@CHARSET "ISO-8859-1";

#bene-page-overlay
{
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0,0,0,0.0);
	z-index: 500;
	transition: background-color 1.0s;
	pointer-events: none;
}

#bene-page-overlay.shown
{
	background-color: rgba(0,0,0,0.4);
	pointer-events: all;
	display: block;
}

.bene-modal-show
{
	cursor: pointer;
}

.bene-modal-window
{
	position: fixed;
	top: 2rem;
	left: calc(50% - 20rem);
	left: calc(50% - 20rem);
	width: 40rem;
	background: linear-gradient(to top, #ddd 0%, #fff 100%);
	padding: 0.75rem 0.75rem 0.75rem 0.75rem;
	padding-right: 2.5rem;
	padding-left: 2.5rem;
	border-radius: 0.333333rem;
	box-shadow: 0rem 0.25rem 0.25rem rgba(0,0,0,0.25);
	opacity: 0.0;
	z-index: 505;
	transition: opacity 0.5s;
	pointer-events: none;
	font-family: 'Segoe UI', 'Lucida Grande', Calibri, Helvetica, Arial, sans-serif;

	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-ms-align-items: center;
	-webkit-align-items: center;
	align-items: center;
}

.bene-modal-window.shown
{
	opacity: 1.0;
	pointer-events: all;
	
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
}

@media screen and (min-width:0\0)
{
	#bene-page-overlay
	{
		display: none;
	}
	
    .bene-modal-window
	{
		display: none;
	}
}

.bene-modal-window.youtube, .bene-modal-window.gallery
{
	padding-bottom: 1.25rem;
}

.bene-modal-window .modal-box
{
	margin: auto;
	/*border-radius: 0.25rem;*/
	overflow: hidden;
	cursor: pointer;
}

.bene-modal-window.gallery .modal-box
{
	overflow: visible;
	cursor: auto;
}

.bene-modal-window.youtube .modal-box
{
	overflow: hidden;
}

.bene-modal-window .modal-box.standard-content
{
	padding: 0.75rem 0rem;
}

.bene-modal-window .close-button
{
	position: absolute;
	top: 0.75rem;
	right: 0.25rem;
	font-size: 3rem;
	line-height: 1rem;
	text-decoration: none;
	font-weight: bold;
	font-family: Arial, sans-serif;
	color: #999;
	cursor: pointer;
}

.bene-modal-window p.title
{
	color: #999;
	text-align: center;
	font-size: 1rem;
}

.youtube-box
{
	position: relative;
	width: 100%;
	max-width: 560px;
	width: 560px;
	height: 315px;
	overflow: hidden;
}

.bene-youtube
{
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	/*width: 560px;
	height: 315px;*/
	background-color: rgb(0,0,0);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 1.0;
	transition: opacity 0.5s;
	display: -ms-flexbox;
	display: flex;
}

div.bene-youtube:hover
{
	opacity: 0.9;
}

.youtube-box iframe
{
	width: 100%;
}

.bene-gallery
{
	position: relative;
	width: 32rem;
	height: 36rem;
}

.gallery-load
{
	color: #fff;
	background-color: rgba(128,128,128,0.5);
	padding: 0.5rem;
	border-radius: 0.25rem;
}

.gallery-item
{
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 0;
	opacity: 0.0;
	transition: opacity 0.25s;
}

.gallery-item.shown
{
	z-index: 10;
	opacity: 1.0;
}

.gallery-item a
{
	pointer-events: none;
}

.gallery-item.shown a
{
	pointer-events: inherit;
}

.gallery-pic
{
	position: relative;
	width: 100%;
	padding-top: 100%;
	margin-bottom: 0.5rem;
	border-radius: 0.25rem;
	background-color: #000;
	background-position: center center;
	background-size: contain;
	background-repeat: no-repeat;
}

.gallery-caption
{
	width: 100%;
	height: 3.5rem;
	background: rgba(0,0,0,0.0625);
	border-radius: 0.25rem;
	color: #000;
	font-size: 0.8125rem;
	line-height: 1rem;
	padding: 0.25rem;
}

.gallery-disclaimer
{
	color: rgba(255,255,255,0.25);
	font-size: 0.5rem;
	position: absolute;
	left: 0.25rem;
	bottom: 4.125rem;
	z-index: 20;
	width: 100%;
	text-align: center;
}

.gallery-button
{
	position: absolute;
	top: calc(50% - 3.5rem);
	z-index: 20;
	width: 3rem;
	height: 3rem;
	background-color: rgba(128,128,128,0.5);
	border-radius: 0.25rem;
	cursor: pointer;
	opacity: 0.25;
	transition: opacity 0.25s;
}

.bene-modal-window.shown .gallery-button.shown
{
	pointer-events: all;
	opacity: 1.0;
}

.gallery-button.left
{
	left: -0.25rem;
}

.gallery-button.right
{
	right: -0.25rem;
}

@media (max-width: 640px)
{
	.bene-modal-window
	{
		display: block;
		padding: 0.5rem;
		padding-top: 2.5rem;
		top: 0.25rem;
		left: 0.25rem;
		width: calc(100% - 0.5rem);
	}
	
	.bene-modal-window .modal-box.standard-content
	{
		padding: 0;
	}

	.modal-box p
	{
		font-size: 0.8125rem;
	}

	.bene-youtube
	{
		display: none;
	}
	
	.youtube-box iframe
	{
		display: none;
	}
}
