/* Styling for the trigger link */
.open-modal-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff0000;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

/* Hidden modal overlay covering the screen */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

/* Displays the modal when the link is clicked */
.modal-overlay:target {
    display: flex;
}

/* The box inside holding the video */
.modal-box {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    padding: 10px;
    border-radius: 8px;
}

/* Close button positioning */
.close-modal-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff !important;
    font-size: 32px;
    text-decoration: none;
}

/* Makes the YouTube iframe responsive (16:9 ratio) */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}