You could use viewport units here instead of %. Like this:
iframe {
max-width: 100vw;
max-height: 56.25vw; /* height/width ratio = 315/560 = .5625 */
}
body {_x000D_
margin: 0;_x000D_
}_x000D_
.a {_x000D_
max-width: 560px;_x000D_
background: grey;_x000D_
}_x000D_
img {_x000D_
width: 100%;_x000D_
height: auto_x000D_
}_x000D_
iframe {_x000D_
max-width: 100vw;_x000D_
max-height: 56.25vw;_x000D_
/* 315/560 = .5625 */_x000D_
}
_x000D_
<div class="a">_x000D_
<img src="http://lorempixel.com/560/315/" width="560" height="315" />_x000D_
</div>_x000D_
_x000D_
<div class="a">_x000D_
<iframe width="560" height="315" src="http://www.youtube.com/embed/RksyMaJiD8Y" frameborder="0" allowfullscreen></iframe>_x000D_
</div>
_x000D_