.gallery-row>.gallery-column {
    padding: 0 8px;
    box-sizing: border-box;
}

.gallery-row:after {
    content: "";
    display: table;
    clear: both;
}

.gallery-column {
    float: left;
    width: 25%;
    box-sizing: border-box;
}

/* The Modal (background) */
/* Must render above the sticky top navigation row (z-index 11) and sidebar (z-index 12),
   otherwise the top row covers the close button at top: 10px */
.nem-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
    box-sizing: border-box;
}

/* Modal Content */
.nem-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    box-sizing: border-box;
}

/* The gallery-preview-close-btn Button */
.gallery-preview-close-btn {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    box-sizing: border-box;
}

.gallery-preview-close-btn:hover,
.gallery-preview-close-btn:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.gallery-slide {
    display: table;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.gallery-cursor {
    cursor: pointer;
    box-sizing: border-box;
}

/* Next & previous buttons */
.gallery-preview-prev-btn,
.gallery-preview-next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
}

/* Position the "next button" to the right */
.gallery-preview-next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
    box-sizing: border-box;
}

/* On hover, add a black background color with a little bit see-through */
.gallery-preview-prev-btn:hover,
.gallery-preview-next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

img {
    margin-bottom: -4px;
    box-sizing: border-box;
}

.gallery-caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
    box-sizing: border-box;
}

.gallery-small-preview {
    opacity: 0.6;
    box-sizing: border-box;
}

.gallery-slide-active,
.gallery-small-preview:hover {
    opacity: 1;
    box-sizing: border-box;
}

img.hover-shadow {
    transition: 0.3s;
    box-sizing: border-box;
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}