/* Homepage details: static benefits, module dimensions and company principles. */
body.front #advantage .pr .item { padding-left: 0; }
body.front #advantage .pr .item > svg { display: none; }
body.front #modules .mod-house { background-image: none, url('/assets/images/ud-modules-vertical-v3.webp'); }
body.front #modules > .chip,
body.front #modules .sizes > :is(.width,.height,.leaf),
body.front #about .part-right .leaf-fly,
body.front #about .part-right .item > :is(.number,.number-low) { display: none; }
body.front #modules .text-block .corner::after,
body.front #about .wrap-company .text2::before { content: none; }
body.front #modules .text-block .corner,
body.front #about .wrap-company .text2 { background: transparent; padding: 0; }
body.front #modules .s-block,
body.front #about .part-right .wrapper { box-sizing: border-box; background: var(--ud-paper,#fff); border: 1px solid var(--ud-line,#ddd3c0); border-radius: 12px; box-shadow: none; padding: clamp(18px,2.2vw,32px); }
body.front #modules .s-block { height: auto; }
body.front #modules .s-block > .title,
body.front #about .part-right .name { margin-bottom: 12px; }
body.front #modules .s-block .item { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: baseline; column-gap: 12px; margin: 0; padding: 12px 0; }
body.front #modules .s-block .item .label { width: auto; height: auto; position: static; padding: 0; color: var(--ud-graphite,#202624); background: transparent; text-align: left; }
body.front #modules .s-block .item .item-s { padding-left: 0; text-align: right; }
body.front #modules .s-block .item + .item,
body.front #about .part-right .item + .item { border-top: 1px solid var(--ud-line,#ddd3c0); }
body.front #about .wrap-company .part-right { box-sizing: border-box; background: transparent; padding: 0; }
body.front #about .part-right .item { margin: 0; padding: 14px 0; }
body.front #modules .s-block .item:last-child,
body.front #about .part-right .item:last-of-type { padding-bottom: 0; }
@media (max-width: 991px) { body.front #modules .wrapper .text-block { margin-bottom: 24px; } }
@media (max-width: 600px) { body.front #about .wrap-company .part-right { max-width: 100%; margin-inline: 0; } }

/* Project photographs keep their aspect ratio when opened. */
.block-inst.ud-project-dialog { box-sizing: border-box; width: min(100%,900px); max-width: 100%; padding: 0; background: var(--ud-paper,#fff); overflow: auto; }
.ud-project-dialog .ud-project-figure { margin: 0; }
.ud-project-dialog .ud-project-figure img { display: block; width: 100%; max-height: 72vh; height: auto; object-fit: contain; background: var(--ud-paper,#fff); }
.ud-project-dialog .ud-project-figure figcaption { padding: 14px 24px 18px; line-height: 1.45; text-align: left; color: var(--ud-text,#383838); }
.ud-project-dialog .ud-project-figure figcaption:empty { display: none; }

/* Video photographs, one play control, and navigation below the frame. */
body.front .videos .swiper-container { overflow: hidden; }
body.front .videos .ud-video-card { display: block; position: static; width: auto; height: auto; margin: 0; color: var(--ud-graphite,#21372a); text-decoration: none; }
body.front .videos .ud-video-image { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px; }
body.front .videos .ud-video-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.front .videos .ud-video-play { display: grid; place-items: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: clamp(44px,5vw,58px); height: clamp(44px,5vw,58px); border-radius: 50%; background: var(--ud-control,#1b563e); color: #fff; }
body.front .videos .ud-video-play::before { content: ''; width: 0; height: 0; margin-left: 3px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid currentColor; }
body.front .videos .ud-video-card:focus-visible .ud-video-image { outline: 3px solid #fff; outline-offset: -5px; }
body.front .videos .ud-video-card:hover .ud-video-play { background: var(--ud-control-hover,#14432f); }
body.front .videos .ud-video-caption { display: flex; align-items: center; box-sizing: border-box; min-height: 52px; padding: 5px 104px 3px 0; font-size: clamp(14px,1.3vw,18px); line-height: 1.35; font-weight: 600; }
body.front .videos .swiper-arrows { display: flex; position: absolute; left: auto; right: 0; top: auto; bottom: 4px; z-index: 3; gap: 6px; width: auto; height: auto; margin: 0; transform: none; }
body.front .videos .swiper-arrows :is(.swiper-button-prev,.swiper-button-next) { display: grid; place-items: center; position: static; width: 44px; height: 44px; margin: 0; transform: none; background: var(--ud-control-pale,#e2eee5); border-radius: 50%; cursor: pointer; }
body.front .videos .swiper-arrows :is(.swiper-button-prev,.swiper-button-next)::after { content: none; }
body.front .videos .swiper-arrows svg { display: block; width: 11px; height: 16px; }
body.front .videos .swiper-arrows svg path { stroke: var(--ud-control,#1b563e); }
body.front .videos .swiper-arrows :is(.swiper-button-prev,.swiper-button-next):focus-visible { outline: 2px solid var(--ud-control,#1b563e); outline-offset: 1px; }

/* The complete gallery tile is a single focus and touch target. */
body.front #subscribe .wrap .inst-img > a { display: block; width: 100%; height: 100%; }
