.c-pop-up {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: white;

    transition: .5s all;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    flex-direction: column;
    gap: 24px;
}
.c-pop-up.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.c-pop-up__inner {
    padding: 64px 24px;
    background-color: #FAF8F4;
    text-align: center;
    max-width: 510px;
    width: 100%;
    position: relative;
    min-height: 424px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: url(#Mask);
}


.c-pop-up__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 12px;
}
.c-pop-up__content h2 {
    color: #322A2B;
    font-size: 36px;
    padding-bottom: 0;
}
.c-pop-up__text {
    padding: 12px 16px;
    width: 100%;
}

.c-pop-up__content p,
.c-pop-up__text {
    color: #322A2B;
    line-height: 28px;
    font-size: 18px;
}

.c-pop-up__close {
    line-height: 0;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    pointer-events: none;
}
.c-pop-up__close-container {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    height: 40px;
    width: 40px;
    padding: 16px;
    display: flex;
    background-color: rgba(0,0,0,0.2);
    border-radius: 100% 100%;
    align-items: center;
    justify-content: center;
}

.c-pop-up__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 50%;
}

/* Has BG Image */
.c-pop-up__inner.has-bg-image {
    background-color: #322A2B;
}

.c-pop-up__inner.has-bg-image h2 {
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 1);
}
.c-pop-up__inner.has-bg-image .c-pop-up__text {
    color: white;
    position: relative;
}
.c-pop-up__inner.has-bg-image .c-pop-up__text p {
    color: white;
}
.c-pop-up__inner.has-bg-image .c-pop-up__close {
    filter: invert(1);
}

/* BG Colors */
.c-pop-up__inner.is-dark-brown-bg {
    background-color: #322a2b;
}
.c-pop-up__inner.is-dark-brown-bg h2 {
    color: #FFFFFF;
}
.c-pop-up__inner.is-dark-brown-bg .c-pop-up__text,
.c-pop-up__inner.is-dark-brown-bg p {
    color: #FFFFFF;
}
.c-pop-up__horizontal-pop-up:has(.c-pop-up__inner.is-dark-brown-bg) .c-pop-up__close-container,
.c-pop-up:has(.c-pop-up__inner.is-dark-brown-bg) .c-pop-up__close-container {
    filter: invert(1);
}


.c-pop-up__inner.is-green-light-bg {
    background-color: #a5bd96;
}

.c-pop-up__inner.is-green-light-bg h2 {
    color: #102b30;
}
.c-pop-up__inner.is-green-light-bg .c-pop-up__text,
.c-pop-up__inner.is-green-light-bg p {
    color: #322a2b;
}

.c-pop-up__inner.is-tan-paler-bg {
    background-color: #faf8f4;
}


/* Custom BG Colors */
.c-pop-up__inner.has-custom-color h2,
.c-pop-up__inner.has-custom-color .c-pop-up__text,
.c-pop-up__inner.has-custom-color p {
    color: inherit;
}


/* Horizontal Styles */
.c-pop-up__horizontal-pop-up {
    display: flex;
    flex-direction: row;
    justify-content: center;
    max-width: 1020px;
    position: relative;
    width: 100%;
}
.c-pop-up__horizontal-pop-up-flipped {
    flex-direction: row-reverse;
}

.c-pop-up__horizontal-pop-up-image {
    height: 100%;
    max-width: 510px;
    object-fit: cover;
    width: calc(50% + 5px);
    clip-path: url(#Mask);
    position: relative;
    right: -5px;
}
.c-pop-up__horizontal-pop-up-flipped .c-pop-up__horizontal-pop-up-image {
    left: -5px;
}
.c-pop-up__horizontal-pop-up .c-pop-up__inner {
    width:50%;
    z-index: 1;
}
.c-pop-up__horizontal-pop-up .c-pop-up__close-container {
    top: 10px;
    right: 16px;
}

/* Single Image */
.c-pop-up__single-image {
    max-width: 900px;
    width: fit-content;
    height: fit-content;
    max-height: 500px;
}
.c-pop-up__single-image .c-pop-up__horizontal-pop-up-image {
    width: 100%;
    max-width: calc(100vw - 24px);
}
.c-pop-up__single-image .c-pop-up__close-container {
    filter: invert(0);
    background-color: rgba(0, 0, 0, 0.6);
}
.c-pop-up__single-image .c-pop-up__close {
    filter: invert(1);
}
.c-pop-up__single-image .c-pop-up__horizontal-pop-up-mobile-image {
    object-fit: contain;
    width: fit-content;
    height: 100%;
    max-width: calc(100vw - 24px);
}
.c-pop-up__single-image-link {
    display: contents;
}


/* Responsive */
@media only screen and (min-width: 800px) {
    .c-pop-up__single-image .c-pop-up__horizontal-pop-up-mobile-image {
        display: none;
    }
}
@media only screen and (max-width: 800px) {
    .c-pop-up__inner {
        width:calc(100% - 24px);
    }
    .c-pop-up__close-container {
        top: 8px;
        right: 8px;
    }
    .c-pop-up__horizontal-pop-up {
        flex-wrap: wrap;
        max-width: 510px;
        width:calc(100% - 24px);
    }
    .c-pop-up__horizontal-pop-up-image {
        width: 100%;
        height: 300px;
        left: 0;
        right: 0;
    }
    .c-pop-up__horizontal-pop-up .c-pop-up__inner {
        width: 100%;
    }
    .c-pop-up__horizontal-pop-up .c-pop-up__close-container {
        top: 12px;
        right: 12px;
    }
    .c-pop-up__horizontal-pop-up .c-pop-up__close-container,
    .c-pop-up__horizontal-pop-up:has(.c-pop-up__inner.is-dark-brown-bg) .c-pop-up__close-container {
        filter: invert(0);
        background-color: rgba(0,0,0,0.6);
    }
    .c-pop-up__horizontal-pop-up .c-pop-up__close {
        filter: invert(1);
    }
    .c-pop-up__single-image .c-pop-up__horizontal-pop-up-image {
        display: none;
    }
    .c-pop-up__single-image .c-pop-up__horizontal-pop-up-mobile-image {
        display: block;
    }
    .c-pop-up__single-image {
        display: block;
        max-height: 800px;
        object-fit: contain;
        width: fit-content;
        max-width: unset;
    }
    .c-pop-up__single-image .c-pop-up__horizontal-pop-up-mobile-image {
        max-width: 510px;
        width: 100%;
        max-height: calc(100vh - 48px);
    }
}
@media only screen and (max-width: 499px) {
    .c-pop-up__close-container {
        height: 35px;
        width: 35px;
    }
    .c-pop-up__inner {
        padding:48px 12px;
        min-height: unset;
    }
    .c-pop-up__content {
        gap: 12px;
    }
    .c-pop-up__inner h2 {
        font-size: 32px;
    }
    .c-pop-up__content p, .c-pop-up__text {
        font-size: 16px;
        line-height: 24px;
    }
    .c-pop-up__single-image {
        max-height: 700px;
    }
    .c-pop-up__single-image .c-pop-up__horizontal-pop-up-mobile-image {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }
}