/*
Theme Name: Bonny Doon Vineyard
Theme URI: http://www.bonnydoonvineyard.com
Author: Firefly Creative Company
Author URI: http://www.fireflycompany.com
Description: Custom theme for Bonny Doon Vineyard
Version: 1.0
License:
License URI:
Text Domain: bdv

*/

/* Styles here done by Wine Works */

img{
  max-width: 100%;
  height: auto !important;
}

.page-template-template_blog #sidebar, .archive #sidebar, .single-post #sidebar {
  max-width: none;
  width: 38%;
}

.page-template-template_blog #content, .archive #content, .single-post #content {
  max-width: none;
  width: 62%;
}

header.entry-header.hero{
  background-size: contain;
}

.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

@media screen and (max-width: 767px) {
  .page-template-template_blog #sidebar,
  .archive #sidebar,
  .single-post #sidebar,
  .page-template-template_blog #content,
  .archive #content,
  .single-post #content {
    float: none;
    width: 100%;
    padding-bottom: 2rem;
  }

  .page-template-template_blog div.post{
    float: none;
  }

  /* .tm-wine-info{
    overflow-x: auto;
  } */

  /* .tm-wine-info-shots-heading, .tm-wine-info-shot, .tm-wine-info-labels-heading, .tm-wine-info-label {
    display: table-cell !important;
  } */

  .tm-wine-info-table {
    border: 0;
  }
  .tm-wine-info-table caption {
    font-size: 1.3em;
  }
  .tm-wine-info-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  .tm-wine-info-table tr {
    border-bottom: 3px solid #333;
    display: block;
    margin-bottom: .625em;
  }
  .tm-wine-info-table .tm-wine-info-headings{
    display: none;
  }
  .tm-wine-info-table td {
    border-bottom: 1px solid #e5e5e5;
    display: block !important;
    font-size: .8em;
    text-align: right;
    min-height: 43px;
  }
  .tm-wine-info-table td:before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    float: left;
  }
  .tm-wine-info-table td:nth-of-type(1):before { content: "Wine"; }
	.tm-wine-info-table td:nth-of-type(2):before { content: "Bottle Shot"; }
	.tm-wine-info-table td:nth-of-type(3):before { content: "Front Label"; }
	.tm-wine-info-table td:nth-of-type(4):before { content: "Back Label"; }
	.tm-wine-info-table td:nth-of-type(5):before { content: "Case Card"; }
  .tm-wine-info-table td:nth-of-type(6):before { content: "Fact Sheet"; }
	.tm-wine-info-table td:nth-of-type(7):before { content: "Shelf Talker"; }
  .tm-wine-info-table td:last-child {
    border-bottom: 0;
  }

  .aboutchild .contentColumn{
    background-attachment: initial;
    padding: 46px 12% 80px;
    background: rgba(255, 255, 255, .9);
  }

  .aboutchild .aboutContent{
    margin: 0 -20% -60px -20%;
    padding: 46px 12% 80px;
    width: 140%;
    background: rgba(255, 255, 255, .9);
  }

  .aboutchild .aboutMobileBackground {
    display: block;
  }

  .contentColumn{
    padding-bottom: 50px;
  }

  .contentColumn article {
    padding-bottom: 0;
  }

  .contentColumn.rsb article {
    margin-bottom: 0;
  }
}

@media screen and (min-width: 1075px){
  .page-template-template_blog .fullContentWrapper {
    max-width: 1140px;
    width: 100%;
  }
}

@media screen and (max-width: 1023px){
  header.entry-header.hero{
    background-attachment: initial;
    background-position: 50% 0 !important;
    height: auto;
    padding-bottom: 56%;
  }
}
