/* --------------- Images Gallery Start ---------------- */
.bodimg-wrap{background:#ffffff;border-radius: 5px;display: block;vertical-align: middle; width: calc(100% - 6px);position: relative; margin: 0 auto;}
.bodimg-wrap img{object-position: top;object-fit: cover; position: relative;}
p.bodname, p.boddesignation{margin:0;font-size:1.2rem;color:#4D4D4D;font-weight:600;line-height:18px;padding: 0 16px;}
.small-bod-content.story-desc{padding: 19px 0 0px 0;}
p.bodname{font-weight:600;font-size: 1.4rem; line-height: 18px; margin-bottom:6px;color: var(--primary-5);
}
p.lrsimg input, p.hrsimg input{background:transparent;border:0;margin:0;text-align: left; width: calc(100% - 15px); 
  padding: 10px 0 11px 0;z-index: 10;position: absolute;top: 0;color:#055a60;font-size:1.4rem;font-weight:700;line-height: 1;}

p.lrsimg, p.hrsimg{margin:0;position: relative;min-height: 38px;padding: 0 16px;color:#979797;font-size:1.4rem;font-weight:600;line-height: 1.7em; transition:all 0.6s ease;}
.boditem-wrapper.story{margin-bottom:30px;}
.image-gallery-container .boditem-wrapper.story {background-color: #fff;  padding-top: 3px; border-radius:4px;box-shadow: 0px 3px 20px rgba(0, 0, 0, 0.1);}
span.download-link {right: 0;float: right;position: relative;top: 0;height: 25px;}
/* span.download-link:before {background: #eb5c37;content: '';bottom: 4px;position: absolute;width: 13px;height: 2px;border-radius: 20px;right: 3px;} */
span.download-link:after {content: "\e90e";font-family: 'icomoon' !important;position: absolute;right: 2px;color: #eb5c37;font-size: 1.9rem;font-weight: normal;bottom: 0px;}
.download-image span.download-link:before {bottom: 0;}
p.lrsimg:hover, p.hrsimg:hover { background: var(--secondary-12); border: 1px solid  var(--secondary-12);}
p.lrsimg:hover input, p.hrsimg:hover input{color: var(--primary-2);}

.download-image input:hover + span:after  {
  -webkit-animation: arrowUp 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
  -moz-animation: arrowUp 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
  -ms-animation: arrowUp 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
  -o-animation: arrowUp 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
  animation: arrowUp 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}
p.downloading .download-link:before, p.downloading .download-link:after {
  display: none;
}
.download-image {
    margin-top: 11px;
}
.download-image p.downloading .download-link {
  height: 20px;
  width: 20px;
  background-size: 100%;
  background-repeat: no-repeat;
  margin-top: 10px;
}
.download-image p .download-link img {visibility:hidden;}
.download-image p.downloading .download-link img {visibility:visible;}
.sitesearchpagination ul li	a[href*="javascript"] {cursor : auto;}

span.download-link:hover:before {
 color: #fff; 
}

@media only screen and (max-width:991px){
    body#logo-downloads .bodimg-wrap img {
    object-position: center;
  }
  
}
/* --------------- Images Gallery Ends ---------------- */

/* --------------- Images Gallery carousel Start ---------------- */
.carousel-img-wrap {
  background: #ffffff;
  border-radius: 5px;
  display: block;
  vertical-align: middle;
  width: calc(100% - 6px);
  position: relative;
  margin: 0 auto;
}

.carousel-img-wrap img {
  object-position: top;
  object-fit: cover;
  position: relative;
}

p.carousel-text {
  margin-bottom: 8px !important;
  font-size: 1.4rem;
  color: #4D4D4D;
  font-weight: 600;
  line-height: 18px;
  padding: 0 16px;
}

.new-small-carousel-content {
  padding: 19px 0 25px 0;
}

p.carousel-name {
  font-weight: 600;
/*   font-size: 1.4rem; */
  font-size: 2rem;
  line-height: 18px;
  margin-bottom: 6px !important;
  color:var(--primary-5);
  padding: 0 16px;
}

.carousel-item-wrapper {
  margin-bottom: 30px;
  padding-bottom: 23px;
}

.image-carousel-container .carousel-item-wrapper {
  background-color: #fff;
  padding-top: 3px;
  border-radius: 4px;
  box-shadow: 0px 3px 20px rgba(0, 0, 0, 0.1);
}
p.crsimg {margin:0;position: relative;min-height: 38px;padding: 10px 16px; font-size:1.4rem; font-weight:600; line-height: 1.7em; transition:all 0.6s ease; background:transparent;border:0;text-align: left; color:#055a60;margin-bottom: 0 !important;}

p.crsimg:hover { background: #F6F8FB; border: 1px solid #F5F5F5; color: #eb5c37;}
.popup_click{padding:0 16px;}

/* Mobile Media Queries */
@media only screen and (max-width: 991px) {
  body#logo-downloads .carousel-img-wrap img {
    object-position: center;
  }
}
 


@media all and (max-width: 767px) {
  .mod-image-gallery-carousel .container-fluid {
    padding: 0;
  }
  .mod-image-gallery-carousel h2 {
    text-align: center;
    padding: 0 20px 25px;
  }
  
}
.mod-image-gallery-carousel{} .mod-image-gallery-carousel h2 {
  text-align: center;
  padding-bottom: 47px;
}
.mod-image-gallery-carousel .bottom-link-wrapper {
  text-align: center;
  padding: 3px 0;
  margin-top: 40px;
}
.featured-cards-containers {
  /*margin: 0 -20px;*/
  margin: 0 auto;
   padding: 0 70px;
}
.featured-cards-containers:after {
  content: "";
  display: block;
  clear: both;
}
@media all and (max-width: 1023px) {
  .featured-cards-containers {
    margin: 0;
  }
  .featured-cards-containers{
  padding: 0;
  }
}

@media all and (max-width: 767px) {
  .featured-cards-containers {
    margin: 0;
    padding-left: 0;
  }
   .carousel-item-wrapper {
    width: 240px !important;
    padding: 0;
    float: left;
    margin-bottom: 40px;
    margin-right: 7.5px;
    margin-left: 7.5px;
  }
  .bod-item-bottom-section .bod-item-specifications {
    margin-left: 5px;}
    .bod-item-bottom-section p.carousel-name,
    .bod-item-bottom-section p.carousel-text  {
        padding: 0 0px;
    }
    #popupDialog{
        padding: 48px 15px;
        width: 90%;
    }
    .popup_click_close{
        right: 2px;
        top: 2px;
        width: 23px;
        height: 23px;
        line-height: 23px;
    
    }

}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

#popupDialog {
    display: none;
    position: fixed;  /* Ensure it's positioned relative to the viewport */
    top: 0;
    left: 50%;
    transform: translate(-50%, 10%); /* Center it by default */
    background: #fff;
    padding: 44px;  
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
        height: 70%;
        overflow: scroll;
  
}
 .popup_click_close{
    position: absolute;
    left: auto;
    right: 10px;
    top: 10px;
    background: #007780;
    color: #fff;
    width: 33px;
    height: 33px;
    line-height: 33px;
    text-align: center;
    }
    .popup_click_close:hover{
    color: #fff;
    background: #055a60;
    }
 .mod-image-gallery-carousel .popup_click_close span.icon-close-1:before {
    content: "\e905";
    font-size: 1.6rem;
    font-weight: bold;
	}

.image-carousel-container .slick-slide{
    padding: 0 10px;
}
.bod-item-bottom-section {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
}
.carousel-img-wrap.bod-item-top-section{
    position: relative;
}
.bod-item-bottom-section .bod-item-specifications {
    width: 100%;
    margin-left: 10px;
    position: relative;
   }

   @media (max-width: 768px) { 
      #popupDialog{
        padding: 48px 15px;
        width: 90%;
    }
}
.imagebox-popup{font-weight:600;font-size: 1.4rem; line-height: 18px; margin-bottom:6px;color: #055a60;padding: 0 16px;}
.imagebox-popup a{color: #055a60;}
.mfp-figure.image-gallery-preview:after{
 box-shadow: none;
 background: none;   
}
.mfp-close-btn-in .image-gallery-preview .mfp-close{
    opacity: 1;
    background: none;
    top: 0;
    right:0;
    cursor: pointer;
}

.imagebox-popup a.image-popup-fit-width.image-popup-fit-width span.icon-eye {
    height: 20px;
    width: 20px;
    position: absolute;
    background-image: url(/~/media/Images/M/MandG-Plc/icons/eye);
    background-repeat: no-repeat;
    background-position: center right;
    right: 4px;
    float: right;
    position: relative;
    top: 0;background-size: contain;
}
.image-gallery-preview img{
    border-width: thin;
    border-color: #fff;
    border-style: solid;
    padding: 0;
}
@media all and (min-width: 1200px) and (max-width:1399.98px)  {
    .mfp-close-btn-in .image-gallery-preview .mfp-close{
    right: 200px;
    top: -25px;
    }
}
/* Position the close button correctly */
.mfp-close-btn-in .image-gallery-preview .mfp-close {
    position: absolute;
    top: 0px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Make sure it appears above the other elements */
}

/* Responsive behavior for smaller devices */
@media (max-width: 767px) {
    .mfp-close-btn-in .image-gallery-preview .mfp-close {
        top: 10px;  /* Slight margin from top */
        right: 10px; /* Slight margin from right */
    }
}
.mfp-content .image-gallery-preview .mfp-close:before{
font-size: 2rem;}
.mfp-figure.image-gallery-preview {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}
.image-gallery-preview img {
    border-width: thin;
    border-color: #fff;
    border-style: solid;
    padding: 0;
    max-width: 400px;
    height: auto;
}

.gallery-disclaimer-content .pr-disclaimer-button button.btnSubmit, .gallery-disclaimer-content .pr-disclaimer-button button.btnDecline {
    margin-bottom: 20px;
}

/* after preview-hidden added*/

.download-image {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}