body { margin: 0; padding: 0; } header { background-color: #e1eefa; } footer { background-color: #cce4fa; border-top: 2px solid #0000FF; } .lightbox { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.8); } .lightbox-content { margin: auto; display: block; width: 80%; max-width: 700px; } .close-lightbox { position: absolute; top: 20px; right: 45px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; } .gallery-item { margin-bottom: 15px; } .gallery-item img { width: 100%; height: auto; cursor: pointer; }