.postxt {
  --hspace: 20px;
  --fz: 16px;
  font-size: var(--fz, 16px);
  line-height: 1.7;
  font-weight: 400;
  --wp--preset--spacing--20: 20px;
  --wp--preset--spacing--30: 30px;
  --wp--preset--spacing--40: 40px;
  --wp--preset--spacing--50: 50px;
  --wp--preset--spacing--60: 60px;
  --wp--preset--spacing--70: 78px;
  --wp--preset--spacing--80: 120px;
}

.postxt p {
  margin-bottom: var(--hspace);
}

.postxt b {
  font-weight: 500;
}

.postxt strong {
  font-weight: 600;
}

.postxt p:last-child {
  margin-bottom: 0;
}

.postxt h1,
.postxt h2,
.postxt h3,
.postxt h4,
.postxt h5 {
  margin-bottom: var(--hspace);
  margin-top: calc(2 * var(--hspace));
  font-weight: 600;
  line-height: 1.2;
}

.postxt h1 b,
.postxt h2 b,
.postxt h3 b,
.postxt h4 b,
.postxt h5 b,
.postxt h6 b {
  font-weight: 700;
}

.postxt .small,
.postxt small {
  font-size: calc(var(--fz) * 0.889);
}

.postxt h1 {
  font-size: calc(var(--fz) * 2.6);
}

.postxt h2 {
  font-size: calc(var(--fz) * 2);
  margin-top: calc(var(--hspace) + 20px);
}

.postxt h3 {
  font-size: calc(var(--fz) * 1.65);
  line-height: 1.25;
}

.postxt h4 {
  font-size: calc(var(--fz) * 1.4);
  line-height: 1.25;
}

.postxt h5 {
  font-size: calc(var(--fz) * 1.3);
  line-height: 1.25;
}

.postxt ul,
.postxt ol {
  margin-bottom: var(--hspace);
  margin-top: var(--hspace);
}

.postxt p a,
.postxt li a {
  color: #3261D0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.postxt p a:hover,
.postxt li a:hover {
  color: #5079d7;
}

.postxt>*:first-child {
  margin-top: 0 !important;
}

.postxt>*:last-child {
  margin-bottom: 0 !important;
}

.postxt ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;

  @media (max-width: 767px){
    padding-left: 14px;
  }
}

.postxt ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 10px;
  background: #2aabee;
}

.postxt ol {
  padding-left: 0;
  list-style: numeric;
}

.postxt ol li {
  padding-left: 0;
  margin-bottom: 6px;
  margin-left: 20px;

  @media (max-width: 767px){
    margin-left: 14px;
  }
}

.postxt ol li:last-child,
.postxt ul li:last-child {
  margin-bottom: 0;
}

.postxt .wp-block-image {
  display: block;
  width: 100%;
  margin-bottom: var(--hspace);
  margin-top: var(--hspace);
}

.postxt .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.postxt .wp-block-image .wp-element-caption {
  margin-top: 20px;
  color: #5D6F74;
  font-size: 16px;
  line-height: 1;
  margin-bottom: calc(2 * var(--hspace));
}

.wp-block-video {
  width: 100%;
  margin-bottom: calc(2 * var(--hspace));
  margin-top: calc(2 * var(--hspace));
}

.wp-block-video video {
  border-radius: 20px;
}

@media (max-width: 992px) {
  .postxt {
    --hspace: 15px;
    --fz: 16px;
  }

  .postxt h1 {
    font-size: calc(var(--fz) * 2);
    font-weight: 600;
  }

  .postxt h1,
  .postxt h2,
  .postxt h3,
  .postxt h4,
  .postxt h5 {
    line-height: 1.4;
    margin-top: calc(var(--hspace) * 2);
  }
}


.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 35px;
  margin-bottom: 50px;

  @media (max-width: 1200px) {
    gap: 24px;
    margin-top: 22px;
    margin-bottom: 32px;
  }

  @media (max-width: 992px) {
    gap: 15px;
  }

  @media (max-width: 767px) {
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 24px;
    grid-template-columns: 1fr 1fr;
  }
}

.gallery>* {
  display: none;
}

.gallery-item {
  display: block;
  min-width: 0;
  width: 100%;
}

.gallery-icon {
  background: #fff;
  border-radius: 20px;
  position: relative;
}


.gallery:has(.gallery-item:first-child .gallery-icon.portrait) {
  grid-template-columns: repeat(4, 1fr);

  @media (max-width: 767px) {
    grid-template-columns: 1fr 1fr;
  }
}


.gallery:has(.gallery-item:first-child .gallery-icon.landscape) .gallery-icon {
  aspect-ratio: 29 / 21;
}

.gallery:has(.gallery-item:first-child .gallery-icon.portrait) .gallery-icon {
  aspect-ratio: 21 / 29;
}

.gallery-icon a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-icon img {
  display: block;
  width: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  width: calc(100% - 40px);
  height: calc(100% - 40px);

  @media (max-width: 992px) {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }
}

.gallery-icon a:hover img {
  opacity: 0.8;
}

.gallery-caption {
  margin-top: 15px;
  font-size: 17px;
  line-height: 1.53;

  @media (max-width: 992px) {
    font-size: 14px;
    margin-top: 8px;
  }
}


@media (max-width: 767px) {
  .postxt{
    --fz: 14px;
  }
  .postxt h1 {
    font-size: calc(var(--fz) * 2);
  }

  .postxt h2 {
    font-size: calc(var(--fz) * 1.4);
  }

  .postxt h3 {
    font-size: calc(var(--fz) * 1.3);

  }

  .postxt h4 {
    font-size: calc(var(--fz) * 1.2);
  }

  .postxt h5 {
    font-size: calc(var(--fz) * 1.2);
  }

  .postxt {
    --wp--preset--spacing--40: 25px;
    --wp--preset--spacing--50: 25px;
    --wp--preset--spacing--60: 30px;
    --wp--preset--spacing--70: 35px;
    --wp--preset--spacing--80: 50px;
  }

  .postxt ul li::before {
    left: 0;
    top: 10px;
  }

  .wp-block-video video {
    border-radius: 10px;
  }

  .postxt *:first-child {
    margin-top: 0 !important;
  }

  .postxt *:last-child {
    margin-bottom: 0 !important;
  }
}
