/* Reference photographs, grouped separately from vehicle configuration choices. */
.config-gallery-categories{display:flex;gap:6px;margin:0 0 12px;min-width:0}
.config-gallery-categories button{flex:1;min-width:0;border:1px solid #d7e2eb;background:#fff;color:#23416b;border-radius:8px;padding:10px 7px;font:inherit;font-size:12px;line-height:1.4;cursor:pointer;overflow-wrap:anywhere}
.config-gallery-categories button[aria-pressed=true]{color:#091b54;background:#edf5ff;border-color:#091b54;box-shadow:inset 0 0 0 1px #091b54;font-weight:650}
.config-gallery-categories button:focus-visible{outline:3px solid #0083b5;outline-offset:2px}
.config-gallery-categories small{display:block;font-size:11px;opacity:.7;font-weight:400;margin-top:2px}
@media(max-width:700px){
 .config-has-photo-categories .config-gallery-categories{grid-row:1!important;margin:0 0 4px}
 .config-has-photo-categories .config-main-photo{grid-row:2!important}
 .config-has-photo-categories .config-thumbnails{grid-row:3!important}
 .config-has-photo-categories .config-photo-caption{grid-row:4!important}
 .config-has-photo-categories .config-visual>.source-note{grid-row:5!important}
 .config-has-photo-categories .config-controls{grid-row:6!important}
 .config-has-photo-categories .config-summary{grid-row:7!important}
}

/* Image references are not color/trim selections. */
.config-reference-gallery{padding-top:6px}
.config-photo-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.config-reference-photo{min-width:0;width:100%;padding:7px;border:1px solid #d7e2ed;border-radius:10px;background:#fff;color:#122e60;font:inherit;text-align:start;cursor:pointer;overflow:hidden;scroll-margin:12px}
.config-reference-photo img{display:block;width:100%;height:auto;aspect-ratio:1.5;object-fit:contain;background:#f3f6f9;border-radius:5px}
.config-reference-photo>span{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 2px 3px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.config-reference-photo>span small{font-size:11px;color:#73849b;font-variant-numeric:tabular-nums}
.config-reference-photo[aria-pressed=true]{border-color:#183e72;box-shadow:inset 0 0 0 1px #183e72;background:#f0f6fe}
.config-reference-photo:focus-visible{outline:3px solid #0083b5;outline-offset:2px}
.config-reference-photo:hover{border-color:#55789a}
@media(max-width:1000px){.config-photo-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .config-photo-cards{gap:9px}
 .config-reference-photo{padding:6px}
 .config-reference-photo>span{font-size:12px;min-height:36px}
 .config-reference-gallery h3 small{flex-basis:100%}
 .config-has-photo-categories .config-main-photo{max-height:240px}
}
