/* Trigger Link */
#fmp_popup_trigger {
    float: left;
    margin-top: 30px;
    /* Adjust based on theme */
    margin-left: 20px;
    font-weight: bold;
}

#fmp_popup_trigger a {
    cursor: pointer;
    color: inherit;
    text-decoration: underline;
}

/* Modal Styles */
.fmp-popup-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.fmp-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Black w/ opacity */
}

.fmp-popup-content {
    position: relative;
    background-color: #000;
    margin: 5% auto;
    /* 5% from the top and centered */
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    /* Could be more or less, depending on screen size */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

/* The Close Button */
.fmp-popup-close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: -35px;
    cursor: pointer;
    z-index: 10000;
}

.fmp-popup-close:hover,
.fmp-popup-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.fmp-video-container {
    position: relative;
    width: 100%;
    /* Height is set inline */
}

/* Responsive Styles */
@media only screen and (max-width: 767px) {
    .fmp-popup-content {
        width: 95%;
        margin-top: 15%;
        margin-bottom: 60px;
        /* Space for bottom button */
    }

    .fmp-popup-close {
        top: auto;
        /* Unset top position */
        bottom: -50px;
        /* Position below the content */
        right: 0;
        left: 0;
        float: none;
        width: 100%;
        text-align: center;
        /* Center horizontally */
        font-size: 40px;
        /* Increase tap target size */
        background: transparent;
        padding: 5px 0;
    }
}