/**
 * 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;
}

/* Estilos para las flechas de navegación del modal */
.bbs-modal-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	padding: 0;
	color: #395536;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bbs-modal-nav:hover {
	background: rgba(255, 255, 255, 1);
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bbs-modal-nav:active {
	transform: translateY(-50%) scale(0.95);
}

.bbs-modal-nav svg {
	width: 24px;
	height: 24px;
	stroke-width: 2.5;
}

.bbs-modal-nav-prev {
	left: 15px;
}

.bbs-modal-nav-next {
	right: 15px;
}

/* Ocultar flechas si solo hay una imagen */
.bbs-gallery-modal[data-gallery-count="1"] .bbs-modal-nav {
	display: none !important;
}

/* Responsive para móvil */
@media (max-width: 768px) {
	.bbs-modal-nav {
		width: 40px;
		height: 40px;
	}
	
	.bbs-modal-nav svg {
		width: 20px;
		height: 20px;
	}
	
	.bbs-modal-nav-prev {
		left: 10px;
	}
	
	.bbs-modal-nav-next {
		right: 10px;
	}
}


