/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: 'Georgia', serif;
  background: #fdf6e3;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background-color: #fdf6e3;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  position: sticky;     
  top: 0;               
  z-index: 999;         
  transition: padding 0.3s ease; /* smooth shrink */
}

.logo img {
  height: 120px;        
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease; /* smooth shrink */
}

/* Shrink class applied on scroll */
header.shrink {
  padding: 0.5rem 2rem; /* smaller header padding */
}

header.shrink .logo img {
  height: 70px; /* smaller logo */
}


.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}



.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.navbar li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 6px 0;
}

.navbar li a:hover {
  border-bottom: 2px solid #ffc43d;
  color: #316943;
}

/* Gallery Main */
.gallery-page {
  flex-grow: 1;
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-header h2 {
  font-size: 2.5rem;
  color: #316943;
  margin-bottom: 0.5rem;
}

.gallery-header p {
  font-size: 1.1rem;
  color: #555;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  padding: 1rem 0;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(49, 105, 67, 0.25);
}

/* Footer */
footer {
  background: linear-gradient(to right, #316943, #ffc43d);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-content p {
  margin: 0.4rem 0;
}

.footer-content a {
  color: #ffc43d;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-content img {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

/* ------------------ Responsive for All Screens ------------------ */

/* Tablet adjustments */
@media (max-width: 768px) {
  .logo img {
    height: 100px;    /* slightly smaller on tablet */
  }

  .gallery-header h2 {
    font-size: 2.2rem;
  }

  .gallery-header p {
    font-size: 1rem;
  }

  .navbar {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .gallery-page {
    padding: 1.5rem 1rem;
  }

  .gallery-header h2 {
    font-size: 1.8rem;
  }

  .gallery-header p {
    font-size: 0.95rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
  }

  .logo img {
    height: 80px;     /* mobile logo smaller */
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    justify-content: center;
    margin-top: 1rem;
  }
}
