body {
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  height: 100%;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

.gallery {
  column-count: 3;
  column-gap: 1rem;
  padding: 1rem;
}

.gallery img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 8px;
  display: block;
  break-inside: avoid;
  transition: transform 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
  cursor: pointer;

  /* تأثير الظهور */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.gallery img:nth-child(1),
.gallery img:nth-child(3),
.gallery img:nth-child(5)
 {animation-delay: 0.1s;}
.gallery img:nth-child(2),
.gallery img:nth-child(4),
.gallery img:nth-child(6)
 {animation-delay: 0.2s;}
.gallery img:nth-child(7),
.gallery img:nth-child(8),
.gallery img:nth-child(9)
 {animation-delay: 0.3s;}


@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery img:hover {
  transform: scale(1.03);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}
.page-title {
  text-align: center;
  font-size: 2.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
}
.page-title {
  /* التنسيقات الحالية... */
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  cursor: pointer;
}

.nav {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
}

.nav.left {
  left: 30px;
}

.nav.right {
  right: 30px;
}

footer {
            background-color: #1a2357;
            color: #fff;
            text-align: center;
            padding: 25px;
            font-size: 1rem;
            margin-top: 70px;
        }
        @media (max-width: 768px) {
            .section {
                flex-direction: column !important;
            }
            .section img, .content {
                width: 100%;
            }
            .content h2 {
                text-align: center;
            }
        }