.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.popup-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1000px;
    max-height: 700px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 10px;
}

.popup-video-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.75); /* same as #1a1a1abf */
    z-index: 2;
    pointer-events: none;
}

.popup-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.popup-overlay {
    width: 90%;
    height: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.popup-overlay h1{
    font-size: 50px;
    font-weight: bolder;
    margin-bottom: 0;
}

.popup-overlay h2{
    font-size: 20px;
    font-weight: bolder;
    margin-top: 0;
}

.popup-image {
    max-width: 350px;
    width: 100%;
    margin: auto;
    margin-top: 0;
    margin-bottom: 20px;
}

.popup-button {
    display: block;
    max-width: 350px;
    padding: 12px 24px;
    background-color: #84b400;
    color: #3a3a3a;
    text-decoration: none; /* remove underline */
    text-align: center;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 20px auto 0 auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.popup-button:hover {
    background-color: #ffffff;
}


.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #fff;
    z-index: 3;
    cursor: pointer;
}

.close-btn:hover {
    color: #84b400;
}

@media (max-width: 900px) {

    .popup-overlay {
        width: 95%;
    }

    .popup-overlay h1{
        font-size: 26px;
        font-weight: bolder;
        margin-bottom: 10px;
    }

    .popup-overlay h2{
        font-size: 18px;
        font-weight: bolder;
        margin-top: 0;
    }

    .popup-image {
        max-width: 250px;
        width: 100%;
        margin: auto;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .popup-button {
        display: block;
        max-width: 350px;
        padding: 12px 24px;
        background-color: #84b400;
        color: #3a3a3a;
        text-decoration: none; /* remove underline */
        text-align: center;
        border-radius: 15px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        margin: 20px auto 0 auto;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        transition: background 0.3s;
    }
}