/* General
---------------------------------------------------- */

.tm-clearfix:before,
.tm-clearfix:after {
    display: table;
    content: " ";
}
.tm-clearfix:after {
    clear: both;
}

/* Content
---------------------------------------------------- */

.tm-content {
    margin: 0 auto;
    max-width: 1060px;
    padding: 40px 20px;
}
.tm-page-heading,
.tm-page-subheading {
    margin: 0 0 10px;
    padding: 0;
}
.tm-page-description {
    margin: 0 0 20px;
}

/* Page Nav
---------------------------------------------------- */

.tm-breadcrumb-sep {
    margin: 0 5px;
}
.tm-page-nav {
    margin-bottom: 10px;
}
.tm-page-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}
.tm-page-nav ul li {
    display: inline-block;
    padding: 10px 20px 10px 0;
}

/* Thumbs
---------------------------------------------------- */

.tm-thumbs {
    margin: 0 -10px;
}
.tm-thumb {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    float: left;
    margin-bottom: 40px;
    padding: 0 10px;
    width: 25%;
}
.tm-thumb:nth-child(4n+1) {
    clear: both;
}
.tm-thumb a:hover {
    text-decoration: none;
}
.tm-thumb-image {
    display: block;
    margin: 0 0 10px;
    position: relative;
}
.tm-thumb-image img {
    height: auto !important;
    width: 100% !important;
}
.tm-thumb-heading {
    margin: 0 0 5px;
    padding: 0;
}
.tm-thumb-subheading {
    margin: 0 0 5px;
    padding: 0;
}

/* Search Bar
---------------------------------------------------- */

.tm-search-bar {
    margin-bottom: 30px;
}
.tm-search-bar * {
    margin-right: 5px;
}
.tm-search-bar-brand {
    width: 200px;
}
.tm-search-bar-text {
    display: inline !important;
    width: 300px !important;
}

/* Search Results
------------------------------------------------------ */

.tm-search-message {
    margin-bottom: 20px;
}

/* File List
------------------------------------------------------ */

.tm-file-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tm-file-list ul li {
    margin: 0 0 4px;
    padding: 0;
}

/* Wine Information
------------------------------------------------------ */

.tm-wine-info-filter {
    margin: 20px 0;
    max-width: 100%;
}
.tm-wine-info-table {
    width: 100%;
}
.tm-wine-info-table th,
.tm-wine-info-table td {
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 30px 10px 0;
}
.tm-wine-info-table tr:last-child th,
.tm-wine-info-table tr:last-child td {
    border-bottom: none;
}

/* Gallery
------------------------------------------------------ */

.tm-gallery-video {
    position: relative;
}
.tm-gallery-video a {
    background: url('../img/play.png') center center no-repeat;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Videos
------------------------------------------------------ */

.tm-video-lightbox {
    display: none;
    height: 100%;
    width: 100%;
}
.tm-video-lightbox iframe {
    height: 100% !important;
    width: 100% !important;
}

/* Bios
------------------------------------------------------ */

.tm-bio-lightbox {
    display: none;
    max-width: 700px;
}
.tm-bio-lightbox-left {
    float: left;
    width: 225px;
}
.tm-bio-lightbox-right {
    float: left;
    padding-left: 15px;
    width: 460px;
}
.tm-bio-lightbox-image {
    display: block;
    margin-bottom: 10px;
    max-width: 225px;
}
.tm-bio-lightbox-heading,
.tm-bio-lightbox-subheading {
    margin: 0 0 10px;
}

/* Pagination
------------------------------------------------------ */

.tm-pagination {
    padding: 40px 0;
}
.tm-pagination ul.page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}
.tm-pagination li {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tm-pagination li a.page-numbers,
.tm-pagination li span.page-numbers {
    border: 1px solid #e6e6e6;
    display: inline-block;
    padding: 5px 10px;
    margin: 0 0 5px;
}
.tm-pagination li a.page-numbers:hover,
.tm-pagination li span.current {
    background: #f5f5f5;
    text-decoration: none;
}

/* Media Query - 992px or less
---------------------------------------------------- */

@media (max-width: 992px) {

    /* Page Nav
    ---------------------------------------------------- */
    
    .tm-breadcrumb,
    .tm-page-nav ul {
        text-align: center;
    }

    /* Search Bar
    ---------------------------------------------------- */
    
    .tm-search-bar {
        text-align: center;
    }
    
    /* Thumbs
    ---------------------------------------------------- */
    
    .tm-thumb {
        width: 33.33%;
    }
    .tm-thumb:nth-child(4n+1) {
        clear: none;
    }
    .tm-thumb:nth-child(3n+1) {
        clear: both;
    }
}

/* Media Query - 768px or less
---------------------------------------------------- */

@media (max-width: 768px) {
    
    /* Thumbs
    ---------------------------------------------------- */
    
    .tm-thumb {
        width: 50%;
    }
    .tm-thumb:nth-child(3n+1) {
        clear: none;
    }
    .tm-thumb:nth-child(2n+1) {
        clear: both;
    }

    /* Search Bar
    ---------------------------------------------------- */
    
    .tm-search-bar-brand {
        margin: 0 0 10px;
        width: 100%;
    }
    .tm-search-bar-text {
        margin: 0 0 10px;
        width: 100% !important;
    }
    .tm-search-bar-submit {
        width: 100%;
    }

    /* Wine Info
    ------------------------------------------------------ */
    
    .tm-wine-info-shots-heading,
    .tm-wine-info-shot,
    .tm-wine-info-labels-heading,
    .tm-wine-info-label {
        display: none;
    }

    /* Bios
    ------------------------------------------------------ */
    
    .tm-bio-lightbox-left {
        float: none;
        text-align: center;
        width: auto;
    }
    .tm-bio-lightbox-right {
        float: none;
        padding-left: 0;
        width: auto;
    }
    .tm-bio-lightbox-image {
        margin: 0 auto 10px;
    }
}

/* Media Query - 400px or less
---------------------------------------------------- */

@media (max-width: 400px) {
    
    /* Thumbs
    ---------------------------------------------------- */
    
    .tm-thumb {
        clear: both;
        width: 100%;
    }

    /* Wine Info
    ------------------------------------------------------ */
    
    .tm-wine-info-vineyard-heading,
    .tm-wine-info-vineyard,
    .tm-wine-info-sheets-heading,
    .tm-wine-info-sheet {
        display: none;
    }
}