.thlb {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.thlb.is-open {
  display: block;
}

.thlb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.thlb-dialog {
  position: relative;

  /* Fit content better */
  width: fit-content;
  max-width: calc(100% - 32px);

  max-height: calc(100vh - 32px);
  margin: 16px auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  overflow: auto;
}


.thlb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.thlb-inner {
  width: 100%;
  max-width: 100%;
}

.thlb-loading {
  font-size: 16px;
  opacity: 0.8;
}

body.thlb-open {
  overflow: hidden;
}

.thlb-btn-large {
  padding: 18px 36px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 999px;
}