body {
    font-family: Arial, Verdana, Sans-serif;
}

.lg-toolbar {
    background-color: #ffffff;
}

div.lg-thumb.group {
    margin-left: auto !important;
    margin-right: auto !important;
}

.lg-object {
}

.lg-item {
    top: 50px;
    bottom: 90px;
    overflow: hidden;
}

.lg-video {
    top: 0px;
    bottom: 0px;
}

.lg-toggle-thumb {
    display: none;
}

.lg-close {
    display: none;
}

.lg-outer .lg-thumb-outer {
    background-color: #f5f5f5;
}

.lg-progress-bar {
    background-color: #f5f5f5;
}

.lg-actions .lg-prev, .lg-actions .lg-next {
    margin-top: -50px;
    background-color: transparent;
}

.lg-hide-items .lg-toolbar {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.lg-outer .lg-video {
    top: -20px;
}

.lg-toolbar .lg-icon:hover, .lg-outer.lg-dropdown-active #lg-share {
    color: #000000;
}

.gnw-gallery > ul {
    margin-bottom: 0;
}

.gnw-gallery > ul > li {
    float: left;
    margin-bottom: 15px;
    margin-right: 20px;
    width: 200px;
}

.gnw-gallery > ul > li a {
    border: 3px solid #FFF;
    border-radius: 3px;
    display: block;
    overflow: hidden;
    position: relative;
    float: left;
}

.gnw-gallery > ul > li a > img {
    -webkit-transition: -webkit-transform 0.15s ease 0s;
    -moz-transition: -moz-transform 0.15s ease 0s;
    -o-transition: -o-transform 0.15s ease 0s;
    transition: transform 0.15s ease 0s;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
    height: 100%;
    width: 100%;
}

.gnw-gallery > ul > li a:hover > img {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
}

.gnw-gallery > ul > li a:hover .demo-gallery-poster > img {
    opacity: 1;
}

.gnw-gallery > ul > li a .demo-gallery-poster {
    background-color: rgba(0, 0, 0, 0.1);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    -webkit-transition: background-color 0.15s ease 0s;
    -o-transition: background-color 0.15s ease 0s;
    transition: background-color 0.15s ease 0s;
}

.gnw-gallery > ul > li a .demo-gallery-poster > img {
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    opacity: 0;
    position: absolute;
    top: 50%;
    -webkit-transition: opacity 0.3s ease 0s;
    -o-transition: opacity 0.3s ease 0s;
    transition: opacity 0.3s ease 0s;
}

.gnw-gallery > ul > li a:hover .demo-gallery-poster {
    background-color: rgba(0, 0, 0, 0.5);
}

.gnw-gallery .justified-gallery > a > img {
    -webkit-transition: -webkit-transform 0.15s ease 0s;
    -moz-transition: -moz-transform 0.15s ease 0s;
    -o-transition: -o-transform 0.15s ease 0s;
    transition: transform 0.15s ease 0s;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
    height: 100%;
    width: 100%;
}

.gnw-gallery .justified-gallery > a:hover > img {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
}

.gnw-gallery .justified-gallery > a:hover .demo-gallery-poster > img {
    opacity: 1;
}

.gnw-gallery .justified-gallery > a .demo-gallery-poster {
    background-color: rgba(0, 0, 0, 0.1);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    -webkit-transition: background-color 0.15s ease 0s;
    -o-transition: background-color 0.15s ease 0s;
    transition: background-color 0.15s ease 0s;
}

.gnw-gallery .justified-gallery > a .demo-gallery-poster > img {
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    opacity: 0;
    position: absolute;
    top: 50%;
    -webkit-transition: opacity 0.3s ease 0s;
    -o-transition: opacity 0.3s ease 0s;
    transition: opacity 0.3s ease 0s;
}

.gnw-gallery .justified-gallery > a:hover .demo-gallery-poster {
    background-color: rgba(0, 0, 0, 0.5);
}

.gnw-gallery .video .demo-gallery-poster img {
    height: 48px;
    margin-left: -24px;
    margin-top: -24px;
    opacity: 0.8;
    width: 48px;
}

.demo-gallery.dark > ul > li a {
    border: 3px solid #04070a;
}

.home .gnw-gallery {
    padding-bottom: 80px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* 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.4); /* Black w/ opacity */
}

/* Modal Content */
#embed-link-modal {
    display: none;
    position: fixed;
    padding-top: 0;
    left: 50%;
    top: 100px;
    width: 400px;
    transform: translate(-50%, 0);
    height: 100%;
    overflow: auto;
    z-index: 999999;
}

#embed-link-modal .modal-content {
    background-color: #fefefe;
    margin: auto;
    border: 1px solid #888;
    width: 80%;
    padding: 3px;
}

/* The Close Button */
#embed-link-modal .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#embed-link-modal .close:hover,
#embed-link-modal .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#embed-url-input {
    width: 218px;
    padding: 5px
}

#copy-embed-link {
    margin-left: 5px;
    margin-right: 2px;
    height: 30px;
    display: inline-block;
}

.lg-outer .lg-dropdown {
    right: auto;
    left: 0;
}

.lg-outer .lg-dropdown:after {
    right: auto;
    left: 17px;
}

@media screen and (max-width: 340px) {
    .lg-toolbar .lg-icon {
        width: 43px;
    }
}

.lg-outer .lg-thumb-item {
    border-radius: 0;
}

    .lg-outer .lg-thumb-item.active,
    .lg-outer .lg-thumb-item:hover {
        border-color: rgba(0, 128, 192, 1);
        border-width: 3px;
    }

.lg-outer.lg-pull-caption-up .lg-sub-html {
    -webkit-transition: bottom 0.25s ease;
    -o-transition: bottom 0.25s ease;
    transition: bottom 0.25s ease;
}

.lg-toolbar .lg-icon, .lg-counter-all {
    color: #555;
}

.lg-toolbar > .lg-icon:focus, .lg-toolbar > .lg-icon:active {
    color: #2f3237;
    outline: 2px solid rgb(47 50 55 / 85%);
    outline-offset: -5px;
    border-radius: 8px;
}

.lg-outer.lg-pull-caption-up.lg-thumb-open .lg-sub-html {
    bottom: 300px;
}

.lg-sub-html {
    background-color: rgba(0, 0, 0, 0.65);
    bottom: 0;
    color: #ddd;
    font-size: 16px;
    left: 0;
    padding: 10px 40px;
    position: relative;
    right: 0;
    text-align: center;
    z-index: 1080;
}

.lg-sub-html h4 {
    margin: 0;
    font-size: 13px;
    font-weight: bold;
}

.lg-sub-html p {
    font-size: 12px;
    margin: 5px 0 0;
}

.lg-outer .lg-thumb-item.active, .lg-outer .lg-thumb-item:hover {
    padding: 2px;
    border: solid 2px #fff;
}

.lg-outer .lg-thumb-item:hover {
    border-color: #777;
}

.lg-outer .lg-thumb-item {
    border-radius: 4px;
    border: 2px solid transparent;
    -webkit-transition: border-color 0.25s ease;
    -o-transition: border-color 0.25s ease;
    transition: border-color 0.25s ease;
}

check for other resolutions
@media (min-width: 768px)
.lg-outer .lg-thumb-item {
    border-radius: 4px;
    border: 2px solid transparent;
    -webkit-transition: border-color 0.25s ease;
    -o-transition: border-color 0.25s ease;
    transition: border-color 0.25s ease;
}

.lg-next, .lg-prev {
    background-color: rgba(0, 0, 0, 0.83);
    border-radius: 50%;
    color: #ccc;
    cursor: pointer;
    display: block;
    font-size: 22px;
    margin-top: -10px;
    padding: 8px 10px 9px;
    width: 42px;
    position: absolute;
    top: 50%;
    z-index: 1084;
    height: 42px;
    outline: none;
    border: none;
}

.lg-counter {
    color: #797676;
    display: inline-block;
    font-size: 16px;
    padding-left: 20px;
    font-weight: 500;
    padding-top: 12px;
    height: 47px;
    vertical-align: middle;
}

.lg-icon:focus-visible {
    color: #fff;
    border-radius: 50%;
    outline: none;
    border: 1px dashed #fff;
}

.lg-outer.lg-dropdown-active .lg-share {
    color: #777;
}

.lg-outer .lg-thumb-outer {
    background-color: #000;
}

.lg-toolbar {
    display: flex;
    justify-content: flex-end;
}

.lg-counter {
    position: absolute;
    left: 0;
}

.lg-video-play-button {
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.83);
    width: 132px;
    height: 132px;
}

.lg-video-play-button:focus-visible {
    border-radius: 50%;
    outline: none;
    border: 1px dashed #fff;
}

.lg-video-play-button:focus-visible svg {
	opacity: 1;
}