/*********************** Modal ************************/
.overlay_modal {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    z-index: 999; 
}

.modal_container {
    width: 50%;
    height: 610px;
    overflow-y: scroll;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--white);
    box-sizing: border-box;
}

/* width */
.modal_container::-webkit-scrollbar {
    width: 6px;
    border-radius: 6px;
}
  
/* Track */
.modal_container::-webkit-scrollbar-track {
    background: #f1f1f1;
}
  
/* Handle */
.modal_container::-webkit-scrollbar-thumb {
    background: var(--green);
}

.modal_container h4 {
    margin: 0;
    margin-top: 20px;
    font-size: 22px;
}

.modal_container .share {
    margin-bottom: 20px;
    margin-right: 20px;
}

.modal_container .modal_heading {
    display: flex;
    align-items: center;
    width: 100%;
    /* height: 50px; */
    background-color: var(--green);
    color: var(--white);
    padding: 15px;
    box-sizing: border-box;
    border-radius: 5px;
    margin: 0;
    margin-bottom: 20px;
}

.modal_container p {
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 0;
}

.modal_container p:last-of-type {
    margin-bottom: 0;
}

.modal_container p i {
    width: 18px;
    display: flex;
    justify-content: center;
    margin-right: 10px;
}

.modal_opening {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal_opening .thumbnail {
    height: 250px;
    width: calc((100% - 20px) / 2);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.modal_opening .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.modal_opening .description {
    margin-top: 0;
    width: calc((100% - 20px) / 2);
}

.modal_opening .thumbnail .category_banner {
    position: absolute;
    background-color: var(--orange);
    padding: 10px 20px;
    top: 15px;
    right: 0;
    color: var(--white);
    font-weight: 500;
    border-radius: 5px 0 0 5px;
}

.close_button {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    width: 50px;
    height: 50px;
    color: var(--white);
}

.close_button i {
    position: absolute;
    font-size: 25px;
    top: 20px;
    right: 20px;
}

.share_list {
    display: flex;
    align-items: center;
}

.share_list h3 {
    margin-right: 20px;
}

.share_list i {
    color: var(--bronze);
    font-size: 18px;
    margin-right: 10px;
}

.modal_open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .modal_container {
        width: 75%;
    }
}

@media (max-width: 700px) {
    .modal_container {
        width: calc(100% - 40px);
    }
}

@media (max-width: 600px) {
    .modal_opening {
        display: flex;
        flex-direction: column;
    }
    
    .modal_opening .thumbnail {
        height: 200px;
        width: 100%;
    }
    
    .modal_opening .description {
        width: 100%;
        margin-top: 20px;
    }
}