/* style.css */

/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body {
  background: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 1rem;
  background: #fafafa;
  font-family: system-ui, sans‑serif;
}

/* Container */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
header h1 {
  font-size: 1.75rem;
  color: #222;
}
nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #555;
  font-weight: 500;
}
nav a:hover {
  color: #000;
}

/* Album Grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.album-card {
  background: lightgoldenrodyellow;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s;
  padding: 1rem;
}
.album-card:hover {
  transform: translateY(-4px);
}
.album-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.album-card .info {
  padding: 0.5rem;
}
.album-card .info h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.album-card .info p {
  font-size: 0.9rem;
  color: #666;
}

/* Slideshow / Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox img,
.lightbox video {
  max-width: 90%;
  max-height: 90%;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Forms (upload & request) */
form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
form label {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
}
form input[type="text"],
form input[type="file"],
form button {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form button {
  background: #0073bb;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
form button:hover {
  background: #005fa3;
}

/* Footnote */
footer {
  text-align: center;
  margin: 2rem 0;
  font-size: 0.8rem;
  color: #999;
}

/* page heading */
h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #333;
}

/* grid container for albums */
#albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem; /* spacing between cards */
  margin-bottom: 1.5rem;
}

.album-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* the “Request Upload” button */
button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #0073bb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #005fa3;
}
