
Nora
.images-gallery-product{ cursor: pointer; transition: 0.3s; } .image-gallery-product:hover{ opacity: 0.7; cursor: pointer; } .row { display: -ms-flexbox; /* IE10 */ display: flex; -ms-flex-wrap: wrap; /* IE10 */ flex-wrap: wrap; padding: 0 4px; } /* Create four equal columns that sits next to each other */ .column { -ms-flex: 25%; /* IE10 */ flex: 25%; max-width: 25%; padding: 0 4px; } .column img { margin-top: 8px; vertical-align: middle; width: 100%; } /* Responsive layout - makes a two column-layout instead of four columns */ @media screen and (max-width: 800px) { .column { -ms-flex: 50%; flex: 50%; max-width: 50%; } } /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */ @media screen and (max-width: 600px) { .column { -ms-flex: 100%; flex: 100%; max-width: 100%; } } .modal-gallery-product { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 100; /* Sit on top */ padding-top: 100px; /* Location of the box */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0,0,0); /* Fallback color */ background-color: rgba(0,0,0,0.9); /* Black w/ opacity */ } .modal-content{ margin: auto; display: block; width: 100%; max-width: 500px; margin-left: auto; margin-right: auto; margin-top: -70; margin-bottom: 140; } .modal-hover-opacity { opacity:1; filter:alpha(opacity=100); -webkit-backface-visibility:hidden } .modal-hover-opacity:hover { opacity:0.60; filter:alpha(opacity=60); -webkit-backface-visibility:hidden } .close-gallery-product { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; } .close-gallery-product:hover, .close-gallery-product:focus { color: #bbb; text-decoration: none; cursor: pointer; } .container1 { width:200px; display:inline-block; } .modal-content-gallery-product, #caption { -webkit-animation-name: zoom; -webkit-animation-duration: 0.6s; animation-name: zoom; animation-duration: 0.6s; } @-webkit-keyframes zoom { from {-webkit-transform:scale(0)} to {-webkit-transform:scale(1)} } @keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} } /* 100% Image Width on Smaller Screens */ @media only screen and (max-width: 700px){ .modal-content { width: 100%; } } × function onClick(element) { document.getElementById("img01").src = element.src; document.getElementById("modal01").style.display = "block"; }