body {
  margin-left: 0;
  margin-right: 0;
  margin-top: 20px;
  padding: 0;
}

.gallery {
  column-count: 4; /* Number of masonry columns (adjust as needed) */
  column-gap: 20px;
  padding: 10px;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  break-inside: avoid;
  text-align: center;
}

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

.gallery-item figcaption {
  padding: 10px;
  background: #f0f0f0;
  font-size: 0.9em;
  color: #333;
}

#lightboxOverlay {
  position: fixed;      /* fix position relative to viewport */
  top: 0;
  left: 0;
  width: 100vw;         /* full viewport width */
  height: 100vh;        /* full viewport height */
  background: rgba(0, 0, 0, 0.8);  /* dark transparent background */
  display: none;        /* hide by default */
  justify-content: center;  /* horizontally center content */
  align-items: center;      /* vertically center content */
  z-index: 9999;        /* very high to overlay all other content */
}

#lightboxOverlay.active {
  display: flex;        /* show and use flex layout when active */
}

#lightboxOverlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}

#lightboxOverlay {
  /* existing styles */
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}

#lightboxOverlay.active {
  display: flex;
}

#lightboxNext,
#lightboxPrev,
#lightboxClose {
  position: absolute;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1100;
}

#lightboxClose{
  top:20px;
  right:20px;
}
.homeButton {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ed80f9;
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    top: 10px;
    left: 50%;
    position: fixed;

    box-shadow: 0 5px 0 #b12daf;
    transition: all 0.1s ease;
}

.homeButton:active {
    box-shadow: 0 2px 0 #b12daf;
    transform: translateY(3px);
}

#lightboxNext{
  right:20px;
  top: 50%;
  transform: translateY(-50%);
}

#lightboxPrev{
  left:20px;
  top: 50%;
  transform : translateY(50%);
}

