.img-gradated-border {
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  border-radius: 0.625rem;
}
.img-gradated-border.watermarked:before {
  content: "";
  position: absolute;
  background-image: url(../image/logo-watermark-for-thumbnails.svg);
  background-repeat: no-repeat;
  background-size: contain;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
}
.img-gradated-border:after {
  content: "";
  width: 3%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #ac0000 0%, #fa9800 100%);
  z-index: 9;
}
.img-gradated-border img {
  object-fit: cover;
  max-width: auto;
  width: 100%;
  height: 100%;
}

.image-text-modal-block {
  width: min(90%, 1600px);
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  justify-content: space-between;
  height: 100%;
  padding-block: clamp(2em, 3vw, 3em);
}
.image-text-modal-block .left-col {
  width: 48%;
}
.image-text-modal-block .right-col {
  width: 48%;
}
.image-text-modal-block.image-right .img-gradated-border:after {
  left: auto;
  right: 0;
}
.image-text-modal-block.image-right .img-gradated-border.watermarked:before {
  left: auto;
  right: 0;
  background-position: right center;
}
.image-text-modal-block.image-right .left-col {
  order: 2;
}
.image-text-modal-block.image-right .right-col {
  order: 1;
}
@media (max-width: 600px) {
  .image-text-modal-block {
    flex-direction: column;
  }
  .image-text-modal-block .left-col {
    width: 100%;
    margin-bottom: 1em;
    order: 1 !important;
  }
  .image-text-modal-block .right-col {
    width: 100%;
    order: 2 !important;
  }
}

.block-editor-modal {
  width: min(95%, 1600px) !important;
  border-radius: 0.625rem !important;
}
.block-editor-modal .img-gradated-border {
  overflow: hidden;
  aspect-ratio: 15/9;
  position: relative;
  border-radius: 0.625rem;
}
.block-editor-modal .img-gradated-border:after {
  content: "";
  width: 3%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #ac0000 0%, #fa9800 100%);
}
.block-editor-modal .img-gradated-border img {
  object-fit: cover;
  max-width: auto;
  width: 100%;
  height: 100%;
}
.block-editor-modal .f-button {
  background: #fff !important;
  color: transparent !important;
  top: clamp(2em, 3vw, 3em) !important;
  right: clamp(2em, 3vw, 3em) !important;
}
.block-editor-modal .f-button.is-close-btn {
  border: none !important;
  width: clamp(3em, 5vw, 5em) !important;
  height: clamp(3em, 5vw, 5em) !important;
  border-radius: 50px;
  opacity: 1 !important;
  background: url(../image/fancybox-close-btn.svg) 0 0 no-repeat !important;
  background-size: 85% !important;
  background-position: 7% !important;
}
.block-editor-modal .f-button.is-close-btn:hover {
  opacity: 0.7 !important;
  border: none !important;
}
.block-editor-modal .f-button.is-close-btn:active, .block-editor-modal .f-button.is-close-btn:focus {
  border: none !important;
}
.block-editor-modal .popup-inner {
  padding-block: clamp(0.5em, 4vw, 4em);
}
.block-editor-modal .container {
  justify-content: flex-start;
  align-items: flex-start;
  gap: clamp(2em, 4vw, 4em);
}
@media (max-width: 1100px) {
  .block-editor-modal .container {
    flex-direction: column;
    width: 100%;
  }
}
.block-editor-modal .container h3 {
  font-size: clamp(1.75em, 2.5vw, 2.5rem);
  margin-bottom: clamp(1.75rem, 2.5vw, 2.5em);
}
.block-editor-modal .container h4 {
  font-size: clamp(1.5em, 2.25vw, 2.25rem);
  color: #302256;
}
.block-editor-modal .container .left {
  width: 40%;
}
@media (max-width: 1100px) {
  .block-editor-modal .container .left {
    width: 100%;
  }
}
.block-editor-modal .container .right {
  width: 60%;
}
@media (max-width: 1100px) {
  .block-editor-modal .container .right {
    width: 100%;
  }
}
.block-editor-modal .container .right p, .block-editor-modal .container .right li {
  font-size: clamp(1em, 1.5vw, 1.5rem);
  font-family: "Arial", "Helvetica", sans-serif;
  line-height: 1.5;
  margin: 0;
  color: #000;
}
.block-editor-modal .container .right a {
  color: #ac0000;
  font-weight: 600;
}
.block-editor-modal .container .right a:hover {
  color: rgba(172, 0, 0, 0.7);
}
.block-editor-modal .container .right p {
  margin-bottom: clamp(1.5rem, 2vw, 2em);
}
.block-editor-modal .container .right li {
  margin-bottom: 0.5em;
}
.block-editor-modal .container .right ul {
  margin-left: 1.5em;
  margin-bottom: clamp(1.5rem, 2vw, 2em);
  padding: 0;
}
.block-editor-modal .container .right ul li {
  padding-left: 0.125em;
}
@media (max-width: 600px) {
  .block-editor-modal .container .right ul li {
    margin-left: 0.875em;
  }
}
.block-editor-modal .container .right ul li::marker {
  color: #AB0000;
  font-size: 0.8em;
}

.no-gradated-border .img-gradated-border:after {
  display: none !important;
}
.no-gradated-border .watermarked:before {
  display: none;
}

.editor-styles-wrapper .image-text-modal-block {
  width: 100%;
  padding-top: 1em;
  padding-bottom: 1em;
}
.editor-styles-wrapper .image-text-modal-block h3 {
  margin-top: 0;
}
