/* =========================================================
   NUFC MODAL
   ========================================================= */

.nufc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	width: 100%;
	height: 100vh;
	background: #000;
	font-family: "Inter", sans-serif;
	box-sizing: border-box;
}

	.nufc-modal.active {
		display: block;
	}

body.nufc-modal-open {
	overflow: hidden;
}

.nufc-modal__progress {
	position: fixed;
	top: 8px;
	left: 8px;
	right: 8px;
	z-index: 100005;
	display: flex;
	gap: 4px;
	height: 4px;
}

.nufc-modal__progress-item {
	position: relative;
	flex: 1;
	height: 4px;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.30);
}

.nufc-modal__progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	width: 0%;
	height: 100%;
	background: #fff;
	border-radius: inherit;
}

/* Posts already viewed */
.nufc-modal__progress-item.completed
.nufc-modal__progress-fill {
	width: 100%;
}

/* =========================================================
   DIALOG
   ========================================================= */

.nufc-modal__dialog {
	position: absolute;
	width: 700px;
	max-width: calc(100vw - 160px);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-sizing: border-box;
}


/* =========================================================
   CONTROLS
   ========================================================= */

.nufc-modal__controls {
	position: absolute;
	right: 0;
	top: -40px;
	height: 32px;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 20;
}


.nufc-modal__control,
.nufc-modal__close {
	padding: 0;
	border: 0;
	outline: none;
	background: transparent;
	color: #999;
	cursor: pointer;
	line-height: 1;
}


.nufc-modal__control {
	font-size: 16px;
}


.nufc-modal__close {
	font-size: 28px;
	font-weight: 300;
}


	.nufc-modal__control:hover,
	.nufc-modal__close:hover {
		color: #fff;
	}


/* =========================================================
   CONTENT
   ========================================================= */

.nufc-modal__content {
	width: 100%;
	border-radius: 11px;
	overflow: hidden;
	box-sizing: border-box;
}


/* =========================================================
   MEDIA AREA
   ========================================================= */

.nufc-modal__media {
	position: relative;
	width: 100%;
	height: 408px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #080808;
	border-radius: 11px;
	box-sizing: border-box;
}

.nufc-modal__video-background {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	filter: blur(25px);
	transform: scale(1.15);
	opacity: 0.8;
	z-index: 0 !important;
	pointer-events: none;
}

.nufc-modal__video {
	position: relative !important;
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	z-index: 2 !important;
	background: transparent;
}


/* =========================================================
   BLURRED IMAGE BACKGROUND
   ========================================================= */

.nufc-modal__image-background,
.nufc-modal__text-background {
	position: absolute;
	inset: -30px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: blur(35px);
	transform: scale(1.15);
	opacity: 0.75;
	z-index: 0;
	pointer-events: none;
}

	.nufc-modal__image-background::after,
	.nufc-modal__text-background::after {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.20);
	}


/* =========================================================
   NORMAL IMAGE
   ========================================================= */

.nufc-modal__image {
	position: relative;
	z-index: 2;
	height: 100%;
	object-fit: contain;
	border-radius: 11px;
}


	/*
Portrait images need to remain contained,
not stretched.
*/
	.nufc-modal__image.is-portrait {
		width: auto;
		max-width: 100%;
		height: calc(100% - 40px);
		object-fit: contain;
		border-radius: 12px;
		overflow: hidden;
	}


/* =========================================================
   VIDEO
   ========================================================= */

.nufc-modal__video {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 11px;
}


/* =========================================================
   YOUTUBE
   ========================================================= */

.nufc-modal__youtube {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
	border-radius: 11px;
}


/* =========================================================
   TEXT POST
   Screenshot 3 style
   ========================================================= */

.nufc-modal__text-post {
	position: relative;
	width: 100%;
	height: 408px;
	overflow: hidden;
	background: #000;
	border-radius: 11px;
	box-sizing: border-box;
}


/* Text post background image */

.nufc-modal__text-image {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.45;
}


/* Text itself */

.nufc-modal__description {
	position: relative;
	z-index: 3;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	padding: 40px;
	box-sizing: border-box;
	color: #fff;
	font-size: 27px;
	line-height: 1.35;
	font-weight: 700;
	white-space: pre-line;
	text-align: left;
}


/* Text-only post */

.nufc-modal__text-post.text-only
.nufc-modal__description {
	max-width: 620px;
	margin: auto;
	font-size: 28px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.nufc-modal__footer {
	width: 100%;
/*	min-height: 95px;*/
	padding: 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
/*	gap: 12px;*/
	background: #1d1d1d;
	border-radius: 11px;
	box-sizing: border-box;
}


/* =========================================================
   OPTIONAL DESCRIPTION INSIDE FOOTER
   ========================================================= */

.nufc-modal__footer-description {
	position: relative;
	width: 100%;
	padding-right: 90px;
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 500;
	box-sizing: border-box;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}


/* =========================================================
   FOOTER ROW
   ========================================================= */

.nufc-modal__footer-row {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}


.nufc-modal__footer-left {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}


/* =========================================================
   AUTHOR
   ========================================================= */

.nufc-modal__footer-author {
	display: flex;
	align-items: center;
	gap: 8px;
}


.nufc-modal__footer-avatar {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 50%;
	object-fit: cover;
}


.nufc-modal__footer-avatar-letter {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff0c7;
	color: #c18c16;
	font-size: 13px;
	font-weight: 600;
}


.nufc-modal__footer-author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}


.nufc-modal__footer-author-name {
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 700;
}


.nufc-modal__footer-author-link {
	color: #aaa;
	font-size: 10px;
	line-height: 1.2;
	text-decoration: none;
}


/* =========================================================
   DATE
   ========================================================= */

.nufc-modal__date {
	margin: 0;
	color: #ddd;
	font-size: 11px;
	line-height: 1;
	font-weight: 600;
}


/* =========================================================
   REPORT FLAG
   ========================================================= */

.nufc-modal__report {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: end;
	color: #ccc;
	text-decoration: none;
}


	.nufc-modal__report svg {
		width: 12px;
		height: 15px;
		fill: currentColor;
	}


	.nufc-modal__report:hover {
		color: #fff;
	}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nufc-modal__nav {
	position: fixed;
	top: 50%;
	z-index: 100001;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #1c1c1c;
	color: #fff;
	font-size: 25px;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s ease, transform 0.2s ease;
}


	.nufc-modal__nav:hover {
		background: #303030;
		transform: translateY(-50%) scale(1.05);
	}

	.nufc-modal__nav svg {
		width: 12px;
		height: 12px;
	}

.nufc-modal__nav--prev svg {
	transform: rotate(180deg);
}

.nufc-modal__nav--prev {
	left: 22px;
}


.nufc-modal__nav--next {
	right: 22px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

	.nufc-modal__dialog {
		width: 680px;
		max-width: calc(100vw - 120px);
	}


	.nufc-modal__media,
	.nufc-modal__text-post {
		height: 400px;
	}


	.nufc-modal__nav {
		width: 46px;
		height: 46px;
		font-size: 21px;
	}


	.nufc-modal__nav--prev {
		left: 10px;
	}


	.nufc-modal__nav--next {
		right: 10px;
	}
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

	.nufc-modal__dialog {
		width: calc(100vw - 30px);
		max-width: none;
	}


	.nufc-modal__media,
	.nufc-modal__text-post {
		height: 55vh;
	}


	.nufc-modal__controls {
		top: -38px;
	}


	.nufc-modal__description {
		padding: 25px;
		font-size: 20px;
	}


	.nufc-modal__footer {
		min-height: 85px;
		padding: 13px;
	}


	.nufc-modal__nav {
		width: 38px;
		height: 38px;
		font-size: 18px;
	}


	.nufc-modal__nav--prev {
		left: 5px;
	}


	.nufc-modal__nav--next {
		right: 5px;
	}
}
