/* Graphic Evolution Gallery — premium, image-only layout */
body.gallery-page .gallery-section{padding-top:48px;padding-bottom:92px;}
body.gallery-page .gallery-grid{columns:4;column-gap:18px;display:block;}
body.gallery-page .gallery-item{display:block;width:100%;break-inside:avoid;margin:0 0 18px;padding:0;border:1px solid rgba(119,80,153,.12);border-radius:17px;overflow:hidden;background:#fff;box-shadow:0 5px 20px rgba(30,16,43,.055);cursor:zoom-in;transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;position:relative;}
body.gallery-page .gallery-item img{display:block;width:100%;height:auto;object-fit:contain;transition:transform .45s cubic-bezier(.2,.75,.25,1);background:#fff;}
body.gallery-page .gallery-item:hover,body.gallery-page .gallery-item:focus-visible{transform:translateY(-4px);box-shadow:0 15px 32px rgba(47,21,69,.13);border-color:rgba(123,36,184,.28);outline:none;}
body.gallery-page .gallery-item:hover img,body.gallery-page .gallery-item:focus-visible img{transform:scale(1.025);}
body.gallery-page .gallery-item:focus-visible{outline:2px solid #8b43ba;outline-offset:3px;}
body.gallery-page .gallery-lightbox{padding:52px 72px 22px;background:rgba(13,11,17,.96);backdrop-filter:blur(12px);}
body.gallery-page .lightbox-content{width:min(1180px,calc(100vw - 140px));height:min(88vh,900px);max-height:88vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:transparent;border:0;box-shadow:none;overflow:visible;transform:none;}
body.gallery-page #lightboxImage{width:100%;height:calc(100% - 30px);max-height:86vh;object-fit:contain;background:transparent;border-radius:8px;opacity:0;transition:opacity .15s ease;}
body.gallery-page #lightboxImage.loaded{opacity:1;}
body.gallery-page .lightbox-count{color:rgba(255,255,255,.72);font-size:12px;letter-spacing:.12em;text-align:center;padding-top:10px;}
body.gallery-page .lightbox-close,body.gallery-page .lightbox-arrow{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.1);box-shadow:0 4px 20px rgba(0,0,0,.12);}
body.gallery-page .lightbox-close:hover,body.gallery-page .lightbox-arrow:hover{background:#7523b9;}
@media(max-width:1050px){body.gallery-page .gallery-grid{columns:3;}body.gallery-page .lightbox-content{width:calc(100vw - 110px);}}
@media(max-width:700px){body.gallery-page .gallery-section{padding-top:30px;padding-bottom:66px;}body.gallery-page .gallery-grid{columns:2;column-gap:12px;}body.gallery-page .gallery-item{margin-bottom:12px;border-radius:12px;}body.gallery-page .gallery-lightbox{padding:58px 12px 12px;}body.gallery-page .lightbox-content{width:100%;height:calc(100vh - 78px);max-height:calc(100vh - 78px);}body.gallery-page #lightboxImage{height:calc(100% - 26px);max-height:calc(100vh - 110px);}body.gallery-page .lightbox-close{right:12px;top:10px;}body.gallery-page .lightbox-prev{left:8px;}body.gallery-page .lightbox-next{right:8px;}}
@media(prefers-reduced-motion:reduce){body.gallery-page .gallery-item,body.gallery-page .gallery-item img,body.gallery-page #lightboxImage{transition:none!important;}}

/* Gallery image optimization: preview images keep natural aspect ratios. */
body.gallery-page .gallery-item img{height:auto!important;object-fit:contain!important;aspect-ratio:auto!important;}
