/* YOORIKA - Galerie Atelier v1 */
.atelierGallery{margin-top:42px}
.atelierGalleryHead{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.atelierGalleryHead h2{margin:.35rem 0 0}
.atelierGalleryCount{flex:0 0 auto;font-weight:700;color:#516779}
.atelierGalleryGrid{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:220px 220px;gap:10px;overflow:hidden;border-radius:18px}
.atelierGalleryItem{position:relative;min-width:0;min-height:0;padding:0;border:0;background:#eaf0f4;cursor:pointer;overflow:hidden}
.atelierGalleryItem--main{grid-column:1;grid-row:1 / span 2}
.atelierGalleryItem:nth-child(2){grid-column:2;grid-row:1}
.atelierGalleryItem:nth-child(3){grid-column:3;grid-row:1}
.atelierGalleryItem:nth-child(4){grid-column:2;grid-row:2}
.atelierGalleryItem:nth-child(5){grid-column:3;grid-row:2}
.atelierGalleryItem:nth-child(n+6){display:none}
.atelierGalleryItem img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}
.atelierGalleryItem:hover img,.atelierGalleryItem:focus-visible img{transform:scale(1.025)}
.atelierGalleryItem:focus-visible{outline:3px solid var(--brand,#0878ff);outline-offset:-3px}
.atelierGalleryMore{position:absolute;inset:auto 12px 12px auto;padding:8px 11px;border-radius:999px;background:rgba(5,28,45,.86);color:#fff;font-size:13px;font-weight:800;line-height:1}
.atelierGalleryDialog{width:min(1100px,calc(100vw - 32px));max-width:none;padding:0;border:0;border-radius:18px;background:#061d2d;color:#fff;overflow:hidden}
.atelierGalleryDialog::backdrop{background:rgba(0,0,0,.82)}
.atelierGalleryDialog figure{margin:0;display:grid;grid-template-rows:minmax(260px,78vh) auto}
.atelierGalleryDialog figure img{width:100%;height:100%;object-fit:contain;background:#03111c}
.atelierGalleryDialog figcaption{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 18px;font-size:14px}
.atelierGalleryClose,.atelierGalleryNav{position:absolute;z-index:2;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#082238;font-size:34px;line-height:1;cursor:pointer;box-shadow:0 6px 22px rgba(0,0,0,.2)}
.atelierGalleryClose{top:14px;right:14px;font-size:30px}
.atelierGalleryPrev,.atelierGalleryNext{top:50%;transform:translateY(-50%)}
.atelierGalleryPrev{left:14px}.atelierGalleryNext{right:14px}
.atelierGalleryClose:focus-visible,.atelierGalleryNav:focus-visible{outline:3px solid var(--brand,#0878ff);outline-offset:2px}
@media(max-width:820px){
 .atelierGallery{margin-top:30px}
 .atelierGalleryHead{align-items:flex-start;flex-direction:column;gap:8px}
 .atelierGalleryGrid{grid-template-columns:1fr 1fr;grid-template-rows:270px 145px 145px}
 .atelierGalleryItem--main{grid-column:1 / -1;grid-row:1}
 .atelierGalleryItem:nth-child(2){grid-column:1;grid-row:2}.atelierGalleryItem:nth-child(3){grid-column:2;grid-row:2}.atelierGalleryItem:nth-child(4){grid-column:1;grid-row:3}.atelierGalleryItem:nth-child(5){grid-column:2;grid-row:3}
}
@media(max-width:520px){
 .atelierGalleryGrid{grid-template-rows:230px 120px 120px;gap:7px;border-radius:14px}
 .atelierGalleryCount{font-size:13px}
 .atelierGalleryDialog{width:100vw;height:100dvh;border-radius:0}
 .atelierGalleryDialog figure{grid-template-rows:1fr auto;height:100dvh}
 .atelierGalleryNav{width:44px;height:44px}
 .atelierGalleryPrev{left:8px}.atelierGalleryNext{right:8px}.atelierGalleryClose{top:10px;right:10px}
 .atelierGalleryDialog figcaption{padding:10px 12px}
}
