#TB_overlay {
  background: var(--wp--preset--color--black);
  opacity: 0.80;
  transition: opacity var(--wp--custom--animation-speed) ease-in-out;
}
#TB_title {
  background: none;
  border-bottom: 0;
  height: 0;
}
#TB_ajaxContent {
  padding: 0;
  height: auto !important;
  max-width: 100%;
  overflow-y: auto;
  scrollbar-color: var(--wp--preset--color--primary) var(--wp--preset--color--light-grey);
  scrollbar-width: thin;
}
#TB_window {
  background-color: var(--wp--preset--color--white);
  box-shadow: var(--wp--preset--shadow--natural);
  border-radius: var(--wp--custom--radius--large);
  border: 4px solid var(--wp--preset--color--light-grey);
  transform: translate(-50%,-50%);
  margin: 0 !important;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  top: 48%;
  animation: reveal_overlay var(--wp--custom--animation-speed) forwards ease-in-out;
  animation-delay: 275ms;
}
@keyframes reveal_overlay {
  100% { opacity: 1; top: 50%; }
}
#TB_closeWindowButton {
  width: auto;
  height: auto;
  z-index: 999;
  right: 0;
}
#TB_closeWindowButton:focus, #TB_closeWindowButton:hover {
  background-color: transparent !important;
}
.tb-close-icon {
  position: static;
  width: 100%;
  height: 100%;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}
.tb-close-icon::before  {  
  content: "✕";
  color: var(--wp--preset--color--grey);
  font-size: 2rem;
}
#TB_closeWindowButton:focus .tb-close-icon {
  -webkit-box-shadow: none;
  box-shadow: none;
}
#TB_window img#TB_Image {
    margin: 0;
    border: 0 !important;
    flex: 1;
    width: 100%;
    border-radius: 12px;
    opacity: 1;
}
#TB_ImageOff {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
#TB_caption {
    height: 0px;
    padding: 0;
    overflow: hidden;
}
#TB_prev, #TB_next {
    display: flex;
    position: absolute;
    top: 46%;
    width: 3rem;
    height: 3rem;
    background: var(--wp--preset--color--green);
    border-radius: 50%;
    font-size: 0px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#TB_prev {
    left: -4rem;
} 
#TB_next {
    right: -4rem;
}
#TB_prev::before,
#TB_next::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' fill='none' viewBox='0 0 20 14'%3E%3Cpath fill='%23fff' d='M1.43 5.6h13.71l-3.3-3.23c-.28-.28-.41-.6-.41-.97 0-.69.58-1.4 1.43-1.4.38 0 .7.14.98.4l5.69 5.58c.23.23.47.51.47 1.02s-.2.76-.46 1.01l-5.7 5.58c-.27.27-.6.41-.98.41-.85 0-1.43-.71-1.43-1.4 0-.36.13-.69.41-.97l3.3-3.23H1.43C.64 8.4 0 7.77 0 7c0-.77.64-1.4 1.43-1.4Z'/%3E%3C/svg%3E");
}
#TB_prev::before {
   transform: scaleX(-1);
}
@media screen and (max-width: 782px) {
   #TB_prev, #TB_next {
      top: auto;
      bottom: -5rem;
   }
   #TB_prev {
      left: calc(50% - 4rem);
   }
   #TB_next {
      right: calc(50% - 4rem);
   }
}
@media screen and (max-width: 600px) {
  #TB_window {
    max-width: unset;
    max-height: unset;
    width: 100vw !important;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }
  #TB_ajaxContent {
    width: 100vw !important;
    margin: auto;
  }
}

/* inner content alignment */
#TB_ajaxContent p,
#TB_ajaxContent h2,
#TB_ajaxContent h3,
#TB_ajaxContent h4 {
  padding: 0;
  margin: 0;
}
#TB_ajaxContent form p {
  margin: var(--wp--preset--spacing--4) 0;
  padding: var(--wp--preset--spacing--12) 0 0;
}
#TB_ajaxContent > .wp-block-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--24);
  text-align: center;
  align-items: center;
  padding: var(--wp--preset--spacing--32);
}
#TB_ajaxContent .wp-block-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--12);
}

