/* FIX15: the six DETAIL biography portraits only. No heroes, flower art, works, home layout or audio. */
@media(min-width:901px){
 :is(#screen-sufi-mevlana,#screen-sufi-yunus-emre) .su-person-panel,
 :is(#screen-ms-pir-sultan-abdal,#screen-ms-ahmed-yesevi) .ms-person,
 :is(#screen-sg-haci-bektas-i-veli,#screen-sg-nesimi) .sg-person{
  min-height:465px!important;
  grid-template-columns:47% 53%!important;
  overflow:hidden!important;
  position:relative!important;
 }
 /* The original full PNG is absolutely positioned against the panel bottom;
    sizing by panel width, not a small round thumbnail. */
 :is(#screen-sufi-mevlana,#screen-sufi-yunus-emre) .su-person-portrait{
  display:block!important;position:absolute!important;
  left:0!important;right:auto!important;top:auto!important;bottom:0!important;
  width:49%!important;max-width:none!important;height:calc(100% + 75px)!important;max-height:none!important;
  object-fit:contain!important;object-position:bottom left!important;
  transform:none!important;clip-path:none!important;mask-image:none!important;-webkit-mask-image:none!important;
 }
 :is(#screen-ms-pir-sultan-abdal,#screen-ms-ahmed-yesevi) .ms-person-circle,
 #screen-sg-haci-bektas-i-veli .sg-person-circle{
  display:block!important;position:absolute!important;inset:auto auto 0 0!important;
  width:49%!important;height:100%!important;max-width:none!important;max-height:none!important;
  min-height:0!important;aspect-ratio:auto!important;overflow:visible!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  transform:none!important;clip-path:none!important;mask-image:none!important;-webkit-mask-image:none!important;
 }
 :is(#screen-ms-pir-sultan-abdal,#screen-ms-ahmed-yesevi) .ms-person-circle>img.ms-person-portrait,
 #screen-sg-haci-bektas-i-veli .sg-person-circle>img.sg-person-img{
  display:block!important;position:absolute!important;inset:auto auto 0 0!important;
  width:100%!important;height:calc(100% + 75px)!important;min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;
  object-fit:contain!important;object-position:bottom left!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  transform:none!important;clip-path:none!important;
  mask-image:none!important;-webkit-mask-image:none!important;
 }
 :is(#screen-sufi-mevlana,#screen-sufi-yunus-emre) .su-person-copy,
 :is(#screen-ms-pir-sultan-abdal,#screen-ms-ahmed-yesevi) .ms-person-copy,
 :is(#screen-sg-haci-bektas-i-veli,#screen-sg-nesimi) .sg-person-info{
  grid-column:2!important;z-index:4!important;position:relative!important;min-width:0!important;
  padding:30px 5.5% 28px 0!important;
 }
 /* Nesimi blood drops must never be clipped by the biography panel. */
 #screen-sg-nesimi .sg-person--nesimi-custom{overflow:visible!important;}
 /* Nesimi keeps its original complete blood animation and natural framing. */
 #screen-sg-nesimi .sg-person--nesimi-custom .sg-person-visual{
  min-height:0!important;align-self:stretch!important;padding:0!important;
  position:relative!important;width:100%!important;
 }
 #screen-sg-nesimi .sg-person--nesimi-custom .sg-person-circle{
  position:absolute!important;inset:auto auto 0 0!important;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  overflow:visible!important;transform:none!important;
 }
 #screen-sg-nesimi .sg-person--nesimi-custom .sg-person-img--static.nesimi-eye-source{
  display:block!important;position:absolute!important;left:0!important;bottom:0!important;top:auto!important;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:contain!important;object-position:bottom left!important;
  transform:none!important;clip-path:none!important;-webkit-mask-image:none!important;mask-image:none!important;
 }
}
/* On phones keep copy fully readable; expand portrait while retaining the mobile two-column composition. */
@media(min-width:581px) and (max-width:900px){
 :is(#screen-sufi-mevlana,#screen-sufi-yunus-emre) .su-person-panel,
 :is(#screen-ms-pir-sultan-abdal,#screen-ms-ahmed-yesevi) .ms-person,
 :is(#screen-sg-haci-bektas-i-veli,#screen-sg-nesimi) .sg-person{min-height:clamp(320px,44vw,450px)!important;}
 #screen-ms-ahmed-yesevi .ms-person--ahmed .ms-person-circle{width:48%!important;height:100%!important;border-radius:0!important;border:0!important;overflow:visible!important;background:transparent!important;position:absolute!important;left:0!important;bottom:0!important;aspect-ratio:auto!important;}
 #screen-ms-ahmed-yesevi .ms-person--ahmed .ms-person-circle>img.ms-person-portrait{position:absolute!important;left:0!important;bottom:0!important;width:100%!important;height:auto!important;transform:none!important;object-fit:contain!important;clip-path:none!important;}
}
/* Single intentional home-card adjustment: Makalat link clears the long Haci Bektaş title. */
#screen-home #okuPermanentSix .oku-six-card--haci .oku-six-works{top:48%!important;}
@media(max-width:580px){#screen-home #okuPermanentSix .oku-six-card--haci .oku-six-works{top:55%!important;}}
