.tool-card.has-gallery{display:flex;flex-direction:column;position:relative}.has-gallery>.badges{position:static;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;padding:12px 14px 8px;min-height:43px;background:#fff}.has-gallery .badge{font-size:10px!important;font-weight:850;padding:5px 9px!important;border-radius:5px;letter-spacing:.5px;line-height:1.2}.has-gallery .badge.new{background:#b91b33;color:#fff}.has-gallery .badge.beta{background:#f3bd60;color:#402d13}.has-gallery .badge.renewed{background:#234d4b;color:white}.has-gallery .badge.development{background:#e7edf1;color:#284957;border:1px solid #bbcdd6}.has-gallery .tool-visual{height:190px;display:block;background:#f1ebe1!important;touch-action:pan-y}.has-gallery .tool-visual img{width:100%;height:100%;object-fit:contain;transform:none!important}.has-gallery .tool-link{display:block;min-height:0;height:auto;flex:1}.has-gallery .tool-copy{padding:13px 16px 16px}.has-gallery .tool-copy h3{font-size:18px}.has-gallery .tool-copy p{font-size:12px}.gallery-controls{display:flex;align-items:center;gap:6px;background:#fffaf4;padding:7px 10px;border-block:1px solid #e7dfd4}.gallery-controls button{border:1px solid #c5c5bc;background:white;border-radius:50%;width:30px;height:30px;flex-shrink:0;color:#203e4c;font-size:23px;cursor:pointer;line-height:1}.gallery-caption{font-size:10px;color:#5e645f;text-align:center;flex:1;line-height:1.4}.gallery-dots{position:absolute;bottom:6px;left:0;right:0;display:flex;justify-content:center;gap:4px}.gallery-dots button{width:22px;height:18px;padding:5px;border:0;background:transparent;cursor:pointer}.gallery-dots button:before{content:'';display:block;width:8px;height:8px;background:#a0998c;border-radius:50%}.gallery-dots button[aria-pressed=true]:before{background:#b91b33}.has-gallery button:focus-visible,.has-gallery .tool-visual:focus-visible{outline:3px solid #b91b33;outline-offset:2px}.tool-grid.unified{gap:16px}.has-gallery:hover{transform:none}@media(max-width:540px){.has-gallery .tool-visual{height:200px}.has-gallery .tool-copy{padding:12px 15px}.gallery-caption{font-size:11px}}
.gallery-controls{flex-wrap:wrap}.gallery-dots{position:static;flex-basis:100%;height:15px}.gallery-dots button{height:15px;padding:3px 5px}.has-gallery>.badges{justify-content:flex-start}.has-gallery .tool-visual img{padding:4px}

/* Compact cards with genuine screenshots. */
.has-gallery>.badges{min-height:30px;padding:6px 10px;gap:4px}.has-gallery>.badges:empty{display:none}.has-gallery .badge{font-size:9px!important;padding:4px 7px!important}.has-gallery .tool-visual{height:140px;position:relative;background:#eae8e3!important}.has-gallery .tool-visual img{padding:0;object-fit:contain}.has-gallery .tool-copy{padding:9px 12px 11px}.has-gallery .tool-copy h3{font-size:16px;margin:3px 0}.has-gallery .tool-copy p{font-size:11px;line-height:1.45;margin:4px 0}.has-gallery .open-tool{margin-top:5px}.gallery-controls{flex-wrap:nowrap;padding:3px 7px;min-height:30px;gap:4px}.gallery-controls button{width:25px;height:25px;font-size:20px}.gallery-controls button[hidden]{display:none}.gallery-caption{font-size:9px}.tool-grid.unified{gap:10px}.gallery-enlarge{position:absolute;right:6px;bottom:6px;border:1px solid #fff8;border-radius:5px;background:#172e39e8;color:white;padding:4px 7px;font-size:9px;cursor:pointer}.gallery-modal{padding:12px;border:0;border-radius:12px;max-width:95vw;width:1100px;background:#f8f6f1}.gallery-modal::backdrop{background:#10202de0}.gallery-modal>img{display:block;width:100%;height:auto;max-height:78vh;object-fit:contain}.gallery-modal>button{display:block;margin:0 0 8px auto;background:#a91630;color:white;border:0;border-radius:6px;padding:8px 14px;cursor:pointer}.gallery-modal>p{margin:10px 4px 2px;font-size:13px}@media(max-width:540px){.has-gallery .tool-visual{height:145px}.has-gallery .tool-copy{padding:9px 12px}.gallery-caption{font-size:10px}}
/* MIX: full, centered captures with matching background. */
.tool-mix.has-gallery .tool-visual{background:#1f201b!important}.tool-mix.has-gallery .tool-visual img{object-fit:contain;object-position:50% 50%;display:block;margin:0 auto}
