/* Happy Smiles Gallery — frontend styles */

.hsg-carousel {
	position: relative;
	--hsg-accent: #1cb5a3;
	--hsg-ratio: 3 / 4;
	--hsg-gap: 20px;
}

.hsg-viewport {
	overflow: hidden;
}

.hsg-track {
	display: flex;
	gap: var(--hsg-gap);
	transition: transform 0.45s ease;
	will-change: transform;
}

.hsg-slide {
	flex: 0 0 calc((100% - (var(--hsg-visible) - 1) * var(--hsg-gap)) / var(--hsg-visible));
	min-width: 0;
	box-sizing: border-box;
}

.hsg-photo {
	position: relative;
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: var(--hsg-ratio);
	line-height: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.hsg-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

/* Caption badge — white box, accent text (like "Happy Smiles") */
.hsg-badge {
	position: absolute;
	left: 16px;
	bottom: 16px;
	right: 16px;
	background: #ffffff;
	color: var(--hsg-accent);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	padding: 12px 18px;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Arrows — accent circles, vertically centered on the right edge */
.hsg-arrows {
	position: absolute;
	top: 50%;
	right: -8px;
	transform: translateY(-50%);
	display: flex;
	gap: 8px;
	z-index: 5;
}

.hsg-arrow {
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: var(--hsg-accent);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.hsg-arrow:hover { transform: scale(1.08); }
.hsg-arrow:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--hsg-accent);
}

/* Dots (optional) */
.hsg-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}
.hsg-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: #c9ccd1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}
.hsg-dot:hover { background: #9aa0a6; }
.hsg-dot-active {
	background: var(--hsg-accent);
	transform: scale(1.25);
}

/* Responsive gap */
@media (max-width: 640px) {
	.hsg-carousel { --hsg-gap: 12px; }
	.hsg-arrows { right: 4px; }
	.hsg-arrow { width: 36px; height: 36px; }
	.hsg-badge { font-size: 15px; padding: 10px 14px; left: 12px; bottom: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.hsg-track { transition: none; }
	.hsg-arrow:hover { transform: none; }
}
