/* ============================================================================
   Single Story — single-story.php
   Ported from monash-arts-r React app: StoryDetailPage.module.scss
   ============================================================================ */

@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

body.single-story {
	overflow: hidden;
}

.monash-story {
	--cream: #fff;
	--hero-height: clamp(320px, 62dvh, 760px);
	--card-overlap: 20px;
	font-family: "Albert Sans", sans-serif;
	position: relative;
	max-height: 100dvh;
    height: var(--monash-shell-effective-height);

	background: var(--cream);
	color: #1a1a1a;
        overflow: hidden auto;
        overscroll-behavior: contain;
        position: relative;
        -webkit-overflow-scrolling: touch;
}
.monash-story * {
	box-sizing: border-box;
}

/* --- Hero ------------------------------------------------------------------ */
.monash-story__hero {
	position: sticky;
	inset: 0 0 auto;
	width: 100%;
	height: 100dvh;
	overflow: hidden;
	z-index: 0;
}
.monash-story__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}
.monash-story__hero-placeholder {
	width: 100%;
	height: 100%;
	background: #ccc;
}
.monash-story__hero-link {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
.monash-story__hero-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.monash-story__hero-play svg {
	width: 154px;
	height: auto;
}

/* --- Card ------------------------------------------------------------------ */
.monash-story__card {
    position: relative;
    z-index: 1;
    margin: 0 15px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    margin-top: -12vh;
    /* height: calc(100dvh - (var(--hero-height) - var(--card-overlap))); */
    /* height: calc(100dvh - (var(--hero-height) - var(--card-overlap))); */
    overflow-y: auto;
    /* overscroll-behavior: contain; */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 32px 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
		text-align: left;
}
.monash-story__card .monash-story__meta-row{
		text-align: left;

}
.monash-story__card::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

/* --- Identity -------------------------------------------------------------- */
.monash-story__identity {
	text-align: left;
	padding-bottom: 4px;
}
.monash-story__name {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
	text-align: center;
}
.monash-story__degree {
	margin: 4px 0 0;
	font-size: 21px;
	font-weight: 400;
	color: #4f4f4f;
	text-align: center;
}

/* --- Meta rows ------------------------------------------------------------- */
.monash-story__meta-row {
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	color: #1f1f1f;
	text-align: left;
}
.monash-story__meta-row--lead {
	text-align: center;
}
.monash-story__meta-row strong {
	font-weight: 700;
}

/* --- Pull quote ------------------------------------------------------------ */
.monash-story__quote {
	margin: 0;
	font-style: italic;
	font-size: 16px;
	line-height: 1.5;
	color: #2c2c2c;
	text-align: center;
}

/* --- Decorative divider ---------------------------------------------------- */
.monash-story__divider {
	text-align: center;
	margin: 4px 0;
}

/* --- Post content ---------------------------------------------------------- */
.monash-story__content {
	font-size: 16px;
	line-height: 1.6;
	color: #252525;
}
.monash-story__content > * {
	margin: 0 0 12px;
}
.monash-story__content > *:last-child {
	margin-bottom: 0;
}
.monash-story__content a {
	color: #006dae;
}

/* --- More stories ---------------------------------------------------------- */
.monash-story__more {
	border-top: 1px solid #e5e5e5;
	padding-top: 24px;
	margin-top: 8px;
}
.monash-story__more-title {
	margin: 0 0 20px;
	font-size: 20px;
	font-weight: 700;
	color: #111;
}
.monash-story__more-grid {
	display: flex;
	gap: 16px;
	justify-content: center;
}
.monash-story__more-card {
	flex: 1;
	max-width: 180px;
	display: flex;
	flex-direction: column;
	align-items: left;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}
.monash-story__more-avatar {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}
.monash-story__more-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.monash-story__more-avatar-placeholder {
	width: 100%;
	height: 100%;
	background: #ddd;
	border-radius: 50%;
}
.monash-story__more-name {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #006dae;
	text-align: left;
	padding: 17px 0;
}
.monash-story__more-degree {
	margin: 0;
	font-size: 16px;
	color: #212121;
	text-align: left;
	font-weight: 700;
}
.monash-story__more-major {
	margin: 0;
	font-size: 16px;
	color: #212121;
	text-align: left;
	line-height: 1.4;
}
.monash-story__more-major strong {
	font-weight: 700;
}

/* --- Back button ----------------------------------------------------------- */
.monash-story__back-btn {
	margin-top: 10px;
	align-self: center;
	position: relative;
	display: inline-block;
	min-width: 122px;
	padding: 9px 20px 10px;
	background: #fff;
	border: 1.5px solid #0a9af4;
	border-radius: 11px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	color: #0a9af4;
	text-decoration: none;
	text-align: left;
	transition: all 0.2s;
}
.monash-story__back-shadow {
	position: absolute;
	display: block;
	width: calc(100% + 4px);
	height: 100%;
	bottom: -8px;
	left: -2px;
	border-radius: 11px;
	background: rgba(10, 154, 244, 0.25);
	z-index: -1;
	pointer-events: none;
	transition: all 0.2s;
}
.monash-story__back-btn:active,
.monash-story__back-btn.is-pressed {
	transform: translateY(4px);
}
.monash-story__back-btn:active .monash-story__back-shadow,
.monash-story__back-btn.is-pressed .monash-story__back-shadow {
	bottom: -4px;
}

@media (min-width: 768px) {
	.monash-story {
		--hero-height: clamp(420px, 66dvh, 860px);
		--card-overlap: 24px;
	}

	.monash-story__card {
		padding: 40px 32px 56px;
	}
}
