@import url("https://fonts.googleapis.com/css2?family=Cormorant:wght@800&display=swap");

.widget-galeria-wrapper {
	display: flex;
	flex-direction: column;
	gap: 60px;
	width: 100%;
}

.widget-galeria-container {
	position: relative;
	width: 100%;
	text-align: center;
}

.widget-galeria-titulo {
	margin: 0 0 20px;
	color: inherit;
	font-family: "Cormorant", serif;
	font-size: 33px;
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
}

.gpw-carousel-outer {
	position: relative;
	width: 100%;
}

.widget-galeria-fotos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	margin: 0;
	padding: 0;
}

.widget-galeria-img {
	display: block;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.gpw-arrow {
	display: none;
	position: absolute;
	top: 50%;
	z-index: 20;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.22);
	color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	backdrop-filter: blur(3px);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.gpw-arrow:hover,
.gpw-arrow:focus-visible {
	background: rgba(0, 0, 0, 0.42);
}

.gpw-arrow:active {
	transform: translateY(-50%) scale(0.94);
}

.gpw-prev {
	left: 10px;
}

.gpw-next {
	right: 10px;
}

@media (max-width: 767px) {
	.widget-galeria-wrapper {
		gap: 42px;
	}

	.widget-galeria-titulo {
		font-size: 24px;
	}

	.gpw-carousel-outer {
		overflow: hidden;
	}

	.gpw-arrow {
		display: flex;
	}

	.widget-galeria-container.gpw-single-slide .gpw-arrow {
		display: none;
	}

	.widget-galeria-fotos {
		display: flex;
		flex-wrap: nowrap;
		gap: 0;
		justify-content: flex-start;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-behavior: smooth;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		touch-action: pan-x pan-y;
	}

	.widget-galeria-fotos::-webkit-scrollbar {
		display: none;
	}

	.widget-galeria-img {
		flex: 0 0 100%;
		width: 100%;
		min-width: 100%;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
}
