/* photo-album.css */

/* Body and Page Styling */
body {
  font-family: Poppins, sans-serif;
  background: #f5f5f5;
  color: #333;
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #222;
}

a {
  text-decoration: none;
  color: #0077cc;
  margin-bottom: 25px;
  display: inline-block;
}

/* Display Area */
#display-area {
  text-align: center;
  margin-bottom: 30px;
}

#display-area figure {
  display: inline-block;
  margin: 0;
}

#display-area img {
  max-width: 80%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  display: block;
  margin: 0 auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#display-area figcaption {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #555;
}

/* Thumbnail Grid */
#album-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

#album-container img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

#album-container img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
  #album-container img {
    width: 90px;
    height: 60px;
  }

  h1 {
    font-size: 2rem;
  }

  #display-area img {
    max-width: 95%;
  }
}
