/* School Carousel Pro — Frontend Styles */

.swc-carousel {
	position: relative;
	max-width: 100%;
	margin: 24px 0;
	--swc-accent: #2563eb;
}

.swc-viewport {
	overflow: hidden;
	position: relative;
}

.swc-track {
	display: flex;
	will-change: transform;
}

.swc-slide {
	flex: 0 0 auto;
	box-sizing: border-box;
	padding-right: var(--swc-gap, 16px);
}

.swc-media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: #eee;
	aspect-ratio: 4 / 3;
	cursor: pointer;
	text-decoration: none;
}

.swc-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.swc-media:hover img {
	transform: scale(1.05);
}

.swc-media-post {
	cursor: pointer;
}

.swc-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

.swc-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	line-height: 56px;
	text-align: center;
	background: rgba(0,0,0,.55);
	color: #fff;
	border-radius: 50%;
	font-size: 20px;
	pointer-events: none;
}

.swc-caption {
	padding: 10px 2px 0;
}

.swc-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.swc-desc {
	margin: 0;
	font-size: 13px;
	color: #666;
	line-height: 1.4;
}

/* Arrows */
.swc-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.9);
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	cursor: pointer;
	font-size: 16px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swc-arrow:hover {
	background: var(--swc-accent);
	color: #fff;
}

.swc-prev { left: -6px; }
.swc-next { right: -6px; }

/* Dots */
.swc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.swc-dots .swc-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d1d5db;
	border: none;
	cursor: pointer;
	padding: 0;
}

.swc-dots .swc-dot.is-active {
	background: var(--swc-accent);
	width: 22px;
	border-radius: 6px;
	transition: width .2s ease;
}

/* Thumbnails nav */
.swc-thumbnails {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.swc-thumb {
	flex: 0 0 64px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	opacity: .55;
	border: 2px solid transparent;
	transition: opacity .2s ease, border-color .2s ease;
}

.swc-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.swc-thumb.is-active {
	opacity: 1;
	border-color: var(--swc-accent);
}

/* Layout: fade */
.swc-layout-fade .swc-track {
	display: block;
	position: relative;
}

.swc-layout-fade .swc-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	padding-right: 0;
	transition: opacity .5s ease;
}

.swc-layout-fade .swc-slide.is-active {
	position: relative;
	opacity: 1;
}

/* Layout: card / scale — center slide larger */
.swc-layout-card .swc-slide {
	transform: scale(.92);
	opacity: .7;
	transition: transform .35s ease, opacity .35s ease;
}

.swc-layout-card .swc-slide.is-center {
	transform: scale(1);
	opacity: 1;
}

/* Layout: coverflow 3D */
.swc-layout-coverflow .swc-viewport {
	perspective: 1200px;
}

.swc-layout-coverflow .swc-slide {
	transition: transform .4s ease, opacity .4s ease;
}

.swc-layout-coverflow .swc-slide.is-side-left {
	transform: rotateY(25deg) scale(.9);
	opacity: .6;
}

.swc-layout-coverflow .swc-slide.is-side-right {
	transform: rotateY(-25deg) scale(.9);
	opacity: .6;
}

.swc-layout-coverflow .swc-slide.is-center {
	transform: none;
	opacity: 1;
}

/* Lightbox */
.swc-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 24px;
}

.swc-lightbox.is-open {
	display: flex;
}

.swc-lightbox-content {
	max-width: 92vw;
	max-height: 88vh;
}

.swc-lightbox-content img,
.swc-lightbox-content video {
	max-width: 92vw;
	max-height: 88vh;
	display: block;
	border-radius: 6px;
}

.swc-lightbox-content iframe {
	width: min(90vw, 960px);
	height: min(52vw, 540px);
	border: 0;
	border-radius: 6px;
}

.swc-lightbox-close {
	position: absolute;
	top: 18px;
	right: 24px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 782px) {
	.swc-arrow { display: none; }
}
