/* PYP — proje görselleri: mobil uyumlu küçük önizlemeler + tam ekran olmayan büyük önizleme */

/* Kapak görseli: ekranı kaplamasın */
.single-proje .wp-block-post-featured-image img { aspect-ratio: 16 / 10; width: 100%; height: auto; max-height: 72vh; object-fit: cover; border-radius: 12px; }
.single-proje .wp-block-post-featured-image a { display: block; cursor: zoom-in; }

/* Aşama ve galeri ızgarası: masaüstünde 3–4, mobilde 2 sütun küçük kareler */
body .pyp-asamalar { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.pyp-asama a { display: block; position: relative; cursor: zoom-in; border-radius: var(--pyp-radius, 8px); overflow: hidden; }
.pyp-asama a::after { content: "⤢"; position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; line-height: 1; opacity: .85; pointer-events: none; }
.pyp-asama img { transition: transform .25s ease; }
@media (hover: hover) { .pyp-asama a:hover img { transform: scale(1.04); } }

@media (max-width: 640px) {
	.single-proje .wp-block-post-featured-image img { aspect-ratio: 4 / 3; max-height: 46vh; border-radius: 10px; }
	body .pyp-asamalar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0 2rem; }
	body .pyp-asama img { aspect-ratio: 1 / 1; }
	.pyp-asama figcaption { font-size: .8rem; line-height: 1.3; }
	.pyp-asama a::after { width: 22px; height: 22px; font-size: 12px; right: 4px; bottom: 4px; }
}

/* Büyük önizleme kutusu */
html.pyp-lb-acik, html.pyp-lb-acik body { overflow: hidden; }
.pyp-lb { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 4vw, 48px); background: rgba(10,10,10,.88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pyp-lb[hidden] { display: none; }
.pyp-lb__kare { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; }
.pyp-lb__kare img { display: block; max-width: 100%; max-height: min(78vh, 78dvh); width: auto; height: auto; object-fit: contain; border-radius: 10px; background: #111; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.pyp-lb__kare figcaption { display: flex; justify-content: space-between; gap: 1rem; width: 100%; margin-top: .6rem; color: #eee; font-size: .9rem; }
.pyp-lb__sayac { opacity: .75; white-space: nowrap; }
.pyp-lb button { position: absolute; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; line-height: 1; }
.pyp-lb button:hover, .pyp-lb button:focus-visible { background: var(--wp--preset--color--vurgu, #f26a1b); outline: none; }
.pyp-lb__kapat { top: 12px; right: 12px; width: 44px; height: 44px; font-size: 28px; }
.pyp-lb__ok { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 34px; }
.pyp-lb__ok--geri { left: 12px; }
.pyp-lb__ok--ileri { right: 12px; }
.pyp-lb--tek .pyp-lb__ok { display: none; }
@media (max-width: 640px) {
	.pyp-lb { padding: 56px 8px 64px; }
	.pyp-lb__kare img { max-height: 70dvh; border-radius: 8px; }
	.pyp-lb__ok { top: auto; bottom: 10px; transform: none; width: 44px; height: 44px; font-size: 28px; }
	.pyp-lb__ok--geri { left: calc(50% - 54px); }
	.pyp-lb__ok--ileri { right: calc(50% - 54px); }
	.pyp-lb__kare figcaption { font-size: .82rem; padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) { .pyp-asama img { transition: none; } }
