/* OTDELKA78 V1.15.1 — PROJECT GROUPING / PROOF CLARITY
   Narrow UX patch: keep every photo visually inside the object it belongs to. */

.archive-status-link{color:#d0a46b;font-weight:700}
.archive-projects{margin-top:56px;display:grid;gap:28px}
.archive-project{border:1px solid var(--line);border-radius:var(--radius);padding:26px;background:rgba(255,255,255,.018);overflow:hidden}
.archive-project-head{display:flex;justify-content:space-between;align-items:flex-end;gap:34px;margin-bottom:24px}
.archive-project-title{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:start}
.archive-project-title>span{color:var(--bronze-hi);font-size:12px;font-weight:750;letter-spacing:.14em;padding-top:5px}
.archive-project-kicker{margin:0 0 8px;color:#9e9a91;font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.archive-project-title h3{margin:0;font-family:"Montserrat",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:clamp(28px,3.2vw,44px);font-weight:600;line-height:1.03;letter-spacing:-.035em}
.archive-project-meta{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.archive-project-link{flex:0 0 auto;color:#d0a46b;font-size:13px;font-weight:700;white-space:nowrap}
.archive-project-gallery{display:grid;gap:12px;min-height:520px}
.archive-project-gallery figure{margin:0;position:relative;overflow:hidden;border-radius:22px;background:var(--ink-3);isolation:isolate}
.archive-project-gallery img{width:100%;height:100%;object-fit:cover;filter:saturate(.88);transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.archive-project-gallery figure::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,9,8,.34),transparent 46%);z-index:1;pointer-events:none}
.archive-project-gallery figure:hover img{transform:scale(1.025)}
.archive-project-gallery figcaption{position:absolute;left:14px;right:14px;bottom:14px;z-index:2}
.archive-project-gallery--pragma{grid-template-columns:1.35fr .65fr;grid-template-rows:1fr 1fr}
.archive-project-gallery--pragma .archive-project-main{grid-row:1/3}
.archive-project-gallery--two{grid-template-columns:1.2fr .8fr;grid-template-rows:1fr;min-height:430px}
.archive-project-gallery--two figure{min-height:430px}

/* Catalogue cards: stronger grouping and shorter mobile galleries. */
@media(max-width:760px){
  .archive-projects{margin-top:36px;gap:22px}
  .archive-project{padding:18px;border-radius:22px}
  .archive-project-head{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:18px}
  .archive-project-title{grid-template-columns:34px minmax(0,1fr);gap:10px}
  .archive-project-title h3{font-size:clamp(29px,8vw,38px)}
  .archive-project-link{padding-left:44px;white-space:normal}
  .archive-project-gallery{min-height:0}
  .archive-project-gallery--pragma{grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .archive-project-gallery--pragma .archive-project-main{grid-column:1/-1;grid-row:auto;min-height:330px}
  .archive-project-gallery--pragma figure:not(.archive-project-main){min-height:165px}
  .archive-project-gallery--two{grid-template-columns:1.2fr .8fr;min-height:0}
  .archive-project-gallery--two figure{min-height:285px}
  .archive-project-gallery figcaption{left:10px;right:10px;bottom:10px}
  .archive-project-gallery .archive-tag{padding:7px 9px;font-size:9px;line-height:1.25}

  .projects-catalog .project-card{border:1px solid #343832;border-radius:24px;padding:34px 18px;margin-top:20px}
  .projects-catalog .project-card:first-child{margin-top:0}
  .projects-catalog .project-card-grid{gap:28px}
  .projects-catalog .project-card-facts{gap:0}
  .projects-catalog .project-card-fact{grid-template-columns:1fr;gap:6px;padding:13px 0}
  .projects-catalog .project-card-media{min-height:0}
  .projects-catalog .project-card-media.pragma{grid-template-columns:1fr 1fr}
  .projects-catalog .project-card-media.pragma figure:first-child{grid-column:1/-1;grid-row:auto;min-height:320px}
  .projects-catalog .project-card-media.pragma figure:nth-child(2),
  .projects-catalog .project-card-media.pragma figure:nth-child(3){min-height:165px}
  .projects-catalog .project-card-media.single-pair{grid-template-columns:1.15fr .85fr}
  .projects-catalog .project-card-media.single-pair figure:first-child,
  .projects-catalog .project-card-media.single-pair figure:last-child{grid-row:auto;min-height:285px}
  .projects-catalog .project-card-media figcaption{font-size:9px;line-height:1.3}
}

@media(max-width:390px){
  .archive-project{padding:15px}
  .archive-project-gallery--pragma{grid-template-columns:1fr 1fr}
  .archive-project-gallery--pragma .archive-project-main{grid-column:1/-1;min-height:300px}
  .archive-project-gallery--pragma figure:not(.archive-project-main){min-height:150px}
  .archive-project-gallery--two{grid-template-columns:1.18fr .82fr}
  .archive-project-gallery--two figure{min-height:250px}

  .projects-catalog .project-card-media,
  .projects-catalog .project-card-media.pragma,
  .projects-catalog .project-card-media.single-pair{grid-template-columns:1fr 1fr}
  .projects-catalog .project-card-media.pragma figure:first-child{grid-column:1/-1;grid-row:auto;min-height:300px}
  .projects-catalog .project-card-media.pragma figure:nth-child(2),
  .projects-catalog .project-card-media.pragma figure:nth-child(3){grid-column:auto;min-height:150px}
  .projects-catalog .project-card-media.single-pair figure:first-child,
  .projects-catalog .project-card-media.single-pair figure:last-child{grid-column:auto;grid-row:auto;min-height:250px}
}
