/* Shared business-card gallery; existing owner-supplied WebP photographs. */
.has-photo-gallery .metal-gallery{--gallery-rail-width:100px;--gallery-rail-gap:15px;min-width:0;max-width:none}
.has-photo-gallery .metal-gallery .gallery-sticky{position:static}
.has-photo-gallery .metal-gallery .gallery-stage{aspect-ratio:1;max-height:none;min-height:0;border-radius:14px;background:#d8d8d3;overflow:hidden}
.has-photo-gallery .metal-gallery .gallery-stage:after{display:none}
.has-photo-gallery .metal-gallery .gallery-image{object-fit:contain;object-position:center;transform:none;width:100%;height:100%;border-radius:0}
.metal-photo-caption{display:flex;justify-content:space-between;gap:20px;align-items:start;padding-top:16px}
#metal-photo-family{display:none}
#metal-photo-title{display:block;font-size:24px;font-weight:600;line-height:1.2;letter-spacing:-.025em;color:#192b22}
#metal-photo-description{font-size:14px;line-height:1.5;margin-top:6px;color:#486052}
#metal-photo-count{font-size:14px;color:#486557;white-space:nowrap;padding-top:3px;font-variant-numeric:tabular-nums}
.metal-photo-controls{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:14px;margin-top:12px}
.metal-photo-controls>div{display:flex;gap:8px}
.metal-photo-controls button,.metal-lightbox-bottom button{font:inherit;font-size:14px;line-height:1.4;min-height:42px;padding:10px 15px;border-radius:6px;border:1px solid #c1cfc2;color:#173f2f;background:#fff;cursor:pointer}
.metal-photo-controls button:hover{background:#e6eee4}
.metal-photo-controls .metal-view-switch{display:flex;gap:3px;padding:3px;background:#e5ebe2;border-radius:7px}
.metal-photo-controls .metal-view-switch button{background:transparent;border:0;color:#294c3b;min-height:36px;padding:8px 12px;border-radius:4px}
.metal-photo-controls .metal-view-switch button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #123d3215}
.metal-gallery .metal-enlarge{position:absolute;right:20px;bottom:20px;z-index:4;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffffa6;border-radius:50%;background:#ffffff24;backdrop-filter:blur(4px);color:white}
.metal-gallery .metal-enlarge:hover{background:#ffffff40}
.metal-enlarge svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.5;fill:none}
.metal-filters{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0 0}
.metal-filters button{border:1px solid #c3d0c4;background:transparent;color:#234d39;font:inherit;font-size:14px;padding:9px 15px;line-height:1.4;border-radius:24px;cursor:pointer}
.metal-filters button[aria-pressed=true]{background:#123d32;color:#fff;border-color:#123d32}
.metal-filters button:hover:not([aria-pressed=true]){background:#e6eee4}
.metal-visual{display:grid;grid-template-columns:var(--gallery-rail-width) minmax(0,1fr);gap:var(--gallery-rail-gap)}
.metal-rail-wrap{position:relative;min-height:0}
.metal-thumbnail-rail{position:absolute;inset:0;display:flex;flex-direction:column;gap:8px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y proximity;scrollbar-color:#78947f #e4ebe1;scrollbar-width:thin;padding:3px 6px 3px 3px}
.metal-thumbnail{flex:0 0 auto;display:block;width:100%;padding:5px;border:1px solid transparent;border-radius:9px;background:transparent;text-align:left;color:#3c5948;font:inherit;cursor:pointer;scroll-snap-align:center}
.metal-thumbnail img{display:block;aspect-ratio:1;width:100%;height:auto;object-fit:cover;border-radius:6px;opacity:.8;transition:opacity .15s}
.metal-thumbnail>span{display:block;font-size:14px;line-height:1.4;margin:9px 3px 3px}
.metal-thumbnail[aria-pressed=true]{background:white;border-color:#123d32;color:#123d32}
.metal-thumbnail[aria-pressed=true] img,.metal-thumbnail:hover img{opacity:1}
.metal-gallery-note{display:none}
.metal-gallery-note em{font-size:24px;color:#00856a;line-height:1.4}
.metal-gallery button:focus-visible,.metal-lightbox button:focus-visible{outline:3px solid #00856a;outline-offset:3px}
.has-photo-gallery .metal-lightbox{width:min(940px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:0;background:#1d2520;border:1px solid #526356;border-radius:14px;color:white;overflow:auto}
.metal-lightbox::backdrop{background:#07120de8;backdrop-filter:blur(8px)}
.metal-lightbox-top{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:19px 24px}
.metal-lightbox-top>div>span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#c8dfce;margin-bottom:5px}
.metal-lightbox-top strong{font-size:21px;line-height:1.3;font-weight:500}
.metal-lightbox-top .dialog-close{position:static;flex-shrink:0;background:#ffffff12;color:white;border:1px solid #607465;border-radius:50%;width:42px;height:42px}
.has-photo-gallery .metal-lightbox>img{display:block;width:100%;height:auto;max-height:calc(100dvh - 230px);object-fit:contain;background:#171b18;border-radius:0}
.metal-lightbox-bottom{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:17px 24px;font-size:14px}
.metal-lightbox-bottom button{color:#eef6ef;background:transparent;border-color:#607465;min-width:90px}
.metal-lightbox-bottom button:hover{background:#ffffff12}
.metal-lightbox-bottom span{font-variant-numeric:tabular-nums;color:#d4e5d8}
@media(min-width:851px){
 /* Inherit the approved wider-left product grid; photo height must not resize its columns. */
 .has-photo-gallery .metal-gallery .gallery-sticky{position:sticky;top:112px}
}
@media(max-width:560px){.has-photo-gallery .metal-gallery .gallery-stage{border-radius:12px}.metal-photo-caption{padding-top:20px;gap:14px}#metal-photo-title{font-size:27px}#metal-photo-family{font-size:12px}#metal-photo-description{font-size:16px}.metal-photo-controls{gap:8px;margin-top:16px}.metal-photo-controls button{padding:9px 12px}.metal-filters{margin-top:23px;padding-top:22px;gap:6px}.metal-filters button{padding:9px 12px;font-size:14px}.metal-thumbnail{flex-basis:94px}.metal-thumbnail-rail{gap:8px}.metal-thumbnail>span{font-size:14px}.metal-gallery-note em{font-size:22px}.has-photo-gallery .metal-lightbox{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:10px}.metal-lightbox-top{padding:16px;gap:18px}.metal-lightbox-top strong{font-size:19px}.metal-lightbox-bottom{padding:16px}.metal-lightbox-bottom button{min-width:80px}.has-photo-gallery .metal-lightbox>img{max-height:calc(100dvh - 210px)}}
@media(prefers-reduced-motion:reduce){.metal-thumbnail img{transition:none}}
@media(max-width:560px){
 .metal-filters{margin:16px 0 0;padding:0}
 .metal-visual{display:flex;flex-direction:column-reverse;gap:12px}
 .metal-rail-wrap{position:static}
 .metal-thumbnail-rail{position:relative;inset:auto;flex-direction:row;align-items:stretch;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;gap:8px;padding:3px 3px 12px}
 .metal-thumbnail{flex:0 0 94px;width:94px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
 .metal-thumbnail img{flex:0 0 auto}
 .metal-thumbnail>span{font-size:12px;line-height:1.4;min-height:2.8em}
 .metal-photo-caption{padding-top:14px}
 #metal-photo-title{font-size:22px}
 #metal-photo-description{font-size:14px}
 .metal-photo-controls{margin-top:12px}
 .metal-photo-controls button{font-size:13px;padding:9px 10px}
 .metal-photo-controls>div{gap:6px}
 .metal-photo-controls .metal-view-switch{gap:2px}
 .metal-photo-controls .metal-view-switch button{padding:8px 10px}
 .metal-gallery .metal-enlarge{right:16px;bottom:16px}
}

/* Match the front hero's clear circular control and fine white outline. */
.has-photo-gallery .metal-enlarge{background:transparent;border-color:#ffffff9c;box-shadow:none;backdrop-filter:none}
.has-photo-gallery .metal-enlarge:hover{background:#ffffff14}

/* Keep photo filters in the control row so they do not shrink the main image. */
.metal-filter-menu{position:relative;flex:0 0 auto;border:0;padding:0;margin:0}
.metal-filter-menu>summary{display:flex;align-items:center;gap:7px;min-height:42px;padding:10px 12px;box-sizing:border-box;list-style:none;border:1px solid #c1cfc2;border-radius:6px;background:#fff;color:#173f2f;font-size:14px;line-height:1.4;cursor:pointer}
.metal-filter-menu>summary::-webkit-details-marker{display:none}
.metal-filter-menu>summary::after{display:none}
.metal-filter-menu>summary>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}
.metal-filter-menu>summary>span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.metal-filter-menu>summary:focus-visible{outline:3px solid #00856a;outline-offset:3px}
.metal-filter-menu[open]>summary{background:#e6eee4}
.metal-filter-menu .metal-filters{position:absolute;bottom:calc(100% + 8px);right:0;z-index:8;display:flex;flex-direction:column;gap:5px;width:220px;margin:0;padding:8px;border:1px solid #c1cfc2;border-radius:9px;background:#fff;box-shadow:0 8px 24px #123d3220}
.metal-filter-menu .metal-filters button{width:100%;text-align:left;border-radius:5px;min-height:40px}
@media(min-width:851px) and (max-width:1150px){
 .metal-photo-controls{gap:8px}
 .metal-photo-controls button{font-size:13px;padding:9px 10px}
 .metal-photo-controls .metal-view-switch button{padding:8px 10px}
 .metal-filter-menu>summary{width:42px;justify-content:center;padding:10px}
 .metal-filter-menu>summary>span{display:none}
}
@media(max-width:560px){
 .metal-filter-menu{order:1;margin-left:auto}
 .metal-filter-menu>summary{font-size:13px;padding:9px 10px}
 .metal-photo-controls .metal-view-switch{order:2}
}
