/* Inner-page additions intentionally kept minimal; main shared design lives in style.css. */
.project-detail{padding:70px 0}.project-detail .wrap{display:grid;grid-template-columns:1fr 1fr;gap:50px}.project-gallery{display:grid;grid-template-columns:1fr 1fr;gap:12px}.project-gallery img{width:100%;height:260px;object-fit:cover}.project-gallery img:first-child{grid-column:1/-1;height:420px}.project-copy h2{color:#183c68;font-size:34px}.project-copy p{color:#687078;line-height:1.8}.technical-list{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.technical-list article{border:1px solid #e2e6e9;padding:25px}.technical-list h3{color:#183c68}@media(max-width:780px){.project-detail .wrap,.technical-list{grid-template-columns:1fr}.project-gallery img:first-child{height:300px}.project-gallery img{height:190px}}

/* Project detail layout + gallery fix */
.detail-intro{padding:54px 0 34px;background:#fff}
.detail-intro .content-grid{align-items:start}
.detail-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:28px;padding:18px 0;border-top:1px solid #e5e8eb;border-bottom:1px solid #e5e8eb}
.detail-meta>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.detail-meta small{font-size:9px;letter-spacing:.12em;color:#8a9198;font-weight:800}
.detail-meta b{font-size:13px;color:#183c68;line-height:1.35}
.back-link{display:inline-flex;margin-top:18px;color:#183c68;font-size:11px;font-weight:800}

.detail-gallery{padding:18px 0 76px;background:#fff}
.detail-gallery .gallery{width:min(1170px,calc(100% - 40px));margin:0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.detail-gallery figure{margin:0;position:relative;overflow:hidden;background:#eef1f4;border:1px solid #e3e7ea;box-shadow:0 7px 24px rgba(16,42,70,.07);cursor:zoom-in}
.detail-gallery figure img{display:block;width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;transition:transform .35s ease}
.detail-gallery figure:hover img{transform:scale(1.025)}
.detail-gallery figcaption{position:absolute;left:0;right:0;bottom:0;padding:36px 18px 16px;background:linear-gradient(transparent,rgba(8,28,48,.88));color:#fff;pointer-events:none}
.detail-gallery figcaption span{display:block;font-size:9px;letter-spacing:.14em;font-weight:800;color:#efb72f;margin-bottom:5px}
.detail-gallery figcaption b{display:block;font-size:15px;line-height:1.3}
.detail-gallery .g1,.detail-gallery .g4{grid-column:auto}

.project-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(3,13,24,.94);display:none;align-items:center;justify-content:center;padding:28px}
.project-lightbox.open{display:flex}
.project-lightbox img{max-width:min(1400px,94vw);max-height:88vh;width:auto;height:auto;object-fit:contain;box-shadow:0 18px 60px #0009}
.project-lightbox button{position:absolute;top:18px;right:22px;width:46px;height:46px;border:1px solid #ffffff55;border-radius:50%;background:#ffffff12;color:#fff;font-size:28px;line-height:1;cursor:pointer}
.project-lightbox .lb-prev,.project-lightbox .lb-next{top:50%;transform:translateY(-50%);right:auto}
.project-lightbox .lb-prev{left:18px}.project-lightbox .lb-next{right:18px;left:auto}
.project-lightbox .lb-prev,.project-lightbox .lb-next{font-size:31px}

@media(max-width:780px){
  .detail-intro{padding:38px 0 22px}
  .detail-intro .content-grid{gap:22px}
  .detail-meta{grid-template-columns:1fr;gap:11px}
  .detail-gallery{padding:12px 0 50px}
  .detail-gallery .gallery{width:min(100% - 26px,1170px);grid-template-columns:1fr;gap:14px}
  .detail-gallery figure img{aspect-ratio:4/3}
  .detail-gallery figcaption{padding:30px 14px 13px}
  .project-lightbox{padding:14px}
  .project-lightbox .lb-prev{left:8px}.project-lightbox .lb-next{right:8px}
}
