/* simonhollington.com */

html{height: 100%;}

    :root{
      --gap: 8px;
      --radius: 1px;
      --bg: #01050f;
      --card: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); 
    }

    *{box-sizing:border-box}

body{
font-family: Arial, Helvetica, sans-serif;
  background:  #eee url(grid.jpg) repeat;
  padding:0px;  
  margin: 0px;  
  font-size: 1em;
   scroll-behavior: smooth;
     overflow-x: hidden;   overflow-y: scroll;
	 /* css from gallery code*/
	   min-height:100vh;
      -webkit-font-smoothing:antialiased;
      -moz-osx-font-smoothing:grayscale;
  }

p{ font-size: 0.9rem;
  padding: 0px 12px 18px 1.8%;  
  margin: 0px;               
  line-height: 1.6rem;
    letter-spacing: .05rem;
  max-width: 65rem;
  font-weight: normal; 
  color: #222;}

   p.lead{
        margin:0 0 22px; 
        color:#b6c7e0}

h1
{ font-size: 1.3rem;
  padding: 4px 0px 0px 6px; 
  margin: 0px;  
  letter-spacing: -0.1rem;             
  font-weight: normal;
  color: #555;}
  


h2{ font-size: 1.2rem;
  padding: 12px 0px 0px 6px; 
  margin: 0px; 
  font-weight: normal;  
  color:#333;}

h3{ font-size: 1.2rem;
line-height: 1.8em;
  padding: 6px 12px 0px 6px; 
  margin: 0px;              
  font-weight: normal; 
  color: #555;}

h4{ font-size: .9rem;
  padding: 6px 12px 0px 6px;  
  margin: 0px; color: #222; 
  line-height: 1.8rem;
  font-weight: normal;}
  
  
  h5{ 
  font-size: .85rem;
  padding: 0px 5% 0px 6px;  
  color: #222; 
  text-align: right;
  letter-spacing: .05rem;
  line-height: 1rem;
  font-weight: normal;
  }
  

.grey { color: #aaa;}

.title{ 
font-size:1em; 
margin: 0 0px 0 0%;
}

.one { padding: 0 0 0 167px;}

.fwd {font-size: 2rem; 
background: #eee;
border-radius: 4px;
margin: 0 0 0 8px;

}

.sml {font-size: .63em; 
padding: 12px 0 0 0; 
color: #bbb;
letter-spacing: .23rem;
}


a{outline: none;}

a:link {border-bottom: 0px dotted #888;
	text-decoration: none;
	color: #777; padding:  3px;

}

a:visited {
	text-decoration: none;
	border-bottom: 0px #ccc;
	color: #999;
	padding: 3px;
}

a:hover {
	color: white;
	background: #6c6c6c;
	border-radius: 4px;
	border-bottom: 0;
}

a:active {
	text-decoration: none;
	color: yellow;
	background: black;
	opacity: .7;
	border-radius: 3px;
}



img
{ border: 0px; margin: 0px;  padding: 0px; 
max-width: 100%; height: auto;
}




/* unordered list */
ul
{ margin: 0px;
  padding: 0px;
}

ul li
{ list-style-type: circle;
  margin: 0px; 
  padding: 0px;
}




/* margin lefts / margin rights - to centre content */
#main, #foot, #top, #nav, #site_content, #one, #two
{ margin-left: auto;   margin-right: auto;
}



/* main container */
#main
{width: 96%;
 height: auto;
border:0;
background: transparent;
margin:0 2%;
}




/* logo */
#top
{ width: 96%;
  height: 54px;
  padding: 6px 0 0 0;
background: #222 url(gridX.jpg) repeat;
position: fixed;
z-index:10000;
border-top: 3px solid #eee;
margin:0px 2% 0 0;
}

#top h1{ 
color: white;}


#top h2
{padding: 12px 0px 0px 6px; 
font-size: 1rem;
line-height:2rem;
}

#top p{ font-size: .74em;
  padding: 	0px 12px 12px 6px;   margin: 0px;               
  font-weight: normal; color: #888;}

#top a {
	border-bottom:0; 
	padding: 2px 8px;
    color: #ddd;}

#top a:hover {
	color: white; 
	background: transparent;
		}


/* navigation menu */
#nav
{ height: 0px;
  width: 100%;} 


/* main content */
#site_content
{ overflow: hidden;
  padding: 0px ;
  width: 100%;
  height: auto;
}


#mobile { display:block;
background:transparent;
height: auto;
width: 95%;
padding: 0 0 70px 5%;
}



/* page content */
#one{ float: left;  width: 100%;  height: auto;  
padding:28px 0 40px 0px;
  margin:4px 0 0 0;
text-align: left;
}

#one a {
border-radius: 4px;
padding: 2px 10px 2px 10px !important;
}

#one a:hover {
background: #555;
padding: 2px 10px 2px 10px !important;

}

#one h2 
{ font-size: 1.6rem; 
padding: 0 0 0 1.5%;

}


#one img{ 
margin: 0;  
padding: 0; 
width: auto;
max-height: 80vh;
 display:block;
}



#two
{  float: left;
  width: 100%;
  height: auto;
  padding:0 0 24px 6px;
	margin: 0px 0 0 0; 
}

#three
{  float: left;
  width: 100%;
  height: auto;
  padding:0 0 0 6px;
	margin: 0 ;
}


#four
{  float: left;
  width: 100%;
  height: auto;
  padding:0 0 0 6px;
	margin: 0;
}


/* flex to centre cards 

.flex-container img {opacity:.8;}

.flex-container
{ 
  align-items: flex-start !important;  
 }


@media only screen and (max-width: 2000px) {
  .flex-container>div 
{ width: 19%; height: auto;}
}

@media only screen and (max-width: 1800px) {
  .flex-container>div {
	width: 31%;

	}
}


@media only screen and (max-width: 1200px) {
  .flex-container>div {
	width: 48%;}
}


@media only screen and (max-width: 600px) {
  .flex-container>div {
	width: 98%;}
	
	#con {height: 600px !important; }
}

#con img {width: 100%;padding: 2px 0 0 0;}
*/


/* card - box, con, text */

/*
.box
{ background: var(--grey) !important;
  float: left;
  height: auto;
  border-radius: 3px;
  padding: 0px; 
  }



@media only screen and (min-width: 2000px) {
/* six*
.box {
  margin: 1% 0.25%;
  width: 19.5%;
}
}



/* three *
@media only screen and (max-width: 1800px) {
  .box {
margin: 3% 2%;
    width: 29.3%;}
}


@media only screen and (max-width: 1200px) {
  .box {
margin: 4% 2%;
    width: 46%;}
}

@media only screen and (max-width: 600px) {
  .box {
    width: 99.6%; 
	margin: 4% 0.2%
	}
	
	
	
	
  .text {
	  width: 98% !important;  } 
}

.box:hover {
  opacity: 1;  
}


.con {background: transparent; }

.con a {
  border: 0px !important; 
  padding: 0 !important;}

*/


/* footer */
#foot
{ font-size: 0.8em;
 height: auto;
 width: 100%;
 margin: 0 0 18px 0;
 padding: 16px ;  
 text-align: right;
 background: #222;
 border-bottom: 3px solid #eee;
}

#foot h2 {font-size: 1.1rem; line-height: 1.6rem; letter-spacing: .1rem;}

#foot a {border-bottom: 0; color: #bbb;}

#foot a:hover {color:white; background: transparent;}

#content a, 
#content a:hover, 
#footer a, 
#footer a:hover{
	text-decoration: none;}




/* everlay menu */
/* https://www.w3schools.com/howto/howto_js_curtain_menu.asp */

.everlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 10000 !important;
  top: 50px;
  left: 0;
  background: rgba(229,229,227, 1) url(grid.jpg) repeat;
  overflow-x: hidden;
  transition: 0.8s;
  opacity: .95;
}

.everlay-content {
  position: relative;
  top: 2.3%;
  width: 100%;
 padding: 0 0% 0 15%;
  margin-top: 20px;
}

.everlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 1.4rem;
  color: #777 !important;
  display: block;
  transition: 0.3s;
  width: 70%;
  border-left: 23px solid #c3c3c3 !important;
    margin: 1% 0% 1% 0 !important;
}

.everlay a:hover, 
.everlay a:focus {
  color: white !important;
  background:#7c7c7c!important;
  border-radius: 8px solid white;
  opacity: 1 !important; 
}

.everlay a:active
{color: white !important;
background: black !important;
border-left: 23px solid yellow !important;
} 

.everlay .closebtn {
  position: absolute;
  top: 0px;
  left: 0px;
  font-size: 32px;
}

@media screen and (max-height: 450px) {
  .everlay a {font-size: 20px}
  .everlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}

  






/* --- Gallery grid --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

/* Gallery item */
.item {
  position: relative;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  border: 0;
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s;
}

.item:focus { outline: 0; }

.item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(2,6,23,0.4);
}

/* Thumbnail images */
.thumb {
  width: 100%;
  height: auto;
  object-fit: contain; /* full image visible */
  display: block;
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
  
}

.item:hover .thumb {
  transform: scale(1.02); /* gentle zoom */
}

/* Caption */
.caption {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  padding: 8px 7px 8px 5px;
  border-radius: 50%;
  background: #ccc;
  color: #333;
  opacity: .668;
  width: 30px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Lightbox / Modal --- */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,1,2,1), rgba(2,4,10,1));
  z-index: 1200;
  padding: 50px 12px 80px 12px;;
}

.overlay.open { display: flex; }

.lightbox {
  max-width: 95vw;
  width: 100%;
  max-height: 95vh;
  background: #111;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: center;
  border-radius: 6px;
}

/* --- Image viewer --- */
.viewer {
  background: #000 !important;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 320px;
  padding: 12px ;
}

.viewer img {
  max-width: 100%;
  max-height: 80vh; /* fits on laptops */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- Side info panel --- */
.side {
  color: #dbe9ff;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  height: 100%;
  overflow: auto;
}

.controls {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: inherit;
}

.btn:focus {
  outline: 3px solid rgba(99,102,241,0.18);
}

.meta {
  color: #b7c9e6;
  font-size: 1.08rem;
  padding: 6px 30px 6px 34px;
  background: #110;
  border-radius: 10px;
  border: 2px solid #444;
  margin: 2.8% 59% 5% 6%;
}

/* --- Close button --- */
.close {
  position: absolute;
  right: 16px;
  top: 12px;
  z-index: 10;
  background: #444;
  border: 0;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin: 23px 0px 0 0px;
  padding: 3px 10px 6px 10px;
  border-radius: 2px;
  opacity: 0.95;
}
.close:focus {
  outline: 3px solid rgba(239,68,68,0.18);
}

/* --- Helper --- */
.muted { color: #98a9c8; font-size: 0.9rem; }

/* --- Responsive design tweaks --- */

/* ✅ Tablets: stack image and side panel vertically */
@media (max-width: 1024px) {
  .lightbox {
    grid-template-columns: 1fr;
    max-width: 85vw;
    max-height: 85vh;
  }
  .side {
    order: 2;
    max-height: 40vh;
    overflow-y: auto;
  }
  .viewer img {
    max-height: 60vh;   /* was 80vh now sixy to it fits on stupidly wide and shallow laptops we hope*/
  }
}

/* ✅ Phones: hide side panel for full image view */
@media (max-width: 640px) {
  .lightbox {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  
  .meta {  padding: 6px 60px 6px 34px;}
  
  .side {
 margin: auto;
  }
  .viewer img {
    max-height: 60vh; /* see above */
  }
}

