/* モーダルのスタイル */
.event-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 101; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    align-items: center; /* Center modal content vertically */
    justify-content: center; /* Center modal content horizontally */
    display: flex; /* Use flexbox for centering */
}

.event-modal .modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    width: 90%; /* Could be more or less, depending on screen size */
    max-width: 520px; /* Maximum width of the modal */
    border-radius: 8px; /* Rounded corners for the modal */
    position: relative; /* Required for positioning the close button */
}

.event-modal .close {
    color: #aaa;
    position: absolute; /* Position close button in top right */
    top: 10px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.event-modal .close:hover,
.event-modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.event-modal #modal-event-name {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 5px;
}
.event-modal #modal-current-date {
    font-size: 13px;
    margin-bottom: 15px;
}
#modal-event-description {
    font-size: 14px;
    
}
.event-modal .modal-event-link {
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    background: #f2f2f2;
    padding: 10px 12px;
    border-radius: 8px;
}
.event-modal .modal-event-link .dashicons {
    font-size: 12px;
    line-height: 1;
    width: auto;
    height: auto;
}
@media (max-width: 600px) {
    .event-modal .modal-content {
        padding: 5vw;
    }
    .event-modal #modal-event-name {
        font-size: 18px;
        max-width: calc(100% - 20px);
    }
}