#container {
    width: 100% !important;
    padding-top: 0 !important;
}

#bo_gall {
    width: 100%;
}

#bo_gall::after {
    content: "";
    display: block;
    clear: both;
}

#bo_gall #admin_tools {
    height: 50px;
    width: 100%;
}

#bo_gall #admin_tools::after {
    content: "";
    display: block;
    clear: both;
}

#bo_gall #admin_tools #select_all {
    float: left;
    height:50px;
    line-height:50px;
}

#bo_gall #admin_tools #btn_tools {
    float: right;
    height:50px;
    line-height:50px;
}

#bo_gall #admin_tools #btn_tools button {
    line-height: 38px;
    height: 38px;
    padding: 0 10px;
    text-align: center;
    border-radius: 3px;
    font-weight: bold;
    font-size: 1.1em;
    border: 0;
    box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#bo_gall #admin_tools #btn_tools a {
    display: inline-block;
    padding: 0 7px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    text-decoration: none;
    vertical-align: middle;
    box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    line-height: 38px;
    height: 38px;
    text-align: center;
    border-radius: 3px;
    font-weight: bold;
    font-size: 1.1em;
}

#bo_gall .gall_item {
    float: left;
    width: calc(100% / 3);
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    font-family: 'jost';
}

#bo_gall .gall_item .gall_item_thumb {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    transform: scale(1.01);
    transition: transform 1s;
}


#bo_gall .gall_item:hover .gall_item_thumb {
    transform: scale(1.1);
}

#bo_gall .gall_item .gall_item_text {
    width: 100%;
    height: 100%;
    position: absolute;
    display: table;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 1s;
}

#bo_gall .gall_item:hover .gall_item_text {
    opacity: 1;
}

#bo_gall .gall_item .gall_item_text .gall_item_text_middle {
    display: table-cell;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center;
}

#bo_gall .gall_item .gall_item_text .gall_item_text_middle .gall_item_text_middle_category {
    display: block;
    font-size: 12pt;
    color: white;
    font-weight: lighter;
}

#bo_gall .gall_item .gall_item_text .gall_item_text_middle .gall_item_text_middle_subject {
    display: block;
    font-size: 20pt;
    color: white;
}

#bo_gall .gall_item .gall_item_select {
    position: absolute;
    left: 10px;
    top: 10px;
}

@media screen and (max-width:768px) {
    #bo_gall .gall_item {
        width: calc(100% / 2);
    }
}

@media screen and (max-width:425px) {
    #bo_gall .gall_item {
        width: calc(100%);
    }
}

#bo_v {
    width: 100%;
}

#bo_v header {
    padding: 100px 100px 50px 100px;
    /* font-family: sans-serif; */
    font-family: 'jost';
    transition: padding 1s;
}

#bo_v header #gall_header_category {
    color: #888;
    font-size: 14px;
    line-height: 17px;
    margin-bottom: 20px;
    font-weight: 400;
}

#bo_v header #gall_header_subject {
    color: black;
    font-size: 22px;
    line-height: 24px;
    font-weight: 600;
    letter-spacing: 0.025em;
    margin-bottom: 18px;
}

#bo_v header #gall_header_region {
    color: #888;
    font-size: 14px;
    font-weight: normal;
    line-height: 17px;
}

#bo_v #gall_body {
    font-size: 15px;
    line-height: 27px;
    margin: 0 100px 30px 100px;
    transition: margin 1s;
    font-family: 'jost';
}

#bo_v #gall_images {
    position: relative;
    width: 100%;
    margin-bottom: 100px;
}

#bo_v #gall_images #gall_images_wrap {
    position: relative;
    width: calc(100% - 200px);
    margin: 0 auto;
    /* aspect-ratio: 16/9; */
    transition: width 1s, margin 1s, height 0.5s;
	max-width:1200px;
	text-align:center;
}

#bo_v #gall_images #gall_images_wrap li {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.7s;
}

#bo_v #gall_images #gall_images_wrap li img {
    width: 100%;
    /* aspect-ratio: 16/9; */
    object-fit: contain;
	max-height:1000px;
}

#bo_v #gall_images #gall_images_wrap li.img_on {
    opacity: 1;
}

#bo_v #gall_images #gall_images_numbers {
    position: absolute;
    left: 0;
    top: calc(50% - 30px);
    height: 60px;
    width: 100px;
    text-align: center;
    font-size: 15px;
}

#bo_v #gall_images #gall_images_numbers p {
    height: 30px;
    line-height: 30px;
}

#bo_v #gall_images #gall_images_numbers_now {
    font-weight: bold;
}

#bo_v #gall_images #gall_images_numbers_total {
    color: #888;
    font-weight: 400;
}

#bo_v #gall_images #gall_images_arrows {
    position: absolute;
    right: 0;
    top: calc(50% - 30px);
    height: 60px;
    width: 100px;
    text-align: center;
    font-size: 15px;
    line-height: 15px;
}

#bo_v #gall_images #gall_images_arrows p {
    height: 30px;
    line-height: 30px;
    cursor: pointer;
}

#bo_v #gall_images #gall_images_overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 200px);
    height: 100%;
    display: flex;
    margin: 0 100px;
}

#bo_v #gall_images #gall_images_overlays #gall_images_overlays_prev {
    height: 100%;
    width: 50%;
    cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAATZJREFUaEPtmNFqAjEQRY9+prRWsNJP6kutikr/spbApiwSZTFzRwZmnzfDPffO7CaZEfyZBddPAjw7wUwgE+h0IFuo08Du5ZnAAxbOgRfgApyB3wdq/C/xTqCI3wKrQcESOEYBuBZfdL8CpwgALfF7YB2hhYr4b+Bt5PQOeO8VX+qpZ0AqXg0gF68EcBGvAmiJLzOwsej56y+W9Qy4irdOwF28JcBTxFsBtH5SX8CHoucVM1D2M4dRYTfxVgmEBwjfQjXJz6HvazfJvv3jObD8D5Ra7hCWALeSMNt5ts4N1gDuEAoAVwgVgBuEEuAWhMlRss6DGkAO4QFQIEIf6mvaLYhQ90KtJMIBVIjFcLX407vl9pqBnsu3u2sTQGbtxMKZwESjZK9lAjJrJxbOBCYaJXstfAJ/X1xQMUrhRSoAAAAASUVORK5CYII=) 24 24, auto;
}

#bo_v #gall_images #gall_images_overlays #gall_images_overlays_next {
    height: 100%;
    width: 50%;
    cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAUBJREFUaEPtmO1qAkEMRY8+plQpVLA+kEp/FNqKtC/ZDwK7sBRbDHuTYSD+nsnm3JtMxlnQ+W/Ref4UQGsHy4FyYKYCVUIzBZy9vRwAlsAd8A1cgK/ZsjoCKBzYAK/DN1+Ah0wIBcAaeJuIlgqhALASegbuW0AoACxvi3MEHicQH0NvfDpK2r1UBdAMQgnQBEINkA4RATBCHIB9dE9EAaRBRAKkQEQDhENkABiEDbsnYKsedlkAf0HYPersnl6TDQVwo3pdl5C5/HsmyG6s0SUUmvx4xN1YBe5l126oMuXHbKIcSEk+yoG05CMAUpNXA1jyJ2Cnnrb/dZ+qB5okr3Kg+z/103chE0V+VEaXUPcPW1ZCq+Fp8T3zVU7VA+4RrdygOoWUObliFYBLroDF5UCAqK6Q5YBLroDF5UCAqK6QP4KeUjFtVJPbAAAAAElFTkSuQmCC) 24 24, auto;
}

#bo_v #admin_tools {
    text-align: center;
}

@media screen and (max-width:768px) {
    #bo_v header {
        padding: 100px 20px 50px 20px;
    }

    #bo_v #gall_body {
        margin: 0 20px 30px 20px;
    }

    #bo_v #gall_images #gall_images_wrap {
        width: calc(100% - 40px);
        margin: 0 20px;
    }

    #bo_v #gall_images #gall_images_numbers {
        width: 60px;
        top: calc(100% + 20px);
        left: calc(50% - 30px);
        display: flex;
        height: 30px;
    }

    #bo_v #gall_images #gall_images_numbers p {
        width: 30px;
    }

    #bo_v #gall_images #gall_images_arrows {
        width: calc(100% - 40px);
        top: calc(100% + 20px);
        right: 0;
        display: flex;
        justify-content: space-between;
        height: 30px;
        margin: 0 20px;
    }

    #bo_v #gall_images #gall_images_arrows p {
        width: 30px;
    }

    #bo_v #gall_images #gall_images_overlays{
        width: calc(100% - 40px);
        margin: 0 20px;
    }
}

#bo_w {
    width: calc(100% - 200px);
    margin: 100px auto 0;
}

#bo_w #fwrite .input_wrap {
    margin-bottom: 10px;
}

#bo_w #fwrite .input_wrap label {
    width: 50px;
    display: inline-block;
    font-weight: bold;
}

#bo_w #fwrite .input_wrap .frm_input {
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    vertical-align: middle;
    padding: 5px;
    border-radius: 0;
    box-shadow: unset;
    height: 35px;
}

#bo_w #fwrite .input_wrap .frm_input2 {
    height: 130px;
}

#bo_w #fwrite .input_wrap label[for^="bf_file_"] {
    width: 100%;
}

#bo_w #fwrite .input_wrap textarea {
    width: 100%;
}

#bo_w #fwrite .input_wrap select {
    width: 200px;
}

#bo_w #fwrite .input_wrap input {
    width: calc(100% - 50px);
}

#bo_w #fwrite .input_wrap input[name^="bf_file["] {
    width: 100%;
}

#bo_w #fwrite .input_wrap label[for^="bf_file_"]~div.frm_input {
    line-height: 23px;
}

#bo_w #fwrite .input_wrap label[for^="bf_file_"]~div.frm_input input {
    width: 23px;
    vertical-align: middle;
}

#bo_w #fwrite .input_wrap label[for^="bf_file_"]~div.frm_input label {
    width: calc(100% - 26px);
    vertical-align: middle;
    font-weight: normal;
}

#bo_w #fwrite .btn_confirm.write_div .btn_cancel {
    display: inline-block;
    border: 1px solid #ccc;
    background: #fafafa;
    color: #000;
    text-decoration: none;
    vertical-align: middle;
    font-size: 1.1em;
    box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    line-height: 38px;
    height: 38px;
    padding: 0 10px;
    text-align: center;
    border-radius: 3px;
    font-weight: bold;
}

#bo_w #fwrite .btn_confirm.write_div .btn_submit {
    background: #444;
    color: #fff;
    border: 0;
    line-height: 38px;
    height: 38px;
    padding: 0 10px;
    text-align: center;
    border-radius: 3px;
    font-weight: bold;
    font-size: 1.1em;
    border: 0;
    box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}