/* ARCAL PROJECT GALLERY V1 */
.project-gallery{margin-top:clamp(42px,6vw,84px);padding-top:clamp(30px,4vw,54px);border-top:1px solid rgba(20,20,20,.12)}
.project-gallery__head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:24px}
.project-gallery__head small{display:block;font-size:11px;letter-spacing:.18em;text-transform:uppercase;opacity:.58;margin-bottom:8px}
.project-gallery__head h2{margin:0;font-size:clamp(28px,4vw,48px);font-weight:600;letter-spacing:-.035em}
.project-gallery__count{font-size:12px;letter-spacing:.16em;opacity:.5;white-space:nowrap}
.project-gallery__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}
.project-gallery__item{position:relative;display:block;overflow:hidden;background:#111;min-height:250px;grid-column:span 4;isolation:isolate}
.project-gallery__item:nth-child(7n+1),.project-gallery__item:nth-child(7n+5){grid-column:span 8;min-height:430px}
.project-gallery__item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.2,.7,.2,1),filter .45s ease}
.project-gallery__item::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.44));opacity:.58;transition:opacity .35s ease;z-index:1}
.project-gallery__item:hover img{transform:scale(1.035)}
.project-gallery__item:hover::after{opacity:.82}
.project-gallery__index{position:absolute;z-index:2;inset-inline-end:14px;bottom:12px;color:#fff;font-size:11px;letter-spacing:.15em}
.project-gallery-lightbox{position:fixed;inset:0;z-index:9999;display:none;place-items:center;padding:28px;background:rgba(5,5,6,.94);backdrop-filter:blur(12px)}
.project-gallery-lightbox:target{display:grid}
.project-gallery-lightbox__backdrop{position:absolute;inset:0}
.project-gallery-lightbox figure{position:relative;z-index:2;margin:0;max-width:min(1500px,94vw);max-height:90vh;display:flex;flex-direction:column;align-items:center;gap:12px}
.project-gallery-lightbox img{display:block;max-width:100%;max-height:82vh;width:auto;height:auto;object-fit:contain;box-shadow:0 24px 80px rgba(0,0,0,.45)}
.project-gallery-lightbox figcaption{color:rgba(255,255,255,.72);font-size:12px;letter-spacing:.08em}
.project-gallery-lightbox__close{position:fixed;z-index:3;top:18px;inset-inline-end:22px;width:44px;height:44px;border:1px solid rgba(255,255,255,.22);border-radius:50%;display:grid;place-items:center;color:#fff;text-decoration:none;font-size:26px;line-height:1;background:rgba(255,255,255,.07)}
.project-gallery-lightbox__close:hover{background:#fff;color:#111}
.project-index-card__media{position:relative}
.project-index-card__gallery-count{position:absolute;z-index:2;inset-inline-end:12px;bottom:12px;background:rgba(10,10,11,.72);backdrop-filter:blur(8px);color:#fff;padding:7px 10px;font-size:10px;letter-spacing:.12em;border:1px solid rgba(255,255,255,.18)}
@media(max-width:900px){.project-gallery__item,.project-gallery__item:nth-child(7n+1),.project-gallery__item:nth-child(7n+5){grid-column:span 6;min-height:300px}.project-gallery__head{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.project-gallery__grid{gap:8px}.project-gallery__item,.project-gallery__item:nth-child(7n+1),.project-gallery__item:nth-child(7n+5){grid-column:1/-1;min-height:260px}.project-gallery-lightbox{padding:14px}.project-gallery-lightbox__close{top:12px;inset-inline-end:12px}}
