.gallery-modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.92);z-index:1000;overflow:hidden}
.gallery-content{display:flex;flex-direction:column;height:100%}
.gallery-image-container{flex:1;display:flex;justify-content:center;align-items:center;padding:14px 14px 121px 14px;overflow:hidden}
.gallery-main{max-width:calc(100vw - 128px);max-height:calc(100vh - 164px);object-fit:contain;transition:transform .3s}
.gallery-thumbnails-nav{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:center}
.gallery-thumbnails{height:99px;display:flex;overflow-x:auto;padding:4px;justify-content:flex-start;scrollbar-width:thin;scrollbar-color:#666 transparent;scroll-behavior:smooth;align-items:center}
.gallery-thumb{height:84px;margin:0 2px;cursor:pointer;opacity:.6;transition:all .3s;border:3px solid transparent;flex-shrink:0;border-radius:4px}
.gallery-thumb.active{opacity:1;border-color:var(--themeColor)}
.gallery-thumb:hover{opacity:1}
.gallery-nav{position:absolute;top:calc(50% - 25px);width:100%;display:flex;justify-content:space-between;pointer-events:none;padding:0 14px;box-sizing:border-box}
.gallery-nav button{background:#212121;border:none;color:#fff;width:30px;height:50px;border-radius:4px;cursor:pointer;pointer-events:all;transition:background .3s;display:flex;align-items:center;justify-content:center;z-index:2}
.gallery-nav button .iconfont{font-size:24px}
.gallery-nav button:hover{background:var(--themeColor)}
.gallery-close{position:absolute;top:14px;right:14px;background:#212121;color:#fff;border:none;width:35px;height:35px;padding:0;border-radius:50%;cursor:pointer;transition:all .3s;display:flex;align-items:center;justify-content:center;z-index:2}
.gallery-close:hover{background:var(--themeColor);transform:rotate(90deg)}
.gallery-close .iconfont{font-size:24px}
.gallery-zoom-display{position:absolute;top:14px;left:14px;background:#212121;color:#fff;padding:4px 8px;border-radius:20px;font-size:14px;z-index:2}
.gallery-hint{position:absolute;bottom:125px;left:14px;color:#fff;font-size:14px}
.gallery-zoom-controls{position:absolute;bottom:120px;right:14px;display:flex;background:#212121;border-radius:28px;overflow:hidden;z-index:2}
.gallery-zoom-btn{width:28px;height:28px;background:0 0;border:none;color:#fff;font-size:12px;cursor:pointer;transition:background .3s}
.gallery-zoom-btn:hover{background:var(--themeColor)}
@keyframes fadeInZoom{0%{opacity:0;transform:scale(.95)}
100%{opacity:1;transform:scale(1)}
}
.gallery-main{animation:fadeInZoom .3s ease-out;z-index:1}
@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}
100%{opacity:1;transform:translateY(0)}
}
.gallery-thumb{animation:fadeInUp .3s ease-out}
@media (max-width:766px){.gallery-hint{display:none}
}
