.ecc-popup-overlay {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

html:has(.ecc-popup-overlay:hover) {
    overflow: hidden;
}

.ecc-popup-content {
    background: #fff;
    padding: 30px;
    width: 100%;
    max-width: 90vw;
    margin: 5vh auto;
    position: absolute;
    border-radius: 8px;
    overflow-y: auto;
    left: 5vw;
    bottom: 0;
    height: calc(90vh - var(--headerHeight));
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecc-popup-content>*:not(.ecc-popup-close) {
    width: 100%;
}

.ecc-popup-trigger:not(:has(img)) {
    background: var(--e-global-color-primary);
    border-radius: 0;
    padding: 10px 20px;
    display: block;
    overflow: hidden;
}

.trigger-content {
    z-index: 2;
    color: var(--black);
    font-family: 'Give You Glory', serif;
    font-weight: 500;
    font-size: 30px;
    text-align: center;
}

.ecc-popup-trigger:not(:has(img))::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: var(--e-global-color-secondary);
    transition: all 0.3s;
    z-index: 0;
}

.ecc-popup-trigger:not(:has(img)):hover::before {
    left: 0;
}

.ecc-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--e-global-color-primary);
}

.ecc-popup-trigger:has(img),
.trigger-content:has(img),
.trigger-content img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.ecc-popup-wrapper:has(.trigger-content > img) {
    height: 100%;
}

.ecc-popup-trigger:has(img):hover {
    transform: translateY(-20px);
}

.trigger-content img {
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--black);
}

@media screen and (max-width: 1024px) {
    .ecc-popup-content {
        height: calc(100% - (140px + (2 * 20px)));
        align-items: flex-start;
        max-width: 99vw;
        width: 100%;
        left: 0.5vw;
        margin: 0.5vw auto;
        padding: 30px 0;
    }
}
