/* Navigation Bar */
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

li {
  float: left;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover {
  background-color: #111;
}

/* General Page Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

img {
  max-width: 100%;
  height: auto;
  margin-top: 60px;
  margin-bottom: 20px;
  object-fit: contain;
  cursor: pointer;
}

/* EXIF Data Box */
.exif-info {
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin-top: 20px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  text-align: center;
}

.modal img {
  max-width: 100%;
  max-height: 80vh;
  transform: scale(1);
  transition: transform 0.2s ease-in-out; /* Smooth zoom transitions */
}

.modal-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.modal-controls button {
  padding: 10px 15px;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-controls button:hover {
  background-color: #f0f0f0;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  img {
    max-width: 90%;
  }

  .exif-info {
    max-width: 100%;
    margin-top: 10px;
  }

  .modal img {
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .exif-info {
    font-size: 14px;
  }

  img {
    max-width: 100%;
  }

  .modal img {
    max-height: 60vh;
  }
}
