@import 'variable.scss'; /* ========================================================================== * * File Name: Image * Description: Responsive image gallery * Editing Details: Feel free to edit padding, margins, colours, and shadow. * Do not edit class display properties or change/eliminate classes. * Source: https://www.w3schools.com/css/tryit.asp?filename=trycss_image_gallery_responsive ============================================================================ */ div.gallery { border: 1px solid $acai; border-radius: 15px 0; } div.gallery:hover { border: 1px solid $beet; border-radius: 15px 0; } div.gallery img { width: 100%; height: auto; } div.desc { padding: 15px; text-align: center; } * { box-sizing: border-box; } .responsive { padding: 0 6px; float: left; width: 25%; } @media only screen and (max-width: get-map($breakpoints,lg)) { .responsive { width: 50%; margin: 6px 0; } } @media only screen and (max-width: get-map($breakpoints,sm)) { .responsive { width: 100%; } } .clearfix:after { content: ""; display: table; clear: both; }