* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.highlight {
  color: deepskyblue !important;
  font-weight: bold;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Make sure there are no conflicting position properties */
html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 0; /* Remove any padding if using position: sticky */
}

/* Enhanced navbar styling for stickiness */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  position: fixed; /* Changed to fixed for guaranteed stickiness */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Higher z-index to ensure it stays on top */
}

/* Add padding to main content to prevent it from hiding behind the fixed navbar */
main {
  flex: 1 0 auto;
  padding-top: 100px; /* Adjust this value based on your navbar height */
}

/* For mobile responsiveness */
@media (min-width: 768px) {
  main {
    padding-top: 95px; /* Adjust for desktop navbar height */
  }
}

.logo {
  height: 60px;
  margin: 0 auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  position: relative;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px;
  display: block;
  font-size: 0.9rem;
}

.nav-links li a:hover {
  color: #007bff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  list-style: none;
  padding: 0;
  min-width: 150px;
  z-index: 10;
}

.dropdown-menu li a {
  padding: 10px 15px;
  color: #333;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
  color: #007bff;
}

.nav-links li:hover .dropdown-menu {
  display: block;
}

/* Gallery styles */

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  padding: 2rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

p.description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #666;
}


/* Gallery Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Image container with aspect ratio */
.image-container {
  position: relative;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover .image-container img {
  transform: scale(1.1);
}

/* Aspect ratios */
.aspect-4-3 {
  aspect-ratio: 4/3;
}

.aspect-3-4 {
  aspect-ratio: 3/4;
}

.aspect-1-1 {
  aspect-ratio: 1/1;
}

.aspect-3-2 {
  aspect-ratio: 3/2;
}

.aspect-2-3 {
  aspect-ratio: 2/3;
}

/* Image overlay */
.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .image-overlay {
  opacity: 1;
}

/* Footer */
footer {
  margin-top: 3rem;
  text-align: center;
  color: #666;
  font-size: 0.875rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

/* Navigation buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1010;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.prev-button {
  left: 1rem;
}

.next-button {
  right: 1rem;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1010;
}

.close-button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .navbar {
    flex-wrap: nowrap;
  }

  .logo {
    height: 75px;
    margin: 0;
  }

  .nav-links {
    width: auto;
    margin-top: 0;
    gap: 20px;
    justify-content: flex-end;
  }

  .nav-links li a {
    padding: 10px;
    font-size: 1rem;
  }

  .container {
    padding: 2rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .lightbox-content {
    height: 75vh;
  }

  .lightbox-image {
    max-height: 75vh;
  }

  .lightbox-info {
    padding: 1rem;
  }

  .lightbox-title {
    font-size: 1.25rem;
  }

  .image-info {
    padding: 1rem;
  }
}

/* Footer styles */
.footer {
  width: 100%;
  background-color: #000;
  color: #fff;
  border-top: 1px solid #333;
  bottom: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-section {
  margin-bottom: 0px;
}

.footer-heading {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 0px;
  color: #fff;
}

.footer-text {
  font-size: 14px;
  color: #ccc;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
  width: 20px;
  height: 20px;
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #333;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .copyright {
    margin-bottom: 0;
  }
}

.footer-policies {
  display: flex;
  gap: 16px;
}

.footer-policies a {
  font-size: 14px;
  color: #aaa;
  text-decoration: none;
}

.footer-policies a:hover {
  text-decoration: underline;
  color: #fff;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}