.object-media-library{margin:32px 0 48px}
.object-media-library h3{font-size:24px;line-height:1.3;margin:24px 0 18px}
.object-media-total{font-size:16px;font-weight:400}
.object-media-library #object-videos,.object-media-library #object-photos{scroll-margin-top:100px}
.object-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.object-video-grid figure{min-width:0;margin:0}
.object-video-grid h4{font-size:18px;line-height:1.4;margin:0 0 12px}
.portfolio-page .object-media-library .portrait-frame{aspect-ratio:4/3;background:#172024;position:relative}
.portfolio-page .object-media-library .portrait-frame img{width:100%;height:100%;object-fit:contain}
.portfolio-page .object-media-library .video-preview video{display:none}
.object-testimonial-video .video-preview video{display:none}
.portfolio-page .object-testimonial-video .portrait-frame{background:#172024;aspect-ratio:9/16}
.portfolio-page .object-testimonial-video .portrait-frame img{object-fit:contain}
.object-video-grid .video-preview-play{background:linear-gradient(transparent 55%,#0007)}
.object-media-library #object-photos{margin-top:32px}
body:has(.object-media-library) .osnova-photo-dialog:not(.osnova-video-dialog) :is(.photo-viewer-prev,.photo-viewer-next,.photo-viewer-close){width:48px;height:48px;min-width:48px;min-height:48px;border-radius:50%;background:rgba(0,0,0,.78);color:#fff;opacity:1;border:1px solid rgba(255,255,255,.7);box-shadow:0 2px 8px #0005}
@media(max-width:600px){.object-video-grid{grid-template-columns:1fr;gap:24px}.portfolio-page .object-media-library .portrait-frame{aspect-ratio:16/9}.object-video-grid h4{font-size:18px}}
