/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #f0f4f8, #e2e7ed);
  color: #333;
  padding: 20px;
}

.logo a {
  text-decoration: none;
  color: #0077cc;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #004a99;
}

h1 {
  text-align: center;
  font-size: 36px;
  color: #1f3a60;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  
  justify-content: center;
  padding: 20px;
}

.college {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  text-align: center;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.college:nth-child(odd) {
  animation-delay: 0.2s;
}
.college:nth-child(even) {
  animation-delay: 0.4s;
}

.college:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.college img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: filter 0.4s ease;

}

.college:hover img {
  filter: brightness(1.1);
}

.college p {
  padding: 15px;
  font-size: 16px;
  color: #2c3e50;
  background-color: #f7fafc;
}

/* Gallery modal */
.gallery {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  z-index: 9999;
  animation: fadeIn 0.5s ease;
}

.gallery .close {
  position: fixed;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.gallery .images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 80px 40px 40px;
  justify-content: center;
}

.gallery .images img {
  max-width: 300px;
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery .images img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 20px rgba(255, 255, 255, 0.2);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  animation: scaleUp 0.3s ease;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transition: color 0.3s ease;
}

.lightbox .close:hover,
.lightbox .prev:hover,
.lightbox .next:hover {
  color: #ccc;
}

.lightbox .close {
  top: 20px;
  right: 30px;
}

.lightbox .prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.lightbox .next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .college {
    width: 90%;
  }

  .gallery .images img {
    max-width: 90%;
  }
}
#lightbox {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#lightbox.visible {
  opacity: 1;
}

#lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#lightbox-img.fade {
  opacity: 0.3;
  transform: scale(0.98);
}
.lightbox {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.visible {
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  color: #fff;
  font-size: 2rem;
  position: absolute;
  cursor: pointer;
  user-select: none;
}

.lightbox .close {
  top: 10px;
  right: 20px;
}

.lightbox .prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
