.wm-lightbox {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #262626d6;

    z-index: 1000;

    display: none;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(3px);
}

.wm-lightbox-main-close-btn {
    position: absolute;
    right: 2em;
    top: 2em;
    width: 2em;
    height: 2em;
}

.wm-lightbox-content {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;

    margin-top: 70px;
    margin-top: min(100px, 10%);
}

.wm-lightbox-image-list {
    display: flex;
    flex-wrap: wrap;
}

.wm-lightbox-image-list-item {
    margin: .4em;

    flex-basis: 15.5%;
    flex-grow: 1;

    max-width: 15.5%;

    cursor: pointer;
}

.wm-lightbox-image-list-item-wrapper {
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 8px;
    overflow: hidden;

    position: relative;

    background-color: rgba(0,0,0,.1);
}

.wm-lightbox-image-list-item-wrapper2 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.wm-lightbox-image-list-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    backface-visibility: hidden;
    transition: transform 199ms ease-out;
}

.wm-lightbox-image-list-item:hover img {
    transform:scale(1.06);
}


.wm-lightbox-detail {
    max-width: 60vw;

    min-width: 600px;
    min-height: 400px;

    margin-left: auto;
    margin-right: auto;
}

.wm-lightbox-detail-canvas {
    padding-bottom: 56.25%;
    width: 100%;
    height: 0;
    position: relative;

    overflow: hidden;
    border-radius: 8px;
}

.wm-lightbox-detail-canvas-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.wm-lightbox-detail-canvas-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wm-lightbox-detail-description {
    margin-top: 1em;
    margin-bottom: 2em;
    line-height: 1.3;
    color: white;
    font-size: .95em;
    text-align: center;
    font-style: italic;
}

.wm-lightbox-detail-description:empty {
    display: none;
}




.wm-lightbox-controls {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: calc(2 * var(--content-padding));
    margin-bottom: calc(2 * var(--content-padding));
}

.wm-lightbox-control {

}

.wm-lightbox-control + .wm-lightbox-control {
    margin-left: 3rem;
}

.wm-lightbox-control-btn {
    display: block;
    width: 2em;
    height: 2em;
    background: no-repeat center center;
    background-size: auto 75%;

    transform: scale(.9);
    transition: all 199ms ease-out;
    overflow: hidden;
}

.wm-lightbox-control-btn:hover{
    transform: scale(1);
}

.icon-menu,
.icon-close{
    color: white;
    font-size: 25px;
}


.wm-lightbox-control-state {
    font-size: 1.7em;
    font-weight: 900;
    color: white;
}
.gallery-icon-next{
    color: white;
    font-size: 30px;
    transform: rotate(270deg);
    display: block;
    font-weight: 700;
}

.gallery-icon-prev{
    color: white;
    font-size: 30px;
    transform: rotate(90deg);
    display: block;
    font-weight: 700;
}

@media (max-width: 1440px) {
    .wm-lightbox-image-list-item {
        flex-basis: 15%;
        max-width: 15%;
    }
}

@media (max-width: 992px) {
    .wm-lightbox-detail {
        max-width: 100%;
        min-width: initial;
    }

    .wm-lightbox-content {
        margin-top: 100px;
    }

    .wm-lightbox-image-list-item {
        flex-basis: 22%;
        max-width: 22%;
    }
}

@media (max-width: 480px) {
    .wm-lightbox-image-list-item {
        flex-basis: 44%;
        max-width: 46%;
    }
}
.gallery-mobile-navigation{
    display: none;
}
@media (max-width: 768px) {
    .gallery-mobile-navigation{
        position: absolute;
        display: flex;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        align-items: center;
    }
    
}

