/* Carrossel de imagens do detalhe (detalhe.php, mobile/detalhe.php, js/carousel.js).
   Arquivo próprio, carregado só nas páginas com carrossel. */

.carouselViewport {
	position: relative;
}

.carouselTrack {
	display: flex;
	align-items: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	transition: height 0.3s;
}

.carouselTrack::-webkit-scrollbar {
	display: none;
}

/* imagens quadradas/verticais não passam da altura da tela, senão setas e dots somem */
.carouselTrack img {
	flex: 0 0 100%;
	max-height: 90vh;
	object-fit: contain;
	scroll-snap-align: start;
}

.carouselArrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	color: #222;
	font-size: 28px;
	line-height: 44px;
	cursor: pointer;
}

.carouselPrev {
	left: 12px;
}

.carouselNext {
	right: 12px;
}

.carouselDots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 12px 0;
}

.carouselDots button {
	width: 10px;
	height: 10px;
	margin: 4px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
}

.carouselDots button.active {
	background: magenta;
}

/* telas pequenas (site mobile) */
@media (max-width: 600px) {
	.carouselArrow {
		width: 32px;
		height: 32px;
		font-size: 22px;
		line-height: 32px;
	}

	.carouselPrev {
		left: 6px;
	}

	.carouselNext {
		right: 6px;
	}

	.carouselDots {
		padding: 10px 0;
	}

	.carouselDots button {
		width: 8px;
		height: 8px;
	}
}
