body { display: flex; justify-content: center; background-image: url('assets/bg.jpg'); background-repeat: no-repeat; background-attachment: fixed; background-size: 100% 100%; } .button{ display: flex; justify-content: center; } .button button{ background-color: rgba(0, 0, 0, 0.42); } .button button:hover { box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 1px #000000, 0 0 2px #000000, 0 0 3px #000000, 0 0 3px #000000; } .wrapper { display: flex; height: 400px; width: 600px; background-color: rgb(255, 255, 255); } .grid-container { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); border: 0; row-gap: 0; column-gap: 0; } .grid-item { background-position: center center; background-repeat: no-repeat; background-size: contain; background-color: #000; border: 0; position: relative; } /* Image and overlay layers */ .grid-item .panel-img{ width: 100%; height: 100%; object-fit: contain; display: block; background: #000; } .grid-item .bubble-layer{ position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; /* bubbles themselves will re-enable */ } .grid-item .bubble-layer .bubble{ position: absolute; pointer-events: auto; } /* Make navigation buttons small */ .button button { padding: 4px; } .button button img { width: 20px; height: 20px; }