.fh-gallery{width:100%;min-width:0;margin-top:30px}
.fh-gallery-track{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;height:430px;border-radius:14px;overflow:hidden}
.fh-gallery .fh-gallery-tile{position:relative;display:block;min-width:0;min-height:0;border:0;padding:0;margin:0;border-radius:0;background:#dce3df;cursor:zoom-in;overflow:hidden;color:white}
.fh-gallery-tile:first-child{grid-row:span 2}
.fh-gallery-tile:nth-child(n+6){display:none}
.fh-gallery-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:filter .2s}
.fh-gallery-tile:hover img{filter:brightness(.92)}
.fh-gallery-all{position:absolute;bottom:12px;right:10px;left:10px;padding:10px 8px;background:rgba(20,49,51,.9);color:#fff;font:600 14px/1.3 Arial,sans-serif;border-radius:5px;text-align:center}
.fh-gallery-counter{display:none}
.fh-gallery-dialog{box-sizing:border-box;width:min(1200px,96vw);max-width:96vw;height:min(900px,94dvh);max-height:94dvh;padding:16px;border:0;border-radius:12px;background:#142528;color:#fff;overflow:hidden}
.fh-gallery-dialog[open]{display:flex;flex-direction:column;gap:12px}
.fh-gallery-dialog::backdrop{background:rgba(0,0,0,.85)}
.fh-gallery-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0;font:16px/1.4 Arial,sans-serif}
.fh-gallery-dialog button{min-width:48px;min-height:48px;border:1px solid #9baeb0;border-radius:6px;background:#142528;color:white;cursor:pointer;padding:8px 14px;font:600 16px/1.3 Arial,sans-serif}
.fh-gallery-dialog button:hover{background:#2e5055;color:white}
.fh-gallery-dialog button:focus-visible,.fh-gallery button:focus-visible{outline:3px solid #d6ad64;outline-offset:-4px}
.fh-gallery-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom}
.fh-gallery-stage img{width:100%;height:100%;object-fit:contain;min-height:0}
.fh-gallery-dialog .fh-gallery-prev,.fh-gallery-dialog .fh-gallery-next{position:absolute;top:50%;transform:translateY(-50%);font-size:32px;background:rgba(20,37,40,.85)}
.fh-gallery-prev{left:0}.fh-gallery-next{right:0}
.fh-gallery-caption{margin:0;text-align:center;flex-shrink:0;font:16px/1.5 Arial,sans-serif;color:white}
.fh-gallery-status{position:absolute;top:10px;left:50%;transform:translateX(-50%);font-size:14px;background:#142528}
@media(max-width:1000px){.fh-gallery-track{height:340px;grid-template-columns:1.6fr 1fr 1fr;gap:8px}.fh-gallery-all{font-size:12px;padding:8px 4px;left:5px;right:5px;bottom:6px}}
@media(max-width:600px){.fh-gallery-track{display:flex;height:auto;aspect-ratio:4/3;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;gap:8px;border-radius:10px;scrollbar-width:none}.fh-gallery-track::-webkit-scrollbar{display:none}.fh-gallery .fh-gallery-tile{display:block;flex:0 0 100%;width:100%;height:100%;scroll-snap-align:center}.fh-gallery-all{display:none}.fh-gallery-counter{display:block;margin:10px 0 0!important;font-size:13px;color:#36575b}.fh-gallery-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:12px;border-radius:0}.fh-gallery-dialog[open]{gap:8px}.fh-gallery-caption{font-size:14px;padding:4px 35px 12px}.fh-gallery-dialog .fh-gallery-prev,.fh-gallery-dialog .fh-gallery-next{padding:4px;min-width:44px;min-height:48px}}
@media(prefers-reduced-motion:reduce){.fh-gallery-tile img{transition:none}}

.fn-root .fh-gallery .fh-gallery-tile img{height:100%!important;width:100%!important;object-fit:cover}.fh-gallery-dialog button:focus{background:#2e5055!important;color:#fff!important}
