body {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAElJREFUKFNjZCASMILU/fr16z+IZmNjA/NhAFkcrhBdEbJikByKCTDTQRIg05A1Y1iFy2QME9GthPGxmohuLUgxaZ4hOniICXMA/6U4CzEdf54AAAAASUVORK5CYII=) repeat;
  font-family: 'Montserrat', sans-serif;
}

/* Slider styles moved outside of body */
#slider {
  width: 100%;
  max-width: 600px;
  height: auto;
  overflow: hidden;
  position: relative;
  margin: 0;
}

.slide {
  width: 100%;
  height: auto;
  display: none;
}

h1 {
  color: black;
  font-size: xxx-large;
}

h2 {
  color: black;
  font-size: xx-large;
}

h3 {
  color: dimgrey;
  font-size: x-large;
}

h4 {
  color: black;
  font-size: large;
}

p {
  line-height: 150%;
}

a {
  color: dimgrey;
}

.back-button {
  position: sticky;
  top: 85%;
  left: 87.5%;
  text-align: right;
  width: fit-content;
  background-color: white;
  z-index: 1;
}

.logo img {
  height: 100px;
  width: auto;
}

.topnav {
  display: flex;
  flex-wrap: nowrap;
  padding: 20px 40px 40px;
  position: relative;
  text-align: right;
}

.topnav a {
  color: black;
  padding-left: 30px;
}

.navfloat1 {
  flex: 25%;
}

.navfloat2 {
  flex: 75%;
  line-height: 150px;
}

main {
  margin: auto;
  max-width: 800px;
  padding: 40px;
  position: relative;
  width: 80%;
}

section {
  padding-bottom: 20px;
  padding-top: 20px;
}

.footnav {
  display: flex;
  flex-wrap: nowrap;
  padding: 20px;
  position: relative;
}

.footnav p {
  text-align: right;
}

.footfloat1 {
  flex: auto;
}

.footfloat2 {
  color: dimgrey;
  flex: auto;
  font-size: small;
  font-style: italic;
}

.two-col {
  display: flex;
  flex-wrap: wrap;
}

.col-a {
flex: 50%;
}

.col-a img {
  display: block;
  max-width: 400px;
  width: 100%;
  padding: 0px;
  border: none;
}

.col-b {
  flex: 40%;
  justify-content: flex-start;
}

/*Responsive*/
@media (max-width: 800px) {
  .logo img {
    height: auto;
    width: 100%;
  }

  .col-a {
    flex: 100%;
  }

  .col-a img {
    margin: auto;
  }

  .col-b {
    flex: 100%;
  }

  .topnav {
    flex-direction: column;
    flex-wrap: wrap;
    margin: auto;
    padding: 5px 5px 40px;
    text-align: center;
  }

  .topnav a {
    width: 100%;
  }

  .navfloat1 {
    flex: 100%;
    padding-bottom: 40px;
  }

  .navfloat2 {
    flex: 100%;
    line-height: 200%;
  }

  main {
    padding: 5%;
    width: 90%;
  }

  .footfloat1, .footfloat2 {
    flex: 100%;
  }
}

/* Slideshow container */
.slider {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.5);
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* Image grid and expanded image styling */
.image-grid-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  max-height: 350px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #f9f9f9;
}

.image-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.expanded-image-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.expanded-image-container img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.close-btn:hover {
  color: #f0f0f0;
}