@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap');

#image-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* this is okay initially */
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

#zoomed-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
  cursor: pointer;
}


#image-zoom-overlay {
  display: none;
  /* everything else as before */
}

#image-zoom-overlay.active {
  display: flex;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background-color: #2e3b24;
  color: #e0e0d1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.header {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
}

.header-text-block {
  padding: 20px;
}

.header-text {
  font-family: 'Uncial Antiqua', cursive;
  color: white;
  font-size: 42px;
  margin-left: 40px;
  font-weight: bold;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.header-subtext {
  font-family: 'Uncial Antiqua', cursive;
  font-size: 22px;
  font-weight: normal;
  margin-left: 50px;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.nav {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
  gap: 0.5rem;
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 16px;
  transition: background 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.pgallery img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease, z-index 0.3s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.pgallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #1e2a16;
  border-radius: 10px;
  box-shadow: inset 4px 4px 10px rgba(0,0,0,0.4), inset -4px -4px 10px rgba(255,255,255,0.3);
}

.gallery {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #1e2a16;
  border-radius: 10px;
  box-shadow: inset 4px 4px 10px rgba(0,0,0,0.4),
              inset -4px -4px 10px rgba(255,255,255,0.3);
}


.gallery img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease, z-index 0.3s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.gallery-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.gallery-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 20px;
}

.gallery-icons img {
  width: 100px;
  height: auto;
  transition: transform 0.3s ease;
}

.gallery-description {
  text-align: left;
  padding: 0 10px;
  color: #e0e0d1;
}

.gallery-video {
  display: flex;
  justify-content: center;
  padding: 20px 10px 0;
}

.gallery-video iframe {
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}

.footer {
  text-align: center;
  padding: 20px;
  background: #1a2412;
  color: #cfcfb1;
}

/* MOBILE STYLES */
@media (max-width: 600px) {

 .pgallery {
   display: flex;
   flex-direction: column;
   align-items: center;
   width: 80%;
   padding: 0;
  }

  .pgallery img {
    width: 80vw;
    max-width: 100vw;
    border-radius: 0;
  }

  .nav a {
    font-size: 14px;
    padding: 6px 8px;
  }

  .nav {
    gap: 0.2rem;
  }

 .gallery {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 80%;
      padding: 20px;
  }

  .header {
    height: 130px;
  }

  .header-text {
    font-size: 24px;
  }

  .header-subtext {
    font-size: 12px;
  }

  .gallery-icons img {
    width: 50px;
  }

  .gallery-description {
    padding: 0 10px;
  }

  .gallery-video {
    padding: 20px 0 0;
  }
  .gallery img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }
}
