body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.gallery {
	z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 59px;
  justify-content: center;
  margin-top: 50px;
}
.thumbnail {
  width: 240px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
  filter: grayscale(0.2) brightness(0.9);
}
.thumbnail:hover {
  transform: scale(1.08) ;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  filter: grayscale(0) brightness(1.1);
  z-index: 2;
}
.lightbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 10%; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
  z-index: 999;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 82vw;
  max-height: 70vh;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.85);
  background: #222;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: box-shadow 0.3s;
  animation: zoomIn 0.4s;
}
@keyframes zoomIn {
  from { transform: scale(0.7); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.close-btn {
  position: absolute;
  top: 220px;
  right: 320px;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1001;
  filter: drop-shadow(0 0 4px #000);
}
.close-btn:hover {
  color: #f33;
}
.arrow {
  position: absolute;
  top: 50%;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  transform: translateY(-50%);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  z-index: 1001;
}
.arrow:hover {
  background: #fff;
  color: #222;
  box-shadow: 0 4px 24px #fff3;
}
.arrow.left { left: 48px; }
.arrow.right { right: 48px; }
@media (max-width: 700px) {
  .thumbnail { width: 60px; height: 60px; }
  .arrow { font-size: 32px; padding: 6px 10px; }
  .close-btn { font-size: 32px; right: 20px; }
}