.modal-popup-gallery .modal-body {
    background-color: #004B97;
}
.modal-popup-gallery .modal-slide-content {
    background-color: #fff;
    padding: 20px;
    border: 3px solid #fbc601;
}
.modal-popup-gallery .modal-slide-content h4, .modal-popup-gallery .modal-slide-content .h4 {
    margin: 0;
    /*margin-bottom: -30px;*/
}

.pop-up-slideshow-container {
    margin-bottom: 50px;
}
.pop-up-image-container {
    z-index: -1;
    overflow: hidden;
}
.pop-up-slideshow-container .pop-up-content-block {
    background-color: #004b97;
    color: #fff;
    padding: 30px;
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 50px;
    position: relative;
    z-index: 9;
    font-family: 'Noto Sans', sans-serif;
    margin-top: -250px;
}
.pop-up-slideshow-container .pop-up-content-block h4, .pop-up-slideshow-container .pop-up-content-block .h4 {
    font-size: 26px;
    line-height: 1.5;
    border-bottom: 1px solid #fff;
    font-family: 'Noto Sans', sans-serif;
    font-weight: bold;
    margin: 0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.popup-gallery-btn {
    background: #fbc601;
    color: #004B97;
    border: 0px solid transparent;
    border-radius: 0;
    text-transform: uppercase;
    position: absolute;
    bottom: -17px;
    right: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
}
.popup-gallery-btn:hover, .popup-gallery-btn:active, .popup-gallery-btn:focus, .popup-gallery-btn:hover:active {
    background-color: #e6e6e6;
    border-color: transparent;
    box-shadow: none;
}
@media only screen and (max-width : 991px) {
    .pop-up-slideshow-container .pop-up-content-block {
        margin-top: 0px;
    }
    .pop-up-image-container img {
        width: 100%;
    }
}

/* ----------- iPhone 5 and 5S ----------- */
/* Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {
      
    .modal-header h2, .modal-header .h2 {
        margin-bottom: 0px;
	    margin-top: 0;
	    font-size: 14px;
	    border-bottom: 0px;
    	padding-bottom: 0;
	}
    .modal-popup-gallery .modal-slide-content {
        padding: 5px;
    }
	.modal-body .slide-show-image {
		height: 183px;
	}
	.modal-body .slide-show-image img {
		margin-top: -20%;
	}
	.modal-popup-gallery .modal-slide-content h4, .modal-popup-gallery .modal-slide-content .h4 {
		margin: 0;
		font-size: 14px;
	}
	.modal-slide-content .main-content .wysiwyg {
        margin-bottom: 0;
    }
	.modal-popup-gallery .modal-slide-content .imported-block .wysiwyg p {
		line-height: 1.5;
		font-size: 12px;
	}

}

/* ----------- iPhone 6 ----------- */
/* Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) { 

  	.modal-header h2, .modal-header .h2 {
	    margin-bottom: 0px;
	    margin-top: 0;
	    font-size: 14px;
	    border-bottom: 0px;
    	padding-bottom: 0;
	}
    .modal-popup-gallery .modal-slide-content {
        padding: 5px;
    }
	.modal-body .slide-show-image {
		height: 183px;
	}
	.modal-body .slide-show-image img {
		margin-top: -20%;
	}
	.modal-popup-gallery .modal-slide-content h4, .modal-popup-gallery .modal-slide-content .h4 {
		margin: 0;
		font-size: 14px;
	}
    .modal-slide-content .main-content .wysiwyg {
        margin-bottom: 0;
    }
	.modal-popup-gallery .modal-slide-content .imported-block .wysiwyg p {
		line-height: 1.5;
		font-size: 12px;
	}
    

}
