@import url('https://fonts.googleapis.com/css?family=Chakra+Petch:300,400|Kanit&display=swap&subset=thai');
html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container, .wrap > .container-fluid {
    padding: 0 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}
/*
@font-face {
    font-family: 'CSChatThaiUI';
    src: url('../fonts/chatthai/CSChatThaiUI.eot');
    src: url('../fonts/chatthai/CSChatThaiUI.woff2') format('woff2'),
        url('../fonts/chatthai/CSChatThaiUI.woff') format('woff'),
        url('../fonts/chatthai/CSChatThaiUI.ttf') format('truetype'),
        url('../fonts/chatthai/CSChatThaiUI.svg#CSChatThaiUI') format('svg'),
        url('../fonts/chatthai/CSChatThaiUI.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
        font-family: 'SukhumvitSetBold';
        src: url('../fonts/sukhumvit/SukhumvitSet-Bold.eot');
        src: url('../fonts/sukhumvit/SukhumvitSet-Bold.eot?#iefix') format('embedded-opentype'),
             url('../fonts/sukhumvit/SukhumvitSet-Bold.woff') format('woff'),
             url('../fonts/sukhumvit/SukhumvitSet-Bold.ttf')  format('truetype'),
             url('../fonts/sukhumvit/SukhumvitSet-Bold.svg#SukhumvitSet-Bold') format('svg');
}

@font-face {
    font-family: 'CSPraJad';
    src: url('../fonts/prajad/csprajad-webfont.eot');
    src: url('../fonts/prajad/csprajad-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/prajad/csprajad-webfont.woff') format('woff'),
         url('../fonts/prajad/csprajad-webfont.ttf') format('truetype'),
         url('../fonts/prajad/csprajad-webfont.svg#cs_prajadregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
*/
body {
    background: #e0e0e0;
}

.navbar{
    padding: 0;
}
.navbar-brand  {
    padding: 0;
}
.navbar-collapse{
    padding: 0 10px;
}

.navbar-inverse {
    background-color: #000;
    border-color: #000;
}

.navbar-brand img.brand-logo {
    height: 50px;
}

.navbar {
    margin-bottom:0;
}

/* Latest News Carousel :: Desktop sm/md/lg */
#latestnews-md {
    background-color: #222;
    margin: 0 -15px 15px -15px;
    padding: 15px;
}
#latestnews {
    margin: 0 auto 20px;
}
#latestnews .carousel-image {
    height: 430px;
    float: left;
}
#latestnews .carousel-info {
    height: 430px;
    float: right;
}
#latestnews .item-image {
    height: 430px;
    background-size: cover;
    background-position: center;
}

#latestnews .yt-container {
    position: relative;
    overflow: hidden;
    height: 430px;
}

#latestnews .carousel-control.left, #latestnews .carousel-control.right {
    background-image: none;
}
#latestnews .carousel-indicators {
    background-image: none;
    bottom: 0;
}

#latestnews .card {
    border-radius: 0;
    box-shadow: none;
    -webkit-box-shadow: none;
    border-left: 1px #e0e0e0 solid;
    margin-bottom: 0;
    height: 430px;
}
#latestnews .card-primary {
    position:relative;
    height: 370px;
    overflow: hidden;
}
#latestnews .card-content-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10%;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}
#latestnews .carousel-indicators{
    margin-bottom: 0;
}
#latestnews .carousel-control-prev{
    justify-content: flex-start;
    top: 25%;
    bottom: 25%;
    width: 10%;
}
#latestnews .carousel-control-prev-icon{
    margin-left: 10px;
}
#latestnews .carousel-control-next{
    justify-content: flex-end;
    top: 25%;
    bottom: 25%;
    width: 10%;
}
#latestnews .carousel-control-next-icon{
    margin-right: 10px;
}

@media (min-width: 750px) {
    #latestnews {
        width: 730px;
    }
    #latestnews .carousel-image {
        width: 490px;
    }
    #latestnews .yt-container {
        width: 490px;
    }
    #latestnews .carousel-info {
        width: 240px;
    }
    #latestnews .carousel-info .card {
        width: 240px;
    }
}

@media (min-width: 970px) {
    #latestnews {
        width: 950px;
    }
    #latestnews .carousel-image {
        width: 640px;
    }
    #latestnews .yt-container {
        width: 640px;
    }
    #latestnews .carousel-info {
        width: 310px;
    }
    #latestnews .carousel-info .card {
        width: 310px;
    }
}

@media (min-width: 1170px) {
    #latestnews {
        width: 1140px;
    }
    #latestnews .carousel-image {
        width: 770px;
    }
    #latestnews .yt-container {
        width: 770px;
    }
    #latestnews .carousel-info {
        width: 370px;
    }
    #latestnews .carousel-info .card {
        width: 370px;
    }
}

/* Latest News Carousel :: Mobile xs */

#latestnews-xs {
    margin-top: -50px;
    margin-left: -15px;
    margin-right: -15px;
    overflow:auto;
    margin-bottom: 10px;
    background-color: #222;
    /*
    height: 100vh;
    min-height: 560px;
    */
}

#latestnews-xs .carousel-indicators {
    background-image: none;
    bottom: 30px;
}

#latestnews-xs .card {
    background-color: #222;
    position:relative;
    color: #808080;
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}
#latestnews-xs .card-image{
    margin-bottom: 20px;
}

#latestnews-xs .card-title {
    height: 95px;
}

#latestnews-xs .card-title, #latestnews-xs .card-title a{
    color: #e0e0e0;
}

#latestnews-xs .card-image {
    height: 215px;
    overflow: hidden;
}

#latestnews-xs .yt-container {
    position: relative;
    overflow: hidden;
    height: 215px;
    width: 100%;
}

#latestnews-xs .card-primary {
    height:330px;
}

#latestnews-xs .card-footer {
    height:45px;
}

#latestnews-xs .card-ref {
    margin-top:15px;
    padding-top: 4px;
    max-width:70%;
    float:left;
    overflow:hidden;
    white-space: nowrap;
}

#latestnews-xs .card-social {
    margin-top:15px;
    max-width:30%;
    float:right;
}

#latestnews-xs .card-link,  #latestnews-xs .card-link a{
    color: #e0e0e0;
}

#latestnews-xs .carousel-indicators{
    bottom: 120px;
}

#fit-width .masonry {
  margin: 0 auto;
  /*position: relative;*/
}

.digest-header {
    text-align: center;
    font-family: 'Kanit', SukhumvitSetBold;
    margin-bottom: 40px;
}

.digest-footer {
    text-align: center;
    font-family: 'Kanit', SukhumvitSetBold;
    margin-bottom: 24px;
}

.prev-footer {
   text-align: center;
   font-family: 'Kanit', SukhumvitSetBold;
   margin-bottom: 24px;
}

.card {
    background-color:#FFF;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    width: 100%;
    margin-bottom: 15px;
    padding: 10px 0;
}

.card-featured-fullimage, .card-featured-raw {
    padding: 0 0;
}

.card-image {
    margin-bottom: 10px;
    max-width: 100%;
}

.card-image-featured {
    max-width: 100%;
}

.card-image img {
    min-width: 100%;
    max-width: 100%;
}

.card-image-featured img {
    min-width: 100%;
    max-width: 100%;
}


.yt-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(100vw * 0.5625);
}

.yt-container iframe,
.yt-container object,
.yt-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-title h2 {
    font-family: 'Kanit', SukhumvitSetBold;
    margin: 0;
    font-weight: normal;
    font-style: normal;
    font-size: 18pt;
    line-height: 1.3em;
}

.card-title {
    color: #333333;
    padding: 0 10px;
    margin-bottom: 2px;
}

.card-title a {
    color: #333333;
}

.card-ref {
    font-family: 'Chakra Petch', CSPraJad;
    font-weight: 300;
    color:#999;
    padding: 0 10px;
}

.card-content {
    font-family: 'Chakra Petch', CSPraJad;
    font-weight: 300;
    padding: 0 10px;
}

.card-footer {
    padding: 0 10px;
}

.card-link {
    float: left;
    font-family: 'Chakra Petch', CSPraJad;
    font-weight: 300;
    color: #333333;
}

.card-link a {
    color: #333333;
}

.card-social {
    margin-top: 4px;
    float:right;
}

.card-social img {
    margin-left: 5px;
}

.card hr {
    margin: 5px 0 5px;
    size: 2px;
    color: #e5e5e5;
}

.card-footer {
    background-color: inherit;
    border-top: none;
}
.grid-sizer {
    width: 0;
}

.gutter-sizer {
    width: 0;
}

@-moz-document url-prefix() {
    .card-image {
         max-width: max-content;
    }
}

.card-ref {
    margin-bottom: 7px;
}

.card-content p, .card-content a {
    font-size: 11pt;
}

.card-content p {
    margin: 0;
}

.card-ref {
    font-size: 9pt;
}

.card-link {
    margin-top: 7px;
    font-size: 10pt;
    float: left;
}

@media (max-width: 749px) {
    .wrap > .container, .wrap > .container-fluid {
        padding: 50px 15px 20px;
    }
}

@media (min-width: 750px) {
    .card {
        width: 355px;
        margin-bottom: 15px;
    }

    .grid-sizer {
        width: 355px;
    }

    .gutter-sizer {
        width: 20px;
    }

    .card-image {
        width: 355px;
        max-height: 236.67px;
        overflow: hidden;
    }

    .yt-container {
        width: 355px;
        height: 199.687px;
        overflow: hidden;
    }

    .card-image-featured {
        width: 355px;
        /* max-height: 355px; */
    }
}

@media (min-width: 970px) {
    .card {
        width: 465px;
        margin-bottom: 15px;
    }

    .grid-sizer {
        width: 465px;
    }

    .gutter-sizer {
        width: 20px;
    }

    .card-image {
        width: 495px;
        max-height: 330px;
        overflow: hidden;
    }

    .yt-container {
        width: 495px;
        height: 278.4375px;
        overflow: hidden;
    }

    .card-image-featured {
        width: 495px;
        /* max-height: 495px; */
    }
}

@media (min-width: 1170px) {
    .card {
        width: 370px;
        margin-bottom: 15px;
    }

    .grid-sizer {
        width: 370px;
    }

    .gutter-sizer {
        width: 15px;
    }

    .card-image {
        width: 370px;
        /* max-height: 246.676px; */
        overflow: hidden;
    }

    .yt-container {
        width: 370px;
        height: 208.125px;
        overflow: hidden;
    }
}
