* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 100px; /* exactly navbar height */
  font-family: sans-serif;
  background: #000;
  color: #fff;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.nav-links {
  list-style: none; /* removes bullets */
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: #00bfff; /* optional hover accent */
}

/* Restore original logo size relative to navbar */
.logo {
  height: 100%;
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 80%; /* auto-resize inside navbar */
  width: auto;
  object-fit: contain;
  display: block;
}


/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}

/* Vertical images */
.photo {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Grow on hover */
.grow {
  transition: transform 0.2s ease-in-out;
}

.photo:hover {
  z-index: 10;
}

.photo:hover .grow {
  transform: scale(1.21);
  border-radius: 12px;             /* rounded corners */
  /* More intense glassy edge glow */
  box-shadow: 
    0 0 25px 8px rgba(255,255,255,0.50),
    0 0 50px 15px rgba(255,255,255,0.25),
    0 0 80px 25px rgba(255,255,255,0.15);
  transition: transform 0.2s ease-in-out,
              border-radius 0.2s ease-in-out,
              box-shadow 0.2s ease-in-out,
              background 0.2s ease-in-out,
              backdrop-filter 0.2s ease-in-out;
}



/* Horizontal row — auto scales for 1–3 images */
.row-horizontal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.row-horizontal .photo {
  aspect-ratio: 16 / 9;
  margin-bottom: -3.9px;
}

/* Blur-up effect */
.blur-up {
  filter: blur(20px);
  transform: scale(1.05);
}

.blur-up.loaded {
  filter: blur(0);
  transform: scale(1);
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Contact section */
.contact {
  padding: 100px 40px;
  text-align: center;
}

.contact h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact p {
  font-size: 1rem;
  margin: 5px 0;
}

.contact a {
  color: inherit; /* keep the base text color */
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact a:hover {
  background: rgba(255,255,255,0.15); /* semi-transparent glassy overlay */
  backdrop-filter: blur(6px);         /* glassy blur effect */
  border-radius: 8px;                  /* soft rounded corners */
  padding: 2px 6px;
}


a.contact-style {
  color: inherit; /* keep base text color */
  text-decoration: none;
  transition: all 0.3s ease;
  
  /* Glow outline before hover */
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5); /* soft glow */
  border-radius: 6px; /* match hover softness */
  padding: 2px 6px;
}

a.contact-style:hover {
  background: rgba(255, 255, 255, 0.15); /* semi-transparent overlay */
  backdrop-filter: blur(6px);             /* glassy blur effect */
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8); /* brighter glow on hover */
  border-radius: 8px;                      /* slightly bigger on hover */
  padding: 2px 6px;
}


.donate-button {
  background: #00bfff;
  color: #fff;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

/* Hover effect for desktop */
.donate-button:hover {
  background: #1e1e1e;
  color: #00bfff;
  border: 2px solid #00bfff;
  content: "Make a voluntary donation"; /* text swap handled in JS fallback below */
}

/* Active effect for mobile (tap) */
.donate-button:active {
  background: #1e1e1e;
  color: #00bfff;
  border: 2px solid #00bfff;
}

/* Optional: animate text swap smoothly using pseudo-element */
.donate-button::after {
  content: "Support the journey (optional)";
  display: block;
  transition: opacity 0.3s ease;
}

/* Disable pseudo-element inside modal */
.no-pseudo .donate-button::after {
  content: none;
}

.donate-button:hover::after,
.donate-button:active::after {
  content: "Make a voluntary donation";
}

/* Frosted overlay div */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px) saturate(90%);
  z-index: 2999;
}

/* Donation modal */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 500px;
  height: auto;
  max-height: 90vh;
  background: rgba(0,0,0,0.95); /* frosty glass base */
  backdrop-filter: blur(20px) saturate(90%);
  border-radius: 16px;
  padding: 20px;
  z-index: 3000;
  overflow-y: auto;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* Modal content */
.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 40px; /* push content below X */
}

/* Close button */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  user-select: none; /* prevent text highlight */
  -webkit-user-select: none;
  -ms-user-select: none;
  z-index: 3010;
}


/* Overlay behind modal when active */
body.modal-open::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px) saturate(90%);
  z-index: 1999;
}

/* Disable pseudo-element inside modal */
.no-pseudo .donate-button::after {
  content: none;
}




/* ===========================
   Mobile & Tablet Responsive
=========================== */

/* Tablet (<=1024px) */
@media (max-width: 1024px) {
  body {
      margin-top: -120px; /* exactly navbar height */
    }
    
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* no space between images */
  }

  .row-horizontal {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .navbar {
    padding: 0 20px;
    height: 120px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    z-index: 1000;
  }

  .logo img {
    max-height: 70%;
  }

  /* Burger menu */
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
  }

  .burger div {
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .nav-links li a {
    color: #00bfff; /* blue text on mobile */
  }

  .nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -220px;
    height: 100%;
    width: 220px;
    background: rgba(255,255,255,0.95); /* frosty white */
    backdrop-filter: blur(12px);
    padding-top: 120px;
    gap: 20px;
    border-radius: 0 0 0 12px;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-links.show {
    right: 0;
  }

  .burger.open div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.open div:nth-child(2) {
    opacity: 0;
  }
  .burger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* When modal is active, lock scroll */
body.modal-open {
  overflow: hidden;
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .photo:hover,
  .photo:hover .grow {
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .grow {
    transition: none !important;
  }
}


/* Mobile preview overlay */
.preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.6); /* frosty glass */
  backdrop-filter: blur(20px) saturate(90%);
  z-index: 1999;
}

/* The image preview */
.preview-image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 90vw;
  height: auto;
  max-height: 80vh;
  z-index: 2000;
  border-radius: 12px;
  box-shadow: 
    0 0 25px 8px rgba(255,255,255,0.50),
    0 0 50px 15px rgba(255,255,255,0.25),
    0 0 80px 25px rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}


/* Prevent selection on all photos */
.photo img {
  user-select: none;       /* disable text selection */
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-touch-callout: none; /* disables long-press context menu on iOS */
  touch-action: manipulation;  /* prevents default gestures */
}

/* Prevent selection and context menu */
.photo {
  -webkit-user-select: none; /* disable text selection */
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* disables context menu on iOS */
  touch-action: manipulation;  /* prevent default gestures */
}

.photo img {
}


/* Phones (<=768px) */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 120px;
  }

  .row-horizontal {
    grid-template-columns: 1fr;
  }

  .logo img {
    max-height: 60%;
  }

  .contact {
    padding: 80px 20px;
  }

  .contact h1 {
    font-size: 1.5rem;
  }

  .contact p {
    font-size: 0.9rem;
  }
}

/* Small phones (<=480px) */
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 120px;
  }

  .row-horizontal {
    grid-template-columns: 1fr;
  }

  .logo img {
    max-height: 50%;
  }

  .navbar {
    padding: 10px 20px;
    height: 100px;
  }

  .nav-links li a {
    color: #00bfff;
  }

  .nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -240px;
    height: 100vh;
    width: 240px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(90%);
    padding-top: 140px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 20px;
    border-radius: 0 0 0 12px;
    transition: right 0.4s ease;
    z-index: 999;
  }
}

/* ===========================
   Mobile Landscape (<=1024px, landscape)
=========================== */
@media (max-width: 1024px) and (orientation: landscape) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* no spacing between photos */
    margin-top: 80px;
  }

  /* Landscape photos take full row */
  .gallery img.landscape {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
  }

  .row-horizontal {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .logo img {
    max-height: 50%;
  }

  /* Navbar fully transparent */
  .navbar {
    padding: 10px 20px;
    height: 100px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
  }

  /* Burger menu */
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
  }

  .burger div {
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Full-height nav menu */
  .nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -240px;
    height: 100vh; /* full height */
    width: 240px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px) saturate(90%);
    padding-top: 120px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 20px;
    border-radius: 0 0 0 12px;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-links.show {
    right: 0;
  }

  .burger.open div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.open div:nth-child(2) {
    opacity: 0;
  }
  .burger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-links li a {
    color: #00bfff;
  }

  /* Modal image adjustments */
  .preview-image {
    width: auto;
    max-width: 90vw;
    max-height: 80vh; /* maintain height, no stretching */
    height: auto;
  }
}


/* Ensure vertical scroll */
body, html {
  overflow-x: hidden;
  overflow-y: auto;
}
