.gallery-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  width: calc((100% - 40px) / 3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: default;
  transition: transform 0.3s ease;
}

.caption-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-top: 8px;
  font-size: 0.9em;
  color: #555;
  text-align: left;
}

.caption-content {
  flex-grow: 1;
}

.caption-footer {
  margin-top: auto;
  text-align: left;
}

.caption-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.caption-text {
  text-align: left;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Existing styles retained */
.report-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.report-icon {
  height: 50px;
  width: auto;
  vertical-align: middle;
}

.image-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.carousel-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-image:hover {
  transform: scale(1.05);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 18px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 4px;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

/* Modal image viewer */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.image-modal.visible {
  opacity: 1;
  visibility: visible;
}

.image-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .gallery .gallery-item {
    width: calc((100% - 20px) / 2);
  }
}
@media (max-width: 768px) {
  .gallery {
    justify-content: center;
  }
  .gallery .gallery-item {
    width: 90%;
    max-width: 350px;
  }
}
@media (max-width: 480px) {
  .gallery .gallery-item {
    width: 95%;
  }
}

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