/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: white;
  color: black;
  font-family:'Verdana';
}

.header {
  top: 0;
  padding: 10px 16px;
  background: rgba(231,199,237,0.4);
  font-family:'Verdana';
  color:black;
}

.footer {
  bottom: 0;
  padding: 10px 16px;
  background: rgba(231,199,237,0.4);
  font-family:'Verdana';
  color:black;
}

li {
  display:inline;
  margin: 0 10px;
}

/* IMAGE GRID */
/* Masonry-style columns for variable aspect ratio images */
.gallery-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-container img {
  width: 100%;             /* fill column width */
  height: auto;            /* maintain aspect ratio */
  margin-bottom: 16px;     /* vertical spacing between images */
  border-radius: 6px;
  cursor: pointer;
  display: block;          /* required for Masonry */
  transition: transform 0.25s ease;
}

.gallery-container img:hover {
  transform: scale(1.02);
}

/* Grid-sizer for Masonry */
.grid-sizer {
  width: 25%;  /* 4 columns max */
}

@media (max-width: 1100px) {
  .grid-sizer { width: 33.33%; } /* 3 columns */
}

@media (max-width: 800px) {
  .grid-sizer { width: 50%; }    /* 2 columns */
}

@media (max-width: 500px) {
  .grid-sizer { width: 100%; }   /* 1 column */
}

/* LIGHTBOX OVERLAY */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 6px;
}

/* LIGHTBOX BUTTONS */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

#prev { left: 30px; }
#next { right: 30px; }

#close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 600px) {
  .nav-btn { font-size: 30px; }
  #close { font-size: 30px; }
}
