/* Hola Swipe Gallery - v2.3.0
 *
 * Fully self-contained carousel styles.
 * All selectors are prefixed with .hola-sg- to avoid theme collisions.
 * Forces LTR direction so galleries always slide left-to-right.
 */

/* ── Reset: kill any inherited box-model / margin / padding ── */
.hola-sg-wrap,
.hola-sg-wrap *,
.hola-sg-wrap *::before,
.hola-sg-wrap *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ── Main wrapper ────────────────────────────────────────── */
.hola-sg-wrap {
	position: relative;
	max-width: 100%;
	margin: 2rem auto;
	overflow: hidden;
	-webkit-user-select: none;
	user-select: none;
	line-height: 0;
	font-size: 0;
	border-radius: 6px;
	/* Force LTR so RTL pages don't reverse the slide direction */
	direction: ltr !important;
	unicode-bidi: isolate;
}

/* ── Scrollable track (CSS scroll-snap) ──────────────────── */
.hola-sg-wrap .hola-sg-track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	gap: 0;
	width: 100%;
	position: relative;
	direction: ltr !important;
}

.hola-sg-wrap .hola-sg-track::-webkit-scrollbar {
	display: none;
}

/* ── Swiping state: disable snap so JS controls the scroll ── */
.hola-sg-wrap .hola-sg-track.hola-sg-swiping {
	scroll-snap-type: none !important;
	-webkit-overflow-scrolling: auto;
}

/* ── Each slide ──────────────────────────────────────────── */
.hola-sg-wrap .hola-sg-slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

/* ── Images ──────────────────────────────────────────────── */
.hola-sg-wrap .hola-sg-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 0;
}

/* ── Captions ────────────────────────────────────────────── */
.hola-sg-wrap .hola-sg-caption {
	font-size: 13px;
	line-height: 1.4;
	color: #666;
	text-align: center;
	margin-top: 8px;
	padding: 0 12px;
}

/* ══════════════════════════════════════════════════════════
   ARROWS — semi-transparent circles with CSS chevrons
   ══════════════════════════════════════════════════════════ */
.hola-sg-wrap .hola-sg-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;

	/* Circle background */
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4) !important;
	border: none !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

	/* Override ALL theme button color overrides */
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;

	/* Layout */
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.2s ease, background 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	padding: 0 !important;
	margin: 0;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

/* Chevron drawn with CSS borders on ::before */
.hola-sg-wrap .hola-sg-arrow::before {
	content: '' !important;
	display: block !important;
	width: 10px;
	height: 10px;
	border-top: 2.5px solid #fff !important;
	border-right: 2.5px solid #fff !important;
	border-bottom: none !important;
	border-left: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Previous arrow: left side, chevron points left */
.hola-sg-wrap .hola-sg-prev {
	left: 10px;
}

.hola-sg-wrap .hola-sg-prev::before {
	transform: rotate(-135deg);
	margin-left: 3px;
}

/* Next arrow: right side, chevron points right */
.hola-sg-wrap .hola-sg-next {
	right: 10px;
}

.hola-sg-wrap .hola-sg-next::before {
	transform: rotate(45deg);
	margin-right: 3px;
}

.hola-sg-wrap .hola-sg-arrow:hover {
	background: rgba(0, 0, 0, 0.6) !important;
}

.hola-sg-wrap .hola-sg-arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Disabled = hidden (first/last slide) */
.hola-sg-wrap .hola-sg-arrow[disabled] {
	opacity: 0 !important;
	pointer-events: none;
	cursor: default;
}

/* ══════════════════════════════════════════════════════════
   DOTS — centered below the image track
   ══════════════════════════════════════════════════════════ */
.hola-sg-wrap .hola-sg-dots {
	position: relative;
	width: 100%;
	z-index: 3;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	font-size: 0;
	line-height: 0;
	margin: 0;
	padding: 12px 0;
}

.hola-sg-wrap .hola-sg-dot {
	width: 8px;
	height: 8px;
	min-width: 8px;
	min-height: 8px;
	border-radius: 50%;
	border: 1.5px solid #999;
	background: transparent !important;
	padding: 0 !important;
	margin: 0;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
	outline: none;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
}

/* Active dot: solid dark fill */
.hola-sg-wrap .hola-sg-dot.active {
	background: #333 !important;
	border-color: #333;
	transform: scale(1.25);
}

.hola-sg-wrap .hola-sg-dot:hover {
	background: #bbb !important;
	border-color: #888;
}

.hola-sg-wrap .hola-sg-dot:focus-visible {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* ── Counter indicator (optional, e.g. "2 / 5") ─────────── */
.hola-sg-wrap .hola-sg-counter {
	text-align: center;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1;
	color: #888;
	letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
	.hola-sg-wrap {
		margin: 1.5rem auto;
		border-radius: 4px;
	}

	.hola-sg-wrap .hola-sg-img {
		max-height: 60vh;
	}

	.hola-sg-wrap .hola-sg-arrow {
		width: 36px;
		height: 36px;
	}

	.hola-sg-wrap .hola-sg-arrow::before {
		width: 9px;
		height: 9px;
		border-width: 2px;
	}

	.hola-sg-wrap .hola-sg-prev {
		left: 8px;
	}

	.hola-sg-wrap .hola-sg-next {
		right: 8px;
	}

	.hola-sg-wrap .hola-sg-dots {
		padding: 10px 0;
		gap: 6px;
	}

	.hola-sg-wrap .hola-sg-dot {
		width: 7px;
		height: 7px;
		min-width: 7px;
		min-height: 7px;
	}
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
	.hola-sg-wrap {
		margin: 1rem auto;
		border-radius: 0;
	}

	.hola-sg-wrap .hola-sg-img {
		max-height: 50vh;
	}

	.hola-sg-wrap .hola-sg-arrow {
		width: 32px;
		height: 32px;
	}

	.hola-sg-wrap .hola-sg-arrow::before {
		width: 8px;
		height: 8px;
		border-width: 2px;
	}

	.hola-sg-wrap .hola-sg-prev {
		left: 6px;
	}

	.hola-sg-wrap .hola-sg-next {
		right: 6px;
	}

	.hola-sg-wrap .hola-sg-caption {
		font-size: 12px;
		padding: 0 8px;
	}

	.hola-sg-wrap .hola-sg-dots {
		padding: 8px 0;
		gap: 6px;
	}
}

/* Small mobile (360px and below) */
@media (max-width: 360px) {
	.hola-sg-wrap .hola-sg-arrow {
		width: 28px;
		height: 28px;
	}

	.hola-sg-wrap .hola-sg-arrow::before {
		width: 7px;
		height: 7px;
		border-width: 2px;
	}

	.hola-sg-wrap .hola-sg-prev {
		left: 4px;
	}

	.hola-sg-wrap .hola-sg-next {
		right: 4px;
	}

	.hola-sg-wrap .hola-sg-dots {
		padding: 6px 0;
		gap: 5px;
	}

	.hola-sg-wrap .hola-sg-dot {
		width: 6px;
		height: 6px;
		min-width: 6px;
		min-height: 6px;
	}
}
