@keyframes enwoke-moments-fadeup {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }

    100% {
        filter: brightness(1);
    }
}

.enwoke-moments-loader {
    background-color: rgba(255, 255, 255, 0.75);
    background-image: url(../img/loader.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0;
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 10000;
    transform: translate(-50%, 0);
    width: 128px;
    height: 128px;
    transition: 0.5s ease opacity;
    user-select: none;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.75);
    border-radius: 50%;
}

.enwoke-moments-loader.show {
    opacity: 1;
}

.enwoke-moments-board {
    text-align: center;
    min-height: 150px;
}

.enwoke-moments-board.grid-layout .posts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 5px;
}

.enwoke-moments-board .posts-list {
    position: relative;
    text-align: left;
    height: 80px;
}

.enwoke-moments-board .posts-list .empty-result {
    font-size: 2em;
    text-align: center;
    margin: 2em;
}

.enwoke-moments-board .posts-list .post {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    animation: enwoke-moments-fadeup 1s;
    margin: 0;
}

.enwoke-moments-board.justified-layout .posts-list .post {
    position: absolute;
    left: 0;
    top: 0;
}

.enwoke-moments-board .posts-list .post .post-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.enwoke-moments-board.grid-layout .posts-list .post {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
}

.enwoke-moments-board.grid-layout .posts-list .post .post-inner {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.enwoke-moments-board .posts-list .post .post-inner {
    width: 100%;
    height: 100%;
}

.enwoke-moments-board .posts-list .post .post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7));
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    box-sizing: border-box;
}

.enwoke-moments-board .posts-list .post .network-icon {
    font-size: 20px;
}

.enwoke-moments-board .posts-list .post-text {
    background-color: #9AC989;
    color: #fff;
    padding: 20px;
    position: absolute;
    left: 0;
    top: 0;
    animation: enwoke-moments-fadeup 1s;
    overflow: hidden;
}

.enwoke-moments-board .posts-list .post-text.post-text-second {
    background-color: #89C9C5;
}

.enwoke-moments-board .posts-list .post-text.post-text-third {
    background-color: #C98994;
}

.enwoke-moments-board .posts-list .post-text.post-text-fourth {
    background-color: #89B2C9;
}

.enwoke-moments-board .posts-list .post-text .author-name a {
    font-size: 1em;
    color: #fff;
    text-decoration: none;
    border: none;
}

.enwoke-moments-board .posts-list .post-text .author-name i {
    font-size: 2em;
    vertical-align: middle;
    margin: 0 10px 0 0;
}

.enwoke-moments-board .posts-list .post-text .post-content {
    font-size: 1em;
    color: #fff;
    margin: 20px 0 0;
}

.enwoke-moments-board .load-more {
    color: #fff;
    background-color: #D47F81;
    display: none;
    margin: 30px auto;
    cursor: pointer;
    padding: 10px 20px;
    text-transform: uppercase;
    transition: 0.3s ease all;
}

.enwoke-moments-board.loadmore-block .load-more {
    width: 100%;
    margin: 0 auto;
}

.enwoke-moments-dialog-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
}

.enwoke-moments-dialog {
    width: 70vw;
    height: 43vw;
    background-color: #fff;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    outline: none;
}

.enwoke-moments-dialog-backdrop,
.enwoke-moments-dialog {
    transition: 0.5s ease all;
}

.enwoke-moments-dialog-backdrop.show,
.enwoke-moments-dialog.show {
    opacity: 1;
    pointer-events: initial;
}

.enwoke-moments-dialog .enwoke-moments-dialog-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.enwoke-moments-dialog .enwoke-moments-dialog-inner {
    padding: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    box-sizing: content-box;
}

.enwoke-moments-dialog .author-info {
    display: flex;
    align-items: center;
    margin: 0 0 30px;
    width: 100%;
    border: none;
    padding: 0;
}

.enwoke-moments-dialog .author-picture {
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex: 0 0 auto;
    margin: 0 20px 0 0;
}

.enwoke-moments-dialog .author-name {
    color: #000;
    font-size: 1.2rem;
    flex: 0 0 auto;
    width: 180px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.enwoke-moments-dialog .media-previewer {
    width: calc(65% - 30px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px;
    margin-right: 0;
}

.enwoke-moments-dialog .media-previewer .media-image {
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 100%;
    height: 100%;
}

.enwoke-moments-dialog .media-previewer .embed-video {
    background-color: #000;
    max-height: 100%;
}

.enwoke-moments-dialog .media-previewer .youtube-video {
    background-color: #000;
    width: 100%;
    height: 100%;
}

.enwoke-moments-dialog .post-details {
    width: calc(32% - 30px);
    color: #000;
    margin: 30px;
}

.enwoke-moments-dialog .post-details .post-content {
    font-size: 12px;
    width: 100%;
}

.enwoke-moments-dialog video::-internal-media-controls-download-button {
    display: none;
}

.enwoke-moments-dialog video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

.enwoke-moments-dialog video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
    /* Adjust as needed */
}

.enwoke-moments-dialog .close-button {
    position: absolute;
    right: 15px;
    top: -15px;
    color: #666;
    cursor: pointer;
}

.enwoke-moments-dialog .close-button::before {
    content: '×';
    font-size: 3rem;
    font-weight: 300;
}

.enwoke-moments-dialog .nav-button {
    cursor: pointer;
    width: 20px;
    height: 60px;
    position: absolute;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 300;
    opacity: 0;
    transition: 0.3s ease opacity;
    font-size: 0.6rem;
}

.enwoke-moments-dialog:hover .nav-button {
    opacity: 1;
}

.enwoke-moments-dialog .nav-button .dashicons,
.enwoke-moments-dialog .nav-button .dashicons-before:before {
    font-size: 2.5em;
    height: 60px;
    width: 15px;
    line-height: 60px;
}

.enwoke-moments-dialog .prev-button .dashicons,
.enwoke-moments-dialog .prev-button .dashicons-before:before {
    margin-left: -11px;
}

.enwoke-moments-dialog .next-button .dashicons,
.enwoke-moments-dialog .next-button .dashicons-before:before {
    margin-left: -6px;
}

.enwoke-moments-dialog .prev-button {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.enwoke-moments-dialog .next-button {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.enwoke-moments-dialog .reservation-button {
    display: block;
    text-transform: uppercase;
    padding: 10px 30px;
    margin: 30px 0 0;
    text-align: center;
    color: #fff;
    background-color: #89B2C9;
    transition: 0.3s ease all;
}

.enwoke-moments-dialog .reservation-button:hover,
.enwoke-moments-dialog .reservation-button:active {
    background-color: #3491C5;
}

.enwoke-moments-categories {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}

.enwoke-moments-categories.show {
    display: flex;
}

.enwoke-moments-categories .moments-category {
    margin: 0 50px 0 0;
    padding: 10px 30px;
    background-color: #0c76b4;
    transition: 0.5s ease all;
    cursor: pointer;
    text-transform: uppercase;
    user-select: none;
    min-width: 160px;
    text-align: center;
    font-size: 1.2em;
    animation: enwoke-moments-fadeup 0.5s;
    border: 2px solid rgba(0, 0, 0, 0);
}

.enwoke-moments-categories .moments-category:hover,
.enwoke-moments-categories .moments-category.active {
    filter: brightness(1.2);
}

.enwoke-moments-categories .moments-category.active {
    box-shadow: 0 0 5px #fff 2px;
    border-color: rgba(0, 0, 0, 0.5);
}

.enwoke-moments-categories .moments-category:active {
    filter: brightness(0.8);
}

.enwoke-moments-categories .moments-category:last-child {
    margin: 0;
}

@media screen and (max-width: 800px) {
    .enwoke-moments-board .posts-list {
        height: auto !important;
    }

    .enwoke-moments-board .posts-list .post,
    .enwoke-moments-board .posts-list .post-text {
        position: initial;
        width: 100% !important;
        height: auto !important;
    }

    .enwoke-moments-board .posts-list .post img,
    .enwoke-moments-board .posts-list .post-text {
        width: 100% !important;
        height: auto !important;
    }
}