

/* Page container */
.container {
  width: 100%;
  min-height: 100vh;
}

/* Transitions */
.trans {
  transition: all 1s ease;
}

/* Gallery top section */
.top {
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin: 10vh auto;
}

.top ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
  justify-content: center;
}

.top ul li {
  width: 30%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.top ul li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  opacity: 0.4;
  pointer-events: none;
  transition: all 0.5s ease;
}

.top ul li:hover::before {
  opacity: 0;
}

.top ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================
   Lightbox Container
   ========================== */
.lightbox-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 2vh 2vw;
}

.lightbox-container.hidden {
  display: none; /* hide when not active */
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  color: #fff;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;   /* center horizontally */
  justify-content: flex-start; /* top-align content so info sits higher */
}

/* Image */
.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  margin-bottom: 0.5em; /* smaller gap below image */
  object-fit: contain;
  cursor: pointer;      /* hint: click left/right */
}

/* Info panel above bottom */
.lightbox-content .info {
  font-size: 1rem;
  line-height: 1.4;
  max-width: 90%;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-top: 0;          /* remove extra space below image */
  padding-bottom: 1em;    /* optional small padding */
  color: #fff;
}

/* Close button: fixed, responsive */
.lightbox-content .close {
  position: fixed;      /* fixed to viewport, not image */
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
  padding: 10px;        /* easier to tap */
}

/* Hide arrows */
.lightbox-content .prev,
.lightbox-content .next {
  display: none;
}

/* Responsive adjustments for mobile */
@media only screen and (max-width: 1000px) {
  .lightbox-content .close {
    font-size: 3rem;
    top: 15px;
    right: 15px;
  }

  .lightbox-content .info {
    font-size: 0.95rem;
    max-width: 95%;
    padding: 0 5px;   /* prevent cutoff */
  }

  .lightbox-content img {
    max-height: 60vh;  /* leave space for info */
  }

  .top ul li {
  width: 45%;
}
}

/* Optional footer fix */
footer {
  clear: both;
  width: 100%;
  text-align: center;
  padding: 2em 0;
}