/* Gallery */
.wp-block-gallery img {
  pointer-events: none;
}

.wp-block-gallery.is-style-esdn-border {
  position: relative;
  gap: 10px !important;
  margin-bottom: 40px;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image {
  overflow: hidden;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image.has-link {
  cursor: pointer;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image:hover a img {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image a, .wp-block-gallery.is-style-esdn-border figure.wp-block-image > div {
  height: 0;
  padding-top: 100%;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  height: 100%;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image figcaption {
  z-index: -1;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image figcaption {
  display: none;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image:after {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  right: -1px;
  bottom: 0;
  background-color: var(--bodyBackground);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: none;
  -webkit-mask-image: var(--images-mask-esdn) !important;
          mask-image: var(--images-mask-esdn) !important;
  -webkit-mask-size: cover;
          mask-size: cover;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image:before {
  content: "";
  display: block;
  padding-top: 100%;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image.has-link:before {
  display: none;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image:nth-child(2n) {
  top: 40px;
  position: relative;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image:nth-child(2n)::after {
  -webkit-mask-image: var(--images-mask-esdn);
          mask-image: var(--images-mask-esdn);
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image:nth-child(4n-1)::after {
  -webkit-mask-image: var(--images-mask-esdn);
          mask-image: var(--images-mask-esdn);
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image:nth-child(4n)::after {
  -webkit-mask-image: var(--images-mask-esdn);
          mask-image: var(--images-mask-esdn);
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image.block-editor-block-list__block img {
  z-index: 0;
}
.wp-block-gallery.is-style-esdn-border figure.wp-block-image.block-editor-block-list__block::after {
  background-color: white;
}

/* Single Image */
.is-style-single-esdn-border {
  position: relative;
  margin-bottom: 40px;
  display: inline-block;
}
.is-style-single-esdn-border.has-link {
  position: relative;
  cursor: pointer;
}
.is-style-single-esdn-border.has-link a {
  display: block;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  height: auto !important;
  padding: 0px !important;
}
.is-style-single-esdn-border.has-link a img {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover;
     object-fit: cover;
  position: relative;
}
.is-style-single-esdn-border:hover a img {
  -webkit-transform: scale(1);
          transform: scale(1);
}
.is-style-single-esdn-border img {
  z-index: -1;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
}
.is-style-single-esdn-border figcaption {
  position: absolute;
}
.is-style-single-esdn-border:after {
  content: "";
  display: block;
  width: 101%;
  height: 101%;
  background-image: url("assets/imagemask_flexible.svg");
  background-size: 100% 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: -1px;
  bottom: 0;
  pointer-events: none;
}
.is-style-single-esdn-border.has-link:before {
  display: none;
}
.is-style-single-esdn-border:has(> figure.aligncenter) {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.is-style-single-esdn-border:has(> figure.alignright) {
  float: right;
}
.is-style-single-esdn-border:has(> figure.alignleft) {
  float: left;
}