/* ===== GALLERY ===== */
.gallery {
  padding: 70px 20px;
  text-align: center;
  background: #f5f8ff;
}

.gallery h2 {
  font-size: 36px;
  font-weight: 800;
  color: #0e45bc;
}

.gallery-sub {
  color: #555;
  margin-bottom: 40px;
}

/* ===== FOLDERS ===== */
.gallery-folders {
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ ONLY 3 PER ROW */
  gap: 30px;
  margin-top: 40px;
}

.folder {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Folder tab effect */
.folder::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  width: 60px;
  height: 18px;
  background: #0e45bc;
  border-radius: 6px 6px 0 0;
}

.folder img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

.folder span {
   display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #00265f;
}

@media (hover: hover) {
  .folder:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.18);
  }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
}

/* Close */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

/* Navigation */
.navv {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  font-size: 30px;
  padding: 10px 16px;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
}

.prev { left: 30px; }
.next { right: 30px; }

/* Mobile */
@media (max-width: 600px) {
  .folder img {
    height: 140px;
  }
}
