/* Reset */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* Page background */
body {
  font-family: Verdana, Arial, sans-serif;

  background-image: url("../../images/paint.png");
  background-repeat: repeat;
  background-size: auto;

  animation: bg-scroll 40s linear infinite;
}

@keyframes bg-scroll {
  from { background-position: 0 0; }
  to   { background-position: 0 1000px; }
}

/* Main gallery box */
.gallery-box {
  max-width: 1100px;
  margin: 60px auto;
  padding: 30px;

  background-color: rgb(255, 255, 255);

  border: 4px solid #444;
  box-shadow: 0 0 0 2px #999;
}

/* Page title */
.page-title {
  text-align: center;
  font-size: 2.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Subtitle */
.page-subtitle {
  text-align: center;
  font-size: 0.95em;
  color: #555;
  margin-top: 0;
  margin-bottom: 35px;
}

/* Image grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}

/* Thumbnails */
.gallery-grid img {
  width: 100%;
  height: auto;
  cursor: pointer;

  border: 3px solid #444;
  background-color: #eee;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}

/* Return Home */
.return-home {
  margin-top: 40px;
  text-align: center;
}

.return-home a {
  display: inline-block;
  padding: 12px 28px;

  background-color: #444;
  color: white;
  text-decoration: none;
  font-weight: bold;

  border: 3px solid #222;
}

.return-home a:hover {
  background-color: #666;
}

/* Lightbox overlay */
#lightbox {
  position: fixed;
  inset: 0;

  background-color: rgba(0, 0, 0, 0.85);
  display: none;

  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* Full-size image */
#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;

  border: 4px solid #444;
  background-color: black;
}

/* === DESCRIPTION BAR (FIXED AT BOTTOM) === */
#lightbox-desc {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  padding: 14px 20px;

  background-color: rgba(0, 0, 0, 0.85);
  color: #ddd;

  font-size: 0.95em;
  text-align: center;

  border-top: 3px solid #444;

  display: none;
  z-index: 10000;
}
