/* ================== New Profile Carousel ================== */
.profile_swiper {
    width: 100%;
    padding-top: 40px !important;
    padding-bottom: 15px !important;
    position: relative !important;
}
.profile_swiper .swiper-slide {
  width: auto !important;
  max-width: 100%;
  height: 100%;
}
.profile_swiper_content .profile_swiper_image_wrap {
  height: 640px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}
.profile_swiper_content .profile_swiper_image_wrap:hover {
  cursor: zoom-in;
}
.profile_swiper_content .profile_swiper_image_wrap:hover .profile_swiper_image {
  -webkit-transform: scale(1.025);
  -moz-transform: scale(1.025);
  -ms-transform: scale(1.025);
  -o-transform: scale(1.025);
  transform: scale(1.025);
}
.profile_swiper_content .profile_swiper_image {
  height: 640px;
  object-fit: cover;
  -webkit-transition: all 750ms cubic-bezier(0.19, 1, 0.22, 1);
  -moz-transition: all 750ms cubic-bezier(0.19, 1, 0.22, 1);
  -ms-transition: all 750ms cubic-bezier(0.19, 1, 0.22, 1);
  -o-transition: all 750ms cubic-bezier(0.19, 1, 0.22, 1);
  transition: all 750ms cubic-bezier(0.19, 1, 0.22, 1);
}
.profile_swiper_content .profile_swiper_caption {
  height: auto;
  width: auto;
  padding: 15px 15px 0 0px;
  font-size: 13px;
  color: #000000;
}
.profile_swiper_navigation {
  position: absolute;
  top: 0;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}
.profile_swiper_pagination {
  width: auto !important;
  font-size: 13px;
  color: #aaaaaa !important;
}
.profile_swiper_next, .profile_swiper_prev {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.profile_swiper_next::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 50%;
  width: 50%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill-rule="evenodd" clip-rule="evenodd"><path d="M21.883 12l-7.527 6.235.644.765 9-7.521-9-7.479-.645.764 7.529 6.236h-21.884v1h21.883z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.profile_swiper_prev::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 50%;
  width: 50%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill-rule="evenodd" clip-rule="evenodd"><path d="M2.117 12l7.527 6.235-.644.765-9-7.521 9-7.479.645.764-7.529 6.236h21.884v1h-21.883z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ================== New Profile Carousel Modal ================== */
.gallery-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 1);
	transition: all 0.3s ease-in-out;
	opacity: 0;
	z-index: -1;
}
.gallery-modal.active {
	opacity: 1;
	z-index: 99999;
}
.gallery-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 50px;
	height: 50px;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
	z-index: 99999;
}
.gallery-modal-close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	background-image: url('data:image/svg+xml,<svg clip-rule="evenodd" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m12 10.93 5.719-5.72c.146-.146.339-.219.531-.219.404 0 .75.324.75.749 0 .193-.073.385-.219.532l-5.72 5.719 5.719 5.719c.147.147.22.339.22.531 0 .427-.349.75-.75.75-.192 0-.385-.073-.531-.219l-5.719-5.719-5.719 5.719c-.146.146-.339.219-.531.219-.401 0-.75-.323-.75-.75 0-.192.073-.384.22-.531l5.719-5.719-5.72-5.719c-.146-.147-.219-.339-.219-.532 0-.425.346-.749.75-.749.192 0 .385.073.531.219z"/></svg>');
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}
.gallery-modal-content {
	width: 100%;
	height: 100%;	
}
.gallery-modal .swiper {
	width: 100%;
	height: 100%;
}
.gallery-modal .swiper-pagination {
	text-align: center;
	font-size: 18px;
	color: #f4f0ed;
	bottom: 20px;
}
.gallery-modal .swiper-slide .modal-gallery-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: calc(100% - 200px);
  margin: auto;
  padding: 50px 0;
}
.gallery-modal .swiper-slide .modal-gallery-dummy {
  position: absolute;
  top: 50%;
  left: 50%;
  height: calc(100% - 100px);
  width: 100%;
  transform: translate(-50%, -50%);
}
.gallery-modal .swiper-slide .modal-gallery-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.gallery-modal .swiper-slide .modal-gallery-image-wrap {
  position: relative;
  height: 100%;
  max-height: 85%;
}
.gallery-modal .swiper-slide .modal-gallery-image {
  position: relative;
  max-height: 100%;
}
.gallery-modal .swiper-slide .modal-gallery-caption {
  position: relative;
  max-width: 100%;
  padding: 15px;
}
.gallery-modal .swiper-button-prev, .gallery-modal .swiper-button-next {
	width: 50px;
	height: 100px;
	margin-top: -50px;
  color: #000000;
}
.gallery-modal .swiper-button-prev {
	left: 50px;
}
.gallery-modal .swiper-button-next {
	right: 50px;
}
/*
.gallery-modal .swiper-button-prev::after, .gallery-modal .swiper-button-next::after {
	content: '';
	width: 19px;
	height: 28px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}
.gallery-modal .swiper-button-prev::after {
	background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17.9 28.3"><path d="M0,13.8L11.2,0l6.6,3.6-8.4,10.5,8.4,10.5-6.6,3.6L0,14.6v-.8Z" style="fill:%23f4f0ed; stroke-width:0px;"/></svg>');
} 
.gallery-modal .swiper-button-next::after {
	background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17.9 28.3"><path d="M6.6,0l11.2,13.8v.8l-11.2,13.7-6.6-3.6,8.4-10.5L0,3.6,6.6,0Z" style="fill:%23f4f0ed; stroke-width:0px;"/></svg>');
}
*/

.acf-images-flex .caption-img {
    max-width: 100% !important;
    text-align: left !important;
}
.caption-img, .carousel-item .caption {
    color: #000000 !important;
}

@media (min-width: 1030px) {
    .new-layout h1:not(.paragraph1 header h1), 
	.new-layout h2:not(.paragraph1 header h2), 
	.new-layout h3:not(.paragraph1 header h3), 
	.new-layout h4:not(.paragraph1 header h4), 
	.new-layout h5:not(.paragraph1 header h5), 
	.new-layout h6:not(.paragraph1 header h6), 
	.new-layout .container.mid-max h1:not(.paragraph1 header h1),
	.new-layout .container.mid-max h2:not(.paragraph1 header h2),
	.new-layout .container.mid-max h3:not(.paragraph1 header h3),
	.new-layout .container.mid-max h4:not(.paragraph1 header h4),
	.new-layout .container.mid-max h5:not(.paragraph1 header h5),
	.new-layout .container.mid-max h6:not(.paragraph1 header h6),
	.new-layout .caption-img,
	.new-layout .container.mid-max .caption-img,
	.new-layout img:not(.profile_swiper_image, .acf-images-flex img), 
	.new-layout .container.mid-max img:not(.profile_swiper_image, .acf-images-flex img) {
        padding-left: 8px;
        width: 100%;
        max-width: 785px;
        margin-left: auto;
		margin-right: auto;
    }
	.new-layout .caption-img,
	.new-layout .container.mid-max .caption-img {
        text-align: left;
    }
	.new-layout img:not(.profile_swiper_image, .acf-images-flex img), 
	.new-layout .container.mid-max img:not(.profile_swiper_image, .acf-images-flex img) {
		display: block;
    }
}
 
@media screen and (max-width: 1024px) {
	.profile_swiper_content .profile_swiper_image_wrap {
		height: 320px;
		width: auto;
	}
	.profile_swiper_content .profile_swiper_image {
		height: 320px;
	}
	.gallery-modal .swiper-slide .modal-gallery-content {
		width: calc(100% - 20px);
	}
	.gallery-modal .swiper-slide .modal-gallery-inner {
		justify-content: center;
	}
}
@media screen and (max-width: 480px) {
	.profile_swiper_content .profile_swiper_image_wrap {
		height: auto;
		width: auto;
	}
	.profile_swiper_content .profile_swiper_image {
		height: auto;
	}
}