.homeCaseImageButton {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.homeCaseImageButton picture {
  display: block;
}

.homeCaseImageButton:focus-visible {
  outline: 3px solid rgba(61, 115, 175, 0.3);
  outline-offset: 4px;
}

.homeCaseImageButton img {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.homeCaseImageButton:hover img,
.homeCaseImageButton:focus-visible img {
  transform: scale(1.015);
}

#homeCaseImageModal .imageModalPanel {
  width: min(92vw, 1240px);
  max-height: 90vh;
}

#homeCaseImageModal .imageModalPanel img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 86vh;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

@media (max-width: 720px) {
  #homeCaseImageModal {
    padding: 14px;
  }

  #homeCaseImageModal .imageModalPanel {
    width: min(94vw, 760px);
  }

  #homeCaseImageModal .imageModalPanel img {
    max-height: 88vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homeCaseImageButton img {
    transition: none;
  }
}
