/* overlay */
.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* show on hover */
.thumb:hover .image-overlay {
  opacity: 1;
  visibility: visible;
}

/* buttons */
.overlay-btn {
  width: 42px;
  height: 42px;
  background: #fff;
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.overlay-btn:hover {
  transform: scale(1.1);
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
}

@media (hover: none) {
  .image-overlay {
    opacity: 1;
    visibility: visible;
    background: none;
    /*background: linear-gradient(to top, rgba(0,0,0,.6), transparent);*/
    transition: none;
    align-items: flex-end;
    padding-bottom: 10px;
  }
}