/*
 * KATHRYN FERRIER
 *
 * Subject to copyright.
 *
 * Web Development - LOOKsystems Limited
 * mailto:info@looksystems.ltd.uk
 * http://www.looksystems.ltd.uk
 *
 */

/* PAGE STYLES */

body {
	margin: 0;
	padding: 0;
	color: #888;
	background: #eefaff;
	font-size: 9pt;
	font-family: verdana, sans-serif;
	font-weight: normal;
	line-height: 140%;
}

h1 {
	margin: 0;
	padding: 0;
	font-size: 100%;
}
h1#header {
	height: 2.25em;
	font-size: 225%;
	font-weight: normal;
	background-color: #def2ff;
	color: #999;
}
#header a {
	position: relative;
	top: 0.75em;
	left: 1em;
	color: #999;
}

a {
	color: #4a555a;
	text-decoration: none;
}
a:hover {
	color: #000;
	text-decoration: none;
}

a img {
	border: none;
}

#menu {
	top: 5em;
	width: 12em;
	height: 1024px;
	text-align: right;
	position: relative;
	background: #fff;
	color: #999;
	float: left;
	padding: 1em;
	padding-top: 2.65em;
	margin: 0;
}
#menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#menu ul li {
	padding-bottom: 2.4em;
}
#menu ul li ul li {
	padding-bottom: 0;
}
#menu #menuselect {
	color: #5291c5;
}

#menu #footnotes {
	margin-top: 8em;
	font-size: 90%;
}
#menu #footnotes li {
	padding-bottom: 0;
}
#menu #footnotes li a {
	color: #999;
}

#content {
	margin: 0;
	padding: 0;
	margin-left: 14em;
	background: #eefaff;
}

#text {
	padding: 1em 2em;
	padding-top: 2.4em;
	max-width: 600px;
	overflow-wrap: break-word;
}
#text a {
	color: #888;
}
#text a:hover {
	color: #000;
}
#text img {
	max-width: 100%;
	height: auto;
}

#images {
	padding: 2.8em 2em 2em 2em;
}
#images .grid {
	display: grid;
	row-gap: 1.2em;
}
#images .grid a {
	font-size: 90%;
	text-align: center;
}
#images .grid img {
	display: block;
	height: auto;
	margin-bottom: 0;
}

.navigator {
	font-size: 80%;
	margin-bottom: 1.4em;
}
.navigator a {
	margin-right: 0.3em;
}
.navselect {
	color: #000;
}

/* CONTACT FORM */

#mailform, .mailform {
	max-width: 400px;
}
/* browser default controls, as on the original site */
.mailform input[type=text],
.mailform input[type=email],
.mailform textarea {
	width: 100%;
}
/* sit on the line like the original, so the button lines up */
.mailform textarea {
	vertical-align: bottom;
}
.mailform input[type=submit] {
	font: 9pt verdana, sans-serif;
	color: #fff;
	background: #777;
	border: none;
	border-radius: 0;
	padding: 0.45em 1.1em;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.mailform input[type=submit]:hover,
.mailform input[type=submit]:focus-visible {
	background: #4a555a;
}
.mailform input[type=submit]:focus-visible {
	outline: 2px solid #5291c5;
	outline-offset: 2px;
}
.mailform .hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* SLIDESHOW */

#slideshow {
	padding: 1em;
}
#slideshow img {
	max-width: 100%;
	height: auto;
}

/* GALLERY VIEWER */

dialog.viewer {
	width: fit-content;
	min-width: min(320px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	padding: 0;
	border: none;
	background: #fff;
	color: #888;
	box-shadow: 0 6px 30px rgba(40, 60, 80, 0.3);
	overflow: hidden;
}
dialog.viewer[open] {
	display: flex;
	flex-direction: column;
}
dialog.viewer:focus {
	outline: none;
}
dialog.viewer::backdrop {
	background: rgba(222, 242, 255, 0.92);
}
.viewer-head, .viewer-foot {
	display: flex;
	gap: 1em;
	align-items: center;
	justify-content: space-between;
	padding: 0.8em 1em;
}
.viewer-head {
	padding-bottom: 0.4em;
}
.viewer-foot {
	padding-top: 0.4em;
	font-size: 80%;
}
.viewer-caption {
	color: #777;
}
.viewer-close {
	font: 22px/1 verdana, sans-serif;
	color: #999;
	background: none;
	border: none;
	padding: 0 0.2em;
	cursor: pointer;
}
.viewer-close:hover {
	color: #000;
}
.viewer-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3.2em;
}
.viewer-image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 140px);
	width: auto;
	height: auto;
}
.viewer-prev, .viewer-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 1.6em;
	height: 1.6em;
	padding: 0;
	font: 28px/1 verdana, sans-serif;
	color: #999;
	background: none;
	border: none;
	cursor: pointer;
}
.viewer-prev:hover:not(:disabled), .viewer-next:hover:not(:disabled) {
	color: #000;
}
.viewer-prev:disabled, .viewer-next:disabled {
	opacity: 0.25;
	cursor: default;
}
.viewer-prev {
	left: 0.2em;
}
.viewer-next {
	right: 0.2em;
}

/* CMS STYLES */

#toolbar {
	margin: 4px;
	color: #666;
	background: #fff;
	border: 1px dotted #ccc;
	padding: 0.25em 0.5em;
	font-family: arial, sans-serif;
	position: absolute;
	right: 0;
	z-index: 100;
}
#toolbar a {
	color: #666;
}
#toolbar a:hover {
	color: #000;
	text-decoration: underline;
}
#toolbar .icon {
	width: 1.05em;
	height: 1.05em;
	margin-right: 0.3em;
	vertical-align: -0.17em;
}

.redirect-notice {
	max-width: 420px;
	padding: 0.2em 1.2em;
	background: #fff;
	border-left: 3px solid #9cc3de;
}
.redirect-notice.broken {
	border-left-color: #c9853a;
}
.notice {
	background: #fff8d8;
	border: 1px dotted #cc9;
	padding: 0.5em;
}

/* SMALL SCREENS */

@media (max-width: 700px) {
	#menu {
		float: none;
		position: static;
		width: auto;
		height: auto;
		text-align: left;
		padding: 1em;
	}
	#menu ul li {
		padding-bottom: 0.8em;
	}
	#menu ul li ul {
		padding: 0.6em 0 0 1em;
	}
	#menu #footnotes {
		margin-top: 1.5em;
	}
	#content {
		margin-left: 0;
	}
	#page {
		position: relative;
		padding-top: 3.4em;
	}
	h1#header {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		font-size: 150%;
	}
	#text, #images {
		padding-left: 1em;
		padding-right: 1em;
	}
	#images .grid {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
		column-gap: 1em !important;
	}
	#images .grid a {
		width: auto !important;
	}
	#images .grid img {
		width: 100%;
	}
}

/* captcha (ALTCHA) */
.mailform altcha-widget {
	--altcha-max-width: 100%;
	--altcha-border-radius: 0;
	--altcha-color-border: #999;
	--altcha-color-text: #555;
	font-family: verdana, sans-serif;
	font-size: 9pt;
}

.privacy-note {
	margin-top: 1em;
	font-size: 90%;
	color: #999;
}
