:root {
  --close-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='M204.24 195.76a6 6 0 1 1-8.48 8.48L128 136.49l-67.76 67.75a6 6 0 0 1-8.48-8.48L119.51 128L51.76 60.24a6 6 0 0 1 8.48-8.48L128 119.51l67.76-67.75a6 6 0 0 1 8.48 8.48L136.49 128Z'/%3E%3C/svg%3E");
  --caret-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='M164.24 203.76a6 6 0 1 1-8.48 8.48l-80-80a6 6 0 0 1 0-8.48l80-80a6 6 0 0 1 8.48 8.48L88.49 128Z'/%3E%3C/svg%3E");
  --caret-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='m180.24 132.24l-80 80a6 6 0 0 1-8.48-8.48L167.51 128L91.76 52.24a6 6 0 0 1 8.48-8.48l80 80a6 6 0 0 1 0 8.48'/%3E%3C/svg%3E");
  --expand: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z'%3E%3C/path%3E%3C/svg%3E");
}

body.lb-disable-scrolling {
  overflow: hidden;
}
.lightboxOverlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  background-color: var(--wp--preset--color--light);
  opacity: 1;
  max-width: 100%;
}
.lightbox {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 10000;
  text-align: center;
  line-height: 0;
  font-weight: normal;
  outline: none;
}
.lightbox .lb-image {
  display: block;
  height: auto;
  max-width: inherit;
  max-height: none;
}
.lightbox a img {
  border: none;
}
.lb-outerContainer {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 4px;
}
.lb-outerContainer:after {
  content: "";
  display: table;
  clear: both;
}
.lb-loader {
  position: absolute;
  top: 43%;
  left: 0;
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
}
body .lb-loader {
    display: none !important;
}
.lb-cancel {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  background: url(../images/loading.gif) no-repeat;
}
.lb-nav {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
}
.lb-container > .nav {
  left: 0;
}
.lb-nav a {
  outline: none;
  background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
}
.lb-prev, .lb-next {
  height: 100%;
  cursor: pointer;
  display: block;
  border: none;
}
.lb-container .lb-nav a {
    border: none;
    width: 20%;
    border: none;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}
.lb-nav a.lb-next {
    left: unset;
    right: 0;
    justify-content: flex-end;
}

.lb-nav a span {
    opacity: 0;
    transition: opacity .3s ease;
    height: 50px;
    width: 50px;
    display: flex;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.lb-nav a:hover span {
  opacity: 1;
  border: none;
}
.lb-nav a span::after {
    content: '';
    background: snow;
    display: inline-flex;
    height: 40px;
    width: 40px;
    min-width: 40px;
    --svg: var(--caret-left);
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    mask-position: center center;
}
.lb-nav a.lb-next span::after {
  --svg: var(--caret-right);
}

.lb-dataContainer {
  margin: 0 auto;
  padding-top: 0.5em;
  width: 100%;
}
.lb-dataContainer:after {
  content: "";
  display: table;
  clear: both;
}
.lb-data {
  padding: 0 4px;
  color: var(--wp--preset--color--body-text, #666677);
}
.lb-data .lb-details {
  width: 85%;
  float: left;
  text-align: left;
  line-height: 1.1em;
}
.lb-data .lb-caption {
  font-size: 13px;
  font-weight: bold;
  line-height: 1em;
}
.lb-data .lb-caption a {
  color: #4ae;
}
.lb-data .lb-number {
  display: block;
  clear: left;
  padding-bottom: 1em;
  color: color-mix(in oklab, var(--wp--preset--color--body-text, #666677) 90%, #ffffff 10%);
  font-size: var(--wp--preset--font-size--x-small);
}
.lb-data .lb-close:hover {
  cursor: pointer;
  opacity: 1;
}

/* ////// Lightbox Custom ////// */
a[data-lightbox]:hover {
    cursor: zoom-in;
}
a[data-lightbox]:hover img {
    scale: 1;
}
.wp-lightbox-container:has(img:hover) button {
    opacity: 1;
}
button.lightbox-trigger svg {
    height: auto;
    width: auto;
}

.lightbox:hover {
    cursor: zoom-out;
}

.lb-closeContainer {
    position: fixed;
    top: 24px;
    right: 24px;
}
body .lb-data .lb-close {
    background: var(--wp--preset--color--body-text);
    display: flex;
    height: 1em;
    width: 1em;
    --svg: var(--close-x);
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    mask-position: center center;
}
body .lb-data .lb-close:hover {
    color: var(--wp--preset--color--body-text);
}
