* {
    box-sizing: border-box;
  }

body {
    margin: 0;
    font-family: 'Source Sans 3', Arial;
    /*background: #b8b8b8;*/
    background: white;
}

img {vertical-align: middle;}

/* Header/Blog Title */
.header {
    padding: 30px 0px;
    text-align:center;
    background: rgb(202, 245, 255);
  }

  .header h1 {
    font-size: 50px;
  }

  h1, h2, p {
    text-align: center;
  }

  h1, h2, h3 {
    font-family: Bitter, Arial;
    font-weight: 400;
  }

  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 40px;
  }

  p {
    font-size: 20px;
    font-weight: 400;
  }


  div.two {
    border-left-style: solid;
    border-color:  orange;
    background-color: lightyellow;
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 1px;
    padding-bottom: 1px
  }
  

/* Style the top navigation bar */
.topnav {
    overflow: hidden;
    background-color: #333;
  }
  
  /* Style the topnav links */
  .topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }
  
  /* Change color on hover */
  .topnav a:hover {
    background-color: #ddd;
    color: black;
  }
  
  .topnav .icon {
    display: none;
  }

 /*Dropdown*/

 

 ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}

li {
  float: left;
}

li a, .dropbtn {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
  background-color: red;
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1;}

.dropdown:hover .dropdown-content {
  display: block;
}

.site-nav {
  height: 50px;
  display: flex;
  position: relative; /* Added 16/12 */
  align-items: center;
  background-color: #333; /* your nav colour */
  padding: 0 16px;
}

.site-name {
  /*font-size: 1.5rem;*/
  font-weight: bold;
  color: white;
}

.site-name a {
  color: white;
  text-decoration: none;
}

/* Desktop menu */
.nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto; /* push nav items to the right */
}

.nav li {
  /*margin-left: 20px;*/
  color: white;
}

.nav .right {
  margin-left: auto;
}

/* Hide hamburger on desktop */
.nav-toggle {
  display: none;
}

/* Screen-reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}


  /*Change the orientation of the socials button*/
  #socialsButton {
    float: right;
  }

  .row {
    background-color: rgb(255, 255, 255);
    padding: 0px 50px;
    max-width: 1920px;
    margin:auto;
}

/*.rowGallery {
  background-color: rgb(255, 255, 255);
  padding: 0px 50px;
  max-width: 1920px;
  margin:auto;
}*/

.rowGalleryContainer {
  background-color: tan;
  padding-top: 50px;
  padding-bottom: 50px;
}

/* Clever tricks from Chat GPT */
.rowGallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /*grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));*/
  gap: 16px;
  max-width: 1920px;
  margin:auto;
  padding-left: 50px;
  padding-right: 50px;
  
  /* padding: 0px 0px; /*Borrowed from screen size control - did nothing*/
  /* width: 100%; /*Borrowed from screen size control - did nothing*/
  /* margin: 1.66% 0%; /*Borrowed from screen size control - did nothing*/
}
/* End clever tricks from Chat GPT */

.rowText {
  background-color: rgb(255, 255, 255);
  padding: 10px 50px;
  max-width: 1024px;
  margin:auto;
}

.rowText p {
  text-align: left;
}

/* Clear floats after the columns */
.row::after {
    content: "";
    display: table;
    clear: both;
  }

  .rowGallery::after {
    content: "";
    display: table;
    clear: both;
  }
  
  /***************************************************** Footer *****************************************************/
  .footer {
    padding: 10px; /*is this dealing with the white space at the very bottom of the page?*/
    text-align: center;
    background: #333;

  }

  .footer div {
    max-width: 1920px;
    margin:auto;
    padding: 0px, 0px;
    /*background-color: aqua;*/ /*For debugging*/
  }
  
  .footer p {
      color: white;
      font-size: 16px;
  }

    .footer a {
      color: white;
      font-size: 16px;
      text-decoration: none;
  }

  /* To enable the footer to divide in to thirds*/
  .footerThird {
    /*background-color:#4e4a31;*/
    width:300px;  
    display:inline-block;
    vertical-align: top;
    text-align: left
  }

  .footerThird h3 {
    color: white;
    font-family: Bitter, Arial;
    font-weight: 400;
    font-size: 26px;
  }

  .footerThird p {
    text-align: left
  }

  .footerThird h3 a {
  font-size: inherit;
  } 

  @media only screen and (max-width: 950px){
  .footerThird {
    width: 100%;
  }
}

  #aboutImage {
    float:right;
    width:300px;
    margin:20px
  }



  @media screen and (max-width: 800px) {
    #aboutImage {
      width:100%;
      float:none;
      margin:0px
    }
  }
  
/* Responsive layout - when the screen is less than 600px wide, make the navigation links stack on top of each other instead of next to each other */
@media screen and (max-width: 1000px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 1000px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}


@media (max-width: 768px) {

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    margin-left: auto;
    color: white;
  }

  .nav {
    display: none;
    position: absolute; /* added 16/12 */
    z-index: 1; /* added 16/12 */
    flex-direction: column;
    align-items: stretch; /* full width items */
    /*margin-top: 1rem;*/
    
    /* added 16/12 */
    top: 100%;
    left: 0;
    right: 0;

    width: 100%;
    margin: 0;
    padding: 0;

    box-shadow: none;

    overflow: visible;
  }

  .nav li {
    /*padding: 12px 0;*/
    width: 100%;
    text-align: left;
  }

  .nav .right {
    margin-left: 0; /* undo push-right */
  }

  .nav.is-open {
    display: flex;
  }
}

@media screen and (max-width: 1000px) {
  #socialsButton {float:left;
  }
}

  
  /**************************************** Image gallery stuff **************************************************************/


div.gallery {
  margin: 0.33%;
  border: 1px solid #ccc;
  float: left;
  width: 100%;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
  cursor: pointer;
  display: block; /*As suggested by Chat GPT*/
}

/*It seems to require both justify-content and text-aligh to work. One works when the text is on one line, the other works when it is wrapped*/
div.desc {
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content:center;
  text-align: center;
  height: 50px;
}

/*For small displays, make image full width with no side borders, only a border on the bottom.*/
@media screen and (max-width: 1000px) {
  div.gallery {
    width: 100%;
    margin: 1.66% 0%;
  }
  div.rowGallery {
    /*padding: 0px 0px;*/
    /*grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));*/
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0px;
    padding-right: 0px;
  }
}

/**************************************** Modal stuff **************************************************************/

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  /*width: 80%;*/
  height: 90%;
  /*max-width: 1024px;*/
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f2f2f2;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    /*width: 100%;*/
    width: auto; /* Change from 100% to auto */
    height: auto; /* Add this */
    max-width: 100%; /* Constrain width */
    max-height: 90vh; /* Constrain height */
  }
}

  span.securefeature {
    font-size: 16px;
    text-align: center;
  }
  
  span.securefeature b {
    display: none;
  }