body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fefefe;
  color: #222;
  line-height: 1.6;
}

header {
  background: #333;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
}

#scrollLogo {
  height: 40px;
  display: none;
  margin-right: 10px;
}

#siteTitle {
  font-size: 1.5rem;
  margin: 0;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar1, .bar2, .bar3 {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: translate(0, 8px) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -8px) rotate(45deg);
}

.hero {
  text-align: center;
  margin-top: 80px;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.cta {
  text-align: center;
  margin: 3rem 0;
}

.cta a {
  background: #333;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 5px;
}

footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #333;
    width: 100%;
    padding: 1rem 0;
  }

  nav.show {
    display: flex;
  }

  nav a {
    padding: 1rem;
    border-top: 1px solid #444;
  }
}



/* Gallery Grid */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  margin: 0 auto;
  width: 100%;
  max-width: 1600px; /* optional cap for ultra-wide screens */
  box-sizing: border-box;
}



/* Gallery Items */
.gallery-item {
  position: relative;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 1 / 1; /* force square thumbnails */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Hide title/desc in grid */
.gallery-item h3,
.gallery-item p {
  display: none;
}

/* Gallery Image */
.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color: #f2f2f2; /* acts as filler for portrait */
  transition: transform 0.3s ease;
  border-radius: 4px;
}

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

/* Lightbox container tweaks */


.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Close + Arrows Positioned Inside Image Frame */
.lightbox-controls {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  gap: 1rem;
  z-index: 10001;
}

.lightbox-controls button {
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  padding: 0.5rem 0.7rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-controls button:hover {
  background: white;
}

/* Arrow buttons centered vertically */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  position: relative;
}

.lightbox-controls {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  gap: 1rem;
  z-index: 10001;
}

.lightbox-controls button {
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  padding: 0.5rem 0.7rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-controls button:hover {
  background: white;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-arrow.left {
  left: 10%;
}

.lightbox-arrow.right {
  right: 10%;
}


/* Caption under image */
.lightbox-caption {
  margin-top: 1rem;
  color: white;
  text-align: center;
  max-width: 90%;
}
