/* resetting and box sizing */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: rgb(1, 53, 71);
}
/* navigation links */
.navigation {
    display:flex;
    justify-content: space-between;
    align-items :center;
    padding: 30px;
    background-color:rgb(1, 30, 58);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 0%;
}
.title {
    font-size: 22px;
    color: white
}
.site-nav a {
    margin-left: 20px;
    text-decoration: none;
    color:white;
    text-decoration: none;
    font-weight: bold;
}
.site-nav a:hover {
  color: #4760ff;
}
/* Gallery main section */
.gallery {
  padding: 50px 20px;
  text-align: center;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-shadow: 2px 2px 6px #000;
  color: #ffeaaa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 0 10px;
}

/* Image styling */
.gallery-grid img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 12px 30px rgba(255, 223, 100, 0.6);
}

/* Footer styling */
footer {
  background-color: #092d49;
  padding: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

/* 📱 Mobile responsiveness */
@media (max-width: 768px) {
  .navigation {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
  }

  .site-nav a {
    margin-bottom: 8px;
  }

  .gallery h2 {
    font-size: 1.6rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}