/* Phone layout fixes – only below the builder's 920px breakpoint. Desktop is untouched. */
@media screen and (max-width: 920px) {
  .block-layout--layout > .layout-element.m-hide { display: none !important; }
  .block-layout--layout > .layout-element.m-overlay {
    align-self: start; justify-self: start;
    position: relative;
    top: calc(var(--ovt) * 100%);
    left: calc(var(--ovl) * 100%);
    width: calc(var(--ovw) * 100%) !important;
    height: auto !important;
  }
  .block-layout--layout > .layout-element.m-overlay-img { height: calc(var(--ovh) * 100%) !important; }
  .block-layout--layout > .layout-element.m-overlay .image-wrapper--mobile,
  .block-layout--layout > .layout-element.m-overlay-img .image { width: 100% !important; height: 100% !important; }
}
@media screen and (max-width: 920px) {
  .block-layout--layout > .layout-element.m-img:not(.m-host) {
    width: var(--mw, 100%) !important; height: auto !important;
    aspect-ratio: var(--mar); justify-self: center;
  }
  .block-layout--layout > .layout-element.m-host { aspect-ratio: var(--mar); height: auto !important; }
  .block-layout--layout > .layout-element.m-img .image-wrapper--mobile,
  .block-layout--layout > .layout-element.m-host .image-wrapper--mobile,
  .block-layout--layout > .layout-element.m-img .image-wrapper--mobile .image__image { width: 100% !important; height: 100% !important; }
  .block-layout--layout > .layout-element.m-host { width: var(--mw, 100%) !important; justify-self: center; }
  .block-layout--layout > .layout-element.m-nowrap { min-width: max-content; }
  .block-layout--layout > .layout-element.m-nowrap * { white-space: nowrap !important; }
}
@media screen and (max-width: 920px) {
  .block-layout--layout > .layout-element.m-card { height: auto !important; align-self: stretch; z-index: 0; }
  .block-layout--layout > .layout-element.m-card > * { height: 100% !important; }
  .block-layout--layout > .layout-element.m-in-card { z-index: 1; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
  .block-layout--layout > .layout-element.m-in-card.m-img { padding: 0; margin-left: 20px; }
}
@media screen and (max-width: 920px) {
  .block-layout--layout > .layout-element.m-img .image-wrapper--mobile,
  .block-layout--layout > .layout-element.m-host .image-wrapper--mobile { width: 100% !important; height: 100% !important; }
  .block-layout--layout > .layout-element.m-img .image-wrapper--mobile img,
  .block-layout--layout > .layout-element.m-host .image-wrapper--mobile img {
    width: 100% !important; height: 100% !important; object-fit: cover;
    position: static !important; left: 0 !important; top: 0 !important; transform: none !important; max-width: none;
  }
  .block-layout--layout > .layout-element.m-in-card.m-img { width: var(--mw) !important; aspect-ratio: var(--mar); height: auto !important; justify-self: center; margin-left: 0; }
}
@media screen and (max-width: 920px) {
  .block-layout--layout > .layout-element.m-img .image-wrapper--layout,
  .block-layout--layout > .layout-element.m-img .image-wrapper--layout > .image:not(.image-wrapper--desktop) { width: 100% !important; height: 100% !important; }
  .block-layout--layout > .layout-element.m-img .image:not(.image-wrapper--desktop) img { width: 100% !important; height: 100% !important; object-fit: cover; position: static !important; }
}
@media screen and (max-width: 920px) {
  .block-layout--layout > .layout-element:has(> .grid-button),
  .block-layout--layout > .layout-element:has(.layout-element__component--GridButton) { height: auto !important; }
  .block-layout--layout > .layout-element .layout-element__component--GridButton {
    min-height: 48px !important; height: auto !important; padding: 12px 22px !important; white-space: normal !important; text-align: center;
  }
  .block-layout--layout > .layout-element.m-overlay .text-box p,
  .block-layout--layout > .layout-element.m-overlay .text-box p span { font-size: max(13px, var(--fontSizeMobile)) !important; }
}
@media screen and (max-width: 920px) {
  .block-layout--layout > .layout-element.m-ov-stack { top: calc(var(--ovt) * 100% + var(--ovk) * 1.45em) !important; text-align: center; }
  .block-layout--layout > .layout-element.m-ov-stack .text-box p { text-align: center; }
}
/* home hero: Helin Çelebi portrait fills the space on phones */
@media screen and (max-width: 920px) {
  .block-layout--layout > .layout-element:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) {
    aspect-ratio: 0.66 !important; width: 100% !important; justify-self: stretch;
  }
  .block-layout--layout > .layout-element:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) img {
    object-fit: cover !important; object-position: 26% 100% !important;
  }
  .block-layout--layout:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) > .layout-element.m-ov-stack {
    left: 0 !important; width: 100% !important; top: calc(86% + var(--ovk) * 1.6em) !important;
    text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.6);
  }
  .block-layout--layout:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) > .layout-element.m-ov-stack .text-box p,
  .block-layout--layout:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) > .layout-element.m-ov-stack .text-box p span { font-size: 18px !important; text-align: center; }
}
@media screen and (max-width: 920px) {
  .block-layout--layout > .layout-element:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) > .image-wrapper,
  .block-layout--layout > .layout-element:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) .image-wrapper--mobile,
  .block-layout--layout > .layout-element:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) .image-wrapper--mobile img { height: 100% !important; width: 100% !important; }
}
@media screen and (max-width: 920px) {
  .block-layout--layout > .layout-element:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) {
    aspect-ratio: 0.72 !important;
    background: url(/assets/img/helin-celebi-mobil.webp?v=ac3e8ccb) center bottom / contain no-repeat;
  }
  .block-layout--layout > .layout-element:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) > * { visibility: hidden; }
  .block-layout--layout:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) > .layout-element.m-ov-stack { top: calc(84% + var(--ovk) * 1.6em) !important; }
}

/* Mobil: Helin görseli bölümün en altında (metin + buton üstte) */
@media screen and (max-width: 920px) {
  #z9qs-M .block-layout--layout { --m-grid-template-rows: 24px auto 16px auto 24px auto 0px !important; --t-grid-template-rows: 24px auto 16px auto 24px auto 0px !important; }
  #z9qs-M .block-layout--layout > .layout-element:has(.text-shimmer), #z9qs-M .block-layout--layout > .layout-element.text-shimmer { --m-grid-row: 2/3 !important; }
  #z9qs-M .block-layout--layout > .layout-element:has(a, button):not(.m-host):not(.m-overlay):not(.m-hide):not(.text-shimmer) { --m-grid-row: 4/5 !important; }
  #z9qs-M .block-layout--layout > .layout-element.m-host, #z9qs-M .block-layout--layout > .layout-element:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]),
  #z9qs-M .block-layout--layout > .layout-element.m-overlay { --m-grid-row: 6/7 !important; }
}
/* Mobil: Saç Ekimi adam görseli bölümün en altında */
@media screen and (max-width: 920px) {
  .hei-hair { padding-bottom: 0 !important; }
  .hei-hair__media { order: 2; }
  .hei-hair__media img { display: block; margin: 0 auto; }
}
@media screen and (max-width: 920px) {
  #z9qs-M .block-layout--layout > .layout-element:has(img[src*="helin-celebi-bIjR5wRsJ7vqgX5r"]) { width: 100% !important; height: auto !important; justify-self: stretch; }
}
@media (max-width: 920px) { #zVpPNj h3 { font-size: 26px !important; word-break: normal !important; overflow-wrap: normal !important; } }
@media (max-width: 920px) { .text-box p span, .text-box p strong, .text-box p em { white-space: normal !important; } }
