.thumbnail-figure {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 10px;
  vertical-align: top;
}

/* Floating thumbnail - floats to the right with text on the left */
.thumbnail-float-right {
  float: right;
  margin: 10px 0 20px 20px;
}

/* Floating thumbnail - floats to the left with text on the right */
.thumbnail-float-left {
  float: left;
  margin: 10px 20px 20px 0;
}

.thumbnail-link {
  position: relative;
  display: inline-block;
  cursor: zoom-in;
  border-radius: var(--rounded);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail-link:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.thumbnail-image {
  display: block;
  border-radius: var(--rounded);
  object-fit: cover;
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.thumbnail-link:hover .thumbnail-overlay {
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.thumbnail-icon {
  font-size: 2em;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.thumbnail-caption {
  font-style: italic;
  text-align: center;
  font-size: 0.9em;
  color: var(--text-light);
}

/* Lightbox styles */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--rounded);
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
}

#lightbox-caption {
  margin: 20px auto;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  max-width: 80%;
}

/* Responsive */
@media only screen and (max-width: 700px) {
  .lightbox-content {
    max-width: 95%;
  }
  .lightbox-close {
    top: 10px;
    right: 20px;
    font-size: 35px;
  }
}

/*# sourceMappingURL=thumbnail.css.map */