/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0d0d0d;
  color: #ddd;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  min-height: 100vh;
}

header {
  padding: 40px 20px 10px;
}

h1 {
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: #f2f2f2;
}

.subtitle {
  color: #999;
  font-size: 0.95rem;
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Each item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
  border-radius: 12px;
}

/* Hover overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 0.9rem;
  border-radius: 12px;
}

.gallery-item:hover img {
  transform: scale(1.1);
  opacity: 0.9;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Footer */
footer {
  padding: 20px;
  font-size: 0.8rem;
  color: #777;
  border-top: 1px solid #222;
}
