.pgg_backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 666666666666666624;
}

.pgg_modal {
    background: #fff;
    border-radius: 20px 20px 0 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    overflow: hidden;
    box-sizing: border-box;
}

@media screen and (min-width: 768px) {
    .pgg_modal {
        max-height: 500px;
        height: 500px;
        width: 660px;
        top: 50%;
        left: 50%;
        right: unset;
        bottom: unset;
        transform: translate(-50%, -50%);
        border-radius: 20px 20px 20px 20px;
    }
}

.pgg_modal-paginator-nav, .pgg_modal-close, .pgg_modal-paginator-middle {
    border: none;
    outline: none;
    background: transparent;
    color: #999;
    width: 32px;
    height: 32px;
    position: relative;
    cursor: pointer;
    padding: 0;
    z-index: 1;
}

.pgg_modal-paginator-nav::before, .pgg_modal-close::before, .pgg_modal-paginator-nav::after, .pgg_modal-close::after {
    content: '';
    width: 10px;
    height: 1px;
    background: currentColor;
    position: absolute;
}

.pgg_modal-close {
    position: absolute;
    top: 15px;
    right: 10px;
}

.pgg_modal-close::before {
    top: 50%;
    left: 11px;
    transform: rotateZ(45deg);
}

.pgg_modal-close::after {
    top: 50%;
    left: 11px;
    transform: rotateZ(135deg);
}

.pgg_modal-paginator-middle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: space-evenly;
    -ms-flex-pack: space-evenly;
    justify-content: space-evenly;
}

.pgg_modal-paginator-middle .pgg_modal-paginator-lines {
    background: currentColor;
    width: 20px;
    height: 1px;
    border-radius: 100%;
}

.pgg_modal-heading {
    font-family: var(--main-fonts-bold);
    font-weight: 500;
    font-size: 20px;
    line-height: 32px;
    padding: 0 50px 15px 20px;
    margin: 0;
    color: #000;
}

@media screen and (min-width: 768px) {
    .pgg_modal-heading {
        padding: 0 40px;
        max-width: 300px;
        font-size: 24px;
        line-height: 34px;
    }
}

.pgg_modal-image {
    width: 100%;
    display: block;
}

@media screen and (min-width: 768px) {
    .pgg_modal-image {
        display: none;
    }
}

.pgg_modal-image_big {
    display: none;
}

@media screen and (min-width: 768px) {
    .pgg_modal-image_big {
        display: block;
        position: absolute;
        height: 430px;
        top: 0;
        right: 0;
    }
}

.pgg_modal-content {
    max-height: calc(80vh - 70px - 77px);
    overflow: auto;
}

.pgg_modal-content::-webkit-scrollbar {
    width: 2px;
}

@media screen and (min-width: 768px) {
    .pgg_modal-content {
        max-height: calc(100% - 70px - 74px);
    }
}

.pgg_modal-body {
    font-family: var(--main-fonts);
    font-size: 14px;
    line-height: 20px;
    padding: 15px 20px 85px;
    margin: 0;
    color: #000;
}

@media screen and (min-width: 768px) {
    .pgg_modal-body {
        padding: 20px 40px 85px;
        max-width: 340px;
    }
}

.pgg_modal-body .pgg_modal-links_container {
    display: flex;
    flex-flow: column wrap;
    max-height: 250px;
    margin-top: 5px;
}

.pgg_modal-body .pgg_modal-links_container .pgg_modal-link {
    text-underline-offset: 3px;
    font-size: 16px;
    line-height: 35px;
    font-family: var(--main-fonts);
    width: 140px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (min-width: 768px) {
    .pgg_modal-body .pgg_modal-links_container {
        margin-top: 20px;
    }
}

.pgg_modal-paginator {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 20px;
    box-shadow: 0 2px 30px -1px rgba(0, 0, 0, 0.15);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .9);
}

.pgg_modal-paginator-nav:first-of-type::before {
    bottom: 12px;
    left: 11px;
    transform: rotateZ(45deg);
}

.pgg_modal-paginator-nav:first-of-type::after {
    top: 12px;
    left: 11px;
    transform: rotateZ(135deg);
}

.pgg_modal-paginator-nav:last-of-type::before {
    top: 12px;
    left: 11px;
    transform: rotateZ(45deg);
}

.pgg_modal-paginator-nav:last-of-type::after {
    bottom: 12px;
    left: 11px;
    transform: rotateZ(135deg);
}

.pgg_modal-paginator-pages {
    font-family: var(--main-fonts);
    font-size: 16px;
    line-height: 24px;
    color: #999;
    padding: 20px;
}

.pgg_modal-paginator-current_page {
    font-family: var(--main-fonts-bold);
    font-weight: 500;
}

@media screen and (min-width: 768px) {
    .pgg_modal-paginator-pages {
        padding: 20px 40px;
    }
}

.pgg_modal-scroll_disable {
    overflow: hidden;
}

.pgg_modal-link {
    color: var(--primary-color);
    text-decoration: underline var(--primary-color) dotted;
}

body .pgg_modal .pgg_modal-paginator-current_page {
    color: var(--primary-color);
}

/*purple theme*/

.pgg_modal[data-project=joker],
.pgg_modal[data-project=purple] {
    background: #1E0640;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px 5px 0 0;
}

@media screen and (min-width: 768px) {
    .pgg_modal[data-project=joker],
    .pgg_modal[data-project=purple] {
        border-radius: 5px;
    }
}

.pgg_modal[data-project=joker] .pgg_modal-paginator,
.pgg_modal[data-project=purple] .pgg_modal-paginator {
    background: rgba(44, 3, 91, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.pgg_modal[data-project=joker] .pgg_modal-paginator-nav,
.pgg_modal[data-project=purple] .pgg_modal-paginator-nav {
    color: #8F00FF;
}

.pgg_modal[data-project=joker] .pgg_modal-paginator-middle,
.pgg_modal[data-project=purple] .pgg_modal-paginator-middle {
    color: #8F00FF;
}

.pgg_modal[data-project=joker] .pgg_modal-close,
.pgg_modal[data-project=purple] .pgg_modal-close {
    color: #8F00FF;
}

.pgg_modal[data-project=joker] .pgg_modal-heading,
.pgg_modal[data-project=purple] .pgg_modal-heading {
    color: #ffffff;
}

.pgg_modal[data-project=joker] .pgg_modal-body,
.pgg_modal[data-project=purple] .pgg_modal-body {
    color: #ffffff;
}

.pgg_modal[data-project=joker] .pgg_modal-paginator-pages,
.pgg_modal[data-project=purple] .pgg_modal-paginator-pages {
    color: #E3CBFF;
}

.pgg_modal[data-project=joker] .pgg_modal-paginator-current_page,
.pgg_modal[data-project=purple] .pgg_modal-paginator-current_page {
    color: #8F00FF;
}
