/* Single project page (single-projects.php), layout B1. Base: about-2026.css + projects-2026.css. */
.pd-main { padding: clamp(170px, 14vw, 210px) 0 clamp(20px, 3vw, 40px); }
.ab-page .pd-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.95rem; }
.ab-page .pd-back:hover { color: var(--ab-gold); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); min-height: 600px; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 30px 60px rgba(4, 16, 28, 0.3); }

/* details panel (right) */
.pd-text { padding: clamp(30px, 3.6vw, 50px) clamp(24px, 3.2vw, 44px); background: rgba(10, 30, 48, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pd-latin { display: block; font-family: "Cinzel", Georgia, serif; letter-spacing: 0.14em; color: var(--ab-gold); font-size: 1rem; margin-bottom: 6px; text-align: right; }
.ab-page .pd-title { font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 300; line-height: 1.2; margin-bottom: 8px; }
.pd-status { display: inline-block; padding: 3px 14px; margin-bottom: 20px; background: var(--ab-gold); color: #10202c; font-size: 0.9rem; font-weight: 500; }
.pd-status--done { background: #9fb0b8; }
.ab-page .pd-lead { color: #fff; font-weight: 500; font-size: 1.15rem; margin-bottom: 6px; }
.pd-text p { color: rgba(255, 255, 255, 0.88); }
.pd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.pd-facts div { padding: 14px; border: 1px solid rgba(216, 180, 122, 0.5); }
.pd-facts b { display: block; font-weight: 500; color: #fff; line-height: 1.4; }
.pd-facts span { font-size: 0.85rem; color: var(--ab-gold); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ab-page .pd-btn { display: inline-block; padding: 12px 24px; border: 1px solid rgba(216, 180, 122, 0.8); color: #fff; text-decoration: none; transition: background 0.3s ease, color 0.3s ease; }
.ab-page .pd-btn:hover { background: rgba(216, 180, 122, 0.16); }
.ab-page .pd-btn--solid { background: var(--ab-gold); border-color: var(--ab-gold); color: #10202c; font-weight: 500; }
.ab-page .pd-btn--solid:hover { background: #cfac77; color: #10202c; }
.ab-page .pd-note { margin: 18px 0 0 !important; font-size: 12px; color: rgba(255, 255, 255, 0.6); }

/* gallery (left) */
.pd-gallery { display: flex; flex-direction: column; background: #0a1e30; min-width: 0; }
.pd-stage { position: relative; flex: 1; min-height: 480px; overflow: hidden; }
.ab-page .pd-main-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease; }
.pd-zoom { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: zoom-in; }
.pd-arr {
	position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, 0.88); color: #0a1e30; font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.2s ease;
}
.pd-arr:hover, .pd-arr:focus-visible { background: var(--ab-gold); }
.pd-arr--r { right: 16px; } .pd-arr--l { left: 16px; }
.pd-count { position: absolute; bottom: 14px; left: 16px; z-index: 2; padding: 2px 12px; background: rgba(10, 30, 48, 0.72); font-size: 0.9rem; }
.pd-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.pd-thumb { flex: none; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: 0.55; transition: opacity 0.2s ease, border-color 0.2s ease; }
.ab-page .pd-thumb img { display: block; width: 100px; max-width: none; height: 66px; object-fit: cover; }
.pd-thumb:hover { opacity: 0.85; }
.pd-thumb.is-on { opacity: 1; border-color: var(--ab-gold); }
.pd-thumb:focus-visible, .pd-zoom:focus-visible { outline: 2px solid var(--ab-gold); outline-offset: -2px; }

body.single-projects #footer-container { display: none !important; }
@media (max-width: 900px) {
	.pd-grid { grid-template-columns: 1fr; }
	.pd-gallery { order: -1; }
	.pd-stage { min-height: 300px; aspect-ratio: 3 / 2; flex: none; }
}

/* project logo at the top of the details panel */
.ab-page .pd-logo { display: block; width: min(100%, 300px); height: auto; margin: 0 0 18px auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35)); }

/* main gallery image as a background (iOS Safari sized the absolute <img> from its intrinsic ratio and let it overflow) */
.pd-gallery { overflow: hidden; }
.pd-stage { overflow: hidden; contain: paint; }
.ab-page .pd-main-img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; background-size: cover; background-position: center; background-repeat: no-repeat; }
@media (max-width: 900px) {
	.pd-stage { aspect-ratio: auto; height: 0; min-height: 0; padding-top: 66.6667%; }
}
