/* 點擊圖片放大並在右上角出現X符號(手動關閉) 樣式開始 */

/* 讓圖片有可點擊的指標 */
.clickable-img {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.clickable-img:hover {
    opacity: 0.7;
}

/* The Modal (background) */
.modal {
    display: none;
    /* 預設隱藏 */
    position: fixed;
    /* 固定位置，蓋在整個畫面上 */
    z-index: 1000;
    /* 確保在最上層 */
    padding-top: 60px;
    /* 距離頂部一些空間 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* 如果圖片太大，允許滾動 */
    background-color: rgba(0, 0, 0, 0.9);
    /* 黑色半透明背景 */
}

/* Modal Content (the image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* 放大動畫 */
@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button (X) */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 在小螢幕上，讓圖片寬度100% */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

/* 樣式結束 */

 