/**
* V1.0 - Release
* V1.1 - Remove margin on modal button
* V1.2 June 9, 2022 - Adding styles for slideshow modals
* V1.21 June 9, 2022 - Add small regular modal update to account for window height overflow
* V1.23 June 23, 2022 - Added minimum height to media modal buttons to reduce layout shift
* V1.24 June 23, 2022 - Made media modal buttons 50% width on most small screens
* V1.25 January 4, 2023 - Added white-space: normal; to modal body as it was getting set to nowrap by .hscroll-table 
**/

.my-modal {
    display: none;
    position: fixed;
    z-index: 9999999; 
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.my-modal-content {
	display: flex;
	display: -ms-flexbox;
	flex-direction: column;
	ms-flex-direction: column;
	max-height: calc(100% - 10.5rem);
	overflow: auto;
	position: relative;
	background-color: black;
	margin: auto;
	padding: 0;
	border: 1px solid #888;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	white-space: normal;
}

.my-modal-header {
  	padding: 5px 16px 0px;
	display: flex;
	justify-content: space-between;
}

.close-my-modal{
  color: grey;
  font-size: 28px;
  font-weight: bold;
	align-self: start;
}

.close-my-modal:hover,
.close-my-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.my-modal h4{
	margin: 10px 0px;
	padding: 0px;
	font-size: 1.7rem;
	align-self: center;
}

.my-modal-desc{
	padding: 0px 16px 10px;
	border-bottom: 1px solid lightgrey;
	color: #555;
	font-size: 1.4rem;
}

.my-modal-body{
	padding: 0;
	max-height: 400px;
	overflow: auto;
	font-size: 1.6rem;
	min-height: 80px;
}

@media only screen and (max-width: 500px){
	.my-modal {
    padding-top: 30px;
}
	.my-modal-body{
		max-height: calc(50vh - 2.5rem);
	}
}

.my-modal-button, .my-modal-button:hover, .my-modal-button:focus{
	color: #00FFFF;
}

/** Slideshow Modal Styles **/

.ss-media-modal-btns{
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.ss-media-modal-thumb-col{
	padding: 0 15px;
	margin-bottom: 16px;
	width: 100%;
}

@media only screen and (min-width: 992px){
	.ss-media-modal-thumb-col{
		max-width: 20%;
	}
}

@media only screen and (min-width: 600px) and (max-width: 991px){
	.ss-media-modal-thumb-col{
		max-width: 33%;
	}
}

@media only screen and (min-width: 450px) and (max-width: 599px){
	.ss-media-modal-thumb-col{
		max-width: 50%;
	}
}

.my-modal-button.media-modal-button{
	text-decoration: none;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #fff !important;
	height: 100%;
	border: 1px solid lightgrey;
	padding: 0;
	border-radius: 0;
    min-height: 100px;
}

.my-modal-button.media-modal-button:hover{
	box-shadow: 2px 2px 13px #e3e3e3;
}

.media-modal-button img{
	padding: 8px;
	vertical-align: middle;
}

.ss-video-thumb-play-btn{
	position: absolute;
	border-radius: 8px;
	padding: 1px 8px;
	background-color: #FF0000;
	box-shadow: 0px 0px 15px #636363;
	background-image: url('/wp-content/uploads/2022/06/ss-simple-play-icon-white-32-v2.png');
	background-repeat: no-repeat;
	background-size: 16px;
	background-position: center;
	width: 50px;
	height: 35px;
}

.media-modal-button:hover > .ss-video-thumb-play-btn{
	background-color: #e60000;
}

.my-modal.media-modal{
	padding-top: 10vh; //was padding: 0;
	background-color: rgb(0, 0, 0, 0.8);
}

.media-modal .my-modal-dialog{
	margin: auto; //was 1.75rem auto
	display: flex;
	align-items: center;
	width: auto;
	position: relative;
	min-height: calc(100% - 6.5rem);
	width: 85vw;
	max-width: 900px;
}

.media-modal .my-modal-content{
	max-width: none !important;
	align-items: center;
	overflow: visible;
}

.media-modal .my-modal-body{
	max-height: 100%;
	overflow: hidden;
	position: relative;
	padding: 0;
	height: 100%;
}

.media-modal .close-my-modal{
	position: absolute;
	top: -40px;
	right: 0;
	color: #fff;
}

.media-modal .close-my-modal:hover{
	opacity: 0.5;
}

.media-modal .ss-slide-item{
	max-height: 800px;
	position: relative;
	width: 100%;
	height: 100%;
}

@media only screen and (min-width: 992px){
	.media-modal .ss-slide-item{
		height: 60vh;
	}
}

@media only screen and (min-width: 600px) and (max-width: 991px){
	.media-modal .ss-slide-item{
		height: 50vh;
	}
}


@media only screen and (min-width: 300px) and (max-width: 559px){
	.media-modal .ss-slide-item{
		height: 35vh;
	}
}

.media-modal .ss-slide-item.active{
	display: flex !important;
	display: -webkit-box;
  	display: -ms-flexbox;
}

.media-modal img{
	object-fit: scale-down;
	flex: 1;
}

.media-modal iframe{
	height: 100%;
	width: 100%;
}

.media-modal .ss-iframe-container{
	display: block;
	padding: 0;
	margin: 0 auto;
	width: 100%;
	height: auto;
	position: relative;
	overflow: hidden;
}

#my-carousel-caption{
	font-size: 14px;
	padding: 0 0 10px;
	font-weight: 600;
	position: absolute;
	top: 102%;
	left: 2px;
	color: #fff;
}

.my-carousel-next, .my-carousel-prev{
	cursor: pointer;
  position: absolute;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
	background-color: rgba(0, 0, 0, 0.1);
	color: #fff;
	padding: 12px;
	text-decoration: none;
	top: 40%;
	touch-action: manipulation;
}

.my-carousel-next {
  right: 0;
  border-radius: 5px 0 0 5px;
}

.my-carousel-prev {
  left: 0;
  border-radius: 0 5px 5px 0;
}

.my-carousel-next:hover,
.my-carousel-prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
	color: white;
}

@media screen and (max-width: 500px){
	.my-carousel-prev, .my-carousel-next{
		font-size: 1.3rem;
	}
}