/**
 * Estilos del área pública
 *
 * @package BBS_Customer_Gallery
 */

.bbs-customer-gallery-wrapper {
	margin: 2rem 0 4rem 0;
	clear: both;
}

.bbs-customer-gallery {
	margin-bottom: 1rem;
}

.bbs-customer-gallery .splide__track {
	padding-right: 10% !important;
}

.bbs-customer-gallery .splide__slide {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1/1;
	margin-right: 0.5rem;
}

/* En desktop, cada slide siempre ocupa 16.67% del ancho (6 elementos por página) */
@media (min-width: 1025px) {
	.bbs-customer-gallery .splide__slide {
		width: 16.666% !important;
		flex: 0 0 16.666% !important;
	}
}

.bbs-customer-gallery .splide__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.bbs-customer-gallery .splide__slide:hover img {
	transform: scale(1.05);
	opacity: 0.9;
}

.bbs-gallery-image-clickable {
	cursor: pointer !important;
}

.bbs-gallery-image-clickable:hover {
	opacity: 0.85;
}

.bbs-customer-gallery .splide__arrow {
	background: #fff;
	opacity: 0.8;
	top: 115%;
}

.bbs-customer-gallery .splide__arrow svg {
	fill: #395536;
}

.bbs-customer-gallery .splide__arrow:hover {
	opacity: 1;
}

.bbs-customer-gallery .splide__pagination {
	bottom: -2rem;
}

.bbs-customer-gallery .splide__pagination__page {
	background: #ccc;
	opacity: 0.5;
}

.bbs-customer-gallery .splide__pagination__page.is-active {
	background: #395536;
	opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
	.bbs-customer-gallery .splide__arrow--prev {
		left: 0.5rem;
	}
	
	.bbs-customer-gallery .splide__arrow--next {
		right: 0.5rem;
	}

	.bbs-customer-gallery .splide__track {
		padding-right: 25% !important;
	}

	.bbs-customer-gallery .splide__arrow {
		top: 120%;
	}
}

/* Estilos para el modal */
.bbs-customer-gallery-wrapper .modal-content {
	border-radius: 8px;
	overflow: hidden;
}

.bbs-customer-gallery-wrapper .modal-header {
	border-bottom: 1px solid #dee2e6;
	background-color: #f8f9fa;
}

.bbs-customer-gallery-wrapper .modal-body {
	background-color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
}

.bbs-customer-gallery-wrapper .modal-body img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}


