/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: white;
  overflow-x: hidden;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;

  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease; /* Smooth hide effect */
}

.logo {
  color: black;
  font-size: 16px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  color: black;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* GALLERY */

.gallery {
  width: 100%;
}

.photo-section {
  width: 100%;
  height: 100vh;

  scroll-snap-align: start;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;

  cursor: pointer;
  transition: transform 0.4s ease;
}

.gallery-image:hover {
  transform: scale(1.01);
}

.photo-section {
  width: 100%;
  height: 100vh;

  scroll-snap-align: start;
  overflow: hidden;

  border-top: 1px solid white;  /* top white line */
  border-bottom: 1px solid white; /* bottom white line */
}

.photo-section:not(:last-child) {
  margin-bottom: 6px; /* space between sections */
}

/* MODAL */

.modal {
  display: none;
  position: fixed;
  z-index: 5000;
  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.95);

  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

/* CLOSE */

.close {
  position: absolute;
  top: 25px;
  right: 35px;

  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* NAVIGATION */

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  color: white;
  font-size: 50px;

  cursor: pointer;

  padding: 20px;
  user-select: none;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal:hover .nav {
  opacity: 1;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* MOBILE */

@media (max-width: 768px) {

  .navbar {
    padding: 20px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .logo {
    font-size: 14px;
  }

}

@media (min-width: 769px) {
  body {
    background: white; /* Ensure the desktop background is white */
  }

  .navbar {
    background: white; /* Make sure the navbar is also white on desktop */
    backdrop-filter: none; /* Remove blur or any transparency on desktop */
  }
}
