figure,
figcaption {
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
}

.my-gallery figcaption {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-height: 100%;
    overflow: auto;
    padding: 30px 20px 10px!important;
    color: #fff;
    text-align: center;
    font-size: smaller;
    background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .3) 70%, transparent);
    margin: 0;
}

.lightbox-gallery figure,
.lightbox-gallery figcaption,
.lightbox-gallery figure img {
    display: block;
    margin: 0;
    padding: 0;
}

.lightbox-gallery figure {
    cursor: pointer;
    position: relative;
}

.lightbox-gallery figure:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.lightbox-gallery figure:after {
    content: '+';
    position: absolute;
    font-weight: bold;
    text-align: center;
    left: 50%;
    top: 50%;
    width: 2rem;
    height: 2rem;
    margin-top: -1rem;
    margin-left: -1rem;
    line-height: 2rem;
    display: block;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.lightbox-gallery figure:hover:before {
    opacity: 1;

}

.lightbox-gallery figure:hover:after {
    opacity: 1;

}

.lightbox-gallery figcaption {
    position: absolute;
    bottom: 0;
}

.lightbox-popup {
    background: rgba(30, 30, 30, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 3rem 3rem 3rem;
}

.lightbox-popup .lightbox-img {
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.2));
}

.lightbox-popup .lightbox-img img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    margin: 0 auto;
}


.lightbox-popup .close,
.lightbox-popup .prev,
.lightbox-popup .next {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #000;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-popup .close {
    top: 0.5rem;
    right: 0.5rem;
}

.lightbox-popup .prev {
    top: 50%;
    margin-top: -1rem;
    left: 0.5rem;
}

.lightbox-popup .next {
    top: 50%;
    margin-top: -1rem;
    right: 0.5rem;
}

.lightbox-popup .close svg,
.lightbox-popup .prev svg,
.lightbox-popup .next svg {
    width: 20px;
    height: 20px;
}

.lightbox-popup .close path,
.lightbox-popup .prev path,
.lightbox-popup .next path {
    fill: #fff;
}

.lightbox-popup .capation {
    color: #fff;
    text-align: center;
    top: 0;
    padding: 1rem;
    font-size: 14px;
}

.lightbox-popup .nav {
    color: #fff;
    text-align: center;
    bottom: 0;
    padding: 1rem 0;
    font-size: 14px;
}

.lightbox-popup .thumbs {
    position: absolute;
    bottom: 0;
    display: flex;
}

.lightbox-popup .thumbs > div {
    width: 60px;
    padding: 5px;
}

.lightbox-popup .thumbs img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

.is-cropped figure {
    height: 100%;
}

.is-cropped figure a,
.is-cropped figure img {
    width: 100%;
    height: 100% !important;
    flex: 1;
    -o-object-fit: cover !important;
    object-fit: cover !important;
}