.easy-album-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
}

.easy-album-gallery .easy-album-gallery-item {
    display: inherit;
    position: relative;
    overflow: hidden;
}

.easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-content {
    background: black;
    text-align: center;
    min-height: 58px;
    z-index: 1;
}
.easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    display: grid;
    text-align: center;
    background: #00000024;
    opacity: 0;
    transition: 0.3s all;
}

.easy-album-gallery .easy-album-gallery-item:hover .easy-album-gallery-item-overlay {
    opacity: 1;
}

.easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-overlay span.plus-sign,
.easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-content h1 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    display: block;
}

.easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-overlay span.plus-sign {
    color: white;
    font-size: 50px;
    cursor: pointer;
}

.easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-content h1 {
    color: #fff !important;
    margin: 15px;
}

.easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-content p {
    word-wrap: break-word;
}

.easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-image {
    display: inline-block;
    background: transparent;
    position: relative;
    line-height: 0;
    min-height: 240px;
}

.easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 275px;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
    display: block;
    margin: auto;
}

.easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-inner-count {
    position: absolute;
    top: 0px;
    right: 0;
    background: #ffffff;
    color: green;
    width: 40px;
    height: 40px;
    text-align: center;
    border-bottom-left-radius: 40%;
    align-items: center;
    display: grid;
    font-weight: 500;
    font-size: 14px;
    line-height: 0;
}

.eag-popup-content {
    position: fixed;
    top: 0px;
    left: 0;
    padding: 20px;
    background-color: #0000009c;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
}

.eag-popup-content h2 {
    margin-top: 0;
    color: #fff !important;
}
.eag-close-btn {
    margin-top: 10px;
    position: fixed;
    z-index: 999999;
    top: 22px;
    right: 0;
    background: red;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    color: white;
    font-size: 28px;
    line-height: 0;
    padding-top: 20px;
    cursor: pointer;
}
.eag-popup-content.show {
    display: block;
}

.eag-gallery-item {
    position: absolute !important;
    text-align: left;
    width: fit-content;
    left: 0;
    top: 0;
    margin: auto;
    right: 0;
    bottom: 0;
    max-height: fit-content;
    display: flex;
    flex-direction: row-reverse;
    background: black;
    column-count: 2;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
    max-width: 70%;
}

.eag-gallery-item::after {
    content: "";
    display: block;
    clear: both;
}
.eag-gallery-item div {
    max-width: 650px;
    color: #fff;
    padding: 10px;
    text-align: left;
    overflow: auto;
    height: 100%;
    padding: 20px 25px;
}
.eag-gallery-item div:not(.content-box-empty){
    min-width: 50%
}
.eag-gallery-item div h2 {
    margin: 0 0 20px;
}
.content-box-empty div {
    display: none;
}
.eag-gallery-item div p {
    margin: 10px 0px;
}

.eag-gallery-item div.lower-img-height {
    overflow: hidden;
}

.eag-gallery-item > img {
    height: auto;
    text-align: left;
    max-height: 100%;
    max-width: 50%;
}

.eag-gallery-item:not(.is-selected) {
    display: none;
}

/* FLICKTY CSS */
.flickity-enabled {
    position: fixed !important;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #0000003d;
}

.flickity-viewport {
    overflow: visible !important;
    position: fixed !important;
    height: 100% !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: block;
}

.flickity-page-dots {
    bottom: 10px !important;
}

.flickity-prev-next-button {
    background: #040404 !important;
    border-radius: 0 !important;
    padding: 5px;
}
.flickity-prev-next-button.previous {
    transform: rotate(45deg) !important;
}
.flickity-prev-next-button svg .arrow {
    fill: #c1c1c1;
    transform: rotate(-43deg) !important;
}

.flickity-prev-next-button.next {
    transform: rotate(225deg) !important;
}

.flickity-prev-next-button svg {
    position: absolute;
    left: 10px !important;
    top: 8px !important;
    width: 21px !important;
    height: 44px !important;
    bottom: 0;
}
.eag-gallery-item.content-box-empty {
    background: none;
}
.eag-gallery-item.content-box-empty > img {
    margin: auto;
}

@media screen and (max-width: 767px) {
    .eag-gallery-item {
        display: block;
        width: 100%;
        columns: unset;
        background: transparent;
        margin: 20px;
        max-height: 100%;
        overflow: auto;
        max-width: 95%;
    }
    .eag-gallery-item div {
        width: 100%;
        float: none;
        margin: auto;
        height: auto;
        max-width: 100%;
    }
    .eag-gallery-item > img {
        max-width: 100%;
        float: none;
        padding: 0 20px;
    }
}

/* Shine */
.easy-album-gallery-item:hover img {
    transform: scale3d(1.1, 1.1, 1.1);
}

.easy-album-gallery-inner-wrap .side-meta {
    position: absolute;
    right: 7px;
    top: -195px;
    bottom: 0;
    margin: auto;
    display: grid;
    height: fit-content;
}
.easy-album-gallery-inner-wrap .side-meta span {
    background: black;
    font-size: 16px;
    padding: 0 8px;
    margin: 0 0 5px;
    font-weight: bold;
    border-radius: 5px;
    color: #c1c1c1;
}
.easy-album-gallery-inner-wrap .side-meta span:hover{
    color: #fff;
}

@media screen and (max-width: 768px) {
    .easy-album-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-content {
        margin-top: -1px;
    }
}

@media screen and (max-width: 480px) {
    .easy-album-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
    .easy-album-gallery .easy-album-gallery-item .easy-album-gallery-item-content {
        margin-top: -1px;
    }
}