/* Online Çözüm Merkezi - site-wide image fitting
   Keep editorial/card layouts intact while ensuring content media is fully visible. */

/* Service and project detail hero images: never crop the source artwork. */
.case-details-single > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center;
}

/* Images inserted into detail content must stay inside the reading column. */
.case-details-single .details-img-grp img,
.case-details-single > p img,
.case-details-single > div:not(.module_comment_add_main):not(.comment-area) img,
.blog-details-single .text > img,
.blog-details-single .text p img,
.blog-details-single .text > div img {
  display: block;
  max-width: 100%;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center;
}

/* Blog detail cover image. */
.blog-details-single > .image,
.blog-details-single > .image > a {
  display: block;
  max-width: 100%;
}

.blog-details-single > .image > a > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center;
}

/* Project detail gallery: keep the fixed card frame, but show the whole image. */
.photogallery-box-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7f8;
}

.photogallery-box-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
}

/* Standalone gallery pages. */
.photo-d-img img,
.photo_gallery_mas_img img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center;
}

/* Small editorial thumbnails: preserve the whole source inside their slot. */
.recent-caselist .image img,
.recent-post-img img,
.recent-post-list img {
  object-fit: contain !important;
  object-position: center center;
  background: #f5f7f8;
}

/* Prevent rich-text media from creating horizontal overflow anywhere. */
.case-details-single,
.blog-details-single,
.projects_tabs_content {
  overflow-wrap: anywhere;
}

.case-details-single iframe,
.blog-details-single iframe,
.projects_tabs_content iframe {
  max-width: 100%;
}
