* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Roboto", sans-serif;
  background-color: rgb(243, 243, 243);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(58, 58, 58);
  color: white;
  padding: 15px 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav h1 {
  font-size: 1.8rem;
  font-weight: 500;
}

nav h2 {
  font-size: 1.1rem;
  font-weight: 300;
  margin-top: 5px;
}

nav #right-content a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  margin-left: 30px;
  position: relative;
}

nav #right-content a:hover {
  color: rgb(190, 190, 71);
}

nav i {
  margin-left: 10px;
}

#photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 90vw;
  margin: 40px auto;
}

#photo-grid div {
  background-color: #ddd;
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#photo-grid div:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

#photo-grid div:nth-child(1) {
  background-image: url("img/img1.jpg");
}

#photo-grid div:nth-child(2) {
  background-image: url("img/img2.jpg");
}

#photo-grid div:nth-child(3) {
  background-image: url("img/img3.jpg");
}

#photo-grid div:nth-child(4) {
  background-image: url("img/img4.jpg");
}

#photo-grid div:nth-child(5) {
  background-image: url("img/img5.jpg");
}

#photo-grid div:nth-child(6) {
  background-image: url("img/img6.jpg");
}

#photo-grid div:nth-child(7) {
  background-image: url("img/img7.jpg");
}

#photo-grid div:nth-child(8) {
  background-image: url("img/img8.jpg");
}

#photo-grid div:nth-child(9) {
  background-image: url("img/img9.jpg");
}

#photo-grid div:nth-child(10) {
  background-image: url("img/img10.jpg");
}

footer {
  background-color: rgb(58, 58, 58);
  color: white;
  text-align: center;
  padding: 15px 20px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer p {
  margin: 0;
}

/* Full-size image pop-up styles */
#image-popup {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Bring to the front */
}

#image-popup img {
  max-width: 80%;
  max-height: 80%;
  border: 2px solid white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#close-popup {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1100; /* In front of the image */
}

#close-popup:hover {
  color: #ddd;
}


@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  nav h1 {
    font-size: 1.5rem;
  }

  nav h2 {
    font-size: 1rem;
  }

  nav #right-content {
    margin-top: 10px;
  }

  nav #right-content a {
    font-size: 1rem;
    margin-left: 0;
    margin-right: 20px;
  }

  #photo-grid div {
    height: 200px;
  }

  footer {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  nav h1 {
    font-size: 1.2rem;
  }

  nav h2 {
    font-size: 0.9rem;
  }

  nav #right-content a {
    font-size: 0.9rem;
  }

  #photo-grid div {
    height: 510px;
  }
  

  footer {
    font-size: 0.75rem;
  }
} 