/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  text-align: center;
  padding: 3rem 1rem;
  background: #d6bcbc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-bottom: 1px solid #e9e9e9;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  color: #555;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  border: 3px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
  border-color: #ffb400; /* sleek highlight */
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.gallery-img {
  width: 100%;
  height: 250px; /* uniform size */
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 75%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.lightbox-caption {
  color: #fff;
  margin-top: 1rem;
  text-align: center;
  font-size: 1.1rem;
}

/* Lightbox Buttons */
button.close, button.prev, button.next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

button.close:hover, button.prev:hover, button.next:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.2);
}

button.close { top: 20px; right: 30px; }
button.prev { top: 50%; left: 20px; transform: translateY(-50%); }
button.next { top: 50%; right: 20px; transform: translateY(-50%); }

/* Accessibility hidden */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-img { height: 200px; }
  button.close, button.prev, button.next { font-size: 2rem; }
}
