/* finish category style */
.finishe-posts-container {
    gap: 40px 10px !important;
    align-items: start !important;
    justify-content: center !important;
}

.finishe-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
}

h2.finishe-item-title {
    font-family: 'Jost' !important;
    color: #000 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 22px !important;
    padding-top: 22px !important;
    margin: 0px 27px 0px 27px !important;
    text-align: center !important;
}

.dollar-signs {
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 25.2px !important;
    font-family: 'Jost' !important;
    top: 0px !important;
    position: relative !important;
}

/* overlay */
.mfp-bg {
    z-index: 99998 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* wrap */
.mfp-wrap {
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mfp-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}


/* popup box */
.finish-popup-category {
    background: #fff !important;
    padding: 16px !important;
    position: relative !important;
    border-radius: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 0 !important;
}

.finish-popup-category img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 2px !important;
}

.mfp-content {
    width: 100% !important;
    max-width: 800px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

/* close button */
.finish-popup-category .mfp-close-mobile {
    display: none !important;
}

.mfp-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    font-size: 24px !important;
    color: #000 !important;
    opacity: 0.6 !important;
    cursor: pointer !important;
    z-index: 1 !important;
    background: none !important;
    border: none !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    padding: 4px 8px !important;
}

.mfp-close:hover {
    opacity: 1 !important;
}

@media (max-width: 769px) {
    .finishe-posts-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .finish-popup-category {
        padding: 30px 20px !important;
    }
}