/*******************************************************************************************************************/
/**************************************** CSS for markgarlick.com 2025 *********************************************/
/*******************************************************************************************************************/

:root {
	/* Color variables are defined in variables.php */

	/* Layout */
	--max-width: 1600px;
	--edge-pad: 50px;
	--head-height: 164px;

	/* Scaling */
	--scale: 0.85;

	/* Animation Delay */
	--delay: 3.2s;

	/* Typography */
	--h1-size: 36pt;
	--h2-scale: 0.4;
	--h3-scale: 0.9;
	--body-text: 12.2pt;

	/* Font families */
	--GS: "GillSans", sans-serif;
	--GSC: "GillSans-Condensed", sans-serif;
	--FP: "FalsePositiveBRK", sans-serif;
	--FL: "FuturaLight", sans-serif;
	--FM: "FuturaMedium", sans-serif;

	/* Common transitions */
	--transition-standard: all 0.3s ease;
}

/* Font faces */
@font-face {
	font-family: "GillSans";
	src: url("/fonts/GillSans.woff2") format("woff2"),
		url("/fonts/GillSans.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "GillSans-Condensed";
	src: url("/fonts/GillSans-Condensed.woff2") format("woff2"),
		url("/fonts/GillSans-Condensed.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

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

@font-face {
	font-family: "FuturaLight";
	src: url("/fonts/Futura-Light.woff2") format("woff2"),
		url("/fonts/Futura-Light.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "FuturaMedium";
	src: url("/fonts/Futura-Medium.woff2") format("woff2"),
		url("/fonts/Futura-Medium.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.FL {
	font-family: var(--FL);
}

.FM {
	font-family: var(--FM);
}

.FP {
	font-family: var(--FP);
}

.GS {
	font-family: var(--GS);
}

.GSC {
	font-family: var(--GSC);
}

/* Base styles */
html,
body {
	font-size: var(--body-text);
	height: 100%;
	margin: 0;
	background-color: var(--outside);
	color: var(--text);
	font-family: var(--GS);
	line-height: 16pt;
}

body {
	overflow-x: hidden;
}

.blue {
	color: var(--accent1);
}

.dark-blue {
	color: var(--accent2);
}

/* Typography */
h1 {
	font-family: var(--FP);
	color: var(--accent2);
	font-weight: normal;
	transition: var(--transition-standard);
	padding: 0;
	margin: 0;
	font-size: var(--h1-size);
	text-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
}

h2,
h3 {
	font-family: var(--FM);
	color: var(--accent2);
	font-weight: normal;
	transition: var(--transition-standard);
	margin: 0;
	padding: 0;
}

h2 {
	font-size: calc(var(--h1-size) * var(--h2-scale));
	padding-block-end: 15px;
}

h2.unpadded {
	padding: 0;
}

h2.padded {
	padding-block: 25px 15px;
}

h3 {
	font-size: calc(var(--h1-size) * var(--h2-scale) * var(--h3-scale));
}

p {
	padding: 0;
	margin: 0 0 5px 0;
	/*
	text-align: justify;
	text-justify: inter-character;
	*/
}

span.match {
	color: var(--accent2);
}

p:last-of-type {
	margin-block-end: 25px;
}

p+p {
	text-indent: 2em;
}

a {
	text-decoration: none;
	color: var(--accent2);
	transition: var(--transition-standard);
}

a:hover {
	color: var(--accent1);
}

/* Horizontal rules */
hr.orange {
	border: none;
	border-block-start: 1px solid rgba(var(--accent1-rgba), 0.3);
}

hr.blue {
	border: none;
	border-block-start: 1px solid rgba(var(--accent2-rgba), 0.3);
	margin: 0 0 20px calc(var(--edge-pad) * -1);
}

/* Tables */
table {
	border-collapse: collapse;
	color: white;
}

table td {
	padding: 5px;
}

.table-data {
	background-color: var(--bg-alt);
	color: var(--text);
	border: 2pt solid var(--bg);
	text-align: center;
}

.table-heads {
	text-align: center;
	color: white;
	border:2pt solid var(--bg);
	border-inline-start: 0;
	background-color: var(--accent2);
}

/* Images */
.image {
	height: auto;
	width: 100%;
	margin-block-start: 15px;
}

.random-image {
	border-radius: 6px;
	display: block;
	width: 100%;
	height: auto;
	border: 1pt solid var(--accent2);
}

.portraitL {
	border-radius: 6px;
	float: left;
	height: auto;
	width: 35%;
	margin: 5px 30px 20px 0;
	border: 1pt solid var(--accent2);
}

.portraitR {
	border-radius: 6px;
	float: right;
	height: auto;
	width: 40%;
	margin: 0 0 20px 30px;
	border: 1pt solid var(--accent2);
}

/* Client styles */
.client_identity {
	margin: 5px 0 15px 0;
	font-style: italic;
	color: var(--accent2);
}

.testimonials {
	block-size: 30px;
	inline-size: 30px;
	display: block;
	float: left;
	margin: 3px 15px 0 0;
	border: none;
}

.clientList {
	columns: 2;
}

/* Lists */
ul {
	list-style: none;
	padding: 0 40px 0 0;
}

li {
	padding-inline-start: 20px;
	position: relative;
	padding-block-end: 20px;
}

li::before {
	content: "\25B8";
	/* Fixed character encoding - right-pointing triangle */
	position: absolute;
	inset-inline-start: 0;
	color: var(--accent2);
	font-size: 12px;
	font-weight: bold;
}

/* Fancybox overrides */
.fancybox-caption__body {
	color: white;
}

.fancybox-content {
	border: 2px solid var(--accent2);
}

/*******************************************************************************************************************/
/**************************************************** LAYOUT *******************************************************/
/*******************************************************************************************************************/

.page-wrapper {
	display: flex;
	flex-direction: column;
	min-block-size: 100vh;
	max-inline-size: var(--max-width);
	margin: 0 auto;
	background-color: var(--bg);
	overflow: hidden;
	position: relative;
}

.page-content {
	position: relative;
	left: 0;
	transition: var(--transition-standard);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.page-content.nav-open {
	left: 230px;
}

.page-content main {
	flex: 1;
}

.layout-container {
	display: flex;
	flex: 1;
	flex-direction: row;
	position: relative;
	transition: var(--transition-standard);
}

main {
	flex: 1;
	display: flex;
	flex-direction: column;
	z-index: 1;
}

.content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.upper {
	/* flex 1 works for view.php, but flex none works for other pages. Can't have it both ways FFS. Added extra CSS which appears in the head for index.php */
	flex: 1;
	display: flex;
}

.primary {
	display: flex;
	flex: 7;
	flex-direction: column;
	padding: var(--edge-pad);
	padding-block-end: 0;
	background-color: var(--bg);
	color: var(--text);
}

.secondary {
	flex: 3;
	background-color: var(--bg-alt);
	position: relative;
	overflow: hidden;
	transition: var(--transition-standard);
	display: flex;
	flex-direction: column;
	padding: var(--edge-pad);
	padding-block-end: 0;
}

.secondary:empty {
	display: none;
}

.tertiary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	flex: 7;
	color: var(--text);
}

.tertiary .col {
	padding: calc(var(--edge-pad) / 2) var(--edge-pad);
}

.tertiary .col:nth-of-type(2) {
	background-color: var(--bg-alt);
}

.tertiary:empty {
	display: none;
}

.flow-content {
	/* Needed for float behavior on biography page */
}

/*******************************************************************************************************************/
/**************************************************** HEADER *******************************************************/
/*******************************************************************************************************************/

header {
	max-inline-size: var(--max-width);
	block-size: var(--head-height);
	background-image: url(/img/other/banner.jpg);
	background-size: cover;
	background-position: left;
	position: relative;
	display: flex;
	flex-direction: column;
	z-index: 1;
	flex-shrink: 0;
}

.header-top {
	margin: 0;
	block-size: 120px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding-inline: var(--edge-pad);
}

.header-bottom {
	block-size: 44px;
	background-color: rgba(125, 193, 235, 0.25);
	display: flex;
	align-items: center;
	padding-inline: var(--edge-pad);
}

.header-bottom h1 {
	margin: 0 0 3px 0;
	color: white;
}

.logo {
	position: absolute;
	inset-inline-end: var(--edge-pad);
	inset-block-start: 0;
	z-index: 3;
	block-size: var(--head-height);
	inline-size: calc(var(--head-height) * 1.5);
	background: url(/img/other/logo.png) center / contain no-repeat;
	filter: drop-shadow(0 0 7px rgba(0, 0, 0, 0.5));
}

/*******************************************************************************************************************/
/**************************************************** FOOTER *******************************************************/
/*******************************************************************************************************************/

footer {
	padding: calc(var(--edge-pad) / 5) var(--edge-pad);
	color: white;
	background: url(/img/other/bg-dark.jpg);
	background: var(--bg-alt2);
	z-index: 1;
	font-size: calc(var(--body-text) * 0.8);
	line-height: 12pt;
}

footer a {
	color: var(--text-alt);
}

footer a:hover {
	color: var(--accent1);
}

.footer-left {
	float: left;
	z-index: 2;
}

.footer-right {
	float: right;
	z-index: 2;
}

/*******************************************************************************************************************/
/**************************************************** FORM *********************************************************/
/*******************************************************************************************************************/

form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

input,
textarea {
	font-family: var(--GS);
	font-size: 11pt;
	color: var(--text-alt);
	border-radius: 10px;
	padding: 10px;
	background-color: var(--bg-alt);
	color: var(--text);
	border: 0;
	transition: var(--transition-standard);
}

input {
	flex: 1 1 30%;
	height: 20px;
}

input[name="username"],
input[name="password"],
input[name="confirm_password"],
input[name="hash"] {
	inline-size: 400px;
}

textarea {
	flex: 1 1 100%;
	block-size: 210px;
	resize: vertical;
	font-family: var(--GS);
}

textarea::-webkit-resizer {
	background: var(--accent2);
	border-radius: 3px;
}

input:focus,
textarea:focus {
	outline: none;
	background-color: var(--formBG);
}

input::placeholder,
textarea::placeholder {
	color: var(--text);
	opacity: 1;
}

.error_message {
	border-image: none;
	border-style: solid;
	border-width: 1px 1px 1px 5px;
	color: red;
	line-height: 18px;
	margin-block-end: 15px;
	padding: 15px 40px 15px 18px;
	position: relative;
	float: none;
	inline-size: auto;
}

.button {
	border-radius: 6px;
	font-family: var(--FM);
	font-weight: bold;
	block-size: 37px;
	background-color: var(--accent2);
	border: none;
	color: white;
	text-align: center;
	font-size: 15px;
	padding: 4px 15px 8px 15px;
	inline-size: auto;
	transition: var(--transition-standard);
	cursor: pointer;
	margin: 0;
	flex: 0 0 auto;
	align-self: flex-start;
	margin-block-start: 5px;
}

.button span {
	cursor: pointer;
	display: inline-block;
	position: relative;
	transition: var(--transition-standard);
}

.button span::after {
	content: "\00bb";
	position: absolute;
	opacity: 0;
	inset-block-start: 0;
	inset-inline-end: -20px;
	transition: var(--transition-standard);
}

.button:hover span {
	padding-inline-end: 15px;
}

.button:hover span::after {
	opacity: 1;
	inset-inline-end: 0;
}

.button:hover {
	background-color: var(--accent1);
}

/*******************************************************************************************************************/
/************************************************* NAVIGATION ******************************************************/
/*******************************************************************************************************************/

.logo-container {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-bottom: 95px;
}

.logo-nav {
	display: block;
	z-index: 30;
	block-size: 80px;
	width: 80px;
	background: url(/img/other/logo.png) center / contain no-repeat;
}

.logo-nav:hover {
	animation: pulse-scale 1s ease-in-out infinite;
}

.sidenav form {
	position: relative;
}

.sidenav {
	text-align: center;
	padding-top: 20px;
	height: 100%;
	width: 230px;
	position: absolute;
	z-index: 1000;
	top: 0;
	left: -250px;
	background-color: var(--menu-bg);
	overflow-x: hidden;
	transition: var(--transition-standard);
	color: white;
}

.sidenav a,
.menuitem {
	left: 4px;
	padding: 8px 0;
	text-decoration: none;
	color: var(--text-alt);
	display: block;
	transition: var(--transition-standard);
	text-align: center;
	width: 100%;
}

.menuitem {
	position: relative;
}

.menuitem:hover {
	background-color: var(--accent2);
	color: white;
}

.menuitem::after {
	content: "\00bb";
	position: relative;
	opacity: 0;
	left: 60px;
	bottom: 1px;
	transition: var(--transition-standard);
}

.menuitem:hover::after {
	opacity: 1;
	left: 15px;
}

.parent a,
.parent {
	color: white !important;
	cursor: default;
}

.parent::after {
	content: "\00bb";
	position: relative;
	left: 10px;
	bottom: 1px;
	color: white;
	cursor: default;
}

.menu-header {
	padding: 8px 0;
	text-decoration: none;
	color: var(--accent2);
	display: block;
	font-weight: bold;
	text-align: center;
	width: 100%;
}

.menu-spacer {
	height: 20px;
}

.login-container {
	width: 100%;
	padding: 10px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: var(--transition-standard);
}

.login-container a {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.login-username {
	color: var(--accent2);
	font-size: 10pt;
	text-align: center;
	width: 100%;
	padding: 5px 0;
	display: block;
}

.login,
.logout {
	display: inline-block;
	width: 42px;
	height: 42px;
	margin: 0 auto;
	cursor: pointer;
	position: absolute;
	top: 10px;
	z-index: 999;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border-radius: 6px;
	transition: var(--transition-standard);
	left: calc(var(--edge-pad) + 50px);}

.login {
	background: url(/img/other/loginout.png) no-repeat 0 0;
}

.logout {
	background: url(/img/other/loginout.png) no-repeat -42px 0;
}

.login:hover,
.logout:hover
{
	animation: pulse-scale 1s ease-in-out infinite;
}

/* Animations */
@keyframes pulse-colour {

	0%,
	100% {
		color: white;
	}

	50% {
		color: var(--accent1);
	}
}

@keyframes pulse-scale {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

.sidenav .closebtn {
	position: absolute;
	top: 0;
	font-size: 36px;
}

.sidenav.nav-open {
	left: 0;
}

.searchbox-menu {
	position: relative;
	width: 175px !important;
	max-width: 175px;
	height: 10px;
	margin: 0 auto;
	border-radius: 10px;
	font-size: 14px;
	text-align: center;
	padding-bottom: 13px;
	display: block;
	outline: none;
	background-color: var(--formBG);
}

.searchbox-menu-button {
	position: absolute;
	top: 0;
	right: 17px;
	border: none;
	cursor: pointer;
	padding: 5px;
	background: url(/img/other/search.png) no-repeat;
	width: 36px;
	height: 36px;
	scale: 0.9;
	filter: brightness(100%);
	transition: var(--transition-standard);
}

.searchbox-menu-button:hover {
	filter: brightness(300%);
	scale: 1;
}

.menu-toggle {
	font-size: 30px;
	cursor: pointer;
	padding: 10px 10px;
	position: absolute;
	top: 10px;
	left: var(--edge-pad);
	z-index: 999;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border-radius: 6px;
	transition: var(--transition-standard);
}

.menu-toggle:hover {
	animation: pulse-scale 1s ease-in-out infinite;
}

.menu-toggle::before {
	content: "☰";
	transition: var(--transition-standard);
	display: inline-block;
}

.menu-toggle.open::before {
	content: "✕";
}

.page-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 998;
	opacity: 0;
	visibility: hidden;
	background-color: rgba(0, 0, 0, 0.5);
	transition: var(--transition-standard);
}

.page-overlay.active {
	opacity: 1;
	visibility: visible;
}

.social-icons-container {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 30px);
	gap: 10px;
	justify-content: center;
	padding: 15px 0;
	margin-left: -4px;
}

.social-icons-container a {
	display: block;
	width: 30px;
	height: 30px;
	line-height: 0;
}

.social-bs,
.social-vi,
.social-as,
.social-li,
.social-rb,
.social-yt {
	inline-size: 40px;
	block-size: 40px;
	display: inline-block;
	transition: var(--transition-standard);
	background-image: url(/img/other/socials2.png);
	opacity: 1;
}

.social-bs:hover,
.social-vi:hover,
.social-as:hover,
.social-li:hover,
.social-rb:hover,
.social-yt:hover {
	scale: 1.2;
	opacity: 1;
}

.social-bs {
	background-position: 0 0;
}

.social-vi {
	background-position: 80px 0;
}

.social-as {
	background-position: 40px 0;
}

.social-li {
	background-position: 0 -40px;
}

.social-rb {
	background-position: -40px -40px;
}

.social-yt {
	background-position: -80px -40px;
}

/*******************************************************************************************************************/
/**************************************************** HOME *********************************************************/
/*******************************************************************************************************************/

.vignette {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 10%, rgba(0, 0, 0, .8) 90%);
}

.overlay-home {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	pointer-events: none;
}

.overlay-home span {
	color: white;
	font-family: var(--FP);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: auto;
}

.overlay-home .text-one,
.overlay-home .text-two,
.overlay-home .text-three,
.overlay-home .text-five {
	filter: drop-shadow(0 0 10px black);
	color: white;
	font-family: var(--FP);
	font-size: 60pt;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	opacity: 0;
}

.overlay-home .text-five {
	filter: drop-shadow(0 0 10px black);
}

.overlay-home .text-one {
	transform: translate(-50%, -50%) scale(10);
	animation: welcometext var(--delay) forwards;
}

.overlay-home .text-two {
	animation: welcometext var(--delay) forwards;
	transform: translate(-50%, -50%) scale(10);
	animation-delay: var(--delay);
}

.overlay-home .text-three {
	animation: welcometext-linger var(--delay) forwards;
	transform: translate(-50%, -50%) scale(10);
	/* Animation first */
	animation-delay: calc(var(--delay) * 2);
	/* Delay after */
}

.overlay-home span.text-four {
	font-size: 50pt;
	position: absolute;
	top: 57%;
	left: 0;
	width: 100%;
	height: 0;
	font-size: 25pt;
	transform: translateY(-50%);
}

.overlay-home span.text-four a {
	color: white;
	opacity: 0;
	filter: drop-shadow(0 0 7px black);
	font-family: var(--FP);
	text-decoration: none;
	position: absolute;
}

.overlay-home span.text-four a:hover {
	color: var(--accent1);
	scale: 1.1;
}

.overlay-home span.text-four a::after {
	content: "\00bb";
	position: relative;
	opacity: 0;
	left: 40px;
	bottom: 1px;
	transition: var(--transition-standard);
}

.overlay-home span.text-four a:hover::after {
	opacity: 1;
	left: 10px;
}

.overlay-home span.text-four a:first-child {
	left: 41%;
	transform-origin: center;
	animation: zoom-left 0.5s forwards;
	animation-delay: calc(var(--delay) * 2.75);
}

.overlay-home span.text-four a:last-child {
	right: 40%;
	transform-origin: center;
	animation: zoom-right 0.5s forwards;
	animation-delay: calc(var(--delay) * 2.75);
}

@keyframes welcometext {
	0% {
		transform: translate(-50%, -50%) scale(10);
		opacity: 0;
	}

	25% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}

	75% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}

	100% {
		transform: translate(-50%, -50%) scale(0);
		opacity: 0;
	}
}

@keyframes welcometext-linger {
	0% {
		transform: translate(-50%, -50%) scale(10);
		opacity: 0;
	}

	25% {
		transform: translate(-50%, -50%) scale(0.5);
		opacity: 0.75;
	}

	75% {
		transform: translate(-50%, -50%) scale(0.5);
		opacity: 1;
	}

	100% {
		transform: translate(-50%, calc(-50% - 125px)) scale(0.3);
		opacity: 1;
	}
}

@keyframes zoom-left {
	0% {
		transform: scale(3);
		opacity: 0;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes zoom-right {
	0% {
		transform: scale(3);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

#container {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	max-width: 1600px;
	height: 100vh;
	overflow: hidden;
	font-size: 0;
}

.slide-image {
	border: none;
	opacity: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	object-fit: cover;
	object-position: center;
	-webkit-transition: opacity 2s linear;
	-moz-transition: opacity 2s linear;
	-o-transition: opacity 2s linear;
	transition: opacity 2s linear;
}

.showMe {
	opacity: 1;
}

/*******************************************************************************************************************/
/************************************************** MODALS *********************************************************/
/*******************************************************************************************************************/

.button-modal {
	border-radius: 6px;
	font-family: var(--FM);
	font-weight: bold;
	block-size: 37px;
	background-color: var(--accent2);
	border: none;
	color: white;
	text-align: center;
	font-size: 15px;
	padding: 4px 15px 8px 15px;
	inline-size: auto;
	transition: var(--transition-standard);
	cursor: pointer;
	margin: 0;
	flex: 0 0 auto;
	align-self: flex-start;
	margin-block-start: 5px;
	width: 90px;
}

.button-modal span {
	cursor: pointer;
	display: inline-block;
	position: relative;
	transition: var(--transition-standard);
}

.button-modal span::after {
	content: "\00bb";
	position: absolute;
	opacity: 0;
	inset-block-start: 0;
	inset-inline-end: -20px;
	transition: var(--transition-standard);
}

.button-modal:hover span {
	padding-inline-end: 15px;
}

.button-modal:hover span::after {
	opacity: 1;
	inset-inline-end: 0;
}

.button-modal:hover {
	background-color: var(--accent1);
}

.modal-overlay {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: var(--transition-standard);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.modal-close-area {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.modal-box {
	background: white;
	border-radius: 8px;
	max-width: 600px;
	max-height: 80vh;
	width: auto;
	position: relative;
	z-index: 1;
	overflow: hidden;
	transform: translateY(50px);
	opacity: 0;
	transition: var(--transition-standard);
	display: flex;
	flex-direction: column;
}

.modal-overlay[style*="visibility: visible"] .modal-box {
	transform: translateY(0);
	opacity: 1;
}

.modal-header h3 {
	margin: 0;
	color: white;
	font-size: 16px;
}

.modal-header {
	background: var(--modals);
	padding: 12px 20px;
	display: flex;
	height: 25px;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

.modal-content {
	overflow-y: auto;
	padding: 30px 20px 30px 20px;
	text-align: left;
	background-color: var(--bg);
	word-wrap: break-word;
	flex: 1 1 auto;
	min-height: 0;
}

.modal-buttons {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.modal-footer {
	height: 5px;
	background-color: var(--modals);
}

.close-label {
	background: white;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent2);
	cursor: pointer;
	font-size: 26px;
	transition: var(--transition-standard);
	flex-shrink: 0;
}

.close-label:hover {
	background: var(--accent1);
	color: white;
	transform: scale(1.15);
}

/*******************************************************************************************************************/
/******************************************************** VIEW *****************************************************/
/*******************************************************************************************************************/

.image-main {
	width: calc(100% + var(--edge-pad) * 2);
	max-width: 1600px;
	max-height: 664px;
	overflow: hidden;
	margin: calc(var(--edge-pad) * -1) 0 0 calc(var(--edge-pad) * -1);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	object-fit: cover;
}

.zoom-container {
	display: block;
	overflow: hidden;
	position: relative;
	width: 100%;
	/* ADD THIS */
	height: 100%;
	/* ADD THIS */
}

.zoom-container img {
	display: block;
	width: 100%;
	height: 100%;
	/* CHANGE THIS from auto to 100% */
	object-fit: cover;
	/* ADD THIS - fills container and crops */
	transition: var(--transition-standard);
}

.zoom-container:hover img {
	transform: scale(1.1);
}

.prints {
	z-index: 5;
	position: absolute;
	left: 0;
	height: 150px;
	width: 150px;
	opacity: 0.85;
	background: url(/img/other/sprites_blue.png) no-repeat 0 -300px;
	transition: all 0.3s;
}

.prints:hover {
	opacity: 1;
	transform: scale(1.1);
}

.tags {
	border-radius: 6px;
	background: rgba(var(--accent), 0.7);
	padding: 3px 7px;
	line-height: 30px;
	white-space: nowrap;
	margin: 0 2px;
	transition: all 0.3s;
}

.tags:hover {
	background: #2f2d34;
}

.tags a {
	color: var(--main-bg);
}

.ital {
	font-style: italic;
}

.related-thumb {
	margin: 0 10px 10px 0;
	width: 64px;
	height: 64px;
	border: 1px solid var(--accent2);
	overflow: hidden;
	display: inline-block;
}

.related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition-standard);
}

.related-thumb:hover img {
	transform: scale(1.2);
}

/*******************************************************************************************************************/
/***************************************** BOOKS AND BOOKDISPLAY SLIDER ********************************************/
/*******************************************************************************************************************/

.book-blurb {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	/* Number of lines to show */
	max-height: 6em;
	/* Max 4 lines × 1.5 line-height */
	line-height: 1.5;
	overflow: hidden;
	color: white;
	padding: 15px 20px 0 15px;
	text-align: left;
}

.slider-container {
	width: calc(100% + var(--edge-pad) * 2);
	max-width: 1600px;
	height: 664px;
	position: relative;
	overflow: hidden;
	margin: calc(var(--edge-pad) * -1) 0 0 calc(var(--edge-pad) * -1);
}

.slider-title {
	position: absolute;
	top: calc(var(--head-height) + var(--edge-pad));
	left: 50px;
	z-index: 10;
	color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
	margin: 0;
	font-size: 2em;
}

.slider {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.slide {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	transform: translateX(100%);
	transition: transform 0.8s ease-in-out;
	visibility: hidden;
}

.slide.active {
	transform: translateX(0);
	visibility: visible;
}

.slide.slide-prev {
	transform: translateX(-100%);
	visibility: visible;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/*******************************************************************************************************************/
/************************************************* LATEST/SEARCH/OVERLAYS ******************************************/
/*******************************************************************************************************************/

.grid {
	padding-bottom: 20px;
	column-count: 6;
	column-gap: 5px;
}

.grid-item {
	position: relative;
	margin-block-end: 5px;
	border-radius: 6px;
	overflow: hidden;
	break-inside: avoid;
	opacity: 0;
	animation: fadeIn 0.8s ease forwards;
}

.grid-item-search {
	/*
	background: var(--bg-alt);
	height: 265px;
	*/
	padding: 10px;
	position: relative;
	margin-block-end: 5px;
	border-radius: 6px;
	break-inside: avoid;
}

.grid-item-search p a,
.grid-item-search p {
	text-indent: 0;
	font-size: 11.5pt;
	line-height: 18px;
	color: var(--text);
}

.grid-item-search p a:hover {
	color: var(--accent1);
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.grid-item img {
	inline-size: 100%;
	block-size: auto;
	display: block;
	transition: var(--transition-standard);
	border: none;
}

.grid-item:hover .overlay {
	opacity: 1;
	transform: scale(1);
	border-radius: 0;
}

.overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(var(--accent1-rgba), 0.9);
	color: white;
	font-weight: bold;
	opacity: 0;
	transform: scale(0);
	border-radius: 50%;
	transition: var(--transition-standard);
	z-index: 2;
}

.overlay h3 {
	text-align: center;
	opacity: 0.9;
	color: white;
	background: var(--accent2);
	padding: 2px 10px 5px 10px;
}

.grid-item:hover img {
	transform: scale(1.05);
}

/* Overlay icons for image grids */
#icon_overlay_grid_new,
#icon_overlay_grid_vidR,
#icon_overlay_grid_vidL {
	opacity: 1;
	inset-block-start: 10px;
	z-index: 1;
	inline-size: 31px;
	block-size: 22px;
	position: absolute;
	background: url(/img/other/sprites.png) no-repeat;
	filter: drop-shadow(0 0 4px rgba(0, 0, 0, 1));

}
#icon_overlay_grid_new {
	inset-inline-start: 10px;
	opacity: 0.9;
	background-position: -31px 0;
}

#icon_overlay_view_newR {
	inset-inline-start: 125px;
	opacity: 0.9;
	background-position: -31px 0;
}

#icon_overlay_grid_vidR {
	inset-inline-start: 45px;
	background-position: 0 0;
}

#icon_overlay_grid_vidL {
	inset-inline-start: 10px;
	background-position: 0 0;
}

/* Overlay icons for view.php */
#icon_overlay_view_new,
#icon_overlay_view_vidR,
#icon_overlay_view_vidL {
	opacity: 1;
	inset-block-start: 10px;
	z-index: 1;
	inline-size: 31px;
	block-size: 22px;
	position: absolute;
	background: url(/img/other/sprites.png) no-repeat;
	filter: drop-shadow(0 0 4px rgba(0, 0, 0, 1));
}

#icon_overlay_view_new {
	inset-inline-start: var(--edge-pad);
	top: var(--edge-pad);
	opacity: 0.9;
	background-position: -31px 0;
}

#icon_overlay_view_vidL {
	inset-inline-start: var(--edge-pad);
	top: var(--edge-pad);
	background-position: 0 0;
}

#icon_overlay_view_vidR {
	inset-inline-start: calc(var(--edge-pad) + 40px);
	top: var(--edge-pad);
	background-position: 0 0;
}

#icon_overlay_view_rbL {
	position: absolute;
	z-index: 1;
	top: var(--edge-pad);
	left: var(--edge-pad);
	width: 125px;
	height: 32px;
	opacity: 0.7;
	background: url(/img/other/redbubble.jpg) no-repeat;
	transition: var(--transition-standard);
}

#icon_overlay_view_rbR {
	position: absolute;
	z-index: 1;
	top: var(--edge-pad);
	inset-inline-start: calc(var(--edge-pad) + 40px);
	width: 125px;
	height: 32px;
	opacity: 0.7;
	background: url(/img/other/redbubble.jpg) no-repeat;
	transition: var(--transition-standard);
}

#icon_overlay_view_rbL:hover,
#icon_overlay_view_rbR:hover {
	opacity: 1;
}

.icon-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	position: absolute;
	inset-block-end: 20px;
	inset-inline-start: 0;
	inset-inline-end: 0;
}

.icon-row img {
	inline-size: 2.5rem;
	block-size: 2.5rem;
	object-fit: cover;
	opacity: 0.5;
	transition: var(--transition-standard);
}

.icon-row img:hover {
	opacity: 1;
	transform: scale(1.2);
}

/* Action buttons */
.zoom-image,
.add-fave,
.remove-fave,
.image-details,
.redbubble {
	transition: var(--transition-standard);
	display: inline-block;
	position: relative;
	opacity: 0.7;
	inline-size: 40px;
	block-size: 40px;
	background: url(/img/other/sprites.png) no-repeat;
	flex-shrink: 0;
}

.zoom-image:hover,
.image-details:hover,
.redbubble:hover {
	opacity: 1;
	scale: 1.3;
}

.add-fave:hover,
.remove-fave:hover {
	opacity: 1;
	scale: 1.3;
}

.redbubble {
	background-position: -160px -30px;
}

.zoom-image {
	background-position: -80px -30px;
}

.add-fave {
	background-position: 0 -30px;
}

.remove-fave {
	background-position: -40px -30px;
}

.image-details {
	background-position: -120px -30px;
}

.random-desc {
	font-weight: normal;
	color: white;
	padding: 25px 20px 0 20px;
	text-align: left;
	max-height: 15em;
	/* Max 10 lines × 1.5 line-height */
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 10;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Search navigation */
.search-nav {
	position: relative;
	inset-block-end: 0;
	background: var(--bg-alt2);
	display: flex;
	justify-content: center;
	margin: auto calc(var(--edge-pad) * -1) 0;
	padding-block-start: 5px;
}

.prev,
.next,
.status {
	padding: 0;
	margin: 0;
	block-size: 30px;
}

.prev,
.next {
	position: absolute;
}

.prev {
	inset-inline-start: var(--edge-pad);
}

.next {
	inset-inline-end: var(--edge-pad);
}

.prev a,
.next a {
	line-height: var(--body-text);
}

[class$="page"] {
	background-image: url(/img/other/nav.png);
	background-repeat: no-repeat;
	inline-size: 21px;
	block-size: 21px;
	transition: var(--transition-standard);
	vertical-align: middle;
	display: inline-block;
}

[class$="page"]:hover {
	scale: 1.5;
}

.firstpage {
	background-position: 0 0;
}

.prevpage {
	background-position: 0 -21px;
}

.nextpage {
	background-position: 0 -42px;
}

.lastpage {
	background-position: 0 -63px;
}

.display-info {
	border-radius: 0 0 10px 10px;
	background-color: var(--accent1);
	color: white;
	text-align: center;
	margin: 0;
	padding: 4px 0;
}

.display-title,
.display-date {
	display: block;
}

.display-title {
	font-size: 11pt;
}

.display-date {
	font-size: 9pt;
}

.dropdowns {
	padding: 3px 30px 3px 10px;
	margin-block-end: 10px;
	cursor: pointer;
	outline: none;
	color: var(--text);
	border: none;
	background: var(--bg-alt);
	appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg fill="%2353AFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
	background-repeat: no-repeat;
	background-position: right 10px center;
}

.searchbox-position {
	top: calc(var(--head-height) + 7px);
	position: absolute;
	left: var(--edge-pad);
	z-index: 5;
	display: flex;
	/* Keep this */
	gap: 10px;
	/* Keep this */
	align-items: center;
	/* Changed to center for better vertical alignment */
}

.search-wrapper {
	position: relative;
	/* This creates a positioning context for the absolute searchbox-button */
	display: inline-block;
}

.searchbox-style {
	width: 180px;
	background-color: var(--bg);
	padding: 8px 35px 8px 12px;
	border-radius: 10px;
	font-size: 14px;
}

input.searchbox-style:focus {
	outline: none;
	background-color: var(--formBGFocus);
}

.searchbox-button {
	margin-top: 2px;
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	background: url(/img/other/search.png) no-repeat;
	width: 36px;
	height: 36px;
	transition: var(--transition-standard);
}

.searchbox-button:hover {
	filter: brightness(300%);
	scale: 1.1;
	margin-top: 3px;
}

.searchbox-dropdown {
	position: absolute;
	left: 300px;
	top: calc(var(--head-height) + 12px);
	z-index: 5;
}

.search-container {
	max-width: var(--max-width);
	display: flex;
	gap: 20px;
	padding: 15px 0 25px 5px;
}

.search-container-left {
	display: flex;
	gap: 20px;
	flex: 1;
}

.search-container-right {
	flex-shrink: 0;
	min-width: 25%;
	text-align: center;
}

.checkbox-col1,
.checkbox-col2,
.checkbox-col3,
.checkbox-col4,
.checkbox-col5,
.checkbox-col6 {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.checkbox-col6 {
	text-align: center;
}

.panel-search {
	max-width: 1600px;
	max-block-size: 0;
	overflow: hidden;
	transition: var(--transition-standard);
	padding: 0 var(--edge-pad);
	background-color: var(--bg-alt2);
	opacity: 0;
}

.search-form {
	padding: 0;
	margin-top: 0;
	gap: 0;
	display: inline;
}

/* Hide the browser's default checkbox */
.search-options input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

/* Hide the browser's default radio button */
.search-options input[type="radio"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.search-options {
	display: block;
	position: relative;
	padding-left: 25px;
	cursor: pointer;
	font-size: 11.5pt;
	line-height: 22px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	color: var(--text);
	top: 3px;
}

.options-section {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 80px;
}

.options-section .dropdown_headers {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-weight: bold;
	font-size: 10pt;
	vertical-align: middle;
}

.options-section select {
	background-color: var(--bg-alt);
	margin-top: 5px;
	padding: 5px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 10pt;
}

.checkmark2 {
	left: 0;
	margin-top: 5px;
	position: absolute;
	display: inline-block;
	inline-size: 13px;
	block-size: 13px;
	border: 1px solid rgba(var(--accent2-rgba), 0.7);
	border-radius: 5px;
	transition: var(--transition-standard);
	background-color: var(--bg);
}

/* Make radio buttons circular */
.search-options input[type="radio"]+.checkmark2 {
	border-radius: 50%;
}

.checkmark2::after {
	content: "";
	position: absolute;
	display: none;
	top: 2px;
	left: 3px;
	width: 3px;
	height: 6px;
	border: solid var(--accent2);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.checkmark2-inline {
	position: relative;
	display: inline-block;
	margin-top: -3px;
	left: auto;
	margin-left: 5px;
	vertical-align: middle;
}

input[type="checkbox"]:checked+.checkmark2::after {
	display: block;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

input:checked+.checkmark2 {
	background-color: var(--accent2);
	border-color: var(--accent2);
}

/* Checkbox: Draw the tick */
.search-options input[type="checkbox"]:checked+.checkmark2::after {
	display: block;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Radio button: Filled circle */
.search-options input[type="radio"]:checked+.checkmark2::after {
	display: block;
	left: 4px;
	top: 4px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: white;
	border: none;
	transform: none;
}

/* When checked: blue fill */
.search-options input:checked+.checkmark2 {
	background-color: var(--accent2);
	border-color: var(--accent2);
}

.search-options:hover .checkmark2 {
	border-color: var(--accent1);
}

.search-options:hover .checkmark2::after {
	border-color: var(--accent1);
}

/*******************************************************************************************************************/
/************************************************ ACCORDIONS *******************************************************/
/*******************************************************************************************************************/

.accordion {
	position: relative;
	display: block;
	inline-size: 100%;
	background-color: var(--bg);
	color: var(--accent2);
	cursor: pointer;
	padding: 8px 40px 18px 0;
	border: none;
	text-align: start;
	outline: none;
	line-height: 15pt;padding-left: 1.5em;
	text-indent: -1.5em;
	transition: var(--transition-standard);
}

.accordion:hover h3 {
	color: var(--accent1);
}

.accordion_dropdown {
	min-height: 50px;
	position: relative;
	background-color: var(--bg-alt2);
	color: var(--accent2);
	cursor: default;
	border: none;
	outline: none;
	transition: var(--transition-standard);
	padding: 10px var(--edge-pad) 0 var(--edge-pad);
}

.panel-rates,
.panel-faq,
.panel-dropdown {
	max-block-size: 0;
	overflow: hidden;
	transition: var(--transition-standard);
	background-color: var(--bg);
}

.dropdown_headers {
	font-family: var(--GS);
	vertical-align: middle;
	cursor: default;
	outline: none;
	font-size: 9pt;
	color: var(--accent1);
	background: var(--bg-alt2);
}

.delete-all {
	transition: var(--transition-standard);
	color: var(--accent2);
	font-weight: bold;
	vertical-align: middle;
	cursor: pointer;
	outline: none;
	font-size: 9.5pt;
	padding-top: 3px;
}

.delete-all:hover {
	color: var(--accent1);
}

.panel-dropdown {
	padding-inline: var(--edge-pad);
	background-color: var(--bg-alt);
}

.panel-rates,
.panel-faq {
	padding: 0 10px 0 10px;
}

.panel-dropdown p {
	padding: 30px 0;
	max-width: 550px;
}

.panel-rates p {
	padding: 0 10px 10px 0;
	margin-block-end: 10px;
}

.panel-faq p {
	padding: 0;
	margin: 0 0 5px 0;
}

.panel-faq p:last-child {
	margin-block-end: 25px;
}

/* START Plus/Minus icon for dropdowns (latest, search, faves) */
.icon-large {
	cursor: pointer;
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: var(--edge-pad);
	inline-size: 30px;
	block-size: 30px;
	background-color: var(--accent2);
	border: 1px solid var(--accent2);
	border-radius: 50%;
	transform: translateY(-50%);
	transition: var(--transition-standard);
}

.icon-large::before,
.icon-large::after {
	content: "";
	position: absolute;
	background-color: var(--bg);
	transition: var(--transition-standard);
}

/* Horizontal line */
.icon-large::before {
	inset-block-start: 50%;
	inset-inline: 7px;
	block-size: 2px;
	transform: translateY(-50%);
}

/* Vertical line (plus sign) */
.icon-large::after {
	inset-inline-start: 50%;
	inset-block: 7px;
	inline-size: 2px;
	transform: translateX(-50%);
}

/* Hover state - ONLY when hovering the icon itself */
.icon-large:hover {
	background-color: var(--accent1);
	border-color: var(--accent1);
}

.icon-large:hover::before {
	inset-inline: 4px;
	block-size: 3px;
}

.icon-large:hover::after {
	inset-block: 4px;
	inline-size: 3px;
}

/* Active state - orange with minus */
.accordion_dropdown.active .icon-large {
	background-color: var(--accent1);
	border-color: var(--accent1);
}

.accordion_dropdown.active .icon-large::before {
	inset-inline: 4px;
	block-size: 3px;
}

.accordion_dropdown.active .icon-large::after {
	inset-block: 4px;
	inline-size: 3px;
}

/* Turn plus into minus when active */
.accordion_dropdown.active .icon-large::after {
	transform: translateX(-50%) scaleY(0);
}

/* END Plus/Minus icon for dropdowns (latest, search, faves) */

/* START Plus/Minus icon for FAQ/RATES */
.icon {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 10px;
	inline-size: 18px;
	block-size: 18px;
	background-color: var(--accent2);
	border: 1px solid var(--accent2);
	border-radius: 50%;
	transform: translateY(-50%);
	transition: var(--transition-standard);
}

.icon::before,
.icon::after {
	content: "";
	position: absolute;
	background-color: var(--bg);
	transition: var(--transition-standard);
}

/* Horizontal line */
.icon::before {
	inset-block-start: 50%;
	inset-inline: 4px;
	block-size: 2px;
	transform: translateY(-50%);
}

/* Vertical line (plus sign) */
.icon::after {
	inset-inline-start: 50%;
	inset-block: 4px;
	inline-size: 2px;
	transform: translateX(-50%);
}

/* Hover state - change to orange */
.accordion:hover .icon {
	background-color: var(--accent1);
	border-color: var(--accent1);
}

/* Active state - orange with minus */
.accordion.active .icon {
	background-color: var(--accent1);
	border-color: var(--accent1);
}

/* Turn plus into minus when active */
.accordion.active .icon::after {
	transform: translateX(-50%) scaleY(0);
}

/* END Plus/Minus icon for FAQ/RATES */

/*******************************************************************************************************************/
/************************************************ LOGIN / ADMIN ****************************************************/
/*******************************************************************************************************************/

.loginquestions {
	color: var(--accent2);
	padding-block-end: 8pt;
}

.form-error {
	margin-inline-start: 20px;
	color: var(--accent2);
}

.form-group {
	display: flex;
	flex: 0 0 auto;
	flex-flow: row wrap;
	align-items: center;
	margin-block-end: 1rem;
	max-width: 375px;
}

.checkbox-container {
	display: inline-flex;
	align-items: center;
	position: relative;
	cursor: pointer;
	user-select: none;
	font-size: var(--body-text);
	color: var(--text-alt);
}

.checkbox-container input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	block-size: 0;
	inline-size: 0;
}

.checkmark {
	position: relative;
	margin-block-end: -2px;
	display: inline-block;
	margin-inline-start: 8px;
	inline-size: 13px;
	block-size: 13px;
	border: 1px solid var(--accent2);
	border-radius: 3px;
	transition: var(--transition-standard);
}

.checkmark::after {
	content: "";
	position: absolute;
	border: solid var(--accent2);
	border-width: 0 2px 2px 0;
	margin: -1px 0 0 -2px;
}

.checkbox-container:hover .checkmark {
	border-color: var(--accent1);
}

/*******************************************************************************************************************/
/*********************************************** MEDIA QUERIES *****************************************************/
/*******************************************************************************************************************/

@media only screen and (max-width: 1400px) {
	.grid {
		column-count: 5;
	}
}

@media only screen and (max-width: 1200px) {
	:root {
		--edge-pad: 30px;
		--head-height: 144px;
	}

	.primary {
		flex: 6;
	}

	.secondary {
		flex: 4;
	}

	h1 {
		font-size: calc(var(--h1-size) * var(--scale));
		padding-block-start: 3px;
	}

	.panel-dropdown p {
		padding-top: 20px;
	}

	.grid {
		column-count: 4;
	}

	.tertiary {
		grid-template-columns: repeat(2, 1fr);
	}

	.tertiary .col:nth-of-type(3) {
		grid-column: span 2;
		/* Makes 3rd column span both columns */
	}

	.tertiary .col:nth-of-type(1) {
		border-bottom: 1px solid var(--bg-alt);
		/* Reset to single column */
	}

	.overlay-home {
		scale: 0.85;
	}

	.overlay-home span.text-four a:first-child {
		left: 37.5%;
	}

	.overlay-home span.text-four a:last-child {
		right: 36%;
	}
		.logo-container {
			margin-bottom: 60px;
	}
	.icon-row {
		scale: 0.95;
	}
}

@media (max-width: 900px) {
	:root {
		--head-height: 124px;
	}

	h1 {
		font-size: calc(var(--h1-size) * var(--scale) * var(--scale));
		padding-block-start: 3px;
	}

	.overlay-home {
		scale: 0.75;
	}

	.overlay-home span.text-four a:first-child {
		left: 34%;
	}

	.overlay-home span.text-four a:last-child {
		right: 32%;
	}

	.primary {
		min-height: 0;
	}

	.primary,
	.secondary {
		flex: 1;
	}

	.grid {
		column-count: 3;
	}

	.tertiary {
		grid-template-columns: 1fr;
	}

	.tertiary .col:nth-of-type(3) {
		grid-column: span 1;
		/* Reset to single column */
	}

	.tertiary .col:nth-of-type(1) {
		padding-bottom: 30px;
	}

	.upper {
		min-height: 0;
		flex-direction: column;
	}

	.slide-show {
		height: 100%;
		min-height: 300px;
	}

	.logo-container {
		margin-bottom: 35px;
	}
	.icon-row {
		scale: 0.9;
	}

}

@media only screen and (max-width: 700px) {
	:root {
		--edge-pad: 20px;
		--head-height: 110px;
	}

	h1 {
		font-size: calc(var(--h1-size) * var(--scale) * var(--scale) * var(--scale));
		padding-block-start: 3px;
	}

	.grid {
		column-count: 2;
	}

	.panel-dropdown p {
		column-count: 1;
	}

	.overlay-home {
		scale: 0.7;
	}

	.overlay-home span.text-four a:first-child {
		left: 23%;
	}

	.overlay-home span.text-four a:last-child {
		right: 21%;
	}

	.sidenav {
		width: 100%;
		left: -100%;
		position: fixed;
		overflow-y: auto;
	}

	.sidenav.nav-open {
		left: 0;
	}

	/* Ensure hamburger stays in same position */
	.menu-toggle {
		position: fixed;
		z-index: 5000;
	}

	/* Optional: Adjust padding/spacing for mobile if needed */
	.sidenav {
		padding-top: 30px;
		/* Add space below hamburger */
	}

	/* Hide overlay on mobile since menu is full screen */
	.page-overlay {
		display: none;
	}

	.logo-container {
		margin-bottom: 45px;
	}

	.sidenav form {
		width: 175px;
		margin: 0 auto;
	}

	.searchbox-menu-button {
		right: 0px;
	}
}