#lightbox {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
}

#lightbox-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#lightbox-media-container {
    display: flex;
    justify-content: center;
    max-width: 98vw;
    max-height: 98vh;
    flex: 1; 
    flex-flow: nowrap;
}

#media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1.25;
    max-height: 75vh;
}

#media-container img, #media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#lightbox-text {
    color: white;
    flex: 1;
    padding: 20px;
    text-align: left;
    overflow-y: auto; /* 適應手機，文字可以滾動 */
    display: flex;
    flex-direction: column;
    position: relative;
}

#lightbox-title {
    font-size: 1.5rem;
    line-height: 1.5rem;
    margin-bottom: 10px;
    color: paleturquoise;
}

#lightbox-content-text {
    margin-bottom: 10px;
    color: antiquewhite;
}

#lightbox-datetime {
    font-size: 0.8rem;
    color: #d1dd73;
}

#lightbox-blank {
    flex-grow: 1;
}

@media (max-width: 768px) {
    #lightbox-content {
        flex-direction: column;
    }

    #lightbox-media-container {
        max-width: 95vw;
        flex-flow: column;
    }
}

#lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1rem;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 999;
    background: #0006;
    border-radius: 15px;
    width: 2rem;
    height: 2rem;
    text-align: center;
    align-content: center;
}

#prev, #next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px; /* 增大箭頭字體大小 */
    color: white;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明圓形背景 */
    border: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%; /* 圓形按鈕 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

#prev:hover, #next:hover {
    background-color: rgba(0, 0, 0, 0.7); /* 懸停時加深背景顏色 */
}

#prev {
    left: 20px; /* 離左側的距離 */
}

#next {
    right: 20px; /* 離右側的距離 */
}

#lightbox .author-photo{width: 48px;height: 48px;}
#lightbox .author-name{color:azure}
#lightbox .author-info{
    border-radius: 23px;
    position: static;
    margin-bottom: 1rem;
    padding-right: 1rem;
    background: black;
}
#lightbox-letsGO {
    background-color: plum;
    padding: 0.25rem 0.75rem 0.15rem;
    border-radius: 0.25rem;
    color: white;
    text-shadow: 1px 1px 2px black;
    box-shadow: 1px 1px 3px gray;
    margin-left: auto;
    white-space: nowrap;
}
#lightbox-heart {
    background-color: rgba(221, 160, 221, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgb(221, 160, 221);
    color: white;
    text-shadow: 1px 1px 2px gray;
    box-shadow: 1px 1px 3px gray;
    margin-left: auto;
    white-space: nowrap;
}