/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
  padding-top: 50px;
}


/*
 * Global add-ons
 */

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}


/*
 * Sidebar
 */

/*
.sidebar {
  display: none;
}
@media (min-width: 768px) {
  .sidebar {
    position: fixed;
    top: 51px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #f5f5f5;
    border-right: 1px solid #eee;
  }
}


.nav-sidebar {
  margin-right: -21px;
  margin-bottom: 20px;
  margin-left: -20px;
}
.nav-sidebar > li > a {
  padding-right: 20px;
  padding-left: 20px;
}
.nav-sidebar > .active > a {
  color: #fff;
  background-color: #428bca;
}*/

.sidebar {
  width: 100%;
  height: 50px;
  padding: 0;
  position: fixed;
  background: rgba(0,0,0,.25);
  top: 50px;
  left: 0;
  z-index: 1030;
  text-align: center;
}

.sidebar .list-group-item {
  display: inline-block;
  margin-top: 3px;
  border-radius: 0;
}

.navbar {
  border-radius: 0;
}
.navbar-collapse {
  /*padding: 0;*/
}

@media (max-width: 1170px) {
  .nav>li>a {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* toggle navbar */
@media (max-width: 980px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,.navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
    }
}



/*
 * Main content
 */

.main {
  padding: 20px;
  float: none;
  width: 1280px;
  margin: 0 auto;
}
@media (max-width: 1280px) {
  .main {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .main {
    padding-right: 40px;
    padding-left: 40px;
  }
}
.main .page-header {
  margin-top: 0;
}


/*
 * Placeholder dashboard ideas
 */

.placeholders {
  margin-bottom: 30px;
  text-align: center;
}
.placeholders h4 {
  margin-bottom: 0;
}
.placeholder {
  margin-bottom: 20px;
}
.placeholder img {
  display: inline-block;
  border-radius: 50%;
}


.list-group_models > * {
  box-sizing: border-box;
}

.list-group_models {
  display: flex;
  flex-wrap: wrap;
}

.list-group_models .media{
  overflow: visible;
}

.list-group_models .list-group-item{
  width: 25%;
}

.list-group_models .media-body {
  display: block;
  width: 100%;
}

.list-group_models img.media-object {
  width: 100%;
  max-width: 200px;
  border: 2px solid transparent;
}

.list-group_models img.media-object:hover {
  border: 2px solid #286090;
}



@media(max-width: 1024px) {
  .list-group_models .list-group-item{
    width: 33.33%;
  }
}
@media(max-width: 1024px) {
  .list-group_models .list-group-item{
    width: 33.33%;
  }
}
@media (max-width: 768px) {
  .list-group_models .list-group-item{
    width: 50%; }
  }

@media (max-width: 480px) {
  .list-group_models .list-group-item{
    width: 100%; }
  }

.ui-sortable-handle {
  position: relative;
  top: 0px;
  left: 0px;
  cursor: move;
  float: none;
  display: inline-block;
  margin-left: -6px;
  /*vertical-align: top;*/
}

.table thead {
    background: #ededed;
    background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#ebebeb));
    background: -moz-linear-gradient(top, #ffffff, #ebebeb);
}

body {
  /*overflow: */
}

#photo-sortable {
  /*overflow-y: scroll;*/
}

.thumbnail {
  overflow: hidden;
}


.thumbnail .img-responsive {
  max-width: 140px;
  max-height:180px;
  position: absolute;
  top: 60%;
  -webkit-transform: translateY(-50%);-moz-transform: translateY(-50%);-ms-transform: translateY(-50%);-o-transform: translateY(-50%);transform: translateY(-50%);
  left: 0;
  right: 0;
  /*width: 100%;*/
}

.thumbnail__photo {
  overflow: hidden;
  height: 360px;
}

@media (max-width: 480px) {
  .thumb {
    width: 100%;
    overflow: visible;
  }
  .media {
    overflow: visible;
  }
}