/* 城市站海洋明星頁(/<城市>/ocean_stars)與台灣 /taiwan/movie 共用的版面
   原本內嵌在 ocean_stars_view.php(3 城)與 taiwan/movie_view.php 的第一段 <style>;差異改成 CSS 變數:
   --og-header-bg   頂部背景圖(北京 / 上海 ocean_gallery,台灣 ocean_gallery2:ocean_stars_taiwan.css、movie.css)
   --og-header-h    header 高度(movie 180px)
   --og-gallery-pt  .gallery 上方留白(movie 150px)
   原本的 url(../ocean_gallery/…) 是相對於頁面網址,搬到 CSS 檔後改成絕對路徑 */
    html,
    body {
        margin: 0;
        padding: 0;
    }

    #footer {
        margin: 0;
    }

    header {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 100;
        width: 100%;
        height: var(--og-header-h, 250px);
        background-color: #000;
        padding-top: 50px;
    }

    header .header-bg {
        background: var(--og-header-bg, url(/ocean_gallery/header-bg.jpeg));
        background-size: 100%;
        background-position: top center;
        background-attachment: fixed;
        background-repeat: no-repeat;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        filter: brightness(0.3);
    }

    header .logo-bg {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        width: auto;
        transition: all .3s;
    }

    header .logo-bg img {
        height: 100%;
        image-rendering: crisp-edges !important;
    }

    header.sub {
        position: fixed;
        width: unset;
        height: unset;
        background-color: transparent;
        border: unset;
    }

    header.sub .header-bg {
        display: none;
    }

    header.sub .logo-bg {
        width: auto;
        height: auto;
        margin-left: 15px;
        margin-top: 15px;
    }

    header.sub .logo-bg img {
        width: 120px;
    }

    .gallery {
        padding-top: var(--og-gallery-pt, 300px);
        background-color: #000;
    }

    .gallery .gallery-box {
        position: relative;
        display: flex;
        flex-wrap: wrap;
    }

    .gallery .gallery-box a {
        width: calc(100% / 4);
        box-sizing: border-box;
        overflow: hidden;
        background-color: #000;
    }

    .gallery .gallery-box a:hover {
        cursor: pointer;
    }

    .gallery .gallery-box a:hover .gallery-box-item {
        /**hover 時的效果**/
        width: 100%;
        transform: scale(1.2);
        filter: brightness(100%);
    }

    .gallery .gallery-box .gallery-box-item {
        /**4:3 75% aspect ratio**/
        /**16:9 57.65% aspect ratio**/
        width: 100%;
        padding-bottom: 75%;
        position: relative;
        overflow: hidden;
        box-sizing: border-box;
        transition: all .5s ease-in-out;
        filter: brightness(30%);
        background-size: cover;
        background-position: center center !important;
        transform: scale(1.1);
    }

    .gallery .gallery-box .gallery-box-item.visible {
        /**可見時的效果**/
        filter: brightness(50%);
    }

    .gallery .gallery-box .gallery-box-item .gallery-box-item-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: inherit;
        position: absolute;
        top: 0;
        left: 0;
        transition: all .6s ease-in-out
    }

    .gallery-item-detail {
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 1000;
        text-align: center;
        display: none;
        overflow: auto;
    }

    .gallery-item-detail .backdrop {
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 1;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: brightness(50%);
    }

    .gallery-item-detail .photo {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        height: 65%;
        margin: 0 auto;
        text-align: center;
        display: inline-block;
        margin-top: 70px;
        position: relative;
        z-index: 10;
        cursor: pointer;
        transition: all .5s;
        min-width: 0;
    }

    .gallery-item-detail .photo img {
        height: 100%;
    }

    .gallery-item-detail .info {
        width: 50%;
        max-height: 35%;
        color: #fff;
        margin: 0 auto;
        padding-top: 40px;
        position: relative;
        z-index: 2;
    }

    .gallery-item-detail .info .work_info {
        display: inline-flex;
        align-items: center;
    }

    .gallery-item-detail .info .work_info .avatar {
        width: 65px;
        height: 65px;
        border: 1px solid #313131;
        border-radius: 100%;
        overflow: hidden;
        margin-right: 12px;
    }

    .gallery-item-detail .info .work_info .avatar img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .gallery-item-detail .info .work_info .info2 {
        text-align: left;
    }

    .gallery-item-detail .info .work_info .info2 .work_name {
        font-weight: bold;
        font-size: 24px;
        margin: 0;
        display: inline;
        margin-right: 12px;
        letter-spacing: 1.1px;
        line-height: 0;
        color: #fff;
    }

    .gallery-item-detail .info .work_info .info2 .work_loc {
        font-weight: 500;
        font-size: 14px;
        margin: 0;
        display: inline;
        letter-spacing: 1.1px;
        color: #fff;
    }

    .gallery-item-detail .info .work_info .info2 .photographer {
        font-weight: 100;
        font-size: 14px;
        margin: 0;
        letter-spacing: 1.1px;
        color: #fff;
    }

    .gallery-item-detail .info .work_des {
        padding: 10px 20px;
        text-align: center;
        color: #fff;
    }

    .gallery-item-detail .info .work_des p {
        text-align: justify;
        display: inline-block;
        letter-spacing: 1.1px;
        font-size: 14px;
        color: #fff;
    }

    .gallery-item-detail .photo .navigation {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 800px;
        display: flex;
        color: #fff;
        justify-content: space-between;
        z-index: 100;
        margin-bottom: -24px;
        left: 50%;
        margin-left: -400px;
    }

    .gallery-item-detail .photo .navigation div {
        cursor: pointer;
    }

    .gallery-item-detail .photo .navigation div:hover {
        opacity: .5;
    }

    .gallery-bg-audio {
        text-align: center;
        padding-top: 20px;
        padding-bottom: 20px;
        background: #000;
        display: none;
    }

    .gallery-bg-audio-alert {
        position: fixed;
        bottom: 30px;
        left: 30px;
        background: rgba(0, 0, 0, 0.8);
        width: 200px;
        font-size: 14px;
        color: #fff;
        padding: 12px 20px;
        border-radius: 50px;
        box-shadow: 5px 5px 30px #000;
        display: none;
        transition: all .5s;
        align-items: center;
        z-index: 10000;
    }

    .gallery-bg-audio-alert .playbutton {
        width: 30%;
        margin-right: 12px;
        text-align: center;
        border-radius: 30px;
        border: 1px solid gray;
        padding: 2px 4px;
    }

    .gallery-bg-audio-alert .closebutton {
        margin-left: 12px;
        cursor: pointer;
        color: #fff;
        margin-bottom: 0;
    }

    .gallery-bg-audio-alert .playbutton:hover {
        opacity: .5;
        cursor: pointer;
    }

    @media screen and (max-width:500px) {
        .gallery .gallery-box a {
            width: 100%;
        }

        header {
            height: 280px;
        }

        header .header-bg {
            background-size: cover;
        }

        header.sub .logo-bg img {
            width: 80px;
        }

        .gallery {
            padding-top: 280px;
        }

        .gallery-item-detail {
            background: rgba(0, 0, 0, 0.5);
        }

        .gallery-item-detail .photo {
            height: auto;
            width: 100%;
            border: unset;
            background-position: top;
        }

        .gallery-item-detail .photo img {
            visibility: hidden;
            width: 100%;
            position: relative;
        }

        .gallery-item-detail .info {
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            margin-bottom: 50px;
        }

        .gallery-item-detail .info .work_info .info2 {
            max-width: 70%;
        }

        .gallery-item-detail .info .work_info .info2 .work_loc {
            display: block;
        }

        .gallery .gallery-box .gallery-box-item.visible {
            /**可見時的效果**/
            filter: brightness(100%);
        }

        .gallery-item-detail .photo .navigation {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 96%;
            display: flex;
            color: #fff;
            justify-content: space-between;
            z-index: 100;
            margin-bottom: 10px;
            left: 50%;
            margin-left: -48%;
        }


    }

    @media screen and (min-width:500px) and (max-width:1100px) {
        .gallery .gallery-box a {
            width: calc(100% / 2);
        }

        .gallery-item-detail {
            background: rgba(0, 0, 0, 0.5);
        }

        .gallery-item-detail .photo {
            height: auto;
            width: 100%;
            border: unset;
            background-position: top;
            max-height: 70%;
            overflow: hidden;
        }

        .gallery-item-detail .photo img {
            visibility: hidden;
            width: 100%;
            position: relative;
        }

        .gallery-item-detail .info {
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
        }

        .gallery .gallery-box .gallery-box-item.visible {
            /**可見時的效果**/
            filter: brightness(100%);
        }

        .gallery-item-detail .photo .navigation {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 96%;
            display: flex;
            color: #fff;
            justify-content: space-between;
            z-index: 100;
            margin-bottom: 10px;
            left: 50%;
            margin-left: -48%;
        }

    }

    @media screen and (min-width:1100px) {
        .gallery .gallery-box a {
            width: calc(100% / 4);
        }
    }
