/* ================= GALLERY ================= */

.gallery {
  padding: 100px 80px;
  background: #fff;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ================= LIGHTBOX ================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;

  z-index: 9999;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90%;
  max-height: 85vh;

  border-radius: 15px;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);

  transform: scale(0.9);

  transition: 0.3s ease;
}

.lightbox.show .lightbox-image {
  transform: scale(1);
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;

  color: #fff;
  font-size: 45px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;
}

.close-lightbox:hover {
  color: #f4a100;
  transform: rotate(90deg);
}

/* ================= LIGHTBOX NAVIGATION ================= */

.prev-image,
.next-image {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 55px;
  height: 55px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.15);
  color: #fff;

  font-size: 28px;
  cursor: pointer;

  transition: 0.3s ease;
}

.prev-image:hover,
.next-image:hover {
  background: #f4a100;
}

.prev-image {
  left: 40px;
}

.next-image {
  right: 40px;
}
