/*
Theme Name: Jane Giblin Theme
Author: Envelope Group
Version: 0.0
Site: Graham Leggat / envelopegroup.com.au
Brand: envelopegroup.com.au
*/

/* ----------------------------------------
	General
---------------------------------------- */

:root {
	--background-color: #fff7ee;
	--background-offset-color: #dcd4cb;
	--primary-color: #c91515;
	--secondary-color: #716764;
	--gold-color: #cc9911;
	--quaternary-color: #ccbbb5;
	--quinary-color: #000000;
	--senary-color: #ffffff;
	--septenary-color: #608496;
	--octonary-color: #778899;
	--universal-padding: 2rem;
}

@media (max-width: 700px) {
	:root {
		--universal-padding: 1rem;
	}
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	height: 100%;
	font-size: 16px;
}

body {
	font-family: "Roboto Condensed", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	margin: 0;
	padding: 0;
	background-color: var(--background-offset-color);
}

.container {
	max-width: 1600px;
	margin: 0 auto;
	position: relative;
	background-color: var(--background-color);
}

img {
	width: 100%;
	height: auto;
}

.blend-lighter {
	mix-blend-mode: plus-lighter;
}

.contain {
	padding: var(--universal-padding);
}

.push {
	margin-top: 5rem;
	margin-bottom: 5rem;
}

/* ----------------------------------------
	Fonts
---------------------------------------- */

.heading-font {
	font-family: "eidetic-neo", serif;
	font-weight: 400;
	font-style: normal;
}

.body-font {
	font-family: "Roboto Condensed", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
}

h1 {
	font-family: "Roboto Condensed", sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 2rem;
	margin: 1rem 0;
	max-width: 45ch;
	letter-spacing: -1px;
	color: var(--primary-color);
}

h2 {
	font-family: "Roboto Condensed", sans-serif;
	font-size: 1.8rem;
	line-height: 2.2rem;
	font-weight: 100;
	max-width: 45ch;
}

h3 {
	font-family: "Roboto Condensed", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-size: 1.5rem;
	font-style: normal;
}

h4 {
	font-family: "Roboto Condensed", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-size: 1.4rem;
	font-style: normal;
	text-transform: uppercase;
	margin: 0.5rem 0;
	letter-spacing: 1px;
}

h5 {
	font-family: "Roboto Condensed", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-size: 1rem;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 1px;
}

p {
	font-family: "Roboto Condensed", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-size: 1rem;
	line-height: 160%;
	text-wrap: balance;
	text-wrap: pretty;
	max-width: 45ch;
}

a {
	text-decoration: none;
	color: inherit;
}

.text-block a {
	font-size: 1.2rem;
	margin: 2rem 0;
	display: block;
	text-decoration: none;
	color: inherit;
	border-bottom: 3px solid transparent;
	border-image: linear-gradient(
		90deg,
		rgba(201, 21, 21, 1) 0%,
		rgba(204, 153, 17, 0) 100%
	);
	border-image-slice: 1;
}

.text-block a:hover {
	border-bottom: 3px solid transparent;
	border-image: linear-gradient(
		90deg,
		rgba(204, 153, 17, 1) 0%,
		rgba(201, 21, 21, 1) 100%
	);
	border-image-slice: 1;
	transition: 1.5s;
}

/* ----------------------------------------
	Menu
---------------------------------------- */

.menu {
	margin: 2rem 0;
}

.menu .menu-item {
	padding-bottom: 1rem;
	margin-bottom: 2rem;
}

.menu .menu-item h3 {
	margin: 0;
	padding: 0;
}

/* ----------------------------------------
	Sidebar
---------------------------------------- */
.scroll-bar {
	background-color: #f1e8df;
	width: 100px;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	padding-bottom: 2rem;
}

/* ----------------------------------------
	Progress Bar (Fixed elements)
---------------------------------------- */

.prog-contain {
	position: fixed;
	left: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	z-index: 999;
	background-color: #f1e8df;
}

.prog-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	background-color: #716764;
	height: 10px;
	width: 100%;
}

/* Progress background: */
progress::-webkit-progress-bar {
	background-color: #716764;
	width: 100%;
}
progress {
	background-color: #716764;
}

progress::-webkit-progress-value {
	background-color: #a32020 !important;
}
progress::-moz-progress-bar {
	background-color: #a32020 !important;
}
progress {
	color: #a32020;
}

button.auto-scroll {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background-color: black;
	color: white;
	padding: 1rem 2rem;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

/* ----------------------------------------
	Sections
---------------------------------------- */

.container {
	position: relative;
	width: 100%;
	height: 100%;
}

section.hero {
	height: 75vh;
	overflow: hidden;
}

section.hero .hero-inner {
	background-color: #ccbbb5;
	background-image: url(./assets/img/cover.jpg);
	background-blend-mode: multiply;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	color: black;
	width: 100%;
	height: 75vh;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	animation-name: hero-in;
	animation-duration: 3s;
	overflow: hidden;
	z-index: 2;
}

@keyframes hero-in {
	from {
		background-color: #000;
		transform: scale(1.25);
	}
	to {
		background-color: #ccbbb5;
		transform: scale(1);
	}
}

section.hero .hero-inner .signature {
	/* height: 300px; */
	width: 50vw;
	min-width: 400px;
	max-width: 650px;
	margin: 5rem;
	position: absolute;
	animation-name: sig-in;
	animation-duration: 1s;
}

@keyframes sig-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (max-width: 700px) {
	section.hero .hero-inner .signature {
		width: 90%;
		margin: 1rem;
	}
}

/* Page Hero (Reduced) */

.page-hero,
.page-hero .hero-inner {
	height: 10vh;
	max-height: 200px;
	background-position: bottom;
	animation: 0;
}

.page-title {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	border-bottom: 3px solid transparent;
	border-image: linear-gradient(
		90deg,
		rgba(201, 21, 21, 1) 0%,
		rgba(204, 153, 17, 0.5) 100%
	);
	border-image-slice: 1;
	margin-bottom: 2rem;
}

@media (max-width: 700px) {
	.page-title {
		grid-template-columns: 1fr;
	}
}

.page-title .logo {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding: var(--universal-padding) 0;
}

.page-title .logo img {
	height: 150px;
	width: auto;
}

.page-title .title {
	text-transform: uppercase;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 1rem;
}

.page-title .title * {
	margin: 0;
}

.page-header .page-intro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.page-header .page-intro .inner {
	grid-column: 2;
}

.page-header .page-intro .image {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

@media (max-width: 700px) {
	.page-header .page-intro {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.page-header {
		padding-bottom: 0;
	}

	.page-title .logo {
		justify-content: flex-end;
		padding: 0;
	}

	.page-title .logo img {
		height: 100px;
	}
}

/* Footer */

section.footer {
	justify-content: flex-end;
}

.footer,
.footer .hero-inner {
	max-height: 700px;
	animation: 0;
}

.meta-footer {
	position: relative;
	z-index: 9;
	padding: 2rem;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-end;
}

.meta-footer.sub-footer {
	background-color: var(--secondary-color);
	color: var(--senary-color);
}

.meta-footer h5 {
	margin: 0;
}

.meta-footer .wtc {
	color: var(--primary-color);
}

.copyright {
	text-transform: uppercase;
}

@media (max-width: 700px) {
	.meta-footer {
		flex-direction: column;
		justify-content: flex-end;
		align-items: flex-start;
	}

	.meta-footer h5 {
		margin: 0;
		margin-bottom: 0.5rem;
	}
}

section.general {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	position: relative;
	padding: 1rem;
}

section.general .gen-title {
	opacity: 0;
	animation-name: title-in;
	animation-delay: 1s;
	animation-duration: 2s;
	animation-fill-mode: forwards;
	border-bottom: 1px solid #000;
}

.gen-title h1 {
	color: #a32020;
	margin-bottom: 0;
}

@keyframes title-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

section.general .gen-body {
	padding: 5rem 0;
}

section.general .intro {
	padding: 5vh 0;
}

section.general .intro h1 {
	z-index: 1;
	text-wrap: balance;
	text-wrap: pretty;
}

section.general .intro::after {
	content: url("./assets/img/sig-sm.png");
	height: 100px;
	width: 200px;
	position: absolute;
	bottom: 0;
	right: 0;
	transform: translate(-50%, -50%);
	z-index: 0;
	mix-blend-mode: multiply;
	opacity: 0.5;
}

section.general .gen-body p {
	max-width: 59ch;
	line-height: 160%;
	font-size: 1.1rem;
	text-wrap: balance;
}

@media (max-width: 700px) {
	section.general {
		grid-template-columns: 1fr;
	}
}

/* Quote */

p.quote {
	position: relative;
}

p.quote::before {
	content: url("./assets/img/qm.svg");
	height: 50px;
	width: 30px;
	position: absolute;
	top: -2rem;
	left: 0;
}
p.quote {
	color: #c91515;
	font-style: italic;
}

p.quote span {
	font-weight: 600;
	font-style: normal;
	padding-right: 0.5rem;
}

p.quote-author {
	text-transform: uppercase;
	font-size: 0.9rem;
}

blockquote {
	margin: 5rem 0;
	padding: 0;
}

blockquote p {
	position: relative;
	font-size: 1.3rem;
}

blockquote p::before {
	content: url("./assets/img/qm.svg");
	height: 50px;
	width: 30px;
	position: absolute;
	top: -2rem;
	left: 0;
}

blockquote p {
	color: #c91515;
	font-style: italic;
}

section.general .left {
	margin: 1rem;
	position: relative;
}

section.general .left .left-img {
	mix-blend-mode: multiply;
	position: sticky;
	top: 0;
	margin-top: 10vh;
	padding: 1rem;
}

.caption {
	color: #608496;
	max-width: 30ch;
	line-height: 140%;
}

.caption b {
	text-transform: uppercase;
}

.caption p {
	margin: 0;
	padding: 0;
}

section.full-bl {
	z-index: 10;
	height: 100vh;
	overflow: hidden;
	position: relative;
	background-color: #ccbbb5;
}

/* ----------------------------------------
	Project Index
---------------------------------------- */

.project-index .item {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.project-index a:nth-of-type(even) .item-inner {
	justify-content: flex-end;
	border-image: linear-gradient(
		-90deg,
		rgba(201, 21, 21, 1) 0%,
		rgba(204, 153, 17, 0.5) 70%,
		rgba(204, 153, 17, 0) 100%
	);
	border-image-slice: 1;
}

.project-index a:nth-of-type(even) .item-meta {
	align-self: flex-end;
}

.project-index .item .item-inner {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	border-bottom: 2px solid transparent;
	border-image: linear-gradient(
		90deg,
		rgba(201, 21, 21, 1) 0%,
		rgba(204, 153, 17, 0.5) 70%,
		rgba(204, 153, 17, 0) 100%
	);
	border-image-slice: 1;
}

.project-index .item .item-inner .image {
	overflow: hidden;
}

.project-index .item:hover .item-inner .image img {
	transition: 1.5s;
	transform: scale(1.05);
}

.project-index .item .item-inner .image,
.project-index .item .item-meta {
	width: 600px;
	max-width: 100%;
	height: auto;
}

.project-index .item .item-inner .image img {
	height: 100%;
	width: 100%;
	transition: 1.5s;
	transform: scale(1);
}

.project-index .item .item-meta {
	padding: var(--universal-padding) 0;
}

.project-index .item .item-meta * {
	text-transform: uppercase;
	margin: 0;
	padding: 0;
}

@media (max-width: 700px) {
	.project-index .item .item-meta {
		padding-top: 1rem;
		padding-bottom: 2rem;
	}
}

/* ----------------------------------------
	Zoom Out Section
---------------------------------------- */

section.full-bl-single {
	z-index: 10;
	height: 100vh;
	overflow: hidden;
	position: relative;
	background-color: #000000;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

section.full-bl-single img {
	height: auto;
	width: auto;
	object-position: top;
}

section.full-bl-single.zoom-none {
	height: auto;
}

/* ----------------------------------------
	Special Float section
---------------------------------------- */

section.full-bl-float {
	height: 100vh;
	overflow: hidden;
	position: relative;
	mix-blend-mode: multiply;
	display: flex;
}

section.full-bl-float .bgimg {
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: top;
}

section.full-bl-float .full-bl--overlay {
	height: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	mix-blend-mode: multiply;
	opacity: 0.5;
}

section.full-bl-float .full-bl--overlay img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
}

/* Overlay items */

.floaters {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
}

floaters > * {
	width: 50vw;
}

.full-bl-float > .floaters:nth-child(odd) .full-bl--item {
	align-self: flex-end;
	padding: 3rem;
}

.multiply {
	mix-blend-mode: multiply;
}

/* .full-bl--grid {
	height: 100vh;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.full-bl--grid .full-bl--item {
	width: 100%;
}

.full-bl--grid .full-bl--item img {
	width: 100%;
	height: auto;
	max-height: 50vh;
} */

/* ----------------------------------------
	2x Image sets
---------------------------------------- */

.full-bl--grid #willis-kids-1 {
	mix-blend-mode: multiply;
	transform: translate(25%, 25%);
}

.full-bl--grid #on-rock-1 {
	grid-row: 2;
	grid-column: 2;
	transform: translate(-25%, -25%);
	mix-blend-mode: multiply;
}

/* ----------------------------------------
	Overlay Nav
---------------------------------------- */

.burger-nav {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1000;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.burger-nav span {
	margin-right: 1rem;
	color: var(--primary-color);
}

.burger-icon .line {
	width: 30px;
	height: 3px;
	background-color: var(--primary-color);
	margin: 5px 0;
}

.overlay-nav {
	height: 100%;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.9);
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: flex-start;
}

.overlay-content {
	width: 100%;
}

.overlay-content a {
	padding: 15px;
	font-size: 1.5rem;
	text-transform: uppercase;
	color: white;
	transition: 1s;
	text-decoration: none;
	display: block;
	border-bottom: 1px solid transparent;
	border-image: linear-gradient(
		90deg,
		rgba(201, 21, 21, 1) 0%,
		rgba(204, 153, 17, 0.5) 70%,
		rgba(204, 153, 17, 0) 100%
	);
	border-image-slice: 1;
}

.overlay-content a:hover {
	color: var(--gold-color);
	transition: 1s;
}

/* ----------------------------------------
	Videos
---------------------------------------- */

.video {
	cursor: pointer;
	position: relative;
}

.video .placeholder {
	width: 100%;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9; /* Standard video aspect ratio */
}

.video .placeholder .placeholder-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

.video .placeholder .play-btn {
	width: 100px;
	height: 100px;
	cursor: pointer;
	transition: transform 0.3s;
	position: absolute;
	bottom: 50%;
	right: 50%;
	transform: translate(50%, 50%);
	opacity: 0.75;
	z-index: 1;
}

.video .placeholder:hover .play-btn {
	opacity: 1;
}

#videoPlayer {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: black;
}

.image-cascade {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5rem;
}

.float {
	padding: 5rem;
	/* padding-bottom: 60vh; */
}

.image-cascade .image:nth-child(even) {
	padding-top: clamp(0px, 600px, 40vh);
}

.image-cascade .image img {
	padding-bottom: 1rem;
}

@media (max-width: 800px) {
	.image-cascade {
		grid-template-columns: 1fr;
	}

	.image-cascade .image:nth-child(even) {
		padding-top: 0;
	}
}

/* ----------------------------------------
	Essay Section
---------------------------------------- */

.page-col .essay {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.page-col .essay .inner {
	grid-column: 2;
}

.page-col .essay .image {
	position: sticky;
	top: 0;
	align-self: start;
	height: fit-content;
}

.page-col .essay .image .left {
	padding-top: 1rem;
}

.image.blend {
	mix-blend-mode: multiply;
}

.page-col .essay .links {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.page-col .essay .links a {
	margin: 1rem 0;
}
.page-col .essay .links a:hover {
	border-bottom: 3px solid transparent;
	border-image: linear-gradient(
		90deg,
		rgba(204, 153, 17, 1) 0%,
		rgba(201, 21, 21, 1) 100%
	);
	border-image-slice: 1;
	transition: 1.5s;
}

@media (max-width: 700px) {
	.page-col .essay {
		display: block;
	}

	.page-col .essay .image {
		position: relative;
		height: auto;
	}
}

/* ----------------------------------------
	Poem Section
---------------------------------------- */

.poem {
	background-color: #f3f3f1;
	padding: 3rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-family: "eidetic-neo", serif;
	font-weight: 100;
	font-style: normal;
}

.poem .caption {
	font-size: 1.2rem;
	text-transform: uppercase;
	margin-top: 2rem;
	margin-bottom: 1rem;
	text-align: center;
	max-width: 100%;
}

.poem .image {
	padding: 5rem;
}

.poem .contain .inner {
	max-width: 45ch;
	margin: 0 auto;
}
.poem .contain .inner * {
	font-size: 1.4rem;
}

.poem .contain .inner *:not(h5):not(h5 span) {
	font-family: "eidetic-neo", serif;
	font-weight: 100;
	font-style: normal;
	color: #6d6d70;
}

.poem .contain .inner p {
	max-width: 100%;
}

/* ----------------------------------------
	Links
---------------------------------------- */

.links-list {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 0;
	margin: 0;
	list-style: none;
}

.links-list li {
	margin: 1rem 0;
	border-bottom: 1px solid var(--octonary-color);
	width: 100%;
}

.links-list li a {
	padding: 0.5rem 0;
	display: block;
	text-decoration: none;
	color: inherit;
	font-size: 1.2rem;
}

/* ----------------------------------------
	Homepage Menu
---------------------------------------- */

section.homepage-menu .menu-item {
	margin-bottom: 2rem;
	position: relative;
}

section.homepage-menu .menu-item .image {
	height: 40vh;
	min-height: 650px;
	overflow: hidden;
}

section.homepage-menu .menu-item .image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: top left;
	mix-blend-mode: luminosity;
	transition: 1.5s;
	opacity: 0.85;
}

section.homepage-menu .menu-item:hover .image img {
	mix-blend-mode: normal;
	transition: 1.5s;
	opacity: 1;
}

section.homepage-menu .menu-item .info-container {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	right: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	text-align: center;
	padding: 1rem 0;
	border-bottom: 5px solid transparent;
	border-image: linear-gradient(
		90deg,
		rgba(201, 21, 21, 1) 0%,
		rgba(204, 153, 17, 0.5) 100%
	);
	border-image-slice: 1;
}

section.homepage-menu .menu-item .info-container .title {
	font-weight: 100;
	font-style: normal;
	font-size: 3rem;
	text-transform: uppercase;
	letter-spacing: -1px;
	color: var(--background-color);
}

@media (max-width: 700px) {
	section.homepage-menu .menu-item .info-container {
		left: 1rem;
	}

	section.homepage-menu .menu-item .info-container .title {
		font-size: 2rem;
	}
}

/* ----------------------------------------
	Related Projects
---------------------------------------- */

.related-projects {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	border-bottom: 2px solid transparent;
	border-image: linear-gradient(
		90deg,
		rgba(201, 21, 21, 1) 0%,
		rgba(204, 153, 17, 0.5) 100%
	);
	border-image-slice: 1;
	margin-bottom: 5rem;
	background-color: #f7eee4;
}
.related-projects .item {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.related-projects .item .item-meta {
	padding-top: 1rem;
}

.related-projects .item .item-meta * {
	padding: 0;
	margin: 0;
}

.related-projects .return-index {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	height: 100%;
	color: #81684e;
}

.related-projects .return-index h2 {
	margin: 0;
}

@media (max-width: 700px) {
	.related-projects {
		grid-template-columns: 1fr;
	}

	.related-projects .item .item-meta {
		border-bottom: 1px solid var(--primary-color);
	}

	.related-projects .return-index {
		grid-row: 2;
	}
}

/* ----------------------------------------
	Lightbox Styles
---------------------------------------- */

/* Hide default elements */
.sl-wrapper .sl-counter,
.sl-wrapper .sl-image .sl-caption,
.sl-caption-bottom {
	display: none;
}

.sl-image img {
	transform: translate(0, 0) !important;
}
/* Main caption bar styling */
.new-caption {
	position: fixed !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	background: rgba(0, 0, 0, 0.9) !important;
	color: #fff !important;
	padding: 1.5rem 2rem !important;
	z-index: 10060 !important;
	display: flex !important;
	align-items: center !important;
	gap: 1rem !important;
	width: 100% !important;
}

/* Show and style the counter */
.sl-wrapper .sl-counter {
	display: block !important;
	position: static !important;
	color: rgba(255, 255, 255, 0.7) !important;
	font-family: "Roboto Condensed", sans-serif !important;
	font-size: 0.9rem !important;
	min-width: 4rem !important;
}

/* Caption text styling */
.new-caption b {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
	color: var(--background-color);
}

/* Lightbox overlay and controls */
.sl-overlay {
	background: rgba(0, 0, 0, 0.98) !important;
}

.sl-wrapper .sl-navigation button {
	color: #fff !important;
}

.sl-wrapper .sl-close {
	color: var(--primary-color);
	left: 1rem;
}

/* Scroll prevention */
.sl-lightbox-open {
	overflow: hidden !important;
	margin-right: 17px; /* Compensate for scrollbar disappearance */
}

.sl-lightbox-open .sl-wrapper {
	overflow-y: hidden !important;
}

.sl-wrapper .sl-navigation button.sl-next {
	font-size: 2rem !important;
	right: 1rem !important;
}

.sl-wrapper .sl-navigation button.sl-prev {
	font-size: 2rem !important;
	left: 0.5rem !important;
}

.sl-wrapper {
	z-index: 1040;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	position: fixed;
}

.sl-overlay {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.98) !important;
	z-index: 1035;
}

.sl-wrapper .sl-image {
	position: fixed;
}

/* Custom Close button to circumvent plugin bug */
.lightbox-close {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 9999;
	color: var(--background-color);
	cursor: pointer;
	display: none;
}
