/* Approved new portfolio content. Scoped additions; existing work layouts stay intact. */
.om-pilot-home .work-new .work-photo>img { object-fit: contain; background: #eef0e9; }
.om-pilot-home .project-info-new h3 { color: var(--text); }
.om-pilot-home .project-info-new .project-client { margin-block: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.om-pilot-home .project-info-new .project-client h4 { font: 600 15px/1.5 var(--body); margin: 0 0 10px; color: var(--text); }
.om-pilot-home .project-info-new .project-client p { color: var(--muted); font: 400 15px/1.7 var(--body); margin: 0 0 12px; }
.om-pilot-home .project-info-new .project-client a { color: var(--blue); text-underline-offset: 3px; }
body.om-works-preview .works-gallery[data-new-work] img { object-fit: contain; }
body.om-works-preview .works-gallery[data-new-work][data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 1fr; aspect-ratio: 1.5; }
body.om-works-preview .works-gallery[data-new-work][data-count="2"] .works-gallery__item { grid-column: auto; grid-row: auto; }
body.om-works-preview .works-gallery[data-new-work][data-count="1"][data-portrait="true"] { aspect-ratio: 3/4; }
@media(max-width:650px) {
 body.om-works-preview .works-gallery[data-new-work][data-count="2"] { grid-template-columns: 1fr; grid-template-rows: repeat(2,auto); aspect-ratio: auto; }
 body.om-works-preview .works-gallery[data-new-work][data-count="2"] .works-gallery__item { aspect-ratio: 4/3; }
}

/* New work photos keep their natural proportions and fill the neutral surface. */
.om-pilot-home .work-card.work-new .work-photo {
 background: #e4e4e6;
}
.om-pilot-home .work-card.work-new .work-photo > img,
.om-pilot-home .work-card.work-new:nth-child(4n+2) .work-photo > img,
.om-pilot-home .work-card.work-new:nth-child(4n+3) .work-photo > img,
.om-pilot-home .portfolio-grid.is-filtered .work-card.work-new .work-photo > img {
 display: block;
 width: 100%;
 height: auto;
 aspect-ratio: auto;
 object-fit: contain;
 background: #e4e4e6;
}
.om-pilot-home .work-card.work-new .work-open:hover .work-photo > img {
 transform: none;
}
body.om-works-preview .works-gallery[data-new-work][data-count="1"] {
 display: block;
 height: auto;
 aspect-ratio: auto !important;
 background: #e4e4e6;
}
body.om-works-preview .works-gallery[data-new-work][data-count="1"] .works-gallery__item {
 width: 100%;
 height: auto;
 aspect-ratio: auto;
 background: #e4e4e6;
}
body.om-works-preview .works-gallery[data-new-work][data-count="1"] img {
 display: block;
 width: 100%;
 height: auto;
 aspect-ratio: auto;
 object-fit: contain;
 background: #e4e4e6;
}
.om-pilot-home .project-layout:has(> .project-info-new) .project-gallery {
 padding: 0;
 background: #e4e4e6;
 align-self: stretch;
 position: relative;
}
.om-pilot-home .project-layout:has(> .project-info-new) .project-main-photo {
 min-height: 0;
 background: #e4e4e6;
}
.om-pilot-home .project-layout:has(> .project-info-new) .project-photo-expand {
 background: #e4e4e6;
}
.om-pilot-home .project-layout:has(> .project-info-new) .project-main-photo img {
 display: block;
 width: 100%;
 height: auto;
 max-height: none;
 aspect-ratio: auto;
 object-fit: contain;
 background: #e4e4e6;
}
.om-pilot-home .project-layout:has(> .project-info-new) .project-gallery-caption {
 margin: 0;
 padding: 16px;
 color: #36363a;
 background: #e4e4e6;
}
/* Keep single-photo fullscreen content in the desktop centre column. */
@media (min-width: 741px) {
 body.om-pilot .om-photo-viewport { grid-column: 2; grid-row: 1; }
}
/* Match the new photos' grey surface across the fullscreen photo area only. */
body.om-pilot .om-photo-stage:has(.om-photo-image[src*="/works-20261127/"]),
body.om-pilot .om-photo-stage:has(.om-photo-image[src*="/works-20261127/"]) .om-photo-viewport {
 background: #e4e4e6;
}
body.om-works-preview .works-lightbox:has(.works-lightbox__image[src*="/works-20261127/"]) .works-lightbox__inner,
body.om-works-preview .works-lightbox:has(.works-lightbox__image[src*="/works-20261127/"]) .works-lightbox__viewport {
 background: #e4e4e6;
}

/* Reserve intrinsic space for lazy new-work photographs before decoding. */
body.om-pilot img[src*="/works-20261127/bmw-khimki-01.webp"] { aspect-ratio: 1295 / 1214 !important; }
body.om-pilot img[src*="/works-20261127/mipt-science-stickers-01.webp"] { aspect-ratio: 1302 / 1208 !important; }
body.om-pilot img[src*="/works-20261127/mipt-theatre-stickers-01.webp"] { aspect-ratio: 1241 / 1267 !important; }
body.om-pilot img[src*="/works-20261127/reforma-breakfast-01.webp"] { aspect-ratio: 1246 / 1262 !important; }
body.om-pilot img[src*="/works-20261127/paykeeper-instructions-01.webp"] { aspect-ratio: 1217 / 1292 !important; }
body.om-pilot img[src*="/works-20261127/zhako-tshirts-01.webp"] { aspect-ratio: 1530 / 1028 !important; }
body.om-pilot img[src*="/works-20261127/yulia-zhnyakina-01.webp"] { aspect-ratio: 1512 / 1040 !important; }
body.om-pilot img[src*="/works-20261127/kamennyy-lev-01.webp"] { aspect-ratio: 1343 / 1171 !important; }
body.om-pilot img[src*="/works-20261127/unpk-mipt-01.webp"] { aspect-ratio: 1086 / 1448 !important; }
body.om-pilot img[src*="/works-20261127/fizteh-radio-01.webp"] { aspect-ratio: 1315 / 1196 !important; }
body.om-pilot img[src*="/works-20261127/dr-shumskaya-01.webp"] { aspect-ratio: 1448 / 1086 !important; }
body.om-pilot img[src*="/works-20261127/tochka-dvoynik-01.webp"] { aspect-ratio: 1058 / 1487 !important; }
body.om-pilot img[src*="/works-20261127/juro-certificates-01.webp"] { aspect-ratio: 1086 / 1448 !important; }
body.om-pilot img[src*="/works-20261127/theory-flyers-01.webp"] { aspect-ratio: 1086 / 1448 !important; }
body.om-pilot img[src*="/works-20261127/marins-hotels-01.webp"] { aspect-ratio: 1086 / 1448 !important; }
body.om-pilot img[src*="/works-20261127/mipt-science-tourism-01.webp"] { aspect-ratio: 1086 / 1448 !important; }
body.om-pilot img[src*="/works-20261127/tc-gorod-catalogue-01.webp"] { aspect-ratio: 1086 / 1448 !important; }
body.om-pilot img[src*="/works-20261127/mipt-international-guide-01.webp"] { aspect-ratio: 1086 / 1448 !important; }
body.om-pilot img[src*="/works-20261127/red-barberia-01.webp"] { aspect-ratio: 1086 / 1448 !important; }
