/* Ayvalık Vibes 5.0.19 — Alt sayfa ilgili yazılar ve büyük içerik görselleri için standart oran sistemi */
body.ayv-final-5000 .avx-related-articles{
  width:min(1120px,100%)!important;
  margin:28px auto 0!important;
  padding:clamp(22px,3vw,34px)!important;
}
body.ayv-final-5000 .avx-related-head{
  gap:16px!important;
  align-items:flex-end!important;
  margin-bottom:18px!important;
}
body.ayv-final-5000 .avx-related-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
}
body.ayv-final-5000 .avx-related-card{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  min-height:100%!important;
  border:1px solid var(--ayv5-line)!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(22,52,46,.045)!important;
}
body.ayv-final-5000 .avx-related-card figure,
body.ayv-final-5000 .avx-related-card .wp-post-image,
body.ayv-final-5000 .avx-related-card img{
  display:block!important;
  width:100%!important;
}
body.ayv-final-5000 .avx-related-card figure{
  aspect-ratio:4/3!important;
  max-height:240px!important;
  overflow:hidden!important;
  background:#e7efeb!important;
  flex:0 0 auto!important;
}
body.ayv-final-5000 .avx-related-card figure img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
body.ayv-final-5000 .avx-related-card>div{
  min-height:170px!important;
  padding:18px 18px 20px!important;
  display:flex!important;
  flex-direction:column!important;
}
body.ayv-final-5000 .avx-related-card h3{
  margin:8px 0 12px!important;
  font-size:clamp(26px,2.05vw,34px)!important;
  line-height:1.02!important;
  letter-spacing:-.038em!important;
  text-wrap:balance!important;
}
body.ayv-final-5000 .avx-related-card span:last-child{
  margin-top:auto!important;
}

/* Blog archive/detail kartlarında da görsel taşmasını önle */
body.ayv-final-5000 .avx-blog-card,
body.ayv-final-5000 .avx-blog-feature{
  overflow:hidden!important;
}
body.ayv-final-5000 .avx-blog-card-media,
body.ayv-final-5000 .avx-blog-feature-media{
  aspect-ratio:16/10!important;
  max-height:250px!important;
  overflow:hidden!important;
  background:#e7efeb!important;
}
body.ayv-final-5000 .avx-blog-card-media img,
body.ayv-final-5000 .avx-blog-feature-media img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

/* Tema kaynaklı tekil büyük alt görseller için kontrollü sınır */
body.ayv-final-5000 .avx-article .wp-post-image,
body.ayv-final-5000 .avx-article .alignwide img,
body.ayv-final-5000 .avx-article .alignfull img,
body.ayv-final-5000 .avx-related-articles img{
  max-width:100%!important;
}

@media (max-width:900px){
  body.ayv-final-5000 .avx-related-grid{
    grid-template-columns:1fr!important;
  }
  body.ayv-final-5000 .avx-related-card figure{
    aspect-ratio:16/10!important;
    max-height:220px!important;
  }
  body.ayv-final-5000 .avx-related-card>div{
    min-height:0!important;
  }
}
