/* Warm Gradient Background for Body */
body {
  background: linear-gradient(135deg, #fff8f0 0%, #fef3e2 25%, #fde5c4 50%, #fbc994 75%, #fff8f0 100%);
  background-attachment: fixed;
}

/* Masonry Gallery */
.gallery-masonry {
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 480px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (min-width: 768px) {
  .gallery-masonry {
    column-count: 3;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry {
    column-count: 4;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  break-inside: avoid;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.gallery-overlay i {
  color: white;
  font-size: 1.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0.5rem;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Mobile Menu Button */
.menu-toggle {
  background: transparent;
  border: none;
  padding: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #3d3226;
}

/* Desktop Menu */
@media (min-width: 768px) {
  #nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: auto;
    gap: 1.5rem;
  }

  #nav-links li {
    width: auto;
    text-align: left;
  }

  #nav-links a {
    padding: 0;
    border: none;
    font-size: 1.0625rem;
  }

  .menu-toggle {
    display: none !important;
  }
}

/* Mobile Menu */
@media (max-width: 767px) {
  .menu-toggle {
    display: flex !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  #nav-links {
    display: none !important;
  }

  #nav-links.mobile-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    width: 100%;
  }

  #nav-links.mobile-open li {
    width: 100%;
    text-align: center;
  }

  #nav-links.mobile-open a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #d9d0c3;
  }

  #nav-links.mobile-open li:last-child a {
    border-bottom: none;
  }

  header {
    position: relative;
  }
}

/* Footer */
footer {
  background: linear-gradient(135deg, #6b3410 0%, #8b4513 50%, #6b3410 100%);
  color: white;
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Header Navigation Underline Effect */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #5d4e37;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Skip Link */
.skip-link:focus {
  top: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: #6b8e23;
  color: white;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #4a5a1a;
  transform: translateY(-3px);
}

/* Print Styles */
@media print {
  .lightbox,
  .cookie-notice,
  header,
  footer {
    display: none !important;
  }
}
