.gw-gallery {
	--gw-gap: 16px;
	--gw-main-h: 516px;
	--gw-thumb: 84px;
	--gw-radius-main: 20px;
	--gw-radius-thumb: 12px;

	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--gw-gap);
	box-sizing: border-box;
}
.gw-gallery * { box-sizing: border-box; }
.gw-gallery img {
	max-width: none;
	margin: 0 !important;
	border: 0 !important;
}

/* Imagem principal */
.gw-main {
	position: relative;
	width: 100%;
	height: var(--gw-main-h);
	border-radius: var(--gw-radius-main);
	overflow: hidden;
	background: #f2f2f2;
}
.gw-main-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
	cursor: zoom-in;
	transition: opacity .25s ease;
}
.gw-main-img.gw-fading { opacity: 0; }

/* Reset de estilos padrão que o tema/Elementor aplicam a botões e foco */
.gw-widget button {
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none !important;
}
.gw-widget button:hover,
.gw-widget button:focus,
.gw-widget button:active,
.gw-widget button:focus-visible,
.gw-widget *:focus,
.gw-widget *:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

/* Setas sobre a imagem principal */
.gw-main-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
	z-index: 2;
}
.gw-main-nav,
.gw-main-nav:hover,
.gw-main-nav:focus,
.gw-main-nav:active {
	background: transparent !important;
	border: 0 !important;
}
.gw-main-nav svg { display: block; width: 100%; height: 100%; }
.gw-main-nav--prev { left: 16px; }
.gw-main-nav--next { right: 16px; }

/* Faixa de miniaturas */
.gw-thumbs {
	position: relative;
	width: 100%;
}
.gw-thumbs-track {
	display: flex;
	gap: var(--gw-gap);
	overflow: hidden;
	width: 100%;
}
.gw-thumb {
	position: relative;
	flex: 0 0 auto;
	width: var(--gw-thumb);
	height: var(--gw-thumb);
	border-radius: var(--gw-radius-thumb);
	overflow: hidden;
	cursor: pointer;
	box-shadow: inset 0 0 0 2px transparent;
	transition: box-shadow .2s ease;
}
.gw-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(28,28,28,0) 0%, rgba(28,28,28,.5) 100%);
	transition: opacity .2s ease;
}
.gw-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}
.gw-thumb:hover::after { opacity: .4; }
.gw-thumb--active::after { opacity: 0; }
.gw-thumb--active,
.gw-thumb--active:hover,
.gw-thumb--active:focus {
	box-shadow: inset 0 0 0 2px #DDB359 !important;
}

/* dica visual de que dá pra rolar a faixa */
.gw-thumbs-fade {
	position: absolute;
	top: 0; bottom: 0; right: 0;
	width: 64px;
	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #FFFFFF 90%);
	pointer-events: none;
}

/* Responsivo */
@media (max-width: 768px) {
	.gw-gallery {
		--gw-main-h: 360px;
		--gw-thumb: 72px;
	}
}
@media (max-width: 480px) {
	.gw-gallery {
		--gw-main-h: auto;
		--gw-thumb: 56px;
		--gw-radius-main: 14px;
	}
	.gw-main {
		height: auto;
		aspect-ratio: 3 / 2;
	}
	.gw-main-nav {
		width: 26px;
		height: 26px;
	}
	.gw-main-nav--prev { left: 10px; }
	.gw-main-nav--next { right: 10px; }
}

/* Lightbox */
.gw-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.92);
	align-items: center;
	justify-content: center;
	z-index: 9999;
}
.gw-lightbox.gw-lightbox--open {
	display: flex;
}
.gw-lightbox-img {
	max-width: 90vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
	margin: 0 !important;
	border: 0 !important;
}
.gw-lightbox-close,
.gw-lightbox-nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(28,28,28,.75);
	color: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	z-index: 2;
}
.gw-lightbox-close:hover,
.gw-lightbox-close:focus,
.gw-lightbox-nav:hover,
.gw-lightbox-nav:focus {
	background: rgba(28,28,28,.75) !important;
	color: #fff !important;
	border: 0 !important;
}
.gw-lightbox-close {
	top: 20px;
	right: 20px;
	width: 36px;
	height: 36px;
	font-size: 24px;
	line-height: 1;
}
.gw-lightbox-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	font-size: 26px;
	line-height: 1;
}
.gw-lightbox-nav--prev { left: 20px; }
.gw-lightbox-nav--next { right: 20px; }

@media (max-width: 480px) {
	.gw-lightbox-close {
		top: 12px;
		right: 12px;
		width: 32px;
		height: 32px;
		font-size: 20px;
	}
	.gw-lightbox-nav {
		width: 36px;
		height: 36px;
		font-size: 22px;
	}
	.gw-lightbox-nav--prev { left: 8px; }
	.gw-lightbox-nav--next { right: 8px; }
}
