/* ======================================================================
   GALLERY STYLES
   ====================================================================== */
.gallery-container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: space-evenly;
  align-items: flex-start;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform, box-shadow 0.3s ease;
}
.gallery-item figure {
  margin: 0;
  width: min-content;
}
.gallery-item figure img {
  border-radius: var(--borderradius);
}
.gallery-item figure figcaption {
  hyphens: auto;
  padding: 0.5rem;
  font-size: 80%;
}
.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.gallery-thumbnail {
  width: auto;
  height: 200px;
  object-fit: cover;
  display: block;
}
.gallery .text {
  text-align: center;
}
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}
.lightbox-modal.show {
  display: flex;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox-image {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}
.lightbox-close:hover {
  color: var(--color-accent2);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.lightbox-btn {
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color, color 0.3s ease;
  pointer-events: auto;
  border-radius: 4px;
  margin: 0 20px;
}
.lightbox-btn:hover {
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--color);
}
@media only screen and (max-width: 900px) {
  .gallery-container {
    gap: 1rem;
    padding: 0.5rem;
  }
  .gallery-thumbnail {
    height: 150px;
  }
  .lightbox-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
  .lightbox-btn {
    font-size: 24px;
    padding: 8px 12px;
    margin: 0 10px;
  }
  .lightbox-image {
    max-width: 95%;
    max-height: 80vh;
  }
}
