.project-card[data-project-media],.project-card:has(.project-gallery-card){padding:0;overflow:hidden}
.project-card-content{padding:16px 19px 18px;display:flex;flex-direction:column;flex:1;min-width:0}
.project-brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;min-height:40px}
.project-brand-area{max-width:50%;color:var(--muted);font-size:11px;text-align:right;line-height:1.5}
.developer-logo{display:inline-flex;align-items:center;justify-content:center;width:126px;min-height:40px;padding:6px 10px;border-radius:var(--radius);background:var(--surface);flex:none}
.developer-logo img{display:block;max-width:100%;width:106px;height:28px;object-fit:contain}
.developer-logo-dark{background:var(--sidebar-dark,var(--surface-dark,#1d2b38));color:#f8fafc}
.developer-logo-wordmark{position:relative;height:40px;overflow:hidden}
.developer-logo-wordmark img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:220px;height:145px;max-width:none}
.developer-logo-wide-wordmark{position:relative;height:40px;overflow:hidden}
.developer-logo-wide-wordmark img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:210px;height:28px;max-width:none}
.developer-logo-fallback{font-size:12px;font-weight:600;line-height:1.3}
.project-gallery{margin:0;min-width:0}
.project-image-frame{position:relative;aspect-ratio:16/9;box-sizing:border-box;background:var(--surface-subtle,#eef3f8);overflow:hidden}
.project-image-main{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;color:var(--muted);cursor:pointer}
.project-image-main .project-image{display:block;width:100%;height:100%;object-fit:cover}
.project-image-main:focus-visible,.gallery-arrow:focus-visible,.gallery-thumbnails button:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
.project-image-error{align-content:center;padding:24px;font-size:12px;line-height:1.6}
.project-image-error:not([hidden]){display:block;height:100%}
.project-image-kind,.project-image-counter{position:absolute;bottom:12px;padding:4px 8px;background:rgba(15,23,42,.82);color:#fff;border-radius:4px;font-size:10px;line-height:1.5;pointer-events:none}
.project-image-kind{left:12px}.project-image-counter{right:12px;font-variant-numeric:tabular-nums}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:rgba(15,23,42,.72);color:#fff;cursor:pointer;line-height:1}
.gallery-arrow span{font-size:28px;line-height:1;margin-top:-3px}.gallery-prev{left:10px}.gallery-next{right:10px}
.gallery-arrow:hover{background:rgba(15,23,42,.9)}
.project-gallery-detail{margin:0 0 22px}.project-gallery-detail .project-image-frame{border-radius:var(--radius);aspect-ratio:16/10}
.project-gallery-detail .project-image-main{cursor:default}.project-gallery-detail .project-image{object-fit:contain}
.gallery-thumbnails{display:flex;gap:8px;overflow-x:auto;padding:10px 2px 4px}
.gallery-thumbnails button{flex:none;width:88px;height:58px;padding:0;border:2px solid transparent;border-radius:4px;background:var(--surface-subtle,#eef3f8);overflow:hidden;cursor:pointer}
.gallery-thumbnails img{display:block;width:100%;height:100%;object-fit:cover}
.gallery-thumbnails button[aria-pressed="true"]{border-color:var(--blue)}
.gallery-footnote{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:8px;color:var(--muted);font-size:11px;line-height:1.6}
.gallery-source a{color:var(--blue-deep);text-underline-offset:3px}.project-media-empty{display:grid;place-items:center;color:var(--muted);font-size:12px;text-align:center}
.project-media-empty span{padding:0 18px}
.project-record-brand{display:flex;align-items:center;gap:14px;margin-bottom:18px}.project-record-brand .inspector-note{margin:0}
.project-gallery [hidden],.developer-logo [hidden]{display:none!important}
@media(max-width:520px){.project-card-content{padding:14px 16px 16px}.project-brand-row{gap:8px}.project-gallery-detail .project-image-frame{aspect-ratio:4/3}.project-record-brand{align-items:flex-start}.project-record-brand .developer-logo{width:110px}.gallery-arrow{width:40px;height:40px}}
