/*Gallery Stuff*/

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 10px;
  }
  
  .gallery-item {
    opacity: 0;
    width: 100%;
    height: auto;
    cursor: pointer;
    object-fit: cover;
  
    transform: scale(0.95);
    filter: blur(8px);
  
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      filter 0.4s ease;
  }
  .gallery-link {
    display: block;
    text-decoration: none;
  }
  .gallery-item.visible {
    opacity: 1;
    transform: scale(1);
  }
  
  .gallery-item.loaded {
    filter: blur(0);
  }  

#tag-container {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
  }
  
  .tag-button {
    display: inline-block;
    padding: 6px 14px;
    margin: 6px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #f8f8f8;
    color: #333;
    font-size: 1rem;
    font-weight: 100;
    cursor: pointer;
  
    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      color 0.25s ease,
      box-shadow 0.25s ease,
      transform 0.15s ease;
  }
  
  /* Hover effect */
  .tag-button:hover {
    background: #ffffff;
    border-color: #888;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
  }
  
  /* Clicked (active tag) */
  .tag-button.active-tag {
    background: #333;             
    color: #fff;
    border-color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    font-weight: bolder;
  }
  
  /* Active tag hover */
  .tag-button.active-tag:hover {
    background: #444;
    border-color: #444;
  }
  

/* LIGHTBOX OVERLAY */
#lightbox-overlay {
  display: none; 
  position: fixed;
  inset: 0;
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; scale: 0.95;}
  to { opacity: 1; scale: 1;}
}

/*lightbox stuff*/

#lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

#lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#lightbox-info {
  color: white;
  font-size: 1.4rem;
  text-shadow: 1px 1px black;
}

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

#lightbox-year {
  margin: 0.25rem 0 0;
  opacity: 0.8;
  font-style: italic;
}
/* close button */
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  align-content: center;
  border-radius: 50%;
  cursor: pointer;
}

/* nav buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;

/* click area */
  width: 60px;
  height: 60px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 20;
}

/* nav arrow positioning */
.lightbox-nav.left { left: -10rem; }
.lightbox-nav.right { right: -10rem; }

.lightbox-nav img {
  width: 100px;
  height: auto;
  opacity: 1;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover effect */
.lightbox-nav:hover img {
  filter: drop-shadow(2px 6px rgba(0,0,0,0.08));
  transform: translateY(-1px);
}

@media only screen and (max-width: 867px) {
  .lightbox-nav {
    display: none;
  }
}