.gallery-thumbnail{max-width:100%;height:auto}
.grid-item,.grid-sizer{width:20%}
.grid-item figure,.grid-item>div{margin:.4rem}

@media screen and (max-width:2200px){.grid-item,.grid-sizer{width:20%}}
@media screen and (max-width:1800px){.grid-item,.grid-sizer{width:30%}}
@media screen and (max-width:1600px){.grid-item,.grid-sizer{width:33.33%}}
@media screen and (max-width:1224px){.grid-item,.grid-sizer{width:33.33%}}
@media screen and (max-width:980px){.grid-item,.grid-sizer{width:50%}}
@media screen and (max-width:720px){.grid-item,.grid-sizer{width:50%}}
@media screen and (max-width:480px){.grid-item,.grid-sizer{width:100%}}
@media screen and (max-width:50em){.content{padding:0 10px}.grid figure{display:inline-block;float:none;width:100%;margin:10px auto}}