
/* alnylam modal css */

.modal {
	display: none;
	position: fixed;

	width: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	background: rgba(0, 0, 0, .75);
}
.modal.open {
	display: flex;
	align-items: center;
}
.modal .inner {
    position: relative;
	width: 92%;
    max-width: 800px;
    padding: max(5%, 48px) 6%;
    margin: 0 auto;

    background-color: #fff;
	box-shadow: 0px 0px 25px 5px rgb(51,51,51);
}
.modal .title {
    font-size: 36px;
    line-height: 1;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #003366;
}
.modal .content {
	text-align: center;
}
.modal .content p {
    font-size: 18px;
    color: #333;
    max-width: 100%;
}
.modal a.confirm {
    margin-top: 40px;
	width: 92%;
    max-width: 240px;
}
.modal button.close {
    border: none;
    background: url('/sites/default/files/img/buttons-close-x-56px.svg') no-repeat;
    background-size: 100% 100%;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 16px;
    right: 16px;
}

.modal-header {
	padding: 0;
	z-index: 9999;
}


.modal-content {
	border: 0 !important;
}
.modal-dialog.modal-lg {
	margin: 160px auto 0;
}

.modal-dialog.modal-lg  .modal-header {
	padding: 0;
}
.modal-body {
	padding: 60px 30px 40px;
	text-align: center;
	background: #FFF;
	border-radius: 8px;
}
.modal-dialog.modal-lg {
	--bs-modal-width: 940px;
}
.modal button.close span {
	display: none;
}
.modal-body h3 {
	font-size: 40px;
	margin: 0 30px 20px 30px;
	padding: 0;
	color: #003366;
	text-transform: uppercase;
	font-weight: bold;
}

.modal-body h4 {
	color: #003366;
	font-size: 30px;
	font-weight: 400;
	margin-bottom: 0;
	margin-top: 10px;
	line-height: 1.1;
}
#popup_cta {
	transition: 0.3s all;
	background: #fff;
	border: 3px solid #bbd9eb !important;
	padding: 15px 40px;
	font-size: 18px;
	font-weight: 600;
	color: #00245b;
	height: 72px;
	display: inline-block;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 35px;
	margin-top: 30px;
}
#popup_cta:hover {
	color: #fff !important;
	background: #00245b;
	border: 3px solid #00245b !important;
}

.modal-dialog.modal-lg .modal-header {
	padding: 0;
	background-color: transparent;
	border: 0;
}
@media only screen and (min-width: 0) and (max-width: 950px) {
  .modal-dialog.modal-lg {
    padding: 0 10px;
  }
  .modal-body p {
    width: 100% !important;
  }
}
.modal.fade.show .modal_bg {
	position: absolute;
	z-index: -1;
}
/*** Video ***/
.popup-iframe {
	display: none;
}
.video-wrapper {
	position: relative;
	max-height: 366px;
}
.popup-iframe .close-btn {
	position: absolute;
	z-index: 999999;
	cursor: pointer;
	top: -6px !important;
	right: -18px !important;
	background: url(/sites/default/files/img/video-close-button.svg) no-repeat 0px !important;
	width: 50px !important;
	height: 50px !important;
}


@media (min-width: 768px) {
    .popup-iframe .close-btn {
        top: 6px;
        right: -22px;
    }
}

.popup-iframe.active {
	display: flex;
	justify-content: center;
	align-items: center;
	overflow-y: auto;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99999999;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.popup-iframe.active  .video-embed-field-responsive-video iframe {
	position: unset;
	height: 366px !important;
	width: 650px !important;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}
@media only screen and (min-width: 0) and (max-width: 1000px) {
  .popup-iframe.active iframe {
    max-width: 100% !important;
  }
  .video-wrapper {
    padding: 0 20px;
  }
  .popup-iframe .close-btn { 
    right: 14px !important;   
  }
  .popup-iframe.active {
	  align-items: start;
  }
  .popup-iframe.active .video-wrapper{
    margin-top: 50px;
  }
}
@media (max-width: 991px) {
  .popup-iframe .close-btn {
    right: 3px !important;
  }
}
