/* Work gallery — a 3D exhibition hall (view.js). Without JavaScript only the plain list shows. */
.fratoz-gallery {
	--fzg-red: #ab1f24;
	--fzg-red-hi: #e0262d;
	--fzg-ink: #141414;
	--fzg-wall: #e9dccb;
	--fzg-floor: #d8c8b3;
	--fzg-ceil: #f3ece2;
	--fzg-sand: #f5f1ed;
	--fzg-outside: #efe6da;
	position: relative;
	z-index: 0;
	isolation: isolate;   /* the 3D hall paints inside this section only (never over the sticky header) */
	margin-block: 0 !important;
	color: var(--fzg-ink);
	background: var(--fzg-sand);
}
/* The page header floats over the hall (it is solid white anyway), so the hall starts at the very top
   and is pinned from the first pixel of scroll — no drift. Without JS the list just leaves room for it. */
.wp-site-blocks:has(.fratoz-gallery) > header.wp-block-template-part { position: fixed; left: 0; right: 0; }
.fratoz-gallery:not(.is-ready) { padding-top: 5.5rem; }
.fratoz-gallery__sticky { display: none; }
/* Pinned by view.js (not position: sticky — Chrome mis-draws 3D inside a sticky box): above the walk
   it sits at the top of the section, during the walk it is fixed (below a fixed admin bar: --fzg-t),
   after it at the bottom. */
.fratoz-gallery.is-ready .fratoz-gallery__sticky { display: block; position: absolute; top: 0; left: 0; right: 0; height: calc(100vh - var(--fzg-t, 0px)); height: calc(100svh - var(--fzg-t, 0px)); overflow: hidden; }
.fratoz-gallery.is-ready .fratoz-gallery__sticky.is-pinned { position: fixed; top: var(--fzg-t, 0px); }
.fratoz-gallery.is-list .fratoz-gallery__sticky { visibility: hidden; }   /* List view open: it covers the hall anyway */
.fratoz-gallery.is-ready .fratoz-gallery__sticky.is-past { top: auto; bottom: 0; }
.fratoz-gallery-lock { overflow: hidden; }

/* ---------- the hall ---------- */
.fratoz-gallery__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; perspective-origin: 50% 52%; background: var(--fzg-outside); }
.fratoz-gallery__hall { position: absolute; inset: 0; perspective-origin: 50% 52%; }
.fratoz-gallery__world { position: absolute; left: 50%; top: 52%; width: 0; height: 0; transform-style: preserve-3d; transform-origin: 0 0; }
.fratoz-gallery__world > * { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.fratoz-gallery__world > .fzg-off { display: none; }   /* not drawn at all (no layer, no memory) */
.fratoz-gallery__world > .fzg-in { animation: fzg-in .7s ease both; }
@keyframes fzg-in { from { opacity: 0; } }

/* surfaces: ONE flat colour each (no gradients / patterns / shadows) — see view.js (flicker) */
.fzg-floor { background: var(--fzg-floor); }
.fzg-plaza { background: #e4d9cb; }
.fzg-ceil { background: var(--fzg-ceil); }
.fzg-line { background: rgba(20,20,20,.1); }
.fzg-strip { background: #2b2b2e; }
.fzg-skirt { background: #c4ae93; }
.fzg-wall { background: var(--fzg-wall); }
/* wings alternate between two wall tones; the rail is red in every wing */
.fzg-w2, .fzg-w4, .fzg-w6 { background: #dcc6aa; }
.fzg-rail { background: var(--fzg-red); }

/* entrance: the full logo + "Gallery" over white double sliding doors. The wall around them is the
   stage background (same beige as outside); the hall shows only through the doorway (clip, view.js). */
.fratoz-gallery__world > .fzg-entrance { transform-style: flat; }
.fzg-lintel, .fzg-doorway { position: absolute; left: 0; right: 0; }
.fzg-lintel { top: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 22px; padding-bottom: 60px; box-sizing: border-box; }
.fzg-lintel .fzg-logo { width: 430px; height: 99px; color: var(--fzg-red); flex: none; }
.fzg-lintel span { font: 900 66px/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; color: var(--fzg-ink); }
.fzg-doorway { overflow: hidden; }
.fzg-door { position: absolute; top: 0; bottom: 0; width: 50%; box-sizing: border-box; background: #fff; border: 3px solid var(--fzg-ink); box-shadow: inset 0 0 0 18px #fff, inset 0 0 0 21px var(--fzg-ink); }
.fzg-door.l { left: 0; } .fzg-door.r { right: 0; }
.fzg-door i { position: absolute; top: 42%; width: 10px; height: 150px; border-radius: 5px; background: var(--fzg-ink); }
.fzg-door.l i { right: 34px; } .fzg-door.r i { left: 34px; }

/* overhead wing signs */
.fzg-wire { position: absolute; top: -170px; width: 3px; height: 170px; background: var(--fzg-ink); }
.fzg-wire.a { left: 22%; } .fzg-wire.b { right: 22%; }
.fzg-plate { position: absolute; inset: 0; display: flex; align-items: center; gap: 26px; padding: 0 34px; background: var(--fzg-ink); color: #fff; border-radius: 10px; transform-origin: 50% -170px; font: 900 44px/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); text-transform: uppercase; letter-spacing: .02em; }
.fzg-signname { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fzg-plate svg { width: 56px; height: 56px; margin-left: auto; flex: none; }
.fzg-sign.swing .fzg-plate { animation: fzg-swing 1.6s cubic-bezier(.3,.6,.4,1); }
@keyframes fzg-swing { 0% { transform: rotateX(0); } 18% { transform: rotateX(28deg); } 40% { transform: rotateX(-16deg); } 62% { transform: rotateX(8deg); } 82% { transform: rotateX(-3deg); } 100% { transform: rotateX(0); } }

/* wing codes (brand colours only) */
.fzg-code { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 4px; font: 900 .85rem/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); }
.fzg-z1 { background: var(--fzg-red); color: #fff; }
.fzg-z2 { background: #fff; color: var(--fzg-ink); }
.fzg-z3 { background: var(--fzg-sand); color: var(--fzg-red); }
.fzg-z4 { background: transparent; color: #fff; box-shadow: inset 0 0 0 3px #fff; }
.fzg-z5, .fzg-z6, .fzg-z7 { background: #5a5a62; color: #fff; }

/* wall supergraphics + floor arrows */
.fzg-super { display: flex; flex-direction: column; justify-content: center; padding: 0 60px; }
/* solid letters only: Montserrat's strokes overlap, so an outline shows lines inside the letter */
.fzg-super b { font: 900 160px/.92 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); text-transform: uppercase; color: var(--fzg-red); }
.fzg-super span { font: 900 64px/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); text-transform: uppercase; color: var(--fzg-ink); margin-top: 30px; }
.fzg-super.r b { font-size: 300px; line-height: .9; }
.fzg-super.r span { font-size: 64px; color: #6d655d; margin-top: 18px; }
.fzg-arrow svg { display: block; width: 100%; height: 100%; }

/* exhibition panels */
.fzg-panel { cursor: pointer; }
.fzg-board { position: absolute; inset: 0; background: #fff; border: 3px solid var(--fzg-ink); padding: 34px 34px 0; transition: background-color .3s; }
.fzg-board img { display: block; box-sizing: border-box; width: 100%; height: 330px; object-fit: cover; border: 2px solid var(--fzg-ink); filter: brightness(.78) saturate(.8); transition: filter .7s; }
.fzg-board::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255,241,200,.55), transparent 70%); opacity: 0; transition: opacity .7s; }
.fzg-panel.lit .fzg-board img { filter: none; }
.fzg-panel.lit .fzg-board::after { opacity: 1; }
/* hover / keyboard focus: the print turns red in place (it never moves off its thickness edge) */
.fzg-panel:not(.fzg-screen):hover .fzg-board, .fzg-panel:not(.fzg-screen) .fzg-board:focus-visible { background: var(--fzg-red); }
.fzg-panel:hover .fzg-plaque i, .fzg-board:focus-visible .fzg-plaque i { color: #fff; border-color: #fff; }
.fzg-panel:hover .fzg-plaque strong, .fzg-board:focus-visible .fzg-plaque strong { color: #fff; }
.fzg-panel:hover .fzg-plaque small, .fzg-board:focus-visible .fzg-plaque small { color: rgba(255,255,255,.8); }
.fzg-plaque i, .fzg-plaque strong, .fzg-plaque small { transition: color .3s, border-color .3s; }
.fzg-board:focus-visible { outline: 5px solid var(--fzg-ink); outline-offset: 6px; }
.fzg-plaque { padding: 22px 4px 0; }
.fzg-plaque i { display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 800 15px/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--fzg-red); border: 2px solid var(--fzg-red); padding: 6px 8px; }
.fzg-plaque strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 12px; font: 900 34px/1.05 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); text-transform: uppercase; }
.fzg-plaque small { display: block; margin-top: 8px; font-size: 20px; color: #6d655d; }
.fzg-edge { position: absolute; top: 0; width: 26px; height: 100%; background: #d6c7b3; border: 3px solid var(--fzg-ink); }
.fzg-edge.l { left: -26px; transform-origin: right center; transform: rotateY(-90deg); }
.fzg-edge.r { right: -26px; transform-origin: left center; transform: rotateY(90deg); }
.fzg-screen .fzg-board { background: #1b1b1e; color: #fff; display: grid; place-items: center; text-align: center; padding: 40px; }
.fzg-screen .fzg-board svg { width: 120px; height: 120px; color: var(--fzg-red-hi); }
.fzg-screen .fzg-board p { font: 900 36px/1.15 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); text-transform: uppercase; margin: 20px 0 0; }
.fzg-screen .fzg-board small { display: block; font-size: 20px; line-height: 1.4; color: #a8a8b0; margin-top: 10px; }

/* light */
.fzg-beam { pointer-events: none; background: linear-gradient(rgba(255,246,220,0), rgba(255,246,220,.55)); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity .7s; }
.fzg-beam.on { opacity: 1; }
.fzg-lamp { background: var(--fzg-ink); border-radius: 0 0 14px 14px; }

/* the crew */
.fzg-person svg { display: block; height: 100%; width: auto; margin: 0 auto; color: var(--fzg-ink); overflow: visible; transition: opacity .45s; }
.fzg-person.gone svg { opacity: 0; }
.fzg-person.waving .fz-arm { animation: fzg-arm .55s ease-in-out infinite alternate; }
.fzg-person.waving .fz-hand { animation: fzg-hand .28s ease-in-out infinite alternate; }
.fzg-person.waving .fz-head { animation: fzg-head 1.2s ease-in-out infinite alternate; }
@keyframes fzg-arm { from { transform: rotate(-8deg); } to { transform: rotate(12deg); } }
@keyframes fzg-hand { from { transform: rotate(-16deg); } to { transform: rotate(14deg); } }
@keyframes fzg-head { from { transform: rotate(-3deg); } to { transform: rotate(5deg); } }

/* end wall */
.fzg-endwall { display: flex; flex-direction: column; align-items: center; padding-top: 120px; text-align: center; background: #fff; border: 3px solid var(--fzg-ink); }
.fzg-endwall .fzg-mk { width: 120px; height: 92px; color: var(--fzg-red); }
.fzg-endwall h2 { margin: 30px 0 0; font: 900 120px/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); text-transform: uppercase; }
.fzg-endwall p { margin: 24px 0 0; font-size: 34px; color: #4d4740; }
.fzg-btns { display: flex; gap: 22px; margin-top: 40px; }
.fzg-btns a { display: inline-block; padding: 26px 40px; font: 800 26px/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 4px solid var(--fzg-ink); color: var(--fzg-ink); background: #fff; }
.fzg-btns a.solid { background: var(--fzg-red); border-color: var(--fzg-red); color: #fff; }

/* ---------- on-screen HUD ---------- */
.fratoz-gallery__intro { position: absolute; z-index: 20; left: clamp(1rem, 4vw, 3.5rem); top: 6rem; max-width: 30rem; pointer-events: none; }
.fratoz-gallery__eyebrow { display: inline-block; margin: 0 0 1rem; background: var(--fzg-red); color: #fff; font: 800 .8125rem/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); letter-spacing: .14em; text-transform: uppercase; padding: .55rem .7rem; }
.fratoz-gallery__title { margin: 0 0 1rem; font: 900 clamp(2.3rem, 5vw, 4.2rem)/.95 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); text-transform: uppercase; }
.fratoz-gallery__lead { margin: 0; font-size: 1.08rem; }
.fratoz-gallery__hint { display: flex; align-items: center; gap: .7rem; margin: 1.4rem 0 0; font: 800 .75rem/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); letter-spacing: .1em; text-transform: uppercase; }
.fratoz-gallery__hint i { position: relative; width: 22px; height: 34px; border: 2.5px solid var(--fzg-ink); border-radius: 12px; }
.fratoz-gallery__hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--fzg-red); animation: fzg-wheel 1.4s ease-in-out infinite; }
@keyframes fzg-wheel { 50% { transform: translateY(9px); opacity: .3; } }
.fratoz-gallery__listbtn, .fratoz-gallery__listclose { border: 2px solid var(--fzg-ink); background: #fff; color: var(--fzg-ink); padding: .55rem .85rem; border-radius: 999px; font: 800 .72rem/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.fratoz-gallery__listbtn { position: absolute; z-index: 30; right: clamp(1rem, 4vw, 3.5rem); top: 5.2rem; }

/* wings bar: as wide as its buttons (up to the screen); when they don't fit, view.js slides the strip
   sideways as you walk so the dot stays in view, and the clipped side fades out */
.fratoz-gallery__bar { position: absolute; z-index: 30; left: 50%; bottom: 1.2rem; transform: translateX(-50%); box-sizing: border-box; width: max-content; max-width: min(1120px, calc(100% - 2rem)); background: var(--fzg-ink); color: #fff; border-radius: 10px; padding: .7rem .8rem .35rem; box-shadow: 0 14px 30px rgba(20,20,20,.25); }
.fratoz-gallery__view { overflow: hidden; --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); }
.fratoz-gallery__view.fade-l { --fl: 2.2rem; }
.fratoz-gallery__view.fade-r { --fr: 2.2rem; }
.fratoz-gallery__strip { position: relative; width: max-content; margin: 0 auto; padding-bottom: 12px; }
.fratoz-gallery__wings { display: flex; gap: .4rem; }
.fratoz-gallery__wings button { flex: none; display: inline-flex; align-items: center; gap: .5rem; border: 2px solid #3a3a40; border-radius: 6px; background: transparent; color: #fff; padding: .35rem .65rem .35rem .35rem; font: 800 .72rem/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.fratoz-gallery__wings button .fzg-code { background: #3a3a40; color: #fff; box-shadow: none; }
.fratoz-gallery__wings button:hover { border-color: #fff; }
.fratoz-gallery__wings button.on { border-color: var(--fzg-red-hi); background: var(--fzg-red); }
.fratoz-gallery__wings button.on .fzg-code { background: #fff; color: var(--fzg-red); }
.fratoz-gallery__wings button:focus-visible, .fratoz-gallery__listbtn:focus-visible { outline: 3px solid var(--fzg-red-hi); outline-offset: 2px; }
.fratoz-gallery__track { position: relative; height: 4px; margin: .75rem .3rem 0; background: #3a3a40; border-radius: 2px; }
.fzg-seg { position: absolute; top: -3px; width: 2px; height: 10px; background: #6a6a72; }
/* you-are-here: a red triangle pointing up at the track */
.fratoz-gallery__dot { position: absolute; left: 0; top: 3px; width: 0; height: 0; margin-left: -8px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 12px solid var(--fzg-red-hi); }

/* the text frame beside a print */
.fratoz-gallery__frame { position: absolute; z-index: 40; right: clamp(1rem, 5vw, 5rem); top: 50%; width: 360px; max-width: calc(100% - 2rem); box-sizing: border-box; background: var(--fzg-sand); border: 3px solid var(--fzg-ink); box-shadow: 8px 8px 0 var(--fzg-red); padding: 1.4rem 1.5rem 1.5rem; transform: translateY(-50%); visibility: hidden; clip-path: inset(-12px 100% -12px -12px); transition: clip-path .45s cubic-bezier(.65,0,.25,1), visibility 0s .45s; }
.fratoz-gallery__frame.on { visibility: visible; clip-path: inset(-12px -12px -12px -12px); transition: clip-path .5s cubic-bezier(.65,0,.25,1); }
.fratoz-gallery__frame > * { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s cubic-bezier(.34,1.4,.64,1); }
.fratoz-gallery__frame.on > * { opacity: 1; transform: none; }
.fratoz-gallery__frame.on > :nth-child(2) { transition-delay: .25s; }
.fratoz-gallery__frame.on > :nth-child(3) { transition-delay: .32s; }
.fratoz-gallery__frame.on > :nth-child(4) { transition-delay: .4s; }
.fratoz-gallery__frame.on > :nth-child(5) { transition-delay: .5s; }
.fratoz-gallery__tag { display: inline-flex; align-items: center; gap: .45rem; font: 800 .72rem/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--fzg-red); }
.fratoz-gallery__tag .fzg-z4 { color: var(--fzg-ink); box-shadow: inset 0 0 0 3px var(--fzg-ink); }
.fratoz-gallery__tag .fzg-z2 { box-shadow: inset 0 0 0 2px var(--fzg-ink); }
.fratoz-gallery__name { margin: .5rem 0 .3rem; font: 900 1.6rem/1.05 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); text-transform: uppercase; }
.fratoz-gallery__name::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .6rem; background: var(--fzg-red); }
.fratoz-gallery__line { margin: .6rem 0 1.1rem; }
.fratoz-gallery__act { display: flex; flex-wrap: wrap; gap: .6rem; }
.fratoz-gallery__open, .fratoz-gallery__back { display: inline-block; border: 2px solid var(--fzg-ink); background: #fff; color: var(--fzg-ink); padding: .85rem 1rem; font: 800 .8rem/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.fratoz-gallery__open { background: var(--fzg-red); border-color: var(--fzg-red); color: #fff; }
.fratoz-gallery__open:hover { background: var(--fzg-ink); border-color: var(--fzg-ink); }
.fratoz-gallery__x { position: absolute; right: .5rem; top: .4rem; border: 0; background: none; font: 700 1.5rem/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); color: var(--fzg-ink); cursor: pointer; }

/* ---------- the plain list (no-JS page, screen readers, "List view") ----------
   Centred, three big cards per row (two on tablets, one on phones); a short row stays centred. */
.fratoz-gallery__list { --fzg-gap: clamp(1.25rem, 2.4vw, 2rem); padding: 3.5rem clamp(1rem, 4vw, 3.5rem) 5rem; }
.fratoz-gallery__listhead, .fratoz-gallery__list > h2, .fratoz-gallery__list > ul, .fratoz-gallery__list > p { max-width: 1240px; margin-inline: auto; }
.fratoz-gallery__listhead { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.fratoz-gallery__listhead .fratoz-gallery__eyebrow { margin: 0; }
.fratoz-gallery__listtitle { margin: 0; font: 900 clamp(2.4rem, 6vw, 4.5rem)/.95 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); text-transform: uppercase; }
.fratoz-gallery__listclose { display: none; }
/* filter buttons: All + one per service (links to the service pages without JS) */
.fratoz-gallery__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 1240px; margin: 2.2rem auto 2.8rem; }
.fratoz-gallery__filters a { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border: 2px solid var(--fzg-ink); border-radius: 999px; background: #fff; color: var(--fzg-ink); text-decoration: none; font: 800 .8rem/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s; }
.fratoz-gallery__filters a em { font-style: normal; font-weight: 700; opacity: .55; }
.fratoz-gallery__filters a:hover { background: var(--fzg-sand); }
.fratoz-gallery__filters a.is-on { background: var(--fzg-ink); color: #fff; }
.fratoz-gallery__filters a:focus-visible { outline: 3px solid var(--fzg-red-hi); outline-offset: 2px; }
.fratoz-gallery__list li[hidden] { display: none; }
/* the service tag on each card */
.fratoz-gallery__tagline { display: table; margin: 0 auto .7rem; padding: .35rem .55rem; border: 2px solid var(--fzg-red); color: var(--fzg-red); font: 800 .68rem/1 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.fratoz-gallery__list ul { list-style: none; padding: 0; margin-top: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--fzg-gap); }
.fratoz-gallery__list li { flex: 0 0 calc((100% - 2 * var(--fzg-gap)) / 3); min-width: 0; }
.fratoz-gallery__list li a { display: block; height: 100%; color: inherit; text-decoration: none; background: #fff; border: 2px solid var(--fzg-ink); transition: transform .2s, box-shadow .2s; }
.fratoz-gallery__list li a:hover, .fratoz-gallery__list li a:focus-visible { transform: translateY(-4px); outline: none; box-shadow: 8px 8px 0 var(--fzg-red); }
.fratoz-gallery__list li img, .fratoz-gallery__noimg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #e4dccf; border-bottom: 2px solid var(--fzg-ink); }
.fratoz-gallery__list li a > span { display: block; padding: 1.1rem 1.25rem 1.3rem; text-align: center; font: 800 clamp(1.05rem, 1.4vw, 1.25rem)/1.2 var(--wp--preset--font-family--montserrat, Montserrat, sans-serif); }
.fratoz-gallery__list li small { display: block; font: 400 .9rem/1.35 var(--wp--preset--font-family--be-vietnam-pro, sans-serif); color: #6d655d; margin-top: .4rem; }
@media (max-width: 960px) { .fratoz-gallery__list li { flex-basis: calc((100% - var(--fzg-gap)) / 2); } }
@media (max-width: 600px) {
	.fratoz-gallery__list li { flex-basis: 100%; }
	/* phones: one swipeable row of filters, running to the screen edges */
	.fratoz-gallery__filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(1rem, 4vw, 3.5rem)); padding-inline: clamp(1rem, 4vw, 3.5rem); }
	.fratoz-gallery__filters a { flex: none; }
}
/* with the hall running, the list is kept for screen readers and opens as an overlay */
.fratoz-gallery.is-ready .fratoz-gallery__list:not(.open) { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.fratoz-gallery__list.open { position: fixed; inset: 0; z-index: 100000; overflow: auto; background: var(--fzg-sand); padding-top: 8rem; }
.fratoz-gallery__list.open .fratoz-gallery__listclose { display: inline-block; }
@media (min-width: 821px) { .fratoz-gallery__list.open .fratoz-gallery__listclose { position: absolute; top: 0; right: 0; } }

@media (max-width: 820px) {
	.fratoz-gallery__frame { top: auto; bottom: 7.2rem; right: 1rem; left: 1rem; width: auto; transform: none; }
	.fratoz-gallery__intro { top: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) {
	.fzg-person.waving .fz-arm, .fzg-person.waving .fz-hand, .fzg-person.waving .fz-head, .fzg-sign.swing .fzg-plate, .fratoz-gallery__hint i::after { animation: none; }
}

/* a service with no projects yet: no hall, a short note */
.fratoz-gallery--empty { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; padding: 9rem 1.5rem 6rem; text-align: center; }
.fratoz-gallery--empty .fratoz-gallery__eyebrow { margin: 0; }
.fratoz-gallery--empty p:not(.fratoz-gallery__eyebrow) { margin: 0; max-width: 32rem; font-size: 1.1rem; }

/* phones: no 3D hall — the list is the Work page (view.js flat()) */
.fratoz-gallery.is-flat .fratoz-gallery__listhead .fratoz-gallery__title { margin: 0; font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: .95; text-align: center; }
.fratoz-gallery.is-flat .fratoz-gallery__listhead .fratoz-gallery__lead { margin: 0; max-width: 32rem; }
