/* ====== Base Reset ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ====== Body ====== */
body {
  font-family: Georgia, serif;
  background-color: #f2f2f2;
}

a:visited {
  text-decoration: none;
  color: black;
}

/* ====== Header & Navigation ====== */
header {
  background-attachment: fixed;
  background-image: url("../photos/Header.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  height: 100vh;
  position: relative;
}

header nav {
  position: relative;
  z-index: 1;
  background: rgba(242, 242, 242, 1); /* 0.XX semi-transparent */
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 a {
  text-decoration: none;
  color: inherit;
  font-size: 20px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: black;
  font-size: 16px;
  text-decoration: none;
  font-family: Georgia, serif;
}

nav ul li a:hover {
  color: #999;
}

/* Hide mobile toggle and dropdown on desktop */
.mobile-menu-toggle,
.mobile-dropdown {
  display: none;
}

/* Desktop nav styles */
.desktop-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hide desktop nav on mobile, show mobile elements */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    cursor: pointer;
    background-color: transparent;
    padding: 10px;
    font-size: 18px;
    font-family: Georgia, serif;
    margin-left: auto;
  }

  .mobile-dropdown {
    display: none;
    position: absolute;
    top: 84px; /* adjust if needed to appear under nav */
    left: 0;
    width: 100%;
    background: rgba(242, 242, 242, 1);
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 2;
  }

  .mobile-dropdown li {
    text-align: right;
    padding: 12px 16px;
  }

  .mobile-dropdown li a {
    color: black;
    text-decoration: none;
    font-family: Georgia, serif;
  }

  .mobile-dropdown li a:hover {
    color: #999;
  }

  header {
    position: relative;
    z-index: 1;
  }

  nav {
    position: relative;
    z-index: 2;
  }
}

/* ====== Grid Container ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ====== Image Grid ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Always 3 on desktop */
  gap: 8px;
  width: 90vw;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0;
}

.grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.grid img:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Footer ====== */
footer {
  font-family: Georgia, serif;
  font-size: 13px;
  padding: 30px 0;
  text-align: center;
  background-color: #f2f2f2;
}

footer h2 {
  margin-bottom: 10px;
}

footer a img.bottom {
  margin: 0;
  padding: 0 3px 15px 3px;
  width: 22px;
}

/* ====== Modal ====== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal:target {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.modal-caption {
  color: white;
  font-family: Georgia, serif;
  font-size: 1rem;
  margin-top: 0.5rem;
  text-align: center;
  max-width: 90%;
}

/* ====== Modal Controls ====== */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  text-decoration: none;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  background-color: transparent;
  border-radius: 0;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}












