.navigationtext:link		{color: #FFF; text-decoration: none;}
.navigationtext:visited	{color: #FFF; text-decoration: none;}
.navigationtext:hover		{color: #2d201b; text-decoration: none;}
.navigationtext:active	{color: #2d201b; text-decoration: none;}

a:link		{color: #FFF; text-decoration: none;}
a:visited	{color: #FFF; text-decoration: none;}
a:hover		{color: #009cdf; text-decoration: none;}	/* logo blue */
a:active	{color: #FFF; text-decoration: none;}
a			{transition: color 0.2s linear, border-color 0.2s linear;}

.dotted-link a:link		{border-bottom: 1px dotted #FFF;}
.dotted-link a:visited 	{border-bottom: 1px dotted #FFF;}
.dotted-link a:hover 	{border-bottom: 1px dotted #009cdf;}	/* logo blue */
.dotted-link a:active 	{border-bottom: 1px dotted #FFF;}

html {
	height: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: 100%;
}

/* Font  boost - Android Chrome */
html * {max-height:1000000px;}


body{
	background-color:#2d201b;
	color:#FFF;
	font-family: 'Arimo', Arial, sans-serif;
	margin:0;
	padding:0;

}

@media(max-width: 1580px) {
	html {
		font-size: 12.5px;
	}
}
@media(max-width: 980px) {
	html {
		font-size: 10.5px;
	}
}
  
.wrap{
	display: inline-block;
	text-align:center;
	width:100%
}
 
.list-style{
	margin-top:6px;
	margin-bottom:6px;
}

@media screen and (orientation:landscape){
	.list-style{
		margin-left: 6px;
		margin-right: 6px;
	}
}

.headerbox{
	margin-left:auto; 
	margin-right:auto;  
	margin-top:2vh; 
	margin-bottom:2vh; 
	text-align:center; 
	font-size:180%; 
	background-color:rgba(255,255,255,0.3); 
	padding:2vh;
}

@media screen and (max-width: 980px) {
	.headerbox{ display: none; }
}

@media screen and (min-width: 980px)  {
	.mobile-container{ display:none; }
}

.navigationtext{
	margin-left:2em;
	display: inline-block;
	text-transform: uppercase;
	-webkit-transition: color .2s linear;
	-moz-transition: color .2s linear;
	-ms-transition: color .2s linear;
	-o-transition: color .2s linear;
	transition: color .2s linear;
}

.box{
	font-size:200%; 
	line-height: 130%;
	width: 95%; 
	margin-left:auto; 
	margin-right:auto;  
	margin-top:7vh; 
	margin-bottom:4vh; 
	text-align:left; 
	background-color:#000; 
	box-sizing: border-box;
	padding:2vw;
}

@media screen and (orientation: landscape){
	.box{
		width: 75%; 
	}
}

@media screen and (orientation: landscape) and (min-width: 980px){
	.box{
		width: 50%;
	}

	/* Home intro box only: match the width of the project gallery below it so
	   they line up at every window size. The gallery shows two images per row,
	   each calc(48vh + 4.8vw) wide plus 2x6px margins - hence 2x that + 24px.
	   A percentage was used before but kept growing past the gallery at full
	   width. max-width guards against overflow on unusually short/tall windows. */
	.box.box-wide{
		width: calc(96vh + 9.6vw + 24px);
		max-width: 90%;
	}
}

/* On a full-size window the gallery-matched width gets too wide to read, so cap
   the intro box at the width the testimonials use (.box / .box-accordion are 50%
   on desktop). Below this it stays gallery-matched, which keeps it from looking
   too narrow next to the images at mid widths. */
@media screen and (orientation: landscape) and (min-width: 1600px){
	.box.box-wide{
		max-width: 50%;
	}
}


.box-smaller-text{
	font-size:150%; 
}

.box-accordion{
	width:95%;
	margin-left:auto; 
	margin-right:auto;  
	margin-top:4vh; 
	margin-bottom:4vh; 
	text-align:left; 
	box-sizing:border-box;
}

@media screen and (orientation: landscape){
	.box-accordion{
		width: 75%; 
	}
}

@media screen and (orientation: landscape) and (min-width: 980px){
	.box-accordion{
		width: 50%; 
	}
}	

.accordion {
	font-size: 150%;
	font-weight:bold;
	color:#FFF;
    background-color: rgba(255,255,255,0.35); 
	cursor: pointer;
	width: 100%;
	border: none;
	text-align: left;
	outline: none;
	position: relative;
	padding-top:3vh;
	padding-bottom:3vh;
	padding-left: max(2vw, 24px);
	padding-right: calc(max(2vw, 24px) + 2em);	/* reserve room for the +/- marker */
	margin-top:3vh;
	transition: background-color 0.3s ease;
}

/* +/- marker drawn as two equal bars (CSS, no font glyphs) so it can't shift or
   change width between states. The vertical bar rotates flat to turn + into -. */
.accordion:before,
.accordion:after {
	content: '';
	position: absolute;
	top: 50%;
	right: max(2vw, 24px);
	width: 0.9em;
	height: 2px;
	background: #FFF;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
}

.accordion:after {
	transform: translateY(-50%) rotate(90deg);
}

.active:after {
	transform: translateY(-50%) rotate(0);
}

.active, .accordion:hover {
    background-color: #000;
}

.panel {
	font-size:125%;
	line-height: 130%;
	padding-top: 4vh;
	padding-bottom: 8vh;
	padding-left:6vw;
	padding-right:6vw;
	display: none;
	overflow: hidden;
    background-color: #000;
	color:#FFF;
}

.project-testimonial {
	font-size:125%;
	line-height: 130%;
	padding-top: 4vh;
	padding-bottom: 4vh;
	padding-left:6vw;
	padding-right:6vw;
	overflow: hidden;
    background-color: #000;
	color:#FFF;
}

/* Mobile bump for both testimonial contexts. Must sit AFTER the .panel and
   .project-testimonial base rules: equal specificity, so source order decides,
   and the base .project-testimonial (125%) would otherwise win over this. */
@media(max-width: 980px) {
	.panel,
	.project-testimonial{
		font-size:150%;
	}
}

.box-testimonial {
	padding-top: 5vh;
	padding-bottom: 5vh;
	padding-left:2vw;
	padding-right:2vw;
	display: none;
	overflow: hidden;
    background-color: rgba(255,255,255,0.05); 
	color:#FFF;
}

.caption-style-1{
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.caption-style-1 li{
	display: inline-block;
	padding: 0px;
	position: relative;
	overflow: hidden;
}

.caption-style-1 li:hover .caption{
	opacity: 1;
}

.caption-style-1 img{
	padding: 0px;
	margin:0px;
	width:100%;
	float: left;
	z-index: 4;
}

.caption-style-1 .caption{
	position: absolute;
	opacity: 0;
	width:100%;
	-webkit-transition:all 0.45s ease-in-out;
	-moz-transition:all 0.45s ease-in-out;
	-o-transition:all 0.45s ease-in-out;
	-ms-transition:all 0.45s ease-in-out;
	transition:all 0.45s ease-in-out;
}

.caption-style-1 .blur{
	background-color: rgba(255,255,255,0.65);
	width: 100%;
	height: 900px;
	z-index: 5;
	position: absolute;
}

.caption-style-1 .caption-text h1{
	text-transform: uppercase;
	font-size:130%;
	color: #000;
	text-decoration: none;
}

/* The whole thumbnail is the link: a transparent anchor covering the card,
   sitting above the image and hover caption (z-indexes 4/5/10 below). */
.caption-style-1 .thumb-link{
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 20;
}

.caption-style-1 .caption-text{
	padding: 4px;
	margin:2px;
	z-index: 10;
	color: #000;
	position: relative;
	height: 900px;
	text-align: center;
	top:10vh;
	font-size:200%;
}

@media screen and (orientation: landscape){
	.caption-style-1 img{
		width:calc(48vh + 4.8vw);
	}
	.caption-style-1 .caption{
		width:calc(48vh + 4.8vw);
	}
}

@media screen and (orientation:landscape) and (max-device-width: 980px){
	.caption-style-1 img{
		margin-left:20%;
		width:60%;
	}
	.caption-style-1 .caption{
		left:20%;
		width:60%;
	}
}

/* Mobile (touch): no hover, no two-tap. A single tap follows the link, and the
   project name shows permanently as a small label along the bottom of the image
   (over a dark gradient) instead of the desktop full-image hover overlay. */
@media (hover: none) {
	.caption-style-1 .caption{
		opacity: 1;
		top: auto;
		bottom: 0;
		height: auto;
		/* Opacity is driven per-frame by scroll position (see home.php). The base
		   0.45s fade would lag the scroll, so disable it here. */
		transition: none;
	}
	.caption-style-1 .blur{
		top: auto;
		bottom: 0;
		height: 100px;
		background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
	}
	.caption-style-1 .caption-text{
		position: relative;
		top: auto;
		height: auto;
		margin: 0;
		padding: 8px 14px 12px;
		text-align: left;
		font-size: 100%;
	}
	.caption-style-1 .caption-text h1{
		font-size: 1.75rem;
		color: #FFF;
		margin: 0;
	}
}

.mobile-container {
	width: 95%;
	margin: auto;
	background-color: rgba(255,255,255,0.05);
	color: white;
}

@media screen and (orientation:landscape) and (max-device-width: 980px){
	.mobile-container {
		width:75%;
	}
}

.topnav {
	overflow: hidden;
	position: relative;
}

.topnav #myLinks {
	display: none;
}

.topnav a {
	color: white;
	padding: 14px 16px;
	text-decoration: none;
	font-size: 20px;
	display: block;
}

.topnavactive{
	background-color: rgba(255,255,255,0.10);
	color: white;
	padding: 14px 16px;
	text-decoration: none;
	font-size: 20px;
	display: block;
	height:20px;
}

.topnav a.icon {
	background: rgba(255,255,255,0.00);
	display: block;
	position: absolute;
	right: 0;
	top: 0;
}

.topnav a:hover {
	background-color: #ddd;
	color: black;
}

.active {
	background-color: #000;
	color: white;
}

.project-heading {
	text-transform: uppercase;
	font-family:arial;
	text-align:left;
	font-size:125%; 
	margin-bottom:2vh;
}

.project{
	margin:0; 
	margin-top:4vh; 
	text-align: center;
	width:100%;
	overflow: hidden;
}

.project img{
   margin:0 -20%;
   width:140%;  
}

@media screen and (orientation:landscape){
	.project img{
		margin:0;
		width:75%;
	}
}
@media screen and (orientation:landscape) and (min-width: 980px){
	.project img{
		margin:0;
		width:100%;
		position: relative;
		width:calc(18.7vh + 46.75vw);
	}
}

.project-smaller{
	margin:0; 
	margin-top:4vh; 
	text-align: center;
	width:100%;
	overflow: hidden;
}

.project-smaller img{
	width:100%;
}

@media screen and (orientation:landscape){
	.project-smaller img{
		margin:0;
		width:75%;
	}
}
@media screen and (orientation:landscape) and (min-width: 980px){
	.project-smaller img{
		margin:0;
		width:100%;
		position: relative;
		width:calc(14.96vh + 37.4vw);
	}
}

.project-smaller-portrait{
	margin:0; 
	margin-top:4vh; 
	text-align: center;
	width:100%;
	overflow: hidden;
}

.project-smaller-portrait img{
	width:75%;
}

@media screen and (orientation:landscape){
	.project-smaller-portrait img{
		margin:0;
		width:50%;
	}
}
@media screen and (orientation:landscape) and (min-width: 980px){
	.project-smaller-portrait img{
		margin:0;
		width:100%;
		position: relative;
		width:calc(8.18vh + 20.57vw);
	}
}

.project-links{
	font-size:120%; 
	line-height: 150%;
}

/* Footer */
.site-footer {
	margin-top: 6vh;
	padding: 3vh 2vw;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
	max-width: 1400px;
	margin: 0 auto;
	text-align: center;
}

.footer-contact {
	font-size: 140%;
	color: rgba(255,255,255,1);
	letter-spacing: 0.03em;
	line-height: 2;
	white-space: nowrap;
}

.footer-sep {
	margin: 0 0.6em;
}

@media screen and (max-width: 600px) {
	.footer-contact span {
		display: block;
	}
	.footer-contact span.footer-sep {
		display: none;		/* items stack vertically - dividers not needed */
	}
	.footer-contact {
		font-size: 175%;
		line-height: 2.4;
	}
}
/* ============================================
   Project galleries (built by build_projects.bat)
   ============================================ */

.gallery-page {
	width: 92%;
	max-width: 1800px;
	margin: 4vh auto 6vh;
}

/* Section heading per category. */
.jgallery-heading {
	font-family: arial;
	font-size: 130%;
	font-weight: bold;
	text-align: center;
	margin: 4vh 0 1.5vh;
}

/* Short centred divider above a heading that follows a previous section - so it
   separates sections, with none stranded at the very top of the gallery. */
.jgrid + .jgallery-heading::before {
	content: "";
	display: block;
	width: 500px;
	max-width: 100%;
	height: 1px;
	background: rgba(255, 255, 255, 0.25);
	margin: 0 auto 2.5vh;
}

/* Justified rows: gap + per-row height are set inline by gallery.js. */
.jgrid {
	width: 100%;
}

.jrow {
	display: flex;
	justify-content: center;
}

.jitem {
	display: block;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	overflow: hidden;
	cursor: pointer;
	flex: 0 0 auto;
}

.jitem img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s ease;
}

.jitem:focus-visible img {
	opacity: 0.85;
}

/* :hover only on real hover devices - on touch it sticks after a tap and leaves
   the tapped thumbnail dimmed until you tap elsewhere. */
@media (hover: hover) {
	.jitem:hover img {
		opacity: 0.85;
	}
}

.jitem:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: -2px;
}

/* ============================================
   Lightbox (shared, ported from Morrowvis)
   ============================================ */

.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	/* Above the fixed nav (z-index 1000 in nav.css) so it covers the top bar. */
	z-index: 2000;
	background: #000000;
	align-items: center;
	justify-content: center;
	/* Allow pinch-zoom of the image, but nothing else. Single-finger panning
	   stays disabled so a horizontal drag runs our swipe handler (changes image)
	   rather than the browser treating it as a page scroll / back-swipe (which
	   fired touchcancel and slid the page sideways). */
	touch-action: pinch-zoom;
	overscroll-behavior: contain;
}

@supports (height: 100dvh) {
	.lightbox { height: 100dvh; }
}

.lightbox.open { display: flex; }

body.lightbox-open { overflow: hidden; }

.lightbox-stage {
	width: 100%;
	height: 100%;
}

.lightbox-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.2s ease;
}

/* No src yet (first open / cleared): an empty full-size <img> paints a broken box. */
.lightbox-img:not([src]) { display: none; }

.lightbox.is-loading .lightbox-img { opacity: 0; }

.lightbox-spinner {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border: 3px solid rgba(255, 255, 255, 0.15);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: lightboxSpin 0.8s linear infinite;
	pointer-events: none;
}

.lightbox.is-loading .lightbox-spinner { display: block; }

@keyframes lightboxSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.lightbox-spinner { animation-duration: 2.4s; }
}

.lightbox-close,
.lightbox-nav {
	position: absolute;
	z-index: 2;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
	background: rgba(0, 0, 0, 0.85);
	border-color: rgba(255, 255, 255, 0.6);
	outline: none;
}

/* :hover only on real hover devices - a tap on touch sticks the hover and leaves
   the arrow / close button highlighted until you tap elsewhere. */
@media (hover: hover) {
	.lightbox-close:hover,
	.lightbox-nav:hover {
		background: rgba(0, 0, 0, 0.85);
		border-color: rgba(255, 255, 255, 0.6);
	}
}

.lightbox-close {
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.6rem;
}

.lightbox-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 72px;
	border-radius: 4px;
	font-size: 1.4rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, color 0.2s ease,
		border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox.show-prev .lightbox-prev,
.lightbox.show-next .lightbox-next,
.lightbox-nav:focus-visible {
	opacity: 1;
	pointer-events: auto;
}

@media (hover: none) {
	.lightbox-nav { opacity: 1; pointer-events: auto; }
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (orientation: portrait) and (max-width: 900px) {
	.lightbox-nav { top: auto; bottom: 22%; transform: none; }
}

@media (max-width: 600px) {
	.gallery-page { width: 96%; }
	.lightbox-nav { width: 40px; height: 60px; }
	.lightbox-prev { left: 8px; }
	.lightbox-next { right: 8px; }
}
