/* v47 agriculture documentary gallery; scoped to avoid affecting other departments. */
.fh47-agri-gallery{padding:clamp(56px,6vw,96px) 0;background:linear-gradient(145deg,#f5f8f3,#fdfdfb 53%,#f6f9f3);color:#193328}.fh47-agri-top{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:26px}.fh47-agri-top h2{font-size:clamp(1.7rem,3.6vw,2.65rem);line-height:1.45;margin:12px 0}.fh47-agri-top p{max-width:630px;line-height:1.95;color:#647567}.fh47-count{border:1px solid #d3e3d4;border-radius:99px;padding:10px 16px;color:#456b50;white-space:nowrap;background:#fff;font-size:.83rem}.fh47-gallery-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.fh47-gallery-filters button{font:inherit;font-size:.85rem;border:1px solid #dce8dd;border-radius:999px;padding:10px 17px;background:#fff;color:#3e5543;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}.fh47-gallery-filters button:hover{transform:translateY(-1px);border-color:#a0b8a3}.fh47-gallery-filters button.is-current{background:#16372b;border-color:#16372b;color:#fff}.fh47-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.fh47-photo-card{min-width:0;aspect-ratio:4/3;position:relative;padding:0;cursor:zoom-in;overflow:hidden;border:0;border-radius:16px;text-align:start;background:#e6ece5;isolation:isolate;box-shadow:0 8px 25px rgba(17,48,27,.08)}.fh47-photo-card.fh47-featured{grid-column:span 2;grid-row:span 2;aspect-ratio:auto;min-height:335px}.fh47-photo-card[hidden]{display:none!important}.fh47-photo-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}.fh47-photo-card:hover img{transform:scale(1.045)}.fh47-photo-overlay{position:absolute;inset:auto 0 0 0;padding:48px 15px 15px;color:white;background:linear-gradient(transparent,rgba(9,27,21,.86));display:flex;align-items:end;justify-content:space-between;gap:10px;font-size:.89rem;font-weight:650;line-height:1.65}.fh47-photo-zoom{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;border:1px solid #ffffff80;font:1.25rem sans-serif;flex-shrink:0}.fh47-photo-status{position:absolute;top:12px;inset-inline-start:12px;border-radius:22px;background:#fffdeb;color:#435b3a;padding:5px 11px;font-size:.73rem}.fh47-gallery-note{font-size:.8rem;color:#678071;line-height:1.9;margin-top:15px}.fh47-photo-dialog{border:0;padding:12px;background:#0a1512;color:#fff;border-radius:18px;max-width:min(96vw,1040px);max-height:95dvh;box-shadow:0 30px 110px #0009}.fh47-photo-dialog::backdrop{background:rgba(2,11,7,.84);backdrop-filter:blur(5px)}.fh47-photo-dialog img{display:block;max-width:100%;max-height:calc(90dvh - 115px);height:auto;width:auto;margin:auto;object-fit:contain;border-radius:10px}.fh47-dialog-top,.fh47-dialog-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:4px 5px 12px;font-size:.85rem}.fh47-dialog-bottom{padding:12px 5px 1px}.fh47-dialog-top button,.fh47-dialog-bottom button{border:1px solid #ffffff38;background:#ffffff16;border-radius:9px;color:white;min-width:38px;min-height:38px;cursor:pointer;font:1.35rem sans-serif}.fh47-dialog-bottom>div{display:flex;gap:7px}.fh47-photo-card:focus-visible,.fh47-gallery-filters button:focus-visible{outline:3px solid #bca25d;outline-offset:3px}[data-theme=dark] .fh47-agri-gallery{background:linear-gradient(140deg,#0e1b19,#102921);color:#f5f8f0}[data-theme=dark] .fh47-agri-top p,[data-theme=dark] .fh47-gallery-note{color:#b1c3b1}[data-theme=dark] .fh47-count,[data-theme=dark] .fh47-gallery-filters button:not(.is-current){background:#152c25;color:#e0eddf;border-color:#3d5147}
@media(max-width:960px){.fh47-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.fh47-agri-top{display:block}.fh47-count{display:inline-flex;margin-top:12px;white-space:normal}.fh47-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fh47-photo-card.fh47-featured{grid-column:span 2;grid-row:auto;aspect-ratio:16/10;min-height:0}.fh47-photo-card{aspect-ratio:4/5;border-radius:13px}.fh47-photo-overlay{padding:36px 10px 10px;font-size:.78rem}.fh47-photo-zoom{width:26px;height:26px;font-size:1rem}.fh47-gallery-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:5px}.fh47-gallery-filters button{flex-shrink:0}.fh47-photo-dialog{padding:8px}}
@media(prefers-reduced-motion:reduce){.fh47-photo-card img,.fh47-gallery-filters button{transition:none}.fh47-photo-card:hover img{transform:none}}
