* {
    text-decoration: none;
}

body {
  margin: 0;
  padding: 0;
  background: #121721; 
  overflow-x: hidden;  
  color: white;
  font-family: "Space Grotesk", sans-serif;
}

/* NAVBAR */

.navbar {
    background-color: #121721;
    font-family: "Space Grotesk", sans-serif;
    border-bottom: #243346 solid 1px;
    padding-right: 15px;
    padding-left: 15px;
    padding-top: 8px;
    padding-bottom: 8px;
    width: 100%;
    top: 0;
    z-index: 1000;
    position: sticky;
}

.navdiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 18px;
    margin-left: 35px;
    font-weight: 600;
    color: white;
}

li {
    list-style: none; 
    display: inline-block;
}

li a {
    color: white;
    text-decoration-color: #9dc2ff;
    font-size: 14px;
    font-weight: 500;
    margin-right: 52px;
}

li a:hover {
    text-decoration: underline;
    text-decoration-color: #9dc2ff;
    text-decoration-thickness: 3px;
    transition: 0.5s;
}

/* Gallery */

.gallery {
  padding: 64px 24px;
  text-align: center;           
}

.gallery h1 {
  font-family: "Kalam", cursive;
  margin: 0 0 12px;
  font-size: 3rem;
  font-weight: 300;
}

.gallery p {
  margin: 0 auto 54px;         
  max-width: 800px;            
  line-height: 1.6;
  color: #ABB6C3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;                              
  max-width: 1200px;                     
  width: 100%;
  margin: 0 auto;                         
}

.gallery-grid img {
  display: block;          
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;    
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  will-change: transform;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  filter: brightness(0.98);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* Collapse navbar (hide menu links) ≤ 768px */
@media (max-width: 768px) {
  .navdiv { 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 8px 0;
  }
  .navbar ul, .navbar li, .navdiv ul, .navdiv li { 
    display: none !important;   
  }
  .logo a { margin-left: 0; font-size: 18px; }
}

/* Centered mobile layout ≤ 640px */
@media (max-width: 640px) {
  body { height: auto; text-align: center; }
  img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

  .logo a { margin-left: 0; }

  .gallery { padding: 40px 16px; }
  .gallery h1 { font-size: 2rem; }
  .gallery p { margin: 0 auto 32px; font-size: 15px; line-height: 1.5; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }

  footer { text-align: center; }
  footer .icons a { font-size: 24px; }
}
@media (max-width: 380px) {
  .gallery h1 { font-size: 1.6rem; }
  .gallery p { font-size: 14px; }
}
