.jf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; margin: 20px 0; }
.jf-gallery__item { display: block; overflow: hidden; border-radius: 2px; }
.jf-gallery__item img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .3s; }
.jf-gallery__item:hover img { transform: scale(1.05); }
.jfg-box { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; }
.jfg-box img { max-width: 92vw; max-height: 86vh; box-shadow: 0 0 20px rgba(0,0,0,.6); }
.jfg-box button { position: absolute; background: none; border: 0; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; padding: 10px 18px; opacity: .85; }
.jfg-box button:hover { opacity: 1; }
.jfg-close { top: 10px; right: 10px; }
.jfg-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.jfg-next { right: 10px; top: 50%; transform: translateY(-50%); }
.jfg-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; }
