/*
Theme Name:     Sarthe Solaire
Theme URI:      https://entoiledefond.com
Template:       Divi
Version:        1.0
*/

*image gallery item aspect ratio landscape 16:6*/
.pa-image-gallery-16-6 .image,
.pa-image-gallery-16-6 .et_pb_image_wrap {
  padding-top: 42.25%;
  display: block!important;
}

.pa-image-gallery-16-6 .image img,
.pa-image-gallery-16-6 .et_pb_image_wrap img {
  position: absolute!important;
  height: 100%;
  width: 100%!important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}

/*image gallery item aspect ratio landscape 16:9*/
.pa-image-gallery-16-9 .image,
.pa-image-gallery-16-9 .et_pb_image_wrap {
  padding-top: 56.25%;
  display: block!important;
}

.pa-image-gallery-16-9 .image img,
.pa-image-gallery-16-9 .et_pb_image_wrap img {
  position: absolute!important;
  height: 100%;
  width: 100%!important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}

/*image gallery item aspect ratio landscape 4:3*/
.pa-image-gallery-4-3 .image,
.pa-image-gallery-4-3 .et_pb_image_wrap {
  padding-top: 75%;
  display: block!important;
}

.pa-image-gallery-4-3 .image img,
.pa-image-gallery-4-3 .et_pb_image_wrap img {
  position: absolute!important;
  height: 100%;
  width: 100%!important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}

/*image gallery item aspect ratio landscape 4:3*/
.pa-image-gallery-1-1 .image,
.pa-image-gallery-1-1 .et_pb_image_wrap {
  padding-top: 100%;
  display: block!important;
}

.pa-image-gallery-1-1 .image img,
.pa-image-gallery-1-1 .et_pb_image_wrap img {
  position: absolute!important;
  height: 100%;
  width: 100%!important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}

/*image gallery item aspect ratio landscape 4:3*/
.pa-image-gallery-1-2 .image,
.pa-image-gallery-1-2 .et_pb_image_wrap {
  padding-top: 200%;
  display: block!important;
}

.pa-image-gallery-1-2 .image img,
.pa-image-gallery-1-2 .et_pb_image_wrap img {
  position: absolute!important;
  height: 100%;
  width: 100%!important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}


/*image gallery item aspect ratio portrait 3:4*/
.pa-image-gallery-3-4 .image,
.pa-image-gallery-3-4 .et_pb_image_wrap {
  padding-top: 125%;
  display:block;
}
.pa-image-gallery-3-4 .image img,
.pa-image-gallery-3-4 .et_pb_image_wrap img {
  position: absolute;
  height: 100%;
  width: 100%!important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}

/*image gallery item aspect ratio portrait 3:5*/
.pa-image-gallery-3-5 .image,
.pa-image-gallery-3-5 .et_pb_image_wrap {
  padding-top: 166%;
  display:block;
}
.pa-image-gallery-3-5 .image img,
.pa-image-gallery-3-5 .et_pb_image_wrap img {
  position: absolute;
  height: 100%;
  width: 100%!important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}


/* Custom Video Popup */
/* Popup Close Icon Tweak */
.mfp-wrap.mfp-close-btn-in.mfp-auto-cursor.mfp-fade.mfp-ready {
	top: 0px !important;
	position: fixed !important;
}
.mfp-iframe-holder .mfp-content {
    max-width: 70%;
}
.mfp-iframe-scaler button.mfp-close {
    top: -50px ;
}

.mfp-iframe-holder .mfp-close,
.mfp-image-holder .mfp-close,
.mfp-wrap .mfp-close:active {
    top: -50px !important;
}

.video_popup_lightbox .mfp-iframe-holder .mfp-close {
    top: -50px;
}

.video_popup {
    position: relative;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.video_popup.no_icon:after {
    display: none!important;
}



@media all and (max-width: 980px) {
    
	
	.invert-order-tablet .et_pb_row {
		display:flex;
		flex-direction:column;
	}
}
