/* structure */
.elav-gallery {
	padding: 0;
	margin: 24px 0;
	overflow: hidden;
}

.elav-gallery .swiper-button{
	position: absolute;
	top: calc(600px/2 - 50px);
	width: 50px;
	height: 100px;
	margin: 0;
	z-index: 10;
	outline: none;
	cursor: pointer;
	background-color: transparent;

}
.elav-gallery .swiper-lazy-preloader{
	width: 30px;
	height: 30px;
	top: calc(600px/2 - 16px) !important;
	margin: 0 0 0 -16px;
	z-index: 10;
	border: 2px solid var(--swiper-preloader-color, var(--swiper-theme-color));
}
.elav-gallery .swiper-button svg{  
	   width: 38px;
    height: 30px; }
.elav-gallery .swiper-button:hover { opacity: 0; }
.elav-gallery .swiper-button-next { right: 0; }
.elav-gallery .swiper-button-prev { left: 0; }
.elav-gallery .swiper-button:after{ display: none; }

/* hover on gallery */
.elav-gallery .swiper:hover .swiper-button,
.elav-gallery .swiper:active .swiper-button{ opacity: 0; }
.elav-gallery .swiper:hover .swiper-button-prev{ left: 0; }
.elav-gallery .swiper:hover .swiper-button-next{ right: 0; }

/* hover on arrows */
.elav-gallery .swiper .swiper-button:hover,
.elav-gallery .swiper .swiper-button:active{ opacity: 1; }
.elav-gallery .swiper .swiper-button-prev:hover,
.elav-gallery .swiper .swiper-button-prev:active{ left: 10px; }
.elav-gallery .swiper .swiper-button-next:hover,
.elav-gallery .swiper .swiper-button-next:active{ right: 10px; }

@media(max-width: 991px){
	.elav-gallery .swiper:hover .swiper-button{ opacity: 1; }
}
.fancybox-button.fancybox-button--arrow_left,
.fancybox-button.fancybox-button--arrow_right {
	background-color: transparent !important;
}

.fancybox-button.fancybox-button--arrow_left {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%7a6e6e'%2F%3E%3C%2Fsvg%3E") !important;
}

.fancybox-button.fancybox-button--arrow_right {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%7a6e6e'%2F%3E%3C%2Fsvg%3E") !important;
}
/* slides */
.elav-gallery .swiper-slide{ animation: height .2s; }
.elav-gallery .swiper-slide .ad-unit {
	background: rgba(0, 0, 0, .75);
	display: flex;
	height: 100%;
	line-height: 1;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.elav-gallery .swiper-slide .ad-unit span{
	font-size: 12px;
	margin-top: 10px;
}
.elav-gallery figure{
	line-height: 0;
	display: flex;
	flex-direction: column;
}
.elav-gallery figure .img-wrapper{
	align-content: center;
	text-align: center;
	height: 600px;
	background: transparent;
	text-decoration: none !important;
}
.elav-gallery .img-wrapper img{
	height: auto;
	width: auto;
	max-height: calc(100% - 20px);
	max-width: 100%;
}

/* captions */
.elav-gallery figcaption{
	padding: 10px;
}

.elav-gallery figcaption .count {
	float: right;
	margin: 0;
	font-size: 14px;
	padding: 0 0 0 10px;
	color: #505050;
	width: 70px;
	display: inline-block;
	text-align: right;
	font-weight: bold;
}
.elav-gallery figcaption .title {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	margin: 10px 0;
}
.elav-gallery figcaption .text{
	margin-top: 10px;
}

/* modal */
.btn-open-modal {
	background: #ffffff;
	padding: 8px;
	line-height: 0;
	transition: padding .3s;
	cursor: pointer;
	width: auto;
	top: 20px;
	position: absolute;
	right: 20px;
	z-index: 99;
	border-radius: 5px;
	box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
	pointer-events: none;
}


@media(max-width: 1399px){
	.elav-gallery figure .img-wrapper{ height: 520px; }
	.elav-gallery .swiper-button{ top: calc(520px/2 - 50px); }
	.elav-gallery .swiper-lazy-preloader{ top: calc(520px/2 - 16px) !important; }
}

@media(max-width: 1199px){
	.elav-gallery figure .img-wrapper{ height: 436px; }
	.elav-gallery .swiper-button{ top: calc(436px/2 - 50px); }
	.elav-gallery .swiper-lazy-preloader{ top: calc(436px/2 - 16px) !important; }
}

@media(max-width: 991px){
	.elav-gallery figure .img-wrapper{ height: 400px; }
	.elav-gallery .swiper-button{ 
		height: 60px;
		top: calc(400px/2 - 30px); 
	}
	.elav-gallery .swiper-lazy-preloader{ top: calc(400px/2 - 16px) !important; }
}

@media(max-width: 767px){
	.elav-gallery .swiper-captions{
		font-size: 13px;
	}
	.elav-gallery .swiper-captions .count{
		font-size: 10px;
		width: 60px;
	}
}

@media(max-height: 768px){
	#elav-gallery-modal .elav-gallery .swiper-slide figure img{
		max-height: 550px;
	}
}

.wrap-caption {
	bottom: 10px;
	left: 0;
	right: 0;
	height: auto;
	position: absolute;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row-reverse;
	background-color: rgba(255,255,255,.8) !important;
	border-bottom: 2px solid;
	z-index: 100000;
	padding-top: 8px;
}
.fancybox-slide.publicidade .fancybox-image{
	position: absolute;
}
.fancybox-slide.publicidade button{
	display: none;
}
.fancybox-slide--iframe .fancybox-content{ text-align: center; background: #000; }
.fancybox-can-pan	.wrap-caption {
	opacity: 0;
	pointer-events: none;
}
.fancybox-infobar {
	position: relative;
	width: auto;
	margin: 0 0 0 10px;
	padding-left: 10px;
	font-weight: bold;
	height: 25px;
	line-height: 25px;
}
.fancybox-caption {
	background: none;
	position: relative;
	width: 93%;
	margin-bottom: 0;
	margin-right: 0;
	margin-top: auto;
	padding: 0 0 10px 0;
}
.fancybox-button.fancybox-button--arrow_left:disabled, .fancybox-button.fancybox-button--arrow_right:disabled {
	opacity: .5;
}
.fancybox-button.fancybox-button--arrow_right {
	width: 100px;
	height: 136px;
	background: #000;
	/* padding: 25px 15px 25px 40px; */
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
	background-size: 30%;
	background-repeat: no-repeat;
	background-position: top 50% left 53%;
}
.fancybox-button.fancybox-button--arrow_left {
	width: 100px;
	height: 136px;
	background: #000;
	/* padding: 25px 15px 25px 40px; */
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
	background-size: 30%;
	background-repeat: no-repeat;
	background-position: top 50% left 53%;
	transform: rotate(180deg);
}
.fancybox-button {
	color: black;
	background-color: rgb(255, 255, 255);
}
.fancybox-bg {
	background: rgba(255, 255, 255, .95);
}
.fancybox-button--close svg,
button.fancybox-button.fancybox-button--close svg {
	height: 30px !important;
	width: 30px !important;
	color: #7a6e6e;
}

.fancybox-caption__body {
	max-height: 7vh;
	color: #7a6e6e;
	text-align: left;
}
.fancybox-inner {
	max-width: 1188px;
	margin: 0 auto;
}
.fancybox-button.fancybox-button--arrow_right div svg, .fancybox-button.fancybox-button--arrow_left  div svg {
	display: none;
}

.fancybox-slide--image {
	padding: 15px 0 80px 0 !important;
}

button.fancybox-button.fancybox-button--close {
	margin-top: 12px;
	background-color: transparent;
}
.fancybox-button--close:hover svg path,
button.fancybox-button.fancybox-button--close:hover svg path {
	fill: #7a6e6e !important;
}
.fancybox-mobile-text {
	display: none;
}

@media(max-width: 1019px){
	.fancybox-toolbar {
		visibility: visible !important;
		opacity: 1 !important;
	}
	.fancybox-button.fancybox-button--arrow_right, .fancybox-button.fancybox-button--arrow_left, .wrap-caption {
		display: none !important;
	}
	.fancybox-mobile-text {
		display: block;
		font-size: 14px;
		line-height: normal;
	}

	.fancybox-can-swipe .fancybox-mobile-text,
	.fancybox-is-open .fancybox-mobile-text {
		bottom: 20px;
		position: absolute;
		width: 100%;
		text-align: center;
		z-index: 999999;
		display: block;
		opacity: 1;
		pointer-events: none;
		transition: .4s;
	}

	.fancybox-can-pan .fancybox-mobile-text{
		opacity: 0;
		transition: .4s;
	}
	
	.text-mobile {
		display: inline-block;
		vertical-align: middle;
		margin-right: 15px;
	}

}
.swiper-wrapper li {
    list-style: none !important;
}

.swiper-wrapper li::marker {
    content: "" !important;
}
/* ===== Legenda: texto estilo Elementor + count embaixo ===== */

.elav-gallery figcaption {
	padding: 10px;
	text-align: center;
	padding-right:9%;
}

.elav-gallery figcaption .first-line {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.elav-gallery figcaption .text {
	order: 1;
	text-align: center;
	color: #030303;
	display: block;
	margin: 0;
	box-sizing: border-box;
}

.elav-gallery figcaption .count {
    order: 2;
    float: none;
    display: block;
    width: auto;
    text-align: center;
	font-weight: bold;
    font-size: 18px;
    color: #000;
    font-weight: 400;
    margin: 20px 0 0;
    padding: 0;

}
.elav-gallery .swiper-button svg path {
    fill: #7a6e6e !important;
}
.elav-gallery figcaption .credito {
	display: none;
}
/* ===== 1. Setas da galeria: menores, sempre visíveis, cor mais clara ===== */

.elav-gallery .swiper-button {
	opacity: 1 !important;
}

.elav-gallery .swiper-button svg{
	width: 30px;
	height: 30px;
}



.elav-gallery .swiper-button:hover {
	opacity: 1 !important;
}

.elav-gallery .swiper:hover .swiper-button,
.elav-gallery .swiper:active .swiper-button {
	opacity: 1 !important;
}

.elav-gallery .swiper:hover .swiper-button-prev,
.elav-gallery .swiper .swiper-button-prev:hover,
.elav-gallery .swiper .swiper-button-prev:active {
	left: 0 !important;
}

.elav-gallery .swiper:hover .swiper-button-next,
.elav-gallery .swiper .swiper-button-next:hover,
.elav-gallery .swiper .swiper-button-next:active {
	right: 0 !important;
}

/* ===== 2. Centralizar a imagem dentro do wrapper ===== */

/* REMOVER estas (causam o bug do loop): */
/*
.elav-gallery .swiper-wrapper {
	display: flex;
	justify-content: center;
}
.elav-gallery .swiper-slide {
	width: 100% !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
}
*/

/* MANTER apenas isso, que não interfere no posicionamento do Swiper: */
.elav-gallery figure {
	width: 100%;
}

.elav-gallery figure .img-wrapper {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.elav-gallery .img-wrapper img {
	display: block;
	margin: 0 auto;
	padding-right: 9%;
}

/* ===== 3 e 4. Legenda e numeração no mesmo estilo da imagem ampliada ===== */

.elav-gallery figcaption .text {
	order: 1;
	color: #030303;
    font-size: 14px;
    font-weight: 400;
	font-family: inherit;
}

.elav-gallery figcaption .count {
	order: 2;
	color: #030303;
    font-size: 14px;
    font-weight: 400;
	font-family: inherit;
	margin-top: 28px;
}

.fancybox-caption__body {
	color: #030303;
    font-size: 14px;
    font-weight: 400;
}

/* ===== 5. Remover o risco/borda inferior da imagem ampliada ===== */

.wrap-caption {
	border-bottom: none !important;
}
/* ===== Legenda ampliada (fancybox): texto em cima, numeração embaixo ===== */

.fancybox-caption {
	width: 100%;
	text-align: center;
}

.fancybox-caption__body {
	text-align: center;
	    font-size: 14px;
}

.fancybox-infobar {
	width: 100%;
	text-align: center;
	    font-weight: 400;
}
/* Aumenta o espaço reservado embaixo da imagem para caber as duas linhas */
.fancybox-slide--image {
	padding: 15px 0 110px 0 !important;
}



.elav-gallery .swiper-button {
	display: flex;
	align-items: center;
	justify-content: center;
}


.fancybox-infobar,
.fancybox-infobar span {
	color: #030303 !important;
}
.fancybox-infobar span[data-fancybox-index],
.fancybox-infobar span[data-fancybox-count] {
	color: #030303 !important;
}
.fancybox-infobar span {
	background: none !important;
	background-color: transparent !important;
}

.fancybox-infobar span::before,
.fancybox-infobar span::after {
	display: none !important;
	content: none !important;
}

.fancybox-caption {
	order: 1;
}

.fancybox-infobar {
	order: 2;
}
.fancybox-button.fancybox-button--arrow_left {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23999999'%2F%3E%3C%2Fsvg%3E") !important;
}

.fancybox-button.fancybox-button--arrow_right {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23999999'%2F%3E%3C%2Fsvg%3E") !important;
}
.fancybox-button.fancybox-button--arrow_left:hover,
.fancybox-button.fancybox-button--arrow_left:active,
.fancybox-button.fancybox-button--arrow_left:focus {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23999999'%2F%3E%3C%2Fsvg%3E") !important;
}

.fancybox-button.fancybox-button--arrow_right:hover,
.fancybox-button.fancybox-button--arrow_right:active,
.fancybox-button.fancybox-button--arrow_right:focus {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23999999'%2F%3E%3C%2Fsvg%3E");
}
.elav-gallery .swiper-button svg path {
	fill: #999999 !important;
}

.elav-gallery figcaption .first-line {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}


.fancybox-caption__body{
		line-height: 1.4 !important;

}
.elav-gallery figcaption .text {
	line-height: 1.4 !important;
}