.fg-guide,.fg-archive { padding-block:clamp(48px,6.5vw,96px); border-top:1px solid var(--rule); }
.fg-heading { display:grid; grid-template-columns:1fr minmax(240px,.76fr); align-items:end; gap:16px 8%; margin-bottom:clamp(22px,3.2vw,42px); }
.fg-heading .kicker { margin-bottom:8px; }
.fg-heading h2 { font-size:clamp(33px,4.1vw,60px); line-height:1.23; letter-spacing:-.035em; }
.fg-heading>p,.fg-copy dd { color:var(--subtle); line-height:1.85; }
.fg-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; }
.fg-tabs button,.fg-more button,.fg-filterbar button,.fg-viewer button {
  border:1px solid #c8bcae; background:transparent; padding:8px 16px; border-radius:100px; color:var(--ink); font:600 14px/1.55 var(--sans);
}
.fg-tabs [aria-selected="true"] { color:white; border-color:var(--moss); background:var(--moss); }
.fg-tabs button:hover,.fg-more button:hover,.fg-filterbar button:hover,.fg-viewer button:hover { border-color:var(--moss); }
.fg-panel { display:grid; grid-template-columns:minmax(0,1.07fr) minmax(0,1fr); align-items:center; gap:clamp(22px,4vw,68px); }
.fg-panel[hidden],.fg-tabs[hidden],.fg-archive-item[hidden] { display:none; }
.fg-art { margin:0; min-width:0; }
.fg-art img { width:100%; height:auto; border-radius:20px; display:block; }
.fg-art figcaption { font-size:12px; color:var(--subtle); margin:7px 2px 0; }
.fg-copy h3 { font-size:clamp(24px,2.55vw,40px); letter-spacing:-.035em; line-height:1.37; }
.fg-copy dl { margin:16px 0 0; }
.fg-copy dt { margin-top:13px; font-weight:680; font-size:16px; }
.fg-copy dd { margin:2px 0 0; font-size:15px; }
.fg-list-compact dt { margin-top:9px; }
.fg-fine { margin-top:12px; font-size:13px; line-height:1.7; color:var(--subtle); }
.fg-action { display:inline-flex; align-items:center; gap:8px; margin:17px 0 0; color:var(--moss); font-weight:650; border-bottom:1px solid currentColor; }
.fg-filterbar { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.fg-filterbar label { display:flex; flex-direction:column; gap:3px; font-size:13px; font-weight:600; color:var(--subtle); }
.fg-filterbar select,.fg-filterbar input { font:inherit; font-weight:450; color:var(--ink); font-size:15px; padding:8px 10px; border-radius:7px; border:1px solid #c2b6a6; background:#fffcf7; height:39px; }
.fg-filterbar input { width:clamp(180px,24vw,345px); }
.fg-filterbar button,.fg-more button { min-height:39px; }
.fg-count { font-size:13px; color:var(--subtle); margin-bottom:12px; }
.fg-gallery-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px clamp(12px,1.6vw,26px); }
.fg-archive-item { display:block; min-width:0; }
.fg-thumb { display:block; aspect-ratio:1.3; background:#eee8df; overflow:hidden; border-radius:12px; }
.fg-thumb img { height:100%; width:100%; object-fit:contain; }
.fg-archive-item strong,.fg-archive-item small { display:block; }
.fg-archive-item strong { font-size:15px; line-height:1.45; margin:7px 0 2px; }
.fg-archive-item small { color:var(--subtle); font-size:12px; }
.fg-archive-item:hover .fg-thumb { outline:2px solid var(--clay); outline-offset:1px; }
.fg-more { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.fg-more button:first-of-type { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.fg-viewer { padding:0; color:var(--ink); background:var(--paper); width:min(94vw,1000px); max-width:94vw; max-height:94vh; max-height:94dvh; border:0; border-radius:14px; overflow:auto; }
.fg-viewer:not([open]) { display:none; }
.fg-viewer::backdrop { background:#1e1a16d9; }
html:has(.fg-viewer[open]) { overflow:hidden; }
.fg-viewer-head,.fg-viewer-footer { padding:12px clamp(12px,2.5vw,24px); }
.fg-viewer-head { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.fg-viewer-head h3 { line-height:1.35; font-size:clamp(17px,2vw,25px); }
.fg-viewer-head button { flex-shrink:0; }
.fg-slide { display:flex; justify-content:center; background:#e7e1d7; }
.fg-slide-image { display:block; width:auto; max-width:100%; height:auto; max-height:64vh; max-height:64dvh; object-fit:contain; }
.fg-context { font-size:14px; color:var(--subtle); margin-bottom:8px; line-height:1.55; }
.fg-image-nav { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.fg-position { font-size:13px; font-variant-numeric:tabular-nums; }
.fg-image-nav a { color:var(--moss); margin-left:auto; font-size:14px; font-weight:650; text-decoration:underline; text-underline-offset:3px; }
.fg-viewer button:disabled { opacity:.45; cursor:default; }
@media(max-width:760px){
  .fg-heading,.fg-panel {grid-template-columns:1fr;}
  .fg-heading {gap:11px;} .fg-heading>p {font-size:15px;}
  .fg-gallery-grid {grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px;}
  .fg-tabs {gap:6px 7px;} .fg-tabs button {padding:7px 12px;}
  .fg-filterbar {display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1fr); align-items:stretch;}
  .fg-filterbar input,.fg-filterbar select {width:100%; min-width:0;} .fg-filterbar button {justify-self:start;}
  .fg-slide-image {max-height:54vh;max-height:54dvh;}
  .fg-image-nav {gap:6px;} .fg-viewer button {padding:6px 10px;}
}
