I have an image gallery that I'm trying to make mobile friendly. I've gotten everything to work until this final part; switching from portrait to landscape.
It looks great when viewed in landscape, but the when switched to portrait, the landscape rules are still being applied and it's causing the images to be cropped.
CSS:
@media (max-width:700px) {
.slideshow-image img { left:-33%; }
}
@media (max-width:960px) {
.slideshow-image img { left:0; }
}
If I add !important
to the first rule, it always applies and overwrites the second, so then it looks good in portrait, but not landscape. I'm not sure what I'm missing. All of my other media queries work just fine.