/**
 * Screen Reader Text (WordPress standard)
--------------------------------------------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/**
 * General
--------------------------------------------- */

.jpopup *,
.jpopup *::before,
.jpopup *::after {
    box-sizing: border-box;
}

.jpopup {
    position: fixed;
}

.jpopup.jpopup-modal {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 100000;
    /* wp admin bar is 99999 */
}

.jpopup.jpopup-slideup {
    bottom: 0;
    right: 0;
    width: auto;
    height: auto;
    margin: 0;
    z-index: 10;
}

.jpopup.fade-in {
    animation: fadeIn 0.3s;
}

.jpopup.fade-out {
    animation: fadeOut 0.3s;
}

.jpopup-overlay {
    width: 100%;
    height: 100%;
}

.jpopup-overlay.close-outside {
    cursor: pointer;
}

.jpopup-inner {
    cursor: auto;
}

.jpopup-content {
    max-width: calc(100vw - 10%);
    max-height: 80vh;
    margin: auto;
    overflow-y: auto;
}

.jpopup-admin-banner {
    padding: 10px 14px;
    margin: -24px -24px 16px -24px;
    background: #fff3cd;
    color: #664d03;
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-size: 13px;
    line-height: 1.3;
}

.jpopup-button {
    display: inline-block;
    font-family: Arial;
    font-size: 36px;
    font-weight: normal;
    line-height: 1;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    text-align: center;
    border: none;
    box-shadow: none;
    overflow: hidden;
    opacity: 0.75;
}

.jpopup-button:hover {
    cursor: pointer;
}

.jpopup-button:active,
.jpopup-button:focus,
.jpopup-button:hover {
    opacity: 1;
}

.jpopup-close {
    display: flex;
    position: relative;
    width: 20px;
    aspect-ratio: 1;
    margin-left: auto;
    margin-right: 4px;
    margin-top: 4px;
}

.jpopup-close::before,
.jpopup-close::after {
    background: #343434;
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    top: 50%;
    left: 0;
}

.jpopup-close:hover::before,
.jpopup-close:hover::after {
    background: #fff;
}

.jpopup-close::before {
    transform: rotate(45deg);
}

.jpopup-close::after {
    transform: rotate(-45deg);
}

.jpopup-prev,
.jpopup-next {
    position: fixed;
    top: 50%;
    transform: translate(0, -50%);
    cursor: pointer;
}

.jpopup-prev::before,
.jpopup-prev::after,
.jpopup-next::before,
.jpopup-next::after {
    content: '';
    display: block;
    width: 50px;
    height: 20px;
}

.jpopup-prev::before,
.jpopup-prev::after {
    border-left: 3px solid #fff;
}

.jpopup-prev::before {
    transform: rotate(-45deg);
}

.jpopup-prev::after {
    transform: rotate(45deg);
}

.jpopup-next::before,
.jpopup-next::after {
    border-right: 3px solid #fff;
}

.jpopup-next::before {
    transform: rotate(45deg);
}

.jpopup-next::after {
    transform: rotate(-45deg);
}

.jpopup-prev {
    left: 0;
    margin-left: 2%;
}

.jpopup-next {
    right: 0;
    margin-right: 2%;
}

/**
 * Styles
--------------------------------------------- */

/* Modal */

.jpopup-modal .jpopup-overlay {
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2%;
}

.jpopup-modal .jpopup-inner {
    display: block;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .13);
    border-radius: 3px;
    margin: auto;
    animation: wampumscalein 0.5s;
}

.jpopup-modal .jpopup-content {
    padding: 24px;
}

/* Slide Up */

.jpopup-slideup .jpopup-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;

}

.jpopup-slideup .jpopup-inner {
    position: relative;
    /* so wampumslideup works */
    min-width: 200px;
    width: 100%;
    max-width: calc(100vw - 10%);
    max-height: calc(100vh - 20%);
    animation: wampumslideup 0.5s;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .13);
    border-radius: 3px 3px 0 0;
}

.jpopup-slideup .jpopup-content {
    padding: 20px;
}

/**
 * Types
--------------------------------------------- */

/* Gallery */


.jpopup-gallery .jpopup-inner ::selection {
    background-color: transparent;
    color: inherit;
}

.jpopup.jpopup-gallery .jpopup-content {
    padding: 0;
    border-radius: 0;
    overflow: hidden;
}

.jpopup.jpopup-gallery img {
    display: block;
    padding: 0;
    margin: 0;
}

/**
 * Animations
--------------------------------------------- */

/* Scale In */
@-webkit-keyframes wampumscalein {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes wampumscalein {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide Up */
@-webkit-keyframes wampumslideup {
    0% {
        bottom: -100%;
    }

    100% {
        bottom: 0;
    }
}

@keyframes wampumslideup {
    0% {
        bottom: -100%;
    }

    100% {
        bottom: 0;
    }
}
