/* Visible editorial images: preserve intrinsic image size; never upscale a thumbnail. */
.search-image-intro { margin-top: 2rem; margin-bottom: 3rem; }
.search-context-image { margin: 0 auto; max-width: 760px; }
.search-context-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 440px; margin: 0 auto; object-fit: contain; }
.search-context-image figcaption { margin-top: .7rem; color: #555; text-align: center; font-size: .875rem; line-height: 1.5; }
.search-template-section { padding-top: 2rem; padding-bottom: 3rem; }
.search-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.search-template-card { min-width: 0; border: 1px solid #ddd; padding: 1rem; }
.search-template-card a { display: block; color: inherit; text-decoration: none; }
.search-template-card img { display: block; width: auto; height: auto; max-width: 100%; max-height: 260px; margin: 0 auto 1rem; object-fit: contain; }
.search-template-card h2 { margin: 0; font-size: 1.15rem; line-height: 1.4; }
.search-template-image img:not([src]), .search-template-image img[src=""], .search-template-card img:not([src]), .search-template-card img[src=""] { display: none; }
@media (max-width: 760px) { .search-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .search-image-intro { margin-top: 1.25rem; margin-bottom: 2rem; } }
@media (max-width: 480px) { .search-template-grid { grid-template-columns: 1fr; } .search-context-image img { max-height: 360px; } }
