/* Consultation gallery thumbnails */

.image-col .gallery-item {
  display: flex;
  margin: auto;
  max-width: 100%;
  max-height: 175px;
  cursor: zoom-in;
}

.image-col .gallery-item:hover img {
  opacity: 0.85;
}

.image-col .gallery-item img {
  transition: opacity 0.2s linear;
}

.gallery-item .title {
  margin-top: 10px;
  color: var(--color-politis);
}

/* The lightbox itself */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.85);
}

.gallery-lightbox[hidden] {
  display: none;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 185px);
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}

.gallery-lightbox-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  max-width: 100%;
}

.gallery-lightbox-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.gallery-lightbox-title[hidden] {
  display: none;
}

.gallery-lightbox-counter {
  color: #fff;
  font-size: 16px;
}

.gallery-lightbox-counter[hidden] {
  display: none;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  flex: none;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 45px;
  height: 45px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s linear;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

@media (max-width: 767.98px) {
  .gallery-lightbox {
    gap: 8px;
    padding: 60px 10px;
  }

  .gallery-lightbox-close,
  .gallery-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .gallery-lightbox-title {
    font-size: 16px;
  }

  .gallery-lightbox-image {
    max-height: calc(100vh - 200px);
  }
}