/* Shared existing drug imagery: preserve aspect ratio, never crop packaging or labels. */
.ys-brand .ys-drug-media{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:208px;min-width:0;overflow:hidden;margin:0 0 20px;border:1px solid var(--fg-line);border-radius:12px;background:#fff}
.ys-brand .ys-drug-media .ys-drug-image{display:block;position:relative;z-index:1;width:100%;height:100%;max-width:100%;object-fit:contain;padding:12px;background:#fff}
.ys-brand .ys-drug-image-fallback{visibility:hidden;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:var(--fg-soft);color:var(--fg-muted);font-size:14px}
.ys-brand .ys-drug-media.is-unavailable .ys-drug-image{display:none}
.ys-brand .ys-drug-media-detail{height:240px;margin:0}
@media(max-width:760px){.ys-brand .ys-drug-media{height:200px}.ys-brand .ys-drug-media-detail{height:240px}}

.ys-brand .ys-drug-media.is-unavailable .ys-drug-image-fallback{visibility:visible}
