/* ============================================================
   Interactive Media Story Slider Pro — v3.0.0
   Exact match: newschool.edu layout
   ============================================================ */

/* ---------- Base Reset ---------- */
.imssp-outer *, .imssp-outer *::before, .imssp-outer *::after { box-sizing: border-box; }
.imssp-outer { position: relative; width: 100%; font-family: inherit; }

/* ============================================================
   HERO VIDEO CARD
   — Right-of-center, ~55% width (matching screenshot 1)
   — Dark image/video background with play circle + text overlay
   — Bold black caption below
   ============================================================ */

.imssp-hero-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 0;
}

.imssp-hero-card-wrap {
	width: 55%;
	margin-left: auto;
	margin-right: auto;
}

.imssp-hero-card {
	position: relative;
	overflow: hidden;
	height: 320px;
	background: #1a0a00 center/cover no-repeat;
	cursor: pointer;
}

.imssp-hero-bg-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.imssp-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.18);
	z-index: 1;
	pointer-events: none;
	transition: background 0.3s;
}
.imssp-hero-card:hover .imssp-hero-overlay { background: rgba(0,0,0,0.32); }

/* Play button — circle outline, white, centered */
.imssp-hero-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.92);
	background: transparent;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.imssp-hero-play svg { width: 28px; height: 28px; margin-left: 3px; }
.imssp-hero-card:hover .imssp-hero-play {
	transform: translate(-50%, -50%) scale(1.08);
	background: rgba(255,255,255,0.12);
}

/* Text overlay — bottom-left of hero card */
.imssp-hero-overlay-text {
	position: absolute;
	bottom: 18px;
	left: 18px;
	z-index: 3;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.imssp-hero-name {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.03em;
	text-shadow: 0 1px 4px rgba(0,0,0,0.55);
	line-height: 1.3;
}

.imssp-hero-detail {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0,0,0,0.55);
	line-height: 1.45;
}

/* Caption below hero card — bold, black, left-aligned under card */
.imssp-hero-below-cap {
	width: 55%;
	margin-left: auto;
	margin-right: auto;
	padding-top: 14px;
	font-size: 16px;
	font-weight: 700;
	color: #111;
	line-height: 1.35;
}

/* ============================================================
   STORY SLIDER WRAPPER
   ============================================================ */

.imssp-slider-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	margin-top: 36px;
}

.imssp-swiper { width: 100%; overflow: visible; }
.imssp-swiper .swiper-wrapper { align-items: stretch; }

/* Swiper fade override */
.imssp-swiper.swiper-fade .swiper-slide          { opacity: 0 !important; pointer-events: none; transition-property: opacity; }
.imssp-swiper.swiper-fade .swiper-slide-active   { opacity: 1 !important; pointer-events: auto; }

/* ============================================================
   SLIDE INNER — Two-column grid
   LEFT (~45%) | RIGHT (~55%)
   ============================================================ */

.imssp-slide-inner {
	display: flex;
	flex-direction: row;
	gap: 60px;
	padding: 40px 0;
	align-items: flex-start;
	min-height: 500px;
}

/* ─── LEFT COLUMN ─── */
.imssp-left-col {
	flex: 0 0 450px;
	max-width: 450px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Featured Image */
.imssp-feat-img {
	overflow: hidden;
	height: 430px;
	background: #eee;
}
.imssp-feat-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.imssp-img-scale:hover img { transform: scale(1.04); }
.imssp-img-zoom:hover img  { transform: scale(1.10); }
.imssp-img-fade:hover img  { opacity: 0.82; }

/* Caption — bold red, italic weight (like screenshot) */
.imssp-feat-caption {
	font-size: 17px;
	font-weight: 800;
	font-style: italic;
	color: #e8211e;
	margin: 0;
	line-height: 1.3;
}

/* ─── RIGHT COLUMN ─── */
.imssp-right-col {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Heading — bold, red, ALL CAPS, very large (screenshot shows ~36-40px) */
.imssp-heading {
	margin: 0;
	font-size: 38px;
	font-weight: 900;
	line-height: 1.08;
	color: #e8211e;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

/* Description — normal body text, dark gray */
.imssp-desc {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	color: #222;
	max-width: 520px;
}

/* Navigation arrows row — two circle outline buttons side by side */
.imssp-nav-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}

.imssp-nav-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid #aaa;
	background: transparent;
	color: #333;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s;
}
.imssp-nav-btn svg { width: 16px; height: 16px; pointer-events: none; }
.imssp-nav-btn:hover {
	background: #111;
	color: #fff;
	border-color: #111;
	transform: scale(1.06);
}
.imssp-nav-btn:active { transform: scale(0.95); }

/* CTA Button */
.imssp-btn {
	display: inline-block;
	padding: 10px 22px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	border-radius: 3px;
	background: #111;
	color: #fff;
	align-self: flex-start;
	transition: background 0.2s, transform 0.18s;
}
.imssp-btn:hover { background: #333; transform: translateY(-1px); }

/* ─── RIGHT COLUMN — Bottom Video Card ─── */
.imssp-slide-video {
	position: relative;
	overflow: hidden;
	height: 280px;
	background: #111;
	cursor: pointer;
}
.imssp-svid-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease, opacity 0.3s;
}
.imssp-slide-video:hover .imssp-svid-img { transform: scale(1.04); opacity: 0.85; }

.imssp-svid-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.2);
	z-index: 1;
	pointer-events: none;
	transition: background 0.3s;
}
.imssp-slide-video:hover .imssp-svid-overlay { background: rgba(0,0,0,0.35); }

.imssp-svid-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.9);
	background: transparent;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.22s, background 0.22s;
}
.imssp-svid-play svg { width: calc(56px * .42); height: calc(56px * .42); margin-left: 3px; }
.imssp-slide-video:hover .imssp-svid-play {
	transform: translate(-50%, -50%) scale(1.1);
	background: rgba(255,255,255,0.14);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.imssp-pag {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 6px;
}
.imssp-pag .swiper-pagination-bullet {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: rgba(0,0,0,0.28);
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}
.imssp-pag .swiper-pagination-bullet-active {
	background: #e8211e;
	transform: scale(1.35);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.imssp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex !important;
	align-items: center;
	justify-content: center;
}
.imssp-lightbox[style*="display:none"],
.imssp-lightbox[style*="display: none"] { display: none !important; }

.imssp-lb-bg {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.88);
	cursor: pointer;
}

.imssp-lb-box {
	position: relative;
	z-index: 1;
	width: 90vw;
	max-width: 1060px;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 30px 90px rgba(0,0,0,0.7);
	animation: imssp-lb-pop 0.28s ease;
}
@keyframes imssp-lb-pop {
	from { opacity:0; transform:scale(.93); }
	to   { opacity:1; transform:scale(1); }
}

.imssp-lb-close {
	position: absolute;
	top: 12px; right: 12px;
	z-index: 2;
	width: 36px; height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.18);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s;
}
.imssp-lb-close:hover { background: rgba(255,255,255,0.32); }
.imssp-lb-close svg { width: 18px; height: 18px; }

.imssp-lb-video-wrap {
	position: relative;
	padding-top: 56.25%;
}
.imssp-lb-video-wrap iframe,
.imssp-lb-video-wrap video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */

.imssp-anim {
	opacity: 0;
}

.imssp-anim.imssp-entered {
	opacity: 1;
}

/* fadeInUp */
.imssp-anim[data-anim="fadeInUp"]         { transform: translateY(28px); }
.imssp-anim[data-anim="fadeInUp"].imssp-entered { transform: translateY(0); }

/* fadeIn */
.imssp-anim[data-anim="fadeIn"]           { }
.imssp-anim[data-anim="fadeIn"].imssp-entered { }

/* slideInLeft */
.imssp-anim[data-anim="slideInLeft"]      { transform: translateX(-40px); }
.imssp-anim[data-anim="slideInLeft"].imssp-entered { transform: translateX(0); }

/* slideInRight */
.imssp-anim[data-anim="slideInRight"]     { transform: translateX(40px); }
.imssp-anim[data-anim="slideInRight"].imssp-entered { transform: translateX(0); }

.imssp-anim { transition: opacity var(--imssp-dur, 0.6s) ease, transform var(--imssp-dur, 0.6s) ease; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large Desktop */
@media (max-width: 1280px) {
	.imssp-hero-card-wrap, .imssp-hero-below-cap { width: 60%; }
	.imssp-left-col { flex: 0 0 400px; max-width: 400px; }
	.imssp-heading  { font-size: 32px; }
	.imssp-slide-inner { gap: 44px; }
}

/* Medium Desktop */
@media (max-width: 1024px) {
	.imssp-hero-card-wrap, .imssp-hero-below-cap { width: 70%; }
	.imssp-left-col { flex: 0 0 340px; max-width: 340px; }
	.imssp-heading  { font-size: 28px; }
	.imssp-slide-inner { gap: 32px; padding: 28px 0; }
	.imssp-feat-img { height: 360px; }
	.imssp-hero-card { height: 260px; }
}

/* Tablet */
@media (max-width: 768px) {
	.imssp-hero-card-wrap, .imssp-hero-below-cap {
		width: 100%;
		margin-left: auto;
		margin-right: auto;
	}

	.imssp-slide-inner {
		flex-direction: column;
		gap: 24px;
		padding: 20px 0;
	}

	.imssp-left-col {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
	}

	.imssp-right-col { width: 100%; }

	.imssp-heading  { font-size: 26px; }
	.imssp-feat-img { height: 300px; }
	.imssp-hero-card { height: 220px; }
	.imssp-slide-video { height: 220px; }
}

/* Mobile */
@media (max-width: 480px) {
	.imssp-heading  { font-size: 20px; }
	.imssp-desc     { font-size: 14px; }
	.imssp-feat-img { height: 240px; }
	.imssp-hero-card { height: 190px; }
	.imssp-slide-video { height: 180px; }

	.imssp-hero-play { width: 52px; height: 52px; }
	.imssp-hero-play svg { width: 20px; height: 20px; }

	.imssp-feat-caption { font-size: 15px; }
	.imssp-lb-box { width: 96vw; }
}

@media (max-width: 360px) {
	.imssp-heading { font-size: 18px; }
	.imssp-hero-card { height: 170px; }
}
