.case-section{
    min-height: 800px;
    padding-top: 60px;
}

.caselist{
    padding: 30px 0;
    background: #eeeeee;
}
.case-detail-wrapper{
    width: 100%;
    display:flex;
}
.case-detail-box{
    flex: 1;
    padding: 15px;
    position:relative;
}
.case-detail-box:last-child{
    padding-left: 30px;
}
.case-detail-box .image-box{
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border: 3px solid #ffffff;
    background-color: transparent;
    margin-bottom: 8px;
}
.case-detail-box .image-box:hover:after{
    content: "\f00e";
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 36px;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 35%;
    padding-left: 46%;
    background-color: transparent;
    cursor: pointer;
    pointer-events: none;
}
.case-detail-image{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
}
.dim-thumb-wrapper{
    width: 100%;
    height: 60px;
    overflow: hidden;
    position: relative;
}
.thumb-dimen{
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
}
.dimen-picker{
    padding: 15px;
    min-height: 170px;
    border: 1px solid #e4e4e4;
    margin-bottom: 8px;
}
.dimen-picker.sold-out:not(.active){
    background-color: #e2e2e2;
    color: red;
}
.dimen-picker:hover{
    outline: 1px solid #cacaca;
}
.dimen-picker.active:not(.sold-out){
    /*outline: 1px solid green;*/
    background-color: #2a2a2a;
}
.dimen-picker.active.sold-out{
    background-color: #b40000;
    color: white;
}
.dimen-picker.active span:not(.force-color){
    color: #cacaca;
}
.force-color{
    color: red;
}
.dimen-picker.active h4{
    color: white;
}

.case-detail-desc{
    vertical-align: top;
    margin-left: 5.2em;
    margin-top: -1.6em;
}
.sec-lable{
    font-weight: bold;
}

.customHtml{
    font-size: 16px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px; height: 0; overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*相簿容器*/
.media-wrapper{
   /* max-height: 400px;*/
    overflow-y: auto;
}
.photo-wrapper {
    margin: 0;
}

.photo {
    width: 100px;
    height: 70px;
    border: 1px solid #bbbbbb;
    margin-right: 2px;
    position: relative;
    background-color: transparent;
}
.photo > img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    height: 100%;
}

.custom-descript{
    padding: 15px;
}

.act-panel>.btn.btn-warning ,
.act-panel>.btn.btn-danger{
    min-width: 160px;
    padding: 8px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 28px;
    margin-right: 15px;
    margin-bottom: 12px;
}
.act-panel>.btn.btn-danger{
    background-color: #346e0d;
    border-color: #346e0d;
}
.act-panel>.btn.btn-warning:hover{
    background-color: #cba348;
    border-color: #cba348;
}
.act-panel>.btn.btn-danger:hover{
    background-color: #3fa00d;
    border-color: #3fa00d;
}


.button-label{
    height: 100%;
    display: inline-block;
    vertical-align: middle;
    margin-left: 16px;
    font-weight: bold;
}
.btn-dark{
    width:200px;
    height:4em;
    background-color: #333333;
    color: white;
}
.btn-dark:hover{
    background-color: #5b5b5b;
    color: white;
}

@media (max-width: 768px){
    .case-detail-box .image-box{
        height: 225px;
        background-color: transparent;
    }
    .act-panel>.btn.btn-warning ,
    .act-panel>.btn.btn-danger{
        min-width: unset;
    }
    .btn-dark {
        width: 100px;
        height: 2.6em;
    }
    .btn-dark .fa-3x {
        font-size: 1em;
    }
}
@media (max-width: 500px){
    .case-detail-wrapper{
        display: block;
    }
    .case-detail-box{
        max-width: 100%;
        width: 100%;
    }
    .case-detail-image {
        margin-left: 0;
    }
    .photo {
        width: calc(100vw / 4);
        height: auto;
        min-height: 70px;
        border: 3px solid #ffffff;
        margin-right: 2px;
        position: relative;
    }
}