

/* 大標題底圖 */
.diary-container {
    /* background-image: url('{pboot:sitetplpath}/gs/images/pic10.jpg'); */
    background-size: cover;
    background-repeat: no-repeat;
    padding: 20px;
    color: rgb(255, 255, 255);
    text-align: center;
    border-radius: 5px;
}
/* ------------------------------------------------- */
/* 預覽圖 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    }
.modal-content {
    margin: 0% auto;
    padding: 30px;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.795);
    text-align: center;
    }
.preview-image {
    max-height: calc(100% - 20px);
    max-width: 100%;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    }
.preview-description {
    max-width: 500px;
    margin: 0 auto;
    color: white;
    text-align: center;
    margin-top: 10px;
    }
@media (max-width: 768px) {
.modal-content {
    margin: 12% auto;
}
}

/* ------------------------------------------------- */
/* 分享到社群 */
.styled-link {
    display: inline-block;
    /* margin: 5px;
    padding: 2px 15px; */
    /* background-color: #4267B2;
    color: white; */
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

/* .styled-link:hover {
    background-color: #365899;
} */
.styled-link img {
    vertical-align: middle;
    margin-top: -4px;
    margin-left: 3px;
    border-radius: 5px;
}
/* 分享按鈕靠右 */
/* .button-container {
    text-align: right;
}
.button-container a {
    font-size: 14px;
} */


.modal-share {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-share-content {
    background-color: #fefefe;
    margin: 15px auto 20px;
    padding: 20px;
    border: 1px solid #888;
    /* width: 80%; */
    text-align: left;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .modal-share-content {
        width: 650px;
    }
}
@media (max-width: 769px) {
    .modal-share-content {
        width: 95%;
    }
}

.close-share {
    color: #aaa;
    float: right;
    font-size: 50px;
    /* font-weight: bold; */
    margin-top: -30px;
}

.close-share:hover,
.close-share:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.custom-image {
    height: 120px;
    object-fit: cover;
}

/* ------------------------------------------------- */