body {
  background-color: #f8f8f8;
}

body {
  background-color: #f8f8f8;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: fixed;
}

.centredtext {
  text-align: center;
}

.small {
  font-size: 8px;
}

/* unvisited link */
a:link {
  color: #373737;
  text-decoration: none;
}

/* visited link */
a:visited {
  color: #373737;
  text-decoration: none;
}

/* mouse over link */
a:hover {
  color: #373737;
  text-decoration: none;
}

/* selected link */
a:active {
  color: #373737;
  text-decoration: none;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Source Sans Pro", sans-serif;
}

html {
  scroll-behavior: smooth;
}

#transparant_text {
  opacity: 0;
}

.topnav {
  overflow: hidden;
  border-radius: 0px;
  min-width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #f8f8f8;
  z-index: 1;
  bottom-margin: 20px;
  opacity: 99%;
}

.topnav a {
  float: left;
  color: #373737;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #e0e0e0;
  color: ##373737;
}

.topnav a.active {
  background-color: #9c9c9c;
  color: #373737;
}


header {
  background-color: #f8f8f8;
  padding: 30px;
  font-size: 20px;
  color: #373737;
  border-radius: 5px;
  margin-top: 60px;
  position: relative;
}


nav {
  float: top-center;
  background: #f8f8f8;
  color: #373737;
  padding: 30px;
  border-radius: 5px;
  margin-top: 20px;
  top: 2rem;
  align-self: start;
  text-align: left;
}


nav ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
}

article {
  float: top-center;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 5px;
  margin: 20px;
}

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

footer {
  background-color: #f8f8f8;
  padding: 10px;
  text-align: center;
  color: white;
  border-radius: 25px;
  margin: 20px;
}

#add-button {
  overflow: hidden;
  background-color: #9c9c9c;
  border-radius: 25px;
  margin: 20px;
  background: #373737;
  border: none;
  color: #373737;
}

.button {
  background-color: #f8f8f8;
  border: 2px solid #373737;
  color: #373737;
  padding: 7px 17px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 50px;
  transition-duration: 0.4s;
  position: relative;
  margin: 7px;
}
.button:hover {
  background-color: #373737;
  color: #f8f8f8;
}

.vertical-center {
  margin: 50px;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

@media only screen and (max-width: 768px) {
  header {
    font-size: 20px;
  }

  @media only screen and (max-width: 512px) {
    header {
      font-size: 15px;
    }
  }
}

/* Responsive layout - makes the two columns/boxes stack on top of each other instead of next to each other, on small screens */
@media (max-width: 250px) {
  nav,
  article {
    width: 90%;
    height: auto;
    align-items: center;
    margin: 20px;
  }
}

@media only screen and (max-width: 700px) {
  img:not(.hero-image) {
    max-height: 70vh;
    max-width: 100%;
    margin-bottom: 32px;
  }

  .centre {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  header {
    text-align: center;
  }

  .middle {
    transition: 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
  }

  .home-gallery {
    flex-direction: column;
    align-items: center;
  }

  .home-gallery .container .image {
    max-width: 90vw;
    max-height: 300px;
  }
}

@media only screen and (min-width: 700px) and (max-width: 1100px) {
  img:not(.hero-image) {
    margin: 32px;
    max-height: 70vh;
    max-width: 30vh;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  article {
    -webkit-column-width: 150px;
    -moz-column-width: 150px;
    column-width: 150px;
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
  }

  .centre {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .middle {
    transition: 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 15vh;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
  }
}

@media only screen and (min-width: 1100px) {
  img:not(.hero-image) {
    margin: 32px;
    max-height: 70vh;
    max-width: 40vh;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  article {
    -webkit-column-width: 150px;
    -moz-column-width: 150px;
    column-width: 150px;
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
  }

  header {
    text-align: left;
  }

  .centre {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .middle {
    transition: 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 20vh;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
  }
}

.home-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.home-gallery .container {
  position: relative;
  width: auto;
  flex: 0 1 auto;
}

.home-gallery .container .image {
  max-width: 350px;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: cover;
}

.home-gallery .middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: 0.5s ease;
  text-align: center;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.home-gallery .text {
  font-size: clamp(14px, 4vw, 28px);
  padding: 8px 12px;
  white-space: nowrap;
}

.home-gallery .container:hover .middle {
  opacity: 1;
}

.container {
  position: relative;
  width: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.image {
  opacity: 1;
  display: block;
  max-width: auto;
  height: auto;
  transition: 0.4s ease;
  backface-visibility: hidden;
  margin-left: auto;
  margin-right: auto;
}

.container:hover .image {
  opacity: 0.5;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.container:hover .middle {
  opacity: 1;
}

.text {
  background-color: transparent;
  color: #f8f8f8;
  font-size: 32px;
  padding: 16px 32px;
  text-decoration: none;
}

a {
  text-decoration: none;
}

.centre {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

body,
html {
  height: 100%;
  width: 100%;
  margin: 0;
}

.bg {
  /* The image used */
  background-image: url("Photos//Street//AlexPreusserPhoto-36.jpg");

  /* Full height */
  height: 50%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-fullscreen {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-fullscreen .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-fullscreen .hero-nav {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(248, 248, 248, 0.9);
  z-index: 10;
}

/* =========================
   STREET PAGE MASONRY GALLERY
   ========================= */
.street-gallery {
  display: flex;
  justify-content: center;
  gap: 24px; /* spacing between columns */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.street-gallery .column {
  display: flex;
  flex-direction: column;
  gap: 24px; /* spacing between images vertically */
  flex: 1; /* equal width columns */
}

.street-gallery .column img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

/* RESPONSIVE MASONRY */
@media (max-width: 1100px) {
  .street-gallery { flex-wrap: wrap; }
  .street-gallery .column:nth-child(3) { display: none; } /* 2 columns */
}
@media (max-width: 700px) {
  .street-gallery { flex-direction: column; }
  .street-gallery .column:nth-child(2),
  .street-gallery .column:nth-child(3) { display: none; } /* 1 column */
}

/* =========================
   LIGHTBOX
   ========================= */


.lightbox {
  display: none;              /* hidden by default */
  position: fixed;            /* covers entire viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;    /* center horizontally */
  align-items: center;        /* center vertically */
  z-index: 1000;              /* above everything else */
  overflow: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  display: block;
  margin: auto;
}

#lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  font-weight: bold;
  z-index: 1100;
}


/* =========================
   TOP NAV & HERO IMAGE
   ========================= */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f8f8f8;
  z-index: 10;
  display: flex;
}
.topnav a { padding: 14px 16px; font-size: 17px; }
.topnav a:hover { background-color: #e0e0e0; }
.topnav a.active { background-color: #9c9c9c; }

.hero-fullscreen {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-fullscreen .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-nav {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(248, 248, 248, 0.9);
  width: 100%;
  z-index: 10;
}
