/* folwark1: one business view, shared classic and Workspace behavior. */
#folwarkContent{min-width:0;width:100%;max-width:100%;box-sizing:border-box;color:var(--color-text,var(--text));}
.folwark-shell{display:flex;flex-direction:column;min-width:0;gap:12px;padding:14px;}
.folwark-heading,.folwark-list-heading,.folwark-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.folwark-heading h2{margin:2px 0;font-size:clamp(22px,3vw,30px);font-weight:600;}
.folwark-heading p,.folwark-list-heading p{margin:4px 0;color:var(--color-text-muted,var(--muted));}
.folwark-eyebrow{font-size:10px;letter-spacing:.18em;color:var(--color-accent,var(--accent));font-weight:700;}
.folwark-tabs,.folwark-actions,.folwark-steps{display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
.folwark-tabs button,.folwark-steps button{border:1px solid var(--color-border,var(--border));background:var(--color-surface,var(--panel));color:inherit;border-radius:8px;padding:8px 11px;}
.folwark-tabs [aria-pressed=true],.folwark-steps [aria-current=step]{background:var(--color-accent-soft,var(--accent-soft));border-color:var(--color-accent,var(--accent));color:var(--color-text,var(--text));}
.folwark-main{min-width:0;}
.folwark-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0 18px;}
.folwark-summary article,.folwark-catalog-card,.folwark-selection,.folwark-editor{border:1px solid var(--color-border,var(--border));border-radius:12px;background:var(--color-surface,var(--panel));}
.folwark-summary article{padding:13px;display:grid;gap:7px;}
.folwark-summary span{font-size:12px;color:var(--color-text-muted,var(--muted));}
.folwark-summary strong{font-size:25px;}
.folwark-event-list{display:grid;gap:8px;}
.folwark-event-row{display:grid;grid-template-columns:minmax(130px,1fr) auto auto;gap:12px;align-items:center;text-align:left;padding:13px;background:var(--color-surface,var(--panel));border:1px solid var(--color-border,var(--border));border-radius:10px;color:inherit;}
.folwark-event-row small,.folwark-mail-list small{display:block;margin-top:4px;color:var(--color-text-muted,var(--muted));}
.folwark-status{font-size:11px;border-radius:20px;padding:5px 8px;background:var(--color-accent-soft,var(--accent-soft));}
.folwark-catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:12px;}
.folwark-catalog-card{overflow:hidden;}
.folwark-catalog-card>div{padding:13px;display:grid;gap:8px;}
.folwark-catalog-card h4,.folwark-catalog-card p{margin:0;}
.folwark-photo{display:block;width:100%;height:140px;object-fit:cover;background:var(--color-context,var(--paper));}
.folwark-photo-frame{display:block;position:relative;width:100%;height:140px;min-width:0;background:var(--color-context,var(--paper));}
.folwark-photo-frame>.folwark-photo{position:absolute;inset:0;height:100%;min-height:0;}
.folwark-photo-empty{display:grid;place-items:center;font-size:36px;color:var(--color-accent,var(--accent));}
.folwark-empty,.folwark-notice{padding:18px;border:1px solid var(--color-border,var(--border));border-radius:10px;background:var(--color-context,var(--paper));line-height:1.5;}
.folwark-editor{padding:14px;display:grid;gap:16px;min-width:0;}
.folwark-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.folwark-field{display:grid;gap:5px;min-width:0;font-size:12px;}
.folwark-field input,.folwark-field select,.folwark-field textarea{width:100%;min-width:0;box-sizing:border-box;color:var(--color-text,var(--text));background:var(--color-input,var(--paper));border:1px solid var(--color-border,var(--border));border-radius:7px;padding:9px;font:inherit;}
.folwark-field textarea{min-height:90px;resize:vertical;}
.folwark-selections{display:grid;gap:12px;}
.folwark-selection{display:grid;grid-template-columns:120px minmax(0,1fr);overflow:hidden;}
.folwark-selection>.folwark-photo{height:100%;min-height:130px;}
.folwark-selection>.folwark-photo-frame{height:100%;min-height:130px;}
.folwark-selection>div{padding:12px;min-width:0;}
.folwark-checkbox{display:flex;align-items:center;gap:8px;}
.folwark-checkbox input,.folwark-ingredients input,.folwark-resources input{width:auto;margin:0;}
.folwark-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:10px;}
.folwark-ingredients{display:grid;gap:7px;padding-top:12px;}
.folwark-ingredients>label:not(.folwark-field),.folwark-resources>label{display:flex;align-items:center;gap:7px;}
.folwark-resources,.folwark-staff{display:grid;gap:10px;}
.folwark-photos>div{display:flex;gap:10px;flex-wrap:wrap;}
.folwark-photos figure{width:120px;margin:0;}
.folwark-photos .folwark-photo{height:85px;border-radius:7px;}
.folwark-photos .folwark-photo-frame{height:85px;border-radius:7px;overflow:hidden;}
.folwark-photos .folwark-photo-frame>.folwark-photo{height:100%;}
.folwark-total{display:grid;gap:3px;font-size:12px;}.folwark-total strong{font-size:22px;}
.folwark-mail-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;}
.folwark-mail-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;border:1px solid var(--color-border,var(--border));border-radius:8px;overflow-wrap:anywhere;}
.folwark-shell button:focus-visible,.folwark-shell input:focus-visible,.folwark-shell textarea:focus-visible,.folwark-shell select:focus-visible{outline:2px solid var(--color-accent,var(--accent));outline-offset:2px;}
.folwark-discard{width:min(430px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 48px - env(safe-area-inset-bottom,0px));overflow:auto;inset:0;margin:auto;padding:24px;border:1px solid var(--color-border,var(--border));background:var(--color-surface,var(--surface));color:var(--color-text,var(--text));border-radius:var(--radius,12px);box-shadow:var(--shadow-lg,0 18px 60px rgba(0,0,0,.2));font-family:inherit;}
.folwark-discard::backdrop{background:var(--color-overlay,rgba(0,0,0,.46));}
.folwark-discard h3{margin:14px 0 10px;font-size:22px;line-height:1.25;}
.folwark-discard p{margin:0 0 20px;font-size:13px;line-height:1.6;color:var(--color-text-muted,var(--muted));}
.folwark-discard .folwark-actions{justify-content:flex-end;gap:9px;}
.folwark-discard button{border-radius:var(--radius,8px);min-height:40px;}
.folwark-confirm-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--color-border,var(--border));border-radius:50%;background:var(--color-accent-soft,var(--accent-soft));color:var(--color-text,var(--text));font:500 24px Georgia,serif;}
/* Containment follows the actual module window; it does not clip excess content. */
#folwarkContent *,#folwarkContent *::before,#folwarkContent *::after{box-sizing:border-box;}
.folwark-shell>*,.folwark-heading>div,.folwark-list-heading>div,.folwark-event-details,.folwark-catalog-body,.folwark-catalog-footer,.folwark-event-heading>div{min-width:0;}
.folwark-shell h2,.folwark-shell h3,.folwark-shell h4,.folwark-shell p,.folwark-shell small,.folwark-shell button,.folwark-checkbox,.folwark-resources>label{overflow-wrap:anywhere;}
.folwark-shell button{min-width:0;max-width:100%;white-space:normal;}
.folwark-shell input[type=file]{display:block;max-width:100%;min-width:0;width:100%;margin-top:7px;}
.folwark-date-tile,.folwark-event-arrow,.folwark-jurand-welcome,.folwark-photo-caption{display:none;}
.folwark-ingredient-chips>span:not(:last-child)::after{content:", ";}
.folwark-ingredient-options{display:grid;gap:7px;}
.folwark-ingredient-options>label{display:flex;align-items:center;gap:7px;min-width:0;}
.folwark-ingredient-options input,.folwark-checkbox input,.folwark-resources input{flex:none;}
.folwark-catalog-footer{display:grid;gap:8px;}
.folwark-demo-label{display:block;color:var(--color-text-muted,var(--muted));font-size:10px;margin-top:4px;}

/* Jurand is a selected appearance preset; the CRM menu and window geometry stay shared. */
html[data-crm-theme=jurand] #folwarkContent{font-family:var(--jurand-ui-font,"Segoe UI",Arial,sans-serif);}
html[data-crm-theme=jurand] .folwark-shell{gap:14px;padding:16px;}
html[data-crm-theme=jurand] .folwark-heading h2,
html[data-crm-theme=jurand] .folwark-shell h3,
html[data-crm-theme=jurand] .folwark-shell h4{font-family:var(--jurand-display-font,Georgia,serif);font-weight:500;line-height:1.2;letter-spacing:-.015em;}
html[data-crm-theme=jurand] .folwark-shell h3{font-size:23px;margin:0;}
html[data-crm-theme=jurand] .folwark-shell h4{font-size:20px;margin:0;}
html[data-crm-theme=jurand] .folwark-heading h2{font-size:30px;}
html[data-crm-theme=jurand] .folwark-heading p{font-size:12px;}
html[data-crm-theme=jurand] .folwark-shell button{font-weight:500;}
html[data-crm-theme=jurand] .folwark-discard h3{font-size:26px;font-weight:500;}
html[data-crm-theme=jurand] .folwark-tabs{gap:6px;padding-bottom:2px;}
html[data-crm-theme=jurand] .folwark-tabs button{border-radius:var(--radius,8px);font-size:12px;}
html[data-crm-theme=jurand] .folwark-jurand-welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--color-border,var(--border));border-radius:12px;overflow:hidden;background:var(--color-surface,var(--panel));margin-bottom:12px;}
html[data-crm-theme=jurand] .folwark-jurand-welcome>img{width:100%;height:158px;object-fit:cover;object-position:50% 60%;}
html[data-crm-theme=jurand] .folwark-jurand-welcome>div{padding:18px;align-self:center;min-width:0;}
html[data-crm-theme=jurand] .folwark-jurand-welcome h3{font-size:clamp(21px,2vw,27px);margin:7px 0;}
html[data-crm-theme=jurand] .folwark-jurand-welcome p{font-size:12px;line-height:1.5;margin:7px 0 0;color:var(--color-text-muted,var(--muted));}
html[data-crm-theme=jurand] .folwark-summary{margin:0 0 20px;gap:10px;}
html[data-crm-theme=jurand] .folwark-summary article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;}
html[data-crm-theme=jurand] .folwark-summary strong,html[data-crm-theme=jurand] .folwark-total strong{font-family:var(--jurand-display-font,Georgia,serif);font-weight:500;}
html[data-crm-theme=jurand] .folwark-summary strong{font-size:29px;}
html[data-crm-theme=jurand] .folwark-list-heading{margin-bottom:12px;}
html[data-crm-theme=jurand] .folwark-list-heading p{font-size:12px;line-height:1.5;}
html[data-crm-theme=jurand] .folwark-event-row{grid-template-columns:48px minmax(0,1fr) auto auto 12px;gap:14px;padding:13px 14px;}
html[data-crm-theme=jurand] .folwark-date-tile{display:grid;width:48px;min-height:51px;place-content:center;text-align:center;border-radius:8px;background:var(--color-accent-soft,var(--accent-soft));color:var(--color-text,var(--text));flex:none;}
html[data-crm-theme=jurand] .folwark-date-tile strong{font-family:var(--jurand-display-font,Georgia,serif);font-size:23px;font-weight:500;line-height:1.05;}
html[data-crm-theme=jurand] .folwark-date-tile small{margin:2px 0 0;font-size:10px;text-transform:uppercase;letter-spacing:.08em;}
html[data-crm-theme=jurand] .folwark-event-details>strong{font-size:14px;font-weight:500;}
html[data-crm-theme=jurand] .folwark-event-details>small{font-size:11px;line-height:1.5;}
html[data-crm-theme=jurand] .folwark-event-value{font-size:13px;font-weight:600;}
html[data-crm-theme=jurand] .folwark-status{line-height:1.3;max-width:140px;}
html[data-crm-theme=jurand] .folwark-event-arrow{display:block;font-size:23px;color:var(--color-text-muted,var(--muted));}
html[data-crm-theme=jurand] .folwark-catalog-grid{grid-template-columns:1fr;gap:10px;}
html[data-crm-theme=jurand] .folwark-catalog-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;padding:14px;}
html[data-crm-theme=jurand] .folwark-catalog-card>.folwark-photo,
html[data-crm-theme=jurand] .folwark-catalog-card>.folwark-photo-frame{height:112px;min-height:0;align-self:start;border-radius:8px;overflow:hidden;}
html[data-crm-theme=jurand] .folwark-catalog-body{gap:8px;padding:0;}
html[data-crm-theme=jurand] .folwark-catalog-body p{font-size:12px;line-height:1.5;color:var(--color-text-muted,var(--muted));}
html[data-crm-theme=jurand] .folwark-catalog-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:2px;font-size:12px;}
html[data-crm-theme=jurand] .folwark-catalog-footer button{padding:6px 12px;}
html[data-crm-theme=jurand] .folwark-ingredient-chips{display:flex;gap:5px;flex-wrap:wrap;}
html[data-crm-theme=jurand] .folwark-ingredient-chips>span{padding:3px 7px;border-radius:5px;background:var(--color-accent-soft,var(--accent-soft));font-size:10px;}
html[data-crm-theme=jurand] .folwark-ingredient-chips>span::after{content:none;}
html[data-crm-theme=jurand] .folwark-photo-illustration{position:relative;background-image:url('../brand/jurand/concept-photos.webp');background-size:300% 100%;background-position:50% 50%;background-repeat:no-repeat;}
html[data-crm-theme=jurand] .folwark-photo-illustration-extra{background-position:100% 50%;}
html[data-crm-theme=jurand] .folwark-photo-illustration .folwark-photo-glyph{display:none;}
html[data-crm-theme=jurand] .folwark-photo-caption{display:block;position:absolute;bottom:0;left:0;right:0;padding:5px 3px;font:9px var(--jurand-ui-font,"Segoe UI",Arial,sans-serif);text-align:center;color:var(--color-text,var(--text));background:var(--color-surface,var(--panel));}
html[data-crm-theme=jurand] .folwark-editor{gap:14px;padding:16px;}
html[data-crm-theme=jurand] .folwark-event-heading{display:flex;align-items:center;gap:12px;}
html[data-crm-theme=jurand] .folwark-event-heading h3{font-size:24px;margin:0 0 5px;}
html[data-crm-theme=jurand] .folwark-event-heading small{font-size:11px;color:var(--color-text-muted,var(--muted));}
html[data-crm-theme=jurand] .folwark-steps{padding:9px 0;border-top:1px solid var(--color-border,var(--border));border-bottom:1px solid var(--color-border,var(--border));gap:7px;}
html[data-crm-theme=jurand] .folwark-steps button{font-size:11px;padding:8px 10px;flex:1 1 auto;}
html[data-crm-theme=jurand] .folwark-selection{grid-template-columns:112px minmax(0,1fr);}
html[data-crm-theme=jurand] .folwark-selection>div{padding:14px 16px;}
html[data-crm-theme=jurand] .folwark-selection>.folwark-photo{height:155px;min-height:0;align-self:start;}
html[data-crm-theme=jurand] .folwark-selection>.folwark-photo-frame{height:155px;min-height:0;align-self:start;}
html[data-crm-theme=jurand] .folwark-selection .folwark-checkbox strong{font-family:var(--jurand-display-font,Georgia,serif);font-size:20px;font-weight:500;line-height:1.25;}
html[data-crm-theme=jurand] .folwark-selection p{font-size:12px;color:var(--color-text-muted,var(--muted));margin:8px 0 12px;line-height:1.5;}
html[data-crm-theme=jurand] .folwark-selection small{font-size:11px;color:var(--color-text-muted,var(--muted));line-height:1.5;}
html[data-crm-theme=jurand] .folwark-ingredients{border-top:1px solid var(--color-border,var(--border));margin-top:12px;gap:10px;}
html[data-crm-theme=jurand] .folwark-ingredient-options{display:flex;flex-wrap:wrap;gap:6px;}
html[data-crm-theme=jurand] .folwark-ingredient-options>label{padding:6px 8px;border:1px solid var(--color-border,var(--border));border-radius:7px;background:var(--color-context,var(--paper));font-size:11px;line-height:1.3;}
html[data-crm-theme=jurand] .folwark-footer{padding-top:12px;border-top:1px solid var(--color-border,var(--border));}
html[data-crm-theme=jurand] .folwark-empty h3{margin:0 0 8px;font-size:22px;}
html[data-crm-theme=jurand] .folwark-empty p{margin:0;font-size:12px;}
body.workspace-shell-enabled #folwark.workspace-window-open{padding:0;}
/* Workspace normally offsets its titlebar by the view padding. This module has none. */
body.workspace-shell-enabled #folwark.workspace-window-open>.workspace-window-titlebar{margin:0;}
body.workspace-shell-enabled #folwarkContent{min-height:0;overflow:auto;}
@media(max-width:600px){.folwark-shell{padding:9px;gap:9px;}.folwark-form-grid,.folwark-summary{grid-template-columns:1fr;}.folwark-summary{gap:6px;}.folwark-summary article{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;}.folwark-summary strong{font-size:20px;}.folwark-event-row{grid-template-columns:minmax(0,1fr) auto;}.folwark-event-row .folwark-status{grid-column:1;grid-row:2;justify-self:start;}.folwark-event-row>strong{grid-column:2;grid-row:1 / span 2;}.folwark-selection{grid-template-columns:1fr;}.folwark-selection>.folwark-photo{height:120px;min-height:0;}.folwark-steps button{flex:1 1 40%;}.folwark-footer{padding-bottom:8px;}.folwark-editor{padding:10px;}.folwark-mail-list li{align-items:flex-start;flex-wrap:wrap;}}
@media(max-width:600px){
html[data-crm-theme=jurand] .folwark-shell{padding:10px;gap:11px;}
html[data-crm-theme=jurand] .folwark-heading h2{font-size:25px;}
html[data-crm-theme=jurand] .folwark-heading .folwark-actions{width:100%;}
html[data-crm-theme=jurand] .folwark-tabs button{flex:1 1 auto;font-size:11px;padding:7px 8px;}
html[data-crm-theme=jurand] .folwark-jurand-welcome{grid-template-columns:1fr;}
html[data-crm-theme=jurand] .folwark-jurand-welcome>img{height:116px;}
html[data-crm-theme=jurand] .folwark-jurand-welcome>div{padding:12px;}
html[data-crm-theme=jurand] .folwark-jurand-welcome h3{font-size:22px;margin:5px 0;}
html[data-crm-theme=jurand] .folwark-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:16px;}
html[data-crm-theme=jurand] .folwark-summary article{display:grid;gap:5px;padding:10px 8px;}
html[data-crm-theme=jurand] .folwark-summary span{font-size:10px;line-height:1.4;}
html[data-crm-theme=jurand] .folwark-summary strong{font-size:25px;}
html[data-crm-theme=jurand] .folwark-event-row{grid-template-columns:42px minmax(0,1fr);gap:8px 10px;padding:11px;}
html[data-crm-theme=jurand] .folwark-date-tile{width:42px;min-height:48px;grid-row:1 / span 3;}
html[data-crm-theme=jurand] .folwark-event-details{grid-column:2;grid-row:1;}
html[data-crm-theme=jurand] .folwark-event-row .folwark-status{grid-column:2;grid-row:2;}
html[data-crm-theme=jurand] .folwark-event-row>.folwark-event-value{grid-column:2;grid-row:3;font-size:12px;}
html[data-crm-theme=jurand] .folwark-event-arrow{display:none;}
html[data-crm-theme=jurand] .folwark-catalog-card{grid-template-columns:84px minmax(0,1fr);gap:10px;padding:10px;}
html[data-crm-theme=jurand] .folwark-catalog-card>.folwark-photo,
html[data-crm-theme=jurand] .folwark-catalog-card>.folwark-photo-frame{height:84px;min-height:0;}
html[data-crm-theme=jurand] .folwark-catalog-body{padding:0;gap:7px;}
html[data-crm-theme=jurand] .folwark-catalog-body h4{font-size:19px;}
html[data-crm-theme=jurand] .folwark-editor{padding:11px;}
html[data-crm-theme=jurand] .folwark-event-heading h3{font-size:22px;}
html[data-crm-theme=jurand] .folwark-selection{grid-template-columns:1fr;}
html[data-crm-theme=jurand] .folwark-selection>.folwark-photo{height:116px;width:100%;}
html[data-crm-theme=jurand] .folwark-selection>.folwark-photo-frame{height:116px;width:100%;}
html[data-crm-theme=jurand] .folwark-selection>div{padding:12px;}
html[data-crm-theme=jurand] .folwark-photo-illustration{background-size:300% 100%;background-position:50% 50%;}
html[data-crm-theme=jurand] .folwark-photo-illustration-extra{background-position:100% 50%;}
html[data-crm-theme=jurand] .folwark-steps button{flex:1 1 40%;}
}
@media(max-width:600px){.folwark-selection>.folwark-photo-frame{height:120px;min-height:0;}html[data-crm-theme=jurand] .folwark-selection>.folwark-photo-frame{height:116px;}}
/* folwarkgallery1: images open in the native top layer in both CRM layouts. */
#folwarkContent .folwark-photo-open{padding:0;border:0;border-radius:inherit;overflow:hidden;cursor:zoom-in;color:var(--color-text,var(--text));}
.folwark-photo-zoom{position:absolute;right:6px;top:6px;display:block;border-radius:6px;padding:4px 7px;font-size:14px;line-height:1.25;color:var(--color-text,var(--text));background:var(--color-surface,var(--panel));box-shadow:var(--shadow);}
.folwark-gallery{width:min(1100px,calc(100vw - 28px));height:min(820px,calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));max-width:none;max-height:none;padding:16px;inset:0;margin:auto;border:1px solid var(--color-border,var(--border));border-radius:var(--radius,12px);background:var(--color-surface,var(--panel));color:var(--color-text,var(--text));box-shadow:var(--shadow-lg);overflow:hidden;}
.folwark-gallery[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;}
.folwark-gallery::backdrop{background:var(--color-overlay,rgba(0,0,0,.46));}
.folwark-gallery header,.folwark-gallery footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;}
.folwark-gallery header>div{min-width:0;}
.folwark-gallery h3{font-size:24px;line-height:1.25;margin:0;overflow-wrap:anywhere;}
html[data-crm-theme=jurand] .folwark-gallery h3{font-family:var(--jurand-display-font,Georgia,serif);font-weight:500;}
.folwark-gallery p{font-size:12px;line-height:1.5;margin:5px 0 0;color:var(--color-text-muted,var(--muted));}
.folwark-gallery button{min-height:44px;flex-shrink:0;}
.folwark-gallery-stage{min-height:0;display:grid;place-items:center;overflow:hidden;background:var(--color-context,var(--paper));border-radius:8px;}
.folwark-gallery-stage>img{width:100%;height:100%;min-height:0;object-fit:contain;}
.folwark-gallery-thumbs{display:flex;gap:8px;min-width:0;overflow-x:auto;padding:3px;}
.folwark-gallery-thumbs>button{padding:2px;width:60px;height:52px;border:1px solid var(--color-border,var(--border));border-radius:6px;background:var(--color-context,var(--paper));}
.folwark-gallery-thumbs>button[aria-pressed=true]{border:2px solid var(--color-accent,var(--accent));}
.folwark-gallery-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:4px;}
.folwark-photos figure{width:176px;display:grid;align-content:start;gap:7px;}
.folwark-photos figure .folwark-photo-frame{height:124px;}
.folwark-photos figcaption{font-size:12px;}
.folwark-photo-tools{display:flex;gap:5px;flex-wrap:wrap;}
.folwark-photo-tools button{padding:6px 8px;font-size:11px;min-height:34px;}
.folwark-venue-photo{position:relative;display:block;width:100%;height:100%;padding:0;border:0;overflow:hidden;cursor:zoom-in;}
.folwark-venue-photo>img{width:100%;height:100%;object-fit:cover;display:block;}
#salesOfferDetailsModal .sales-offer-folwark-main-photo{padding:0;cursor:zoom-in;color:var(--color-text,var(--text));border-color:var(--color-border,var(--border));}
#salesOfferDetailsModal .sales-offer-folwark-main-photo~.sales-offer-item-number{pointer-events:none;}
#salesOfferDetailsModal .sales-offer-folwark-photo-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px;}
#salesOfferDetailsModal .sales-offer-folwark-photo{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid var(--color-border,var(--border));border-radius:6px;overflow:hidden;background:var(--color-context,var(--paper));cursor:zoom-in;}
#salesOfferDetailsModal .sales-offer-folwark-photo>img{width:100%;height:100%;object-fit:cover;display:block;}
html[data-crm-theme=jurand] .folwark-jurand-welcome>.folwark-venue-photo{min-height:180px;}
@media(max-width:600px){
 .folwark-gallery{padding:12px;width:calc(100vw - 20px);height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));}
 .folwark-gallery h3{font-size:20px;}
 .folwark-gallery footer{flex-wrap:wrap;gap:8px;}
 .folwark-gallery-thumbs{order:3;width:100%;}
 .folwark-gallery footer>button{flex:1;}
 .folwark-photo-tools button{min-height:40px;}
 html[data-crm-theme=jurand] .folwark-jurand-welcome>.folwark-venue-photo{height:116px;min-height:0;}
}
