/* ===== GALLERY ===== */
.gallery {
  padding: 80px 0;
  background-color: #fafafa;
}

.gallery__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery__item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery__item:hover {
  transform: scale(1.03);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__image {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: opacity 0.3s ease;
}

/* Close button */
.lightbox__close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.lightbox__close:hover {
  opacity: 0.7;
}

/* Arrows */
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 20px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.lightbox__arrow:hover {
  opacity: 1;
}

.lightbox__arrow--left {
  left: 20px;
}

.lightbox__arrow--right {
  right: 20px;
}
