/* Body + header */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #0d1b2a, #000);
  color: #f1f1f1;
  margin: 0;
  padding: 0;
}

header {
  padding: 2rem 1rem;
  background: linear-gradient(90deg, #1f2833, #0b0c10);
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #66fcf1;
  text-shadow: 0 0 8px #45a29e;
}

p {
  margin-top: 0.5rem;
  color: #c5c6c7;
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

/* Card */
.card {
  background: #1f2833;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(102,252,241,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(102,252,241,0.5);
}

.card img {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.card img:hover {
  transform: scale(1.02);
}

.card-content {
  padding: 1rem;
  text-align: left;
}

.card-content h2 {
  margin: 0 0 0.5rem;
  color: #66fcf1;
}

.card-content p {
  font-size: 0.9rem;
  color: #c5c6c7;
}

.card-content button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #45a29e;
  border: none;
  border-radius: 8px;
  color: #0b0c10;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.card-content button:hover {
  background: #66fcf1;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  padding-top: 3rem;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.85);
}

.modal-content {
  background: #1f2833;
  margin: auto;
  padding: 1rem;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  box-shadow: 0 0 25px rgba(102,252,241,0.3);
  position: relative;
}

#modal-close {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 2rem;
  cursor: pointer;
  color: #66fcf1;
}

#modal-img {
  width: 100%;
  border-radius: 8px;
  transition: transform 20s linear;
}

#modal-facts {
  font-size: 0.95rem;
}

#modal-facts h3 {
  margin-top: 0;
  color: #66fcf1;
}

#modal-facts a {
  color: #66fcf1;
  text-decoration: none;
}

#modal-facts a:hover {
  text-decoration: underline;
}

.download-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: #0b0c10;
  color: #66fcf1;
  border: 1px solid #66fcf1;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: 0.3s;
}

.download-btn:hover {
  background: #66fcf1;
  color: #0b0c10;
}

/* Modal navigation buttons */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #66fcf1;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
  user-select: none;
  z-index: 20;
}

.modal-nav:hover {
  background: #66fcf1;
  color: #0b0c10;
}

#modal-prev { left: 20px; }
#modal-next { right: 20px; }

/* Fullscreen Overlay / Lightbox */
.fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: zoom-out;
  transition: opacity 0.4s ease;
}

.fullscreen-overlay img {
  max-width: 95%;
  max-height: 95%;
  box-shadow: 0 0 40px rgba(102,252,241,0.7);
  border-radius: 8px;
  transition: opacity 0.5s ease, transform 20s linear;
  opacity: 1;
  transform: scale(1) translate(0, 0);
}

.fullscreen-overlay img.active {
  transform: scale(1.05) translate(1%, 1%);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #66fcf1;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.nav-btn:hover {
  background: #66fcf1;
  color: #0b0c10;
}

#prevBtn { left: 20px; }
#nextBtn { right: 20px; }
