.duw-gallery{--du-navy:#0d3554;--du-blue:#2f95ca;--du-cyan:#54c8e8;position:relative;margin:64px 0 26px;padding:42px clamp(18px,4vw,44px);overflow:hidden;border:1px solid #ddecf4;border-radius:26px;background:linear-gradient(145deg,#f8fdff 0%,#eef8fc 100%);box-shadow:0 18px 55px rgba(13,53,84,.10)}.duw-gallery:before{content:"";position:absolute;width:240px;height:240px;right:-95px;top:-115px;border-radius:50%;background:linear-gradient(135deg,rgba(84,200,232,.28),rgba(47,149,202,.04))}.duw-gallery__head{position:relative;margin-bottom:28px}.duw-gallery__eyebrow{display:inline-block;margin-bottom:9px;color:var(--du-blue);font-size:12px;font-weight:800;letter-spacing:.16em}.duw-gallery__head h2{margin:0;color:var(--du-navy);font-size:clamp(30px,4vw,48px);line-height:1.05;font-weight:900}.duw-gallery__head p{margin:10px 0 0;color:#5d7180;font-size:16px}.duw-gallery__grid{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;align-items:start}.duw-gallery__item{appearance:none;position:relative;grid-column:span 4;width:100%;aspect-ratio:4/3;padding:0;border:0;border-radius:18px;overflow:hidden;background:#dcecf4;cursor:pointer;box-shadow:0 8px 22px rgba(13,53,84,.12)}.duw-gallery__item:nth-child(5n+1){grid-column:span 7}.duw-gallery__item:nth-child(5n+2){grid-column:span 5}.duw-gallery__item img,.duw-gallery__item video{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}.duw-gallery__item:hover img,.duw-gallery__item:focus-visible img,.duw-gallery__item:hover video,.duw-gallery__item:focus-visible video{transform:scale(1.045)}.duw-gallery__item.duw-aspect--16-9{aspect-ratio:16/9}.duw-gallery__item.duw-aspect--9-16{grid-column:span 3!important;aspect-ratio:9/16;max-height:560px}.duw-gallery__item.duw-aspect--1-1{aspect-ratio:1/1}.duw-gallery__zoom,.duw-gallery__play{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:rgba(13,53,84,.9);color:#fff;font-size:23px;box-shadow:0 6px 20px rgba(0,0,0,.18)}.duw-gallery__play{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:60px;height:60px;font-size:25px;padding-left:4px}.duw-gallery__service{position:absolute;left:12px;top:12px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.9);color:var(--du-navy);font-size:12px;font-weight:800}.duw-lightbox[hidden]{display:none!important}.duw-lightbox{position:fixed;z-index:999999;inset:0;display:flex;align-items:center;justify-content:center;padding:30px;background:rgba(4,24,39,.92);backdrop-filter:blur(8px)}.duw-lightbox__stage{display:flex;align-items:center;justify-content:center;max-width:86vw;max-height:86vh}.duw-lightbox__stage.duw-aspect--16-9{width:min(1200px,86vw);aspect-ratio:16/9}.duw-lightbox__stage.duw-aspect--9-16{height:min(86vh,900px);aspect-ratio:9/16}.duw-lightbox__stage.duw-aspect--1-1{height:min(86vh,850px);aspect-ratio:1/1}.duw-lightbox__image,.duw-lightbox__video,.duw-lightbox__embed{display:block;max-width:86vw;max-height:86vh;border:0;border-radius:16px;object-fit:contain;box-shadow:0 25px 80px rgba(0,0,0,.45);background:#000}.duw-lightbox__stage[class*="duw-aspect--"] .duw-lightbox__video,.duw-lightbox__stage[class*="duw-aspect--"] .duw-lightbox__embed{width:100%;height:100%;max-width:none;max-height:none}.duw-lightbox__close,.duw-lightbox__nav{position:absolute;border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;backdrop-filter:blur(6px)}.duw-lightbox__close{right:24px;top:24px;width:50px;height:50px;border-radius:50%;font-size:34px}.duw-lightbox__nav{top:50%;transform:translateY(-50%);width:54px;height:68px;border-radius:16px;font-size:50px;line-height:1}.duw-lightbox__prev{left:24px}.duw-lightbox__next{right:24px}.duw-lightbox-open{overflow:hidden}
@media(max-width:767px){.duw-gallery{margin:38px -4px 18px;padding:28px 14px 18px;border-radius:20px}.duw-gallery__head{margin-bottom:20px}.duw-gallery__head h2{font-size:32px}.duw-gallery__head p{font-size:14px}.duw-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.duw-gallery__item,.duw-gallery__item:nth-child(5n+1),.duw-gallery__item:nth-child(5n+2){grid-column:span 1;height:auto;border-radius:13px}.duw-gallery__item:nth-child(3n+1):not(.duw-aspect--9-16){grid-column:span 2}.duw-gallery__item.duw-aspect--9-16{grid-column:span 1!important;max-height:none}.duw-gallery__zoom{width:34px;height:34px;right:9px;bottom:9px;font-size:20px}.duw-gallery__play{width:48px;height:48px;font-size:20px}.duw-lightbox{padding:14px}.duw-lightbox__stage{max-width:94vw;max-height:82vh}.duw-lightbox__stage.duw-aspect--9-16{height:82vh}.duw-lightbox__image,.duw-lightbox__video,.duw-lightbox__embed{max-width:94vw;max-height:82vh}.duw-lightbox__close{right:14px;top:14px}.duw-lightbox__nav{width:44px;height:58px;font-size:40px}.duw-lightbox__prev{left:8px}.duw-lightbox__next{right:8px}}

/* v1.2.0: service previews and larger responsive video lightbox */
.duw-gallery__item--video img{display:block;width:100%;height:100%;object-fit:cover}
.duw-gallery__item--youtube img{object-position:center}
.duw-gallery__placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;color:#fff;background:linear-gradient(145deg,#173f64,#2f95ca)}
.duw-gallery__item--rutube .duw-gallery__placeholder{background:linear-gradient(145deg,#090909,#272727)}
.duw-gallery__item--vk .duw-gallery__placeholder{background:linear-gradient(145deg,#1769aa,#2d8bd2)}
.duw-gallery__placeholder strong{font-size:clamp(22px,3vw,38px);line-height:1;letter-spacing:.06em}
.duw-gallery__placeholder small{font-size:14px;opacity:.82}
.duw-gallery__item--video:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(2,18,30,.30),transparent 55%);pointer-events:none}
.duw-gallery__service,.duw-gallery__play{z-index:2}

.duw-lightbox{padding:24px 82px}
.duw-lightbox__stage{width:min(92vw,1500px);height:min(90vh,920px);max-width:none;max-height:none}
.duw-lightbox__stage.duw-aspect--16-9{width:min(88vw,1500px,156vh);height:auto;aspect-ratio:16/9}
.duw-lightbox__stage.duw-aspect--9-16{width:auto;height:min(92vh,960px);aspect-ratio:9/16}
.duw-lightbox__stage.duw-aspect--1-1{width:auto;height:min(90vh,920px);aspect-ratio:1/1}
.duw-lightbox__image,.duw-lightbox__video,.duw-lightbox__embed{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.duw-lightbox__embed{background:#000}

@media(max-width:767px){
  .duw-lightbox{padding:64px 10px 18px}
  .duw-lightbox__stage{width:96vw;height:82vh}
  .duw-lightbox__stage.duw-aspect--16-9{width:96vw;height:auto;aspect-ratio:16/9}
  .duw-lightbox__stage.duw-aspect--9-16{width:auto;height:min(84vh,760px);aspect-ratio:9/16}
  .duw-lightbox__stage.duw-aspect--1-1{width:92vw;height:auto;aspect-ratio:1/1}
  .duw-lightbox__close{right:10px;top:10px;width:44px;height:44px}
  .duw-lightbox__nav{top:auto;bottom:12px;transform:none;width:50px;height:50px;border-radius:50%;font-size:38px}
  .duw-lightbox__prev{left:calc(50% - 62px)}
  .duw-lightbox__next{right:calc(50% - 62px)}
}

/* v1.3.0 — custom covers, captions and play styles */
.duw-gallery__play.duw-play--light{background:rgba(255,255,255,.92);color:#0d3554}
.duw-gallery__play.duw-play--brand{background:linear-gradient(135deg,#2f95ca,#54c8e8);color:#fff}
.duw-gallery__caption{position:absolute;z-index:2;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:3px;padding:42px 16px 14px;color:#fff;text-align:left;background:linear-gradient(to top,rgba(2,18,30,.86),transparent)}
.duw-gallery__caption strong{font-size:16px;line-height:1.25}
.duw-gallery__caption small{font-size:13px;line-height:1.35;opacity:.88}
.duw-gallery__caption~.duw-gallery__play{top:44%}
@media(max-width:767px){.duw-gallery__caption{padding:34px 10px 10px}.duw-gallery__caption strong{font-size:14px}.duw-gallery__caption small{font-size:12px}}
