/* Palette and typography matched to ZawalskiFOTO Widzew 0.10.0.
   zft-* names isolate this plugin from the shop's zf-* styles and scripts. */
.zft-gallery,.zft-modal{--zft-red:#e21b2d;--zft-bg:#08090b;--zft-panel:#111318;--zft-line:#23262e;--zft-text:#f6f7f9;--zft-muted:#9a9faa;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--zft-text)}
.zft-gallery{box-sizing:border-box;background:var(--zft-bg);margin:32px auto;padding:24px;max-width:1320px;text-align:left;border-radius:22px;container-type:inline-size}
.zft-gallery *,.zft-modal *{box-sizing:border-box}
.zft-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.zft-card{min-width:0;overflow:hidden;background:var(--zft-panel);border:1px solid var(--zft-line);border-radius:22px;display:flex;flex-direction:column}
.zft-gallery .zft-preview{position:relative;display:block;width:100%;padding:18px;margin:0;background:#060709;border:0;border-radius:0;cursor:zoom-in;line-height:0;box-shadow:none}
.zft-gallery .zft-image{display:block;width:100%;height:clamp(320px,65vw,480px);object-fit:contain;border:0;border-radius:0;margin:0;box-shadow:none}
.zft-protected,.zft-protected *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.zft-protected{position:relative;touch-action:pan-y pinch-zoom}
.zft-protected img{pointer-events:none;-webkit-user-drag:none}
.zft-image-shield{position:absolute;inset:0;z-index:1;background:transparent}
.zft-zoom{position:absolute;z-index:2;bottom:12px;right:12px;background:#111318e6;color:#f6f7f9;border:1px solid #ffffff26;border-radius:99px;font-family:inherit;font-size:11px;font-weight:700;line-height:1.4;padding:7px 11px;pointer-events:none}
.zft-gallery .zft-button,.zft-modal .zft-button{font-family:inherit;display:flex;align-items:center;justify-content:center;gap:12px;text-align:center;width:100%;min-height:52px;padding:16px 18px;border-radius:12px;font-size:13px;font-weight:800;line-height:1.5;text-decoration:none;box-shadow:none;transition:background .15s}
.zft-gallery .zft-download{background:var(--zft-red);color:#fff;border:0;border-radius:0;letter-spacing:.08em;margin:0}
.zft-gallery .zft-download:hover,.zft-modal .zft-coffee:hover{background:#bd1525;color:#fff}
.zft-gallery .zft-download[aria-busy=true]{opacity:.65;cursor:progress}
.zft-download-status{font-size:12px;line-height:1.6;color:#c0c4cc;padding:12px 20px 0;margin:0}
.zft-download-status:empty{display:none}
.zft-download-status a{color:#ff808a;text-decoration:underline}
.zft-card-body{padding:24px}
.zft-card-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:10px;margin:12px 0}
.zft-gallery .zft-card .zft-card-row h3{margin:0;font-size:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zft-gallery .zft-card-row .zft-format{margin:0;text-align:center;overflow-wrap:anywhere;font-size:11px}
.zft-gallery .zft-card-row .zft-count{margin:0;gap:5px;padding:6px 9px;font-size:11px;white-space:nowrap}
.zft-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.16em;line-height:1.6;color:#ff5866;text-transform:uppercase}
.zft-gallery .zft-card h3{font-family:inherit;font-size:25px;font-weight:750;letter-spacing:-.03em;line-height:1.15;color:var(--zft-text);margin:12px 0;overflow-wrap:anywhere}
.zft-gallery .zft-format{font-size:12px;color:var(--zft-muted);margin:0 0 10px}
.zft-gallery .zft-description{font-size:14px;line-height:1.65;color:#c0c4cc;margin:0;overflow-wrap:anywhere}
.zft-placeholder{padding:140px 24px;text-align:center;background:#15171c;color:#9a9faa}
.zft-empty{padding:32px;background:#111318;border:1px dashed #31353e;border-radius:18px;color:#9a9faa}
.zft-pagination{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:28px;align-items:center;font-size:14px}
.zft-pagination a{color:#ff6672;padding:12px}
.zft-gallery a:focus-visible,.zft-gallery button:focus-visible,.zft-modal a:focus-visible,.zft-modal button:focus-visible{outline:3px solid #ff808a;outline-offset:3px}
.zft-modal{box-sizing:border-box;background:#0f1115;border:1px solid #2a2d35;border-radius:24px;padding:58px 32px 30px;width:560px;max-width:calc(100vw - 24px);max-height:90vh;max-height:90dvh;overflow:auto;box-shadow:0 40px 120px #0009;text-align:left}
.zft-modal::backdrop{background:#000c;backdrop-filter:blur(10px)}
/* Explicit viewport centering, independent of theme dialog margins. */
dialog.zft-modal[open]{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;height:fit-content;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px)}
.zft-gallery .zft-count{display:flex;align-items:center;gap:8px;width:fit-content;margin:0 0 14px;padding:6px 11px;border:1px solid #2a2d35;border-radius:99px;background:#191c23;color:#b4b8c0;font-size:12px;line-height:1.5}
.zft-gallery .zft-count>span{color:#ff5866}.zft-gallery .zft-count strong{color:#f6f7f9;font-weight:800;font-variant-numeric:tabular-nums}
.zft-modal .zft-close{position:absolute;top:12px;right:14px;min-height:36px;border:1px solid #2a2d35;border-radius:99px;background:#15181e;color:#fff;padding:6px 12px;cursor:pointer;font:700 12px/1.5 sans-serif;box-shadow:none}
.zft-modal h2{color:var(--zft-text);font-family:inherit;font-size:34px;letter-spacing:-.04em;line-height:1.1;margin:12px 0 16px;font-weight:750}
.zft-modal p{font-size:14px;line-height:1.65;color:#b4b8c0;margin:0 0 16px}
.zft-modal .zft-chosen{font-size:12px;background:#171a20;border:1px solid #23262e;border-radius:12px;padding:12px 14px;color:#cfd2d8;overflow-wrap:anywhere}
.zft-modal .zft-offer{padding:22px 0;border-top:1px solid var(--zft-line)}
.zft-modal h3{font-family:inherit;color:var(--zft-text);font-size:21px;letter-spacing:-.025em;font-weight:750;margin:0 0 10px;line-height:1.25}
.zft-modal .zft-coffee{background:var(--zft-red);color:#fff;border:1px solid var(--zft-red)}
.zft-modal .zft-print{background:#191c23;color:#fff;border:1px solid #343945}
.zft-modal .zft-print:hover{background:#262a33;color:#fff}
.zft-modal .zft-note{font-size:11px;color:#9a9faa;margin:0}
.zft-lightbox{width:auto;background:#060709;padding:56px 12px 12px}
.zft-modal-image img{display:block;width:auto;height:auto;max-width:85vw;max-height:75vh;object-fit:contain;margin:auto}
@container(min-width:600px){.zft-columns-2,.zft-columns-3,.zft-columns-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(min-width:950px){.zft-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.zft-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}.zft-columns-4 .zft-card-body{padding:18px}.zft-columns-4 .zft-card h3{font-size:22px}}
@media(max-width:640px){.zft-gallery{padding:12px;border-radius:16px}.zft-modal{padding:58px 20px 24px;border-radius:16px}.zft-modal h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){.zft-gallery .zft-button,.zft-modal .zft-button{transition:none}}
