/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    font-size: 1em;
    line-height: 1.4;
    color: #444;

}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    width: 50%;
    border-top: 1px solid #555;
    margin: 40px auto;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


@-webkit-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0px);
  } 40% {
    transform: translateY(30px);
  } 60% {
    transform: translateY(15px);
  }
}
@-moz-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0px);
  } 40% {
    transform: translateY(30px);
  } 60% {
    transform: translateY(15px);
  }
}
@-o-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0px);
  } 40% {
    transform: translateY(30px);
  } 60% {
    transform: translateY(15px);
  }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0px);
  } 40% {
    transform: translateY(30px);
  } 60% {
    transform: translateY(15px);
  }
}


:root{
  font-size: 16px;
}

a{
  text-decoration: none;
  color: inherit;
}
h1, h2{
  font-family: 'PT Serif Caption', serif;
}
h3{
  text-transform: uppercase;
  font-weight: normal;
  margin-bottom: 40px;
  font-size: 20px;
}
h4{
  text-transform: uppercase;
  font-weight: normal;
  margin-bottom: 10px;
  font-size: 20px;
  margin: 0 auto;
}

nav{
  width: 100%;
  height: 10vh;
  margin: 0 auto;
  padding: 0 10%;
  font-family: 'PT Serif Caption', serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  box-sizing: border-box;
  color: #444;
  position: fixed;
  z-index: 10;
  top: 0;
}

nav .logo{
  max-width: 50%;
  width: 50%;
  font-weight: lighter;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

nav .logo h1{
  font-size: 2rem;
  padding: 0;
  margin: 0;
}
nav .logo h2{
  font-size: 1rem;
  padding: 0;
  margin: 0;
  letter-spacing: 10px;
}

nav ul{
  display: flex;
  flex-direction: row;
  align-content: center;
  width: 50%;
  justify-content: flex-end;
}
nav ul li{
  list-style: none;
  font-size: 0.9rem;
}
nav ul li.activenav{
  border-bottom: 1px solid black;
}

/* start AA added */

/* fixes for shared / longer navigation */
nav ul {
	padding: 0;
	width: auto;
}

nav .logo{
  width: 280px;
  max-width: none;
}

nav ul > a > li{
  margin: 0 20px;
}

nav ul li a{
  display: block;
  padding: 2px 10px;
  margin: 0 5px;
  text-transform: uppercase;
  text-align: center;
}

nav ul li a.online-shop:not(.activenav) {
	background: #fff;
	color: #d00;
}

nav ul li a.online-shop:not(.activenav):hover {
	background: rgba(170,170,170,0.3);
}

nav ul li a:hover{
  background-color: rgba(170,170,170,0.3);
}

nav ul li a.activenav{
  border-bottom: 1px solid black;
  background: none !important;
}

nav .logo h2{
	letter-spacing: 5px;
}

/* new shop page */
.content.shop{
  max-width: 80%;
  width: 80%;
  margin: 10vh auto 0;
}

.shop h3 {
	font-size: 30px;
	margin: 0 auto;
}

.shop h4 {
	font-size: 18px;
	font-weight: bold;
	margin: -10px auto 10px;
	background: #000;
	color: #fff;
	padding: 0 10px;
	display: inline-block;
}

.shop hr {
	margin: 10px auto;
}
.shop h4 + hr {
	margin-bottom: 40px;
}

.shop ul {
	list-style: none; font-weight: bold; padding-left: 0;
	margin-bottom: 30px;
}

/* fixes for embedded store */
#embed-root-modal figure img {
	max-width: 70% !important;
	margin: 0 auto !important;
}
#embed-root-modal figure {
	xbackground: #222 !important;
}


#embed-root-modal > div.notranslate > div.notranslate > div > div {
	max-width: 100% !important;
}
#embed-root-modal > div.notranslate > div.notranslate > div > div+div {
	xpadding-right: 10% !important;
}

#noscriptshop {
display: block; margin: 0 auto; width: 200px; text-align: center; font-weight: bold; background: #26f; color: #fff; padding: 10px 25px;
border: 1px solid #04c;
border-radius: 4px;
}
#noscriptshop:hover {
background:#04c;
text-decoration: underline;
}

/* error banner */
#errorbanner {
  margin: 10vh auto -10vh;
  padding: 10px;
  background: #a00;
  color: #fff;
  text-align: center;
}

/* hero tweaks */
.hero{
 height: 30vh !important;
}

.main{
  padding-top: 0 !important;
}

.arrow {
  display: none;
}

/* end AA added */

.hero{
  height: 90vh;
  width: 100vw;
  margin: 10vh auto 0;
  background: url('../img/heroimage.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.2);
  opacity: 0.8;
  color: white;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 50px;
  box-sizing: border-box;
  transition: all 0.5s ease-in-out;
}
@media screen and (prefers-reduced-motion: reduce) { .hero { transition: none; } }
.vineimage{
  background: url('../img/heroimage2.jpeg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.zero{
  background: url('../img/heroimage.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.one{
  background: url('../img/heroimage1.jpeg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.two{
  background: url('../img/heroimage2.jpeg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
}
.three{
  background: url('../img/heroimag3.jpeg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  }
}

.arrow{
  transform: translateY(0px);
  animation: bounce 5s infinite;
  -webkit-animation: bounce 5s infinite; /* Safari 4+ */
  -moz-animation:    bounce 5s infinite; /* Fx 5+ */
  -o-animation:      bounce 5s infinite;

}
.main{
  width: 80%;
  padding: 10vh 0;
  margin: 20px auto;
  display: flex;
  justify-content: space-between;
  font-family: 'Roboto', sans-serif;

}
.content{
  height: 100%;
  max-width: 60%;
}
.content.vineyard{
  max-width: 80%;
  width: 80%;
  margin: 0 auto;
}
.facebook{
  color: #728699;
  font-size: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 20px 0 0 0;
}
.facebook i{
  font-size: 30px;
  margin-right: 20px;
}
.indent{
  margin-left: 20px;
}
.openingtimes{
  text-align: center;
  background-color: #efefef;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
}
.news{
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

.newsitem{
  background: #728699;
  margin: 0 20px 0 0;
  min-width: 100%;
  display: inline-block;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 20px;
  color: white;
}
.newsitem .title{
  font-weight: 600;
}
.newsitem .date{
  font-weight: 400;
  font-style: italic;
  color: #efefef;
  margin-bottom: 10px;
}
.newsitem .newscontent{
  font-size: 16px;
  background: transparent;
  white-space: normal;
  text-overflow: ellipsis;
  margin: 0;

}
.homeGallery{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.galleryItem{
  background: #728699;
  width: 50%;
  height: 250px;
  box-sizing: border-box;
  border-radius: 20px;
  color: white;
  width: 100%;
}
.homeGallery div{
  width: 45%;
}
.homeGallery div p{
  text-align: center;
  font-style: italic;
  color: #888
}
#image1{
  background: url(../img/galleryimageone.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
}
#image2{
  background: url(../img/vineyard2.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
}
.mobileaddress{
  display: none;
}
.pickweighpay{
  height: 150px;
  width: 100%;
  background: url(../img/pickweighpay.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.sidebar{
  height: 100%;
  width: 30%;
  border-left: 1px solid #cfcfcf;
  margin: 0 0 0 20px;
  padding: 0 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sidebar p{
  width: 90%;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
}
.sidebar h4{
  margin-top: 1em;
}

form{
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: 10px auto;
  width: 90%;
}
/* honeypot */
.buzz {
  position: absolute;
  left: -1234px;
}
label {
  font-weight: bold;
  font-size: 0.9em;
  text-align: left;
  margin-bottom: 5px;
}
input,textarea{
  width: 100%;
  margin: 0 0 10px 0;
  border-radius: 10px;
  outline: none;
  padding: 6px 20px;
  box-sizing: border-box;
  border: 1px solid #728699;
}
textarea{
  height: 150px;
}
input[type=submit]{
  background: #728699;
  color: white;
  font-weight: bolder;
}

.fruitgroup{
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.fruit{
  height: 50px;
  width: 50px;
}
#strawberry{
  background: url('../img/strawberry.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
#raspberry{
  background: url('../img/raspberry.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
#gooseberry{
  background: url('../img/gooseberry1.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
#gooseberry1{
  background: url('../img/gooseberry2.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
#redcurrant{
  background: url('../img/redcurrant.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
#blackcurrant{
  background: url('../img/blackcurrant.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.fruitinfo{
  display: block;
  margin-left: 10px;
}
.fruitinfotext{
  display: flex;
  justify-content: space-between;
}
.fruitname{
  color: #333
}
.fruitprice{
  color: #cfcfcf;
  font-style: italic;
  font-size: 14px;
}

.fruitreadyness{
  text-align: center;
  height: 18px;
  width: 200px;
  background: grey;
  border-radius: 10px;
  color: white;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}
.ready:before{
  content: "Ready To Pick";
}
.ready{
  background: #8ce27a;
}
.ending:before{
  content: "Ending";
}
.ending{
  background: #e8b679;
}
.nearly:before{
  content: "Nearly There";
}
.nearly{
  background: #e8b679;
}
.not:before{
  content: "Out of Season";
}
.not{
  background: #e57a7a;
}

footer{
  background: lightgrey;
  width: 100vw;
  padding: 15px 0;
  display: flex;
  justify-content: center;
}
footer h3{
  margin: 0 0 20px 0;
}
.footeraddress{
  width: 40%;
  display: flex;
  justify-content: center;
}
.address{
  display: flex;
  flex-direction: column;
  margin-left: 20px;
}
.footercontact{
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footerlink{
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.footerlink i{
  margin-right: 20px;
}

.bottom{
  background: #333;
  height: 50px;
  width: 100vw;
}
.rightmenutoggle{
  display: none;
  cursor: pointer;
}
.mobileMenu{
  display: none;
  cursor: pointer;
}
.mobileReadynessMenu{
    display: none;
}
.mobileMainMenu{
  display: none;
}
.mobileMenuOpen{
  display: none
}
.mobileMenuClose{
  display: none
}
.rules{
  background: #728699;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  color: white;
}
.rules ul {
  padding: 0;
}
.rules h3 {
  margin: 0;
}
.rules ul li{
  list-style: none;
  margin: 0 0 10px 0;
}
.rules ul li:before {
  content: ">";
  margin-right: 20px;
  padding: 0;
}
.vineyardhr{
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  align-self: center;
  margin: 0 auto;
}
.horse{
  background: url('../img/scaddowsvineyardlogo.png');
  background-position: center;
  height: 150px;
  background-repeat: no-repeat;
  background-size: contain;
  width: 150px;
  margin: 0 40px;
  box-sizing: border-box;
}
.photogallery{
  width: 100%;
}
.row{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 0 30px 0;
}
.vineyardimg{
  height: 200px;
  width: 200px;
}
#vineyard1{
  background: url("../img/vineyard1.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

}
#vineyard2{
  background: url("../img/vineyard2.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#vineyard3{
  background: url("../img/vineyard3.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#vineyard4{
  background: url("../img/vineyard4.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#vineyard5{
  background: url("../img/vineyard5.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#vineyard6{
  background: url("../img/vineyard6.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.competitions{
  width: 100%;
  text-align: center;
  font-family: 'PT Serif Caption', serif;
  font-size: 60%;
  margin-bottom: 50px;
}
.competitions h3{
  font-size: 20px;
}
.competitions h4{
  font-size: 18px;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 900px) {
  :root{
    font-size: 14px;
  }
  body{
  }
  .mobileul{
    display: block;
    text-align: center;
    padding: 0;
  }
  .mobileul li{
    margin: 20px 0;
  }
  .hero{
    height: 90vh;
  }
  .mobileMainMenu{
    height: 90vh;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 10vh;
    left: 0;
    background: #728699;
    color: white;
    transition: 0.3s all ease-in-out;
    overflow-y: scroll;
  }
@media screen and (prefers-reduced-motion: reduce) { .mobileMainMenu { transition: none; } }
  hr{
    border-color: white;
    margin: 20px 0;
  }
  /* AA added to fix shop title spacing on mobile */
  .shop hr{
   display: none;
  }
  .online-shop + .main {
	  margin-top: 0;
}
  /* end AA added */
  .mobilemenuform{
    width: 100%;
  }
  input[type=text], input[type=email]{
    border: 1px solid #728699;
    outline: none;
    padding: 0 20px;
    box-sizing: border-box;
    color: #728699;
  }
  input[type=submit]{
    border: 1px solid #fff;
    background: #728699;
    outline: none;
    color: white;
    font-weight: bolder;
  }

  .mobileMainMenuNotactive{
    left: -90%;
  }

  .mobileMenuOpen{
    position: absolute;
    display: block;
    font-size: 20px;
    color: #728699;
    left: 20px;
    line-height: 10vh;
    transition: 0.3s all ease-in-out;
  }
  .mobileMenuClose{
    position: absolute;
    display: none;
    font-size: 20px;
    color: #728699;
    line-height: 10vh;
    left: 20px;
    transition: 0.3s all ease-in-out;
  }
  .mobileMenuOpenActive{
    left: inherit;
    display: none;
  }
  .mobileMenuCloseActive{
    left: 20px;
    display: block;
  }
  .rightmenutoggle{
    display: block;
    position: fixed;
    top: 200px;
    left: calc(100% - 40px);
    height: 40px;
    width: 200px;
    background: white;
    border: 1px solid #728699;
    border-top: none;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    box-shadow: 1px 3px 5px #555;
    z-index: 10;
    transform: rotate(90deg);
    transform-origin: bottom left;
    transition: 0.3s all ease-in-out;

  }
@media screen and (prefers-reduced-motion: reduce) { .mobileMenuOpen, .mobileMenuClose, .rightmenutoggle { transition: none; } }
.rightmenutoggleActive{
  left: inherit;
  left: 0;
}
.rightmenutoggletext {
  text-align: center;
  width: 150px;
  height: 20px;
  margin: 0 auto;
  z-index: 11;
  display: block;
}
.mobileReadynessMenu{
  height: 90vh;
  width: calc(100% - 41px);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  position: absolute;
  top: 10vh;
  right: 0;
  background: #728699;
  transition: 0.3s all ease-in-out;
  overflow-y: scroll;
}
@media screen and (prefers-reduced-motion: reduce) { .mobileReadynessMenu { transition: none; } }
.mobileReadynessMenu p{
  text-align: center;
  width: 80%;
}
.mobileaddress{
  display: block;
  width: 100%;
  text-align: center;
  background-color: #efefef;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
}
.fruitgroup{
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}
.fruit{
  height: 35px;
  width: 35px;
}
.fruitinfo{
  display: block;
  margin-left: 10px;
}
.fruitinfotext{
  display: flex;
  justify-content: space-between;
}
.fruitname{
  color: white;
}
.fruitprice{
  color: #cfcfcf;
  font-style: italic;
  font-size: 14px;
}
.mobileReadynessMenuNotactive{
  right: -100%;
}
  .sidebar{
    display: none;
  }
  .main{
    width: 100%;
  }
  .content{
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
  }

  .homeGallery{
    width: 90%;
    display: block;
    margin: 0 auto;
  }
  .homeGallery div{
    width: 100%;
  }
  .galleryItem{
    margin: 0;
    height: 150px;
    width: 100%;
  }
  nav{
    width: 100%;
    position: fixed;
    z-index: 10;
    margin: 0;
    padding: 0px;
  }
  nav ul{
    display: none;
  }
  nav .logo{
    width: 70%;
    max-width: 70%;
    margin: 0 auto;
    text-align: center;
  }

  nav .logo h1{
    font-size: 16px;
    padding: 0;
    margin: 0;
  }
  nav .logo h2{
    font-size: 12px;
    padding: 0;
    margin: 0;
    letter-spacing: 5px;
  }
 .footeraddress{
   display: none;
 }
 .footerlink{
   display: flex;
   align-items: center;
 }
 .horse{
   width: 80%;
   margin: 0 0 10px 0;
 }
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
