body {
	position: relative;
}

body.gallery-open::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 9998;
	background-color: rgba(68, 68, 68, 0.8);
	visibility: visible;
	opacity: 1;
}

.swiper {
	width: 100%;
	height: 100%;
}

.swiper-slide {
	text-align: center;
	font-size: 18px;
	background: #fff;

	/* Center slide text vertically */
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
}

.swiper {
	width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

.swiper-slide {
	background-size: contain;
	background-position: center;
}

.swiper_wrap {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
}

.swiper_wrap.visible{
	opacity: 1;
    visibility: visible;
}

.mySwiper {
	max-width: 510px;
}

.mySwiper2 {
	width: 100%;
	height: 80%;
}

.swiper-slide img {
	max-width: 100%;
	max-height: 700px;
}

.gallery_wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 48px;
	max-height: 70vh;
}

@media screen and (max-width: 900px) {
	.gallery_wrap {
		width: 100%;
	}

	.mySwiper2 .swiper-slide img{
		max-width: 100%;
		border-radius: 0 !important;
	}
}

.swiper_gallery {
	max-width: 680px;
	height: auto;
	margin: 0;
}

.gallery_wrap .swiper-wrapper {
	align-items: center;
}

.gallery_wrap .swiper-button-next,
.gallery_wrap .swiper-button-prev {
	flex-shrink: 0;
	position: static;
	width: 60px;
	height: 60px;
	background-color: #fff;
	box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
	border-radius: 50%;
	margin: 0 30px;
}

.swiper-button-prev {
	order: -1;
}

.swiper-button-next::after {
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	margin-left: -6px;
}

.swiper-button-prev::after {
	transform: rotate(135deg);
	-webkit-transform: rotate(135deg);
	margin-right: -6px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
	content: "";
	border: solid #515151;
	border-width: 0px 4px 4px 0;
	display: inline-block;
	padding: 5.5px;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
	border-color: #429BF4;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
	opacity: 1;
}

.swiper-button-next.swiper-button-disabled::after,
.swiper-button-prev.swiper-button-disabled::after {
	border-color: rgba(81, 81, 81, .7);
}

.mySwiper .swiper-slide {
	border-radius: 6px;
	height: 90px;
	background-color: transparent;
	max-width: 90px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
}

.mySwiper2 .swiper-slide {
  overflow: hidden;
	height: 100%;
	width: 100%;
	background-color: transparent;
}

.mySwiper2 .swiper-slide img{
	border-radius: 12px;
}

.mySwiper .swiper-slide-thumb-active {
	border: 2px solid #429BF4;
	max-height: 86px;
	max-width: 86px;
}

.mySwiper .swiper-slide-thumb-active {
	opacity: 1;
}

.mySwiper .swiper-slide:last-child {
	margin-right: 0 !important;
}

.swiper-slide img {
	display: block;
}

.swiper_wrap_local .thumb_slider img {
	max-width: 100%;
	max-height: 100%;
}

@media screen and (max-width: 767px) {
	body.gallery-open {
		overflow: hidden;
	}
	
	body.gallery-open::after {
		background-color: #202020;
	}

	.mySwiper2 .swiper-slide {
		height: auto;
		max-height: 533px;
	}
	body .gallery_wrap_local .mySwiper2 .swiper-slide img {
		display: block;
		width: 100%;
		max-height: 70vh;
		border-radius: 0 !important;
		max-width: unset !important;
	}

  .swiper-button-next,
	.swiper-button-prev {
		display: none;
	}

	.mySwiper {
		width: 100%;
		max-width: unset;
	}

	.mySwiper .swiper-slide {
		width: 72.5px;
		height: 72.5px;
	}

	.mySwiper .swiper-slide-thumb-active {
		width: 68.5px;
		height: 68.5px;
	}
}

@media screen and (max-width: 900px) and (orientation: landscape) {
  .gallery_wrap {
    margin-bottom: 12px;
  } 
  .mySwiper {
    max-width: 350px;
    width: fit-content; 
  }
  .swiper-button-next,
	.swiper-button-prev {
		display: none;
	}
}