.details-item-two img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Quill editor alignment classes — match editor output */
.details-item-two p.ql-align-center { text-align: center; }
.details-item-two p.ql-align-right { text-align: right; }
.details-item-two p.ql-align-justify { text-align: justify; }

.cms-content-body p.cms-paragraph,
.details-item-two p.cms-paragraph,
.project-content p.cms-paragraph,
.page-body p.cms-paragraph {
  margin-bottom: 18px;
  line-height: 1.9;
  text-indent: 2em;
}

.cms-content-body .image-caption,
.cms-content-body figcaption {
  text-indent: 0;
}

.cms-content-body,
.cms-content-body p,
.details-item p,
.details-item-two p,
.project-content p,
.page-body p {
  line-height: 1.9;
  text-indent: 2em !important;
}

.cms-content-body figure,
.details-item figure,
.details-item-two figure,
.project-content figure,
.page-body figure,
.cms-content-body .image-caption,
.details-item .image-caption,
.details-item-two .image-caption,
.project-content .image-caption,
.page-body .image-caption,
.cms-content-body p.ql-align-center,
.details-item p.ql-align-center,
.details-item-two p.ql-align-center,
.project-content p.ql-align-center,
.page-body p.ql-align-center,
.cms-content-body p[style*="text-align:center"],
.details-item p[style*="text-align:center"],
.details-item-two p[style*="text-align:center"],
.project-content p[style*="text-align:center"],
.page-body p[style*="text-align:center"],
.cms-content-body p[style*="text-align: center"],
.details-item p[style*="text-align: center"],
.details-item-two p[style*="text-align: center"],
.project-content p[style*="text-align: center"],
.page-body p[style*="text-align: center"] {
  text-indent: 0 !important;
}

.details-item-two .blog-thumb-image,
.details-item-two .details-image,
.details-item-two figure {
  margin: 0 0 20px;
  text-align: center;
}

.details-item-two .blog-thumb-image img,
.details-item-two .details-image img,
.details-item-two figure img,
.details-item-two p[style*="text-align:center"] img,
.details-item-two p[style*="text-align: center"] img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.details-item-two .cms-image-standard,
.details-item-two p:has(> img:only-child),
.project-content .cms-image-standard,
.project-content p:has(> img:only-child),
.page-body .cms-image-standard,
.page-body p:has(> img:only-child) {
  max-width: 900px !important;
  margin: 20px auto !important;
  text-align: center !important;
}

.details-item-two p.ql-align-center,
.project-content p.ql-align-center,
.page-body p.ql-align-center {
  text-align: center;
}

.details-item-two .cms-image-standard img,
.details-item-two p.ql-align-center img,
.details-item-two p:has(> img:only-child) img,
.project-content .cms-image-standard img,
.project-content p.ql-align-center img,
.project-content p:has(> img:only-child) img,
.page-body .cms-image-standard img,
.page-body p.ql-align-center img,
.page-body p:has(> img:only-child) img {
  display: block !important;
  width: auto !important;
  max-width: min(100%, 900px) !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.details-item-two .wrapper-image {
  margin-bottom: 20px;
}

.details-item-two .project-wrapper-slider {
  margin: 28px 0 32px;
}

.details-item-two .project-wrapper-slider .slider-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  margin: 0 auto;
  object-fit: contain;
}

.details-item-two .project-wrapper-slider .wrapper-navigation {
  pointer-events: none;
}

.details-item-two .project-wrapper-slider .swiper-button-next,
.details-item-two .project-wrapper-slider .swiper-button-prev {
  pointer-events: auto;
}

.details-item-two figcaption,
.details-item-two .image-caption,
.project-content figcaption,
.project-content .image-caption,
.page-body figcaption,
.page-body .image-caption {
  margin: 8px auto 18px;
  color: #8a949d;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 767px) {
  .details-item-two .project-wrapper-slider .slider-image img {
    max-height: 360px;
  }
}
