/* ===== Overlay ===== */

.k2h-sandbach-overlay-91{

    display:none;
    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    z-index:999999;

    background:rgba(0,0,0,0.82);

    justify-content:center;
    align-items:center;

    /* IMPORTANT */
    padding:40px 20px;

    box-sizing:border-box;
}

/* ===== Popup Box ===== */

.k2h-sandbach-box-91{

    position:relative;

    max-width:100%;

    display:flex;
    flex-direction:column;
    align-items:center;

    max-height:calc(100vh - 80px);

    overflow:visible;

    box-sizing:border-box;
}

/* ===== Poster ===== */

.k2h-sandbach-poster-91{

    display:block;

    width:auto;

    max-width:min(540px, 90vw);

    /* leaves room below for the vote button */
    max-height:calc(100vh - 170px);

    /* fixes a flexbox quirk that was causing the unwanted scrollbar */
    min-height:0;

    object-fit:contain;

    border-radius:10px;

    box-shadow:0 10px 35px rgba(0,0,0,0.6);
}

/* ===== Close Button ===== */

.k2h-sandbach-close-91{

    position:absolute;

    top:-16px;
    right:-16px;

    width:40px;
    height:40px;

    background:#ffffff;
    color:#000000;

    border:none;

    border-radius:50%;

    text-align:center;
    line-height:40px;

    font-size:28px;
    font-weight:bold;

    cursor:pointer;

    z-index:10;

    box-shadow:0 4px 12px rgba(0,0,0,0.4);
}

/* ===== Vote Now Button ===== */

.k2h-sandbach-vote-btn-91{

    display:block;

    margin:14px auto 0;

    width:fit-content;
    max-width:100%;

    flex-shrink:0;

    padding:14px 36px;

    background:linear-gradient(90deg, #f7941d, #ed1c24);

    color:#ffffff;

    font-family:inherit;
    font-size:20px;
    font-weight:800;
    letter-spacing:0.5px;
    text-align:center;
    text-decoration:none;
    text-transform:uppercase;

    border:2px solid #ffffff;
    border-radius:50px;

    box-shadow:0 6px 20px rgba(0,0,0,0.5);

    cursor:pointer;

    animation:k2h-sandbach-pulse-91 1.6s infinite;

    box-sizing:border-box;
}

.k2h-sandbach-vote-btn-91:hover{

    transform:scale(1.05);

    box-shadow:0 8px 24px rgba(0,0,0,0.6);
}

@keyframes k2h-sandbach-pulse-91{

    0%   { box-shadow:0 6px 20px rgba(237,28,36,0.5); }
    50%  { box-shadow:0 6px 28px rgba(237,28,36,0.9); }
    100% { box-shadow:0 6px 20px rgba(237,28,36,0.5); }
}

/* ===== Mobile ===== */

@media (max-width:768px){

    .k2h-sandbach-overlay-91{
        padding:30px 12px;
    }

    .k2h-sandbach-poster-91{

        max-width:92vw;

        max-height:calc(80vh - 60px);
    }

    .k2h-sandbach-close-91{

        top:-8px;
        right:-8px;

        width:36px;
        height:36px;

        line-height:36px;

        font-size:24px;
    }

    .k2h-sandbach-vote-btn-91{

        font-size:16px;

        padding:12px 28px;

        margin-top:10px;
    }
}