/***********************************************************************
*  Theme + Base
**********************************************************************/
:root {
	--bg: #000e2b;
	--cover-bg: #000e2b;
	--card-bg: #fff;
	--accent: darkred;
	--shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);

	--card-pad: 15px;
	--card-margin: 20px;

	--bp-nav: 880px;
	--bp-layout: 1125px;
}

@font-face {
	font-family: "CustomFont";
	src: url("../font/CustomFont.woff2") format("woff2"),
		url("../font/CustomFont.woff") format("woff");
	font-weight: normal;
	font-style: normal;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	font-family: "CustomFont", roboto, sans-serif;
	line-height: 1.7em;
	letter-spacing: 0.1em;
}

/* Base heading look */
h1,
h2,
h3 {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 8px;

	font-weight: 900;
	margin: 0;
}
h1 {
	letter-spacing: 0.15em;
}
h2 {
	letter-spacing: 0.12em;
}
h3 {
	letter-spacing: 0.1em;
}

/***********************************************************************
*  Card shell (used everywhere)
**********************************************************************/
.default-div-wrapper,
.img-text-div-wrapper,
.lrg-img-text-div-wrapper,
.two-text-columns-wrapper,
.flex-accordion-wrapper {
	background: var(--card-bg);
	padding: var(--card-pad);
	margin: var(--card-margin);
	box-shadow: var(--shadow);
}

/***********************************************************************
*  Cover
**********************************************************************/
.container {
	margin-top: 90px;
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--cover-bg);
}

.cover-img {
	max-height: 100%;
	max-width: 90%;
}

@media (max-width: 880px) {
	.cover-img {
		margin-top: 45px;
	}

	.container {
		margin-top: 55px;
	}
}

/***********************************************************************
*  Default Div
**********************************************************************/
.default-div-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	text-align: left;
}

.default-div-wrapper > p {
	text-align: left;
	padding: 5px;
	margin: 5px;
}

.default-div-wrapper > h1 {
	padding-bottom: 0;
	text-align: center;
}

/***********************************************************************
*  Small image / big text  (img-text-div-wrapper)
**********************************************************************/
.img-text-div-wrapper {
	display: grid;
	gap: 1px;
}

@media (min-width: 1125px) {
	.img-text-div-wrapper {
		grid-template-columns: 1fr 2fr;
	}
	/* When reversed: text big, image small */
	.img-text-div-wrapper.reverse {
		grid-template-columns: 2fr 1fr;
	}
}

@media (max-width: 1124.98px) {
	.img-text-div-wrapper {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

/***********************************************************************
*  50/50 split image + text (lrg-img-text-div-wrapper)
**********************************************************************/
.lrg-img-text-div-wrapper {
	display: grid;
	gap: 1px;
	text-align: left;
}

@media (min-width: 1125px) {
	.lrg-img-text-div-wrapper {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 1124.98px) {
	.lrg-img-text-div-wrapper {
		grid-template-columns: 1fr;
	}
}

/***********************************************************************
*  Text columns (inner padding)
**********************************************************************/
.img-text-div-text,
.lrg-img-text-div-text {
	padding: 20px;
	margin: 20px;
	text-align: left;
}

@media (max-width: 1124.98px) {
	.lrg-img-text-div-text {
		margin: 12px;
	}
}

/***********************************************************************
*  Polaroid frames (APPLIES TO BOTH WRAPPERS)
**********************************************************************/
.img-text-div-img,
.lrg-img-text-div-img {
	background: #fff;
	padding: 14px;
	margin: 20px;
	box-shadow: var(--shadow);
	border-radius: 2px;
	text-align: center;
	align-self: start;
}

.lrg-img-text-div-img {
	align-self: center;
}

.img-text-div-img > img,
.lrg-img-text-div-img > img {
	display: block;
	width: 100%;
	height: auto;
	padding: 0;
	margin: 0;
	border-radius: 2px;
	object-fit: cover;
}

.img-text-div-img > p,
.lrg-img-text-div-img > p {
	margin: 10px 0 0;
	padding: 0;
	text-align: center;
	color: #111;
}

/* Social mini icons */
.sml > a > img {
	width: 32px;
	height: 42px;
	padding: 10px 0 0;
	margin: 0;
}
.sml > a {
	padding-bottom: 32px;
}

/***********************************************************************
*  Two text columns
**********************************************************************/
.two-text-columns-wrapper {
	display: grid;
	gap: 1px;
	text-align: left;
	position: relative;
}

@media (min-width: 1125px) {
	.two-text-columns-wrapper {
		grid-template-columns: 1fr 1fr;
	}

	.two-text-columns-text-left {
		padding: 20px;
		margin: 20px;
		margin-right: 0;
	}

	.two-text-columns-text-right {
		padding: 20px;
		margin: 20px;
		margin-left: 0;
	}
}

@media (max-width: 1124.98px) {
	.two-text-columns-wrapper {
		grid-template-columns: 1fr;
	}

	.two-text-columns-text-left {
		padding: 20px;
		margin: 20px;
		margin-bottom: 0;
	}

	.two-text-columns-text-right {
		padding: 20px;
		margin: 20px;
		margin-top: 0;
	}
}

/***********************************************************************
*  Separators that follow image position
*  (uses your JS classes: .reverse and .img-left)
**********************************************************************/
/* imgText desktop: default border-left; reversed border-right */
@media (min-width: 1125px) {
	.img-text-div-text {
		border-left: 2px solid var(--accent);
	}
	.img-text-div-wrapper.reverse .img-text-div-text {
		border-left: none;
		border-right: 2px solid var(--accent);
	}
}

/* imgText mobile: separator becomes top/bottom depending on order */
@media (max-width: 1124.98px) {
	.img-text-div-text {
		border-left: none;
		border-right: none;
	}

	.img-text-div-wrapper:not(.reverse) .img-text-div-text {
		border-top: 2px solid var(--accent);
		border-bottom: none;
	}

	.img-text-div-wrapper.reverse .img-text-div-text {
		border-top: none;
		border-bottom: 2px solid var(--accent);
	}
}

/* split50 + right mobile: separator becomes top/bottom depending on order */
@media (max-width: 1124.98px) {
	.lrg-img-text-div-text {
		border-left: none;
		border-right: none;
	}

	.lrg-img-text-div-wrapper:not(.img-left) .lrg-img-text-div-text,
	.right:not(.img-left) .lrg-img-text-div-text {
		border-bottom: 2px solid var(--accent);
		border-top: none;
	}

	.lrg-img-text-div-wrapper.img-left .lrg-img-text-div-text,
	.right.img-left .lrg-img-text-div-text {
		border-top: 2px solid var(--accent);
		border-bottom: none;
	}
}

/***********************************************************************
*  True centre divider ONLY for true 50/50 layouts
**********************************************************************/
.lrg-img-text-div-wrapper {
	position: relative;
}

.lrg-img-text-div-wrapper::before,
.two-text-columns-wrapper::before {
	content: "";
	position: absolute;
	top: 20px;
	bottom: 20px;
	left: 50%;
	width: 2px;
	transform: translateX(-1px);
	background: var(--accent);
	pointer-events: none;
}

@media (max-width: 1124.98px) {
	.lrg-img-text-div-wrapper::before,
	.two-text-columns-wrapper::before {
		display: none;
	}
}

/***********************************************************************
*  Hover-card overlay inside polaroid frames (optional)
**********************************************************************/
.img-text-div-img .content,
.lrg-img-text-div-img .content {
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 2px;
}

.img-text-div-img .content-image,
.lrg-img-text-div-img .content-image {
	width: 100%;
	height: auto;
}

/* Required for overlays to appear above images */
.img-text-div-img .content,
.lrg-img-text-div-img .content {
	position: relative;
}

.img-text-div-img .content-overlay,
.lrg-img-text-div-img .content-overlay {
	z-index: 1;
}

.img-text-div-img .content-details,
.lrg-img-text-div-img .content-details {
	z-index: 2;
}

.img-text-div-img .content-image,
.lrg-img-text-div-img .content-image {
	position: relative;
	z-index: 0;
}

/***********************************************************************
*  Footer
**********************************************************************/
footer {
	text-align: center;
	background-color: var(--card-bg);
	padding: 20px;
	margin: 20px;
}

footer ol li {
	list-style: none;
	margin-bottom: 10px;
}

footer ol {
	padding-left: 0;
	margin: 0;
}

footer ol li img {
	padding: 0 5px;
	width: 35px;
}
footer a {
	text-decoration-line: none;
}

/* Polaroid contexts: let images size naturally (fixes “disappearing” images) */
.img-text-div-img .content-image,
.lrg-img-text-div-img .content-image {
	height: auto;
	object-fit: contain;
}

/* Optional: keep the polaroid content wrapper from collapsing oddly */
.img-text-div-img .content,
.lrg-img-text-div-img .content {
	height: auto;
}
