/* =Mobile style
-------------------------------------------------------------- */

/* Structure */
@media ( max-width: 767px ) {

  body.error404 #wrapper #main, body.page-template-tpl-search-php #wrapper #main {
    background-color: #fff;
  }

  html, body {
    background-image: none !important;
    background-color: #FFFFFF;
    min-width: 100% !important;
    width: auto;
  }
  #wrapper #main {
    background: #F2F1E6;
    width: 768px;
    margin-top: 20px;
  }

  #wrapper img {
    height: auto;
    max-width: 100% !important;
  }

  .fluid,
  .fluid div,
  .fluid p {
    display: block !important;
    float: none !important;
    margin: 15px 0 0 0 !important;
    padding: 0 !important;
    position: static !important;
    width: auto !important;
  }

  .fluid-table,
  .fluid-table tr,
  .fluid-table td,
  .fluid-table th {
    display: block !important;
  }

  .fluid-table td,
  .fluid-table th {
    margin: 15px 0 0 0 !important;
    padding: 0 !important;
  }

  .fluid iframe,
  .fluid-table iframe {
    width: 100%;
  }

  .overflow {
    overflow: auto;
    overflow-x: auto;
    overflow-y: hidden;
    width: auto !important;
  }
  #wrapper #sub-wrapper {
    background-color: #FFFFFF;
  }

  #wrapper #sub-wrapper.opened {
    left: 80%;
  }

  #wrapper #mobile-main-nav {
    left: -80%;
    width: 80%;
  }


  /* Main */

  #wrapper #main {
    margin: 0;
    width: auto;
  }

  body #wrapper #main #container {
    background-color: #FFFFFF;
    /*border-bottom: 4px solid #d9d8ca;*/
    border-radius: 0;
    float: none;
    margin-bottom: 40px;
    margin-top: 0 !important;
    margin-right: 0;
    padding: 15px;
    width: auto;
  }

  #wrapper #main #container .entry-content {
    overflow: auto;
    overflow-x: auto;
    overflow-y: hidden;
    width: auto !important;
  }

  #wrapper #main #container .entry-content .gravityform .gform_wrapper ul {
    margin-left: 0;
  }

  #wrapper #main #container form,
  #wrapper #main #container input[type="text"],
  #wrapper #main #container input[type="password"],
  #wrapper #main #container textarea,
  #wrapper #main #container select {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    max-width: 320px;
    width: 100%;
  }

  .searchcataloguebox input[type="text"], .searchbox  input[type="text"]{
	width: auto !important;
	padding: 0 !important;
  }
  
  #wrapper #main #container label {
    float: none;
    width: auto;
  }
  
  #container.four_o_four{
	padding-top:15px !important;
	width: auto !important;
  }
  
  #wrapper #main #container input[type="text"],
  #wrapper #main #container input[type="password"],
  #wrapper #main #container textarea,
  #wrapper #main #container select {
    padding: 8px 4px;
  }
  #wrapper #main #container .gform_wrapper .left_label div.charleft,
  #wrapper #main #container .gform_wrapper .right_label div.charleft {
    margin-left: 0;
  }

  #wrapper #main #right-panel,
  #wrapper #main .page-template-tpl-micropage-php #right-panel {
    float: none !important;
    margin: 0 auto !important;
  }

  #wrapper #main .sidebar-left,
  #wrapper #main .sidebar-left .opener {
    border-radius: 0;
    border-width: 1px;
  }

  #wrapper #main .sidebar-left {
    margin: 0;
  }

   /* Events Calendar Page */
  .category-calendar #wrapper #main .sidebar-left {
    width: auto;
    margin-left: 0;
  }
  .category-calendar #wrapper #main #container{
     width: auto;
  }
  .category-calendar #wrapper #main #accordion.category .accordion-node{
    width: auto;
  }

  /* Accordion */

  #wrapper #accordion .accordion-node {
    border-top: 2px solid #000;
    margin-bottom: 0;
    padding-bottom: 36px;
    padding-top: 30px;
    position: relative;
    width: auto;
  }

  #wrapper #accordion .accordion-node:first-child {
    border-top: none;
    padding-top: 0;
  }

  #wrapper #accordion .accordion-node .btt-calendar,
  #wrapper #accordion .accordion-node .btt-calendar_f {
    bottom: 6px;
  }

  #wrapper .post-list .item {
    width: auto !important;
  }

  #wrapper .post-list .item .title {
    display: block;
    margin-top: 0;
  }

  #wrapper .post-list .item .big-img-container {
    width: 100%;
    height: auto;
  }

  #wrapper .post-list .item img {
    display: block;
    float: none;
    margin-right: 0;
  }

  #wrapper .post-list .item .text {
    float: none;
    height: auto;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 10px;
    max-width: auto;
    width: auto !important;
    max-width: 100%;
  }

  #wrapper .post-list .item .text-infos {
    float: none;
    overflow: hidden;
    padding: 6px 0 0 0;
    width: auto;
  }

  .post-list .item .placeholder {
    display: none;
  }

  #wrapper #accordion .calendar-day .accordion-node-center {
    margin-bottom: 0;
    padding-bottom: 30px;
    position: relative;
  }

  #wrapper #accordion .btt {
    bottom: 0;
    left: 0;
    position: absolute;
    width: 100%;
    z-index: 1;
  }
  /* View Calendar button when there are no "Today at the Museum" events  */
  #wrapper #accordion .btt.no-events-today {
    bottom: auto;
    margin-bottom: 0;
	  position: relative;
  }

  .page-template-home-php #wrapper #main #container {
    background-color: #FFFFFF;
    max-width: 100%;
  }

  #wrapper #accordion .home:after {
    display: none;
  }

  /* Misc */

  .fancybox-wrap,
  .overlay-fixed,
  #fancybox-overlay {
    display: none !important;
  }

  #wrapper #container .admissionfees,
  #wrapper #container .admissionfeeswar {
    overflow: auto;
  }

  #wrapper #container .bttticketsadmissionfees,
  #wrapper #container .bttticketsadmissionfees:hover {
    float: none;
    left: auto;
    margin: 10px 0;
    top: auto;
  }

  #wrapper #container .tab_container {
    float: none;
  }

  #wrapper .jcarousel-pagination {
    display: none;
  }

  /* Carousel */

  #wrapper .carousel-wrap,
  #wrapper .carousel-wrap .jCarousel {
    height: auto;
    width: auto;
  }

  #wrapper .carousel-wrap .jCarousel li {
    height: auto;
  }

  #wrapper .carousel-wrap .prev,
  #wrapper .carousel-wrap .next {
    height: 100%;
  }
  #wrapper .cmct2banner {
    width: auto;
  }

  /* Event Times Tabs */
  #container .tab_container {
    background-image: none;
  }
  #container ul.tabs.event-times,
  #container span.tabs.event-time{
    display: none;
  }
  #container .tab_container table{
    margin: 20px 0 0  0;
  }
  #container .tab_container caption.event-hours-caption{
    display: block;
    margin: -10px 0 0 -10px;
    width: 120%;
    padding: 0 0 0 10px;
    line-height: 30px;
    font-weight: bold;
    text-align: left;
  }
  #container .tab_content.odd{
    display: block;
  }
  #container span.tabs{
    display: none;
  }
  #container .tabs.event-times li{
    width: 100%;
    background-size: cover;
  }
  #container .tab_content tr{
    border-bottom: 1px solid #E5E3D5;
  }
  #container .tab_content tr:last-child{
    border: none;
  }
  #container .tab_content td.eventtime{
    width: 100%;
    float: left;
    border-bottom: none;
    padding: 0 0 5px 15px;
  }
  #container .tab_content td:first-child{
    padding: 5px 0 0 15px;
  }
  #container .tab_content tr:last-child td{
    padding-bottom: 0;
  }
  /*** 2 image wide iamge gallery - see event spage (October 2013 - Ken Chase) ***/

  .cmc-img-galery-1-col,
  .cmc-img-galery-2-col,
  .cmc-img-galery-3-col{
    width: 230px;
    margin: 0 auto;
  }
  .cmc-img-galery-2-col img,
  .cmc-img-galery-3-col img{
    width: 100%;
    margin-right: 0;
  }
  .cmc-img-galery-2-col img:nth-child(odd){
    margin-right: 0;
  }

  /* PREFOOTER */

  body .home-secondary-nav .home-secondary-nav-contenu {
    float: none !important;
    margin: 0 auto !important;
  }

  .item-prefooter {
    display: block;
    float: none;
    margin: 0 auto;
    max-width: 100%;
    width: 215px;
  }

  .item-prefooter + .item-prefooter {
    display: block;
    margin: 0 auto;
    float: none;
    max-width: 100%;
    width: 215px;
  }

  .item-prefooter + .item-prefooter li {
    float: none;
    width: 100%;
  }

  /* FOOTER */

  body #footer {
    margin: 0 auto;
  }

  body #footer .copyright {
    position: static;
  }

  body #footer .logo {
    text-align: left;
  }

  body #footer .sub-footer {
    width: 215px;
    padding: 35px 0;
  }

  body #footer .sub-footer .quote{
    margin-bottom: 60px;
  }

  /*** Edited Blockbuster Styles - Need to integrate with final TP1 CSS - Ken Chase May 22 - 2014 ***/
  
  #wrapper .carousel-wrap, 
  #wrapper .carousel-wrap .jCarousel {
      height: 100%;
	  overflow: visible;
  }
  #wrapper .carousel-wrap .jCarousel ul{
      height: 100%;
	  position: relative;
  }
  #wrapper .carousel-wrap-video{
     overflow: hidden;
 }
  #home-ticket-mobile{
	display:block;
	margin-bottom:40px;
	text-align:center;
} 

#home-ticket-mobile p {
	font-family: 'FuturaBT-Bold', Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: #fff;
	margin:-33px 0 70px -90px;
	position:relative;
	text-transform: uppercase;
	height: 0;
}

#home-ticket-mobile a:hover {
	text-decoration:none!important;
}

}

@media ( max-width: 510px ) {
  /*** Prev/Next Arrows ***/
  .carousel-wrap-video .prev, 
  .carousel-wrap-video .next {
      bottom: 40px!important;
  }
  /*** Title Bar ***/
  .gallery-media-title-wrap{
      line-height: normal;
	  height: 100%;
	  min-height: 46px;
  }
  .gallery-media-title {
     height: 100%;
  }
  .gallery-media-title a{
     margin: 6px 0 6px 0;
  }
  /*** Video Player ***/
  .carousel-wrap-video  .gallery-media-title-wrap{
     padding-top: 40px;
  }
  .carousel-wrap-video .gallery-media-title a{
     position: absolute;
  }
  .carousel-wrap-video .gallery-media-title a.gallery-media-title-link{
    top: 0;
	padding: 0 80px 0 0;
  }
  .carousel-wrap-video .gallery-media-title a.close-video{
    top: auto;
    bottom: -4px;	
	right: 20px;
  } 

  
  
}