/**
 * @file
 * This file is used to style the banner block.
 */
/* #block-views-block-recipes-random-image .view-content {
  width: 100vw;
  display: block;
  height: 200px;
  overflow: hidden;
  margin: 0;
} */

#block-views-block-recipes-random-image .view-content .views-row {
  margin: 0;
}

#block-views-block-recipes-random-image img {
  width: 100vw;
  line-height: 0;
}



#block-views-block-recipes-last-recipe .view-display-id-last_recipe>.view-content {
  justify-content: center;
}

#block-views-block-recipes-last-recipe .views-field-nothing>.field-content>div {
  justify-content: center;
  /* min-height: 43vw; */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

#block-views-block-recipes-last-recipe .views-field-nothing>.field-content>div>div {
  /* transform: translate(-50%, -50%); */
  /* width: 100%; */
  /* position: absolute; */
  /* left: 50%; */
  /* top: 50%; */
}

#block-views-block-recipes-last-recipe .views-field-nothing>.field-content .inner-wrapper {
  background-color: rgba(0, 0, 0, .5);
  padding: 30px;
  color: white;
  min-height: 43vw;
}

#block-views-block-recipes-last-recipe .views-field-nothing>.field-content .inner-wrapper h1 {
  font-size: 30px;
}

#block-views-block-recipes-last-recipe .views-field-nothing>.field-content>div>div a {
  background-color: #da3c13;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
}

#block-views-block-recipes-last-recipe .views-field-nothing>.field-content>div>div>p {
  color: white;
  font-size: 23px;
  line-height: normal;
}

#block-views-block-recipes-last-recipe .view-content .views-row {
  flex-direction: column;
  margin: 0;
}

#block-views-block-recipes-last-recipe .view-content .views-row>div {
  width: 100vw;
}


#block-views-block-recipes-last-recipe .views-field-field-media-image {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0px;
  overflow: hidden;
  display: inline-block;
  z-index: -1;
  min-height: 43vw;
}

#block-views-block-recipes-last-recipe .views-field-field-media-image .field-content {
  /* transform: translateY(-50%);
  position: relative;
  top: 50%; */
}

#block-views-block-recipes-last-recipe .views-field-field-media-image .field-content img {
  width: 100%;
  min-height: 43vw;
}

.block-type-banner-block {
  background-size: 0 0;
}

.block-type-banner-block .summary {
  margin: 1rem 4%;
}

.block-type-banner-block .field--name-field-title {
  margin: 0 0 0.5em 0;
  font-family: "Scope One", Georgia, serif;
  font-size: 1.777em;
  font-weight: 400;
  line-height: 1.2em;
}

.block-type-banner-block .field--name-field-summary {
  margin-bottom: 1.28em;
  font-size: 1.188em;
}

.block-type-banner-block .field--name-field-content-link a {
  display: inline-block;
  padding: 0.7em 1.3em;
  cursor: pointer;
  transition: background-color 0.5s ease;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border: 2px solid #d93760;
  border-radius: 3px;
  background-color: #d93760;
  font-family: "Scope One", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
}

.block-type-banner-block .field--name-field-content-link a:focus,
.block-type-banner-block .field--name-field-content-link a:hover {
  color: #000;
  border-color: #d93760;
  outline-color: #fff;
  outline-offset: 2px;
  background-color: #fcece7;
}

/* Medium */
@media screen and (min-width: 48rem) {
  #block-views-block-recipes-last-recipe .views-field-nothing>.field-content .inner-wrapper {
    height: 100%;
    padding: 60px;
    width: 50%;
    min-height: 43vw;
  }

  #block-views-block-recipes-last-recipe .views-field-nothing>.field-content>div>div {
    transform: none;
    left: 0;
    top: 0;
    bottom: 0;
  }


  /* 768px */
  .block-type-banner-block {
    background-color: #464646;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
    /* Image ratio 7:3 */
  }

  .block-type-banner-block .block-inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    min-height: 54vw;
    margin: 0 auto;
    padding: 0 4%;
  }

  .block-type-banner-block .summary {
    flex: 0 0 50%;
    margin: 0;
    padding: 1.777em;
    color: #fff;
    border: 1px solid #464646;
    background: rgba(0, 0, 0, 0.42);
  }

  .block-type-banner-block .field--name-field-media-image {
    /**
     * We need to ensure that the alt text on the image is accessible to
     * screenreaders, so, when on large screens, let's give this the same CSS
     * as the .visually-hidden class has.
     */
    position: absolute !important;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    word-wrap: normal;
  }
}

/* Large */
@media screen and (min-width: 60rem) {
  #block-views-block-recipes-last-recipe .views-field-nothing>.field-content>div>div {
    max-width: 1200px;
    transform: translateX(-50%);
    width: 100%;
    position: relative;
    left: 50%;
    /* top: 50%; */
  }

  #block-views-block-recipes-last-recipe .views-field-nothing>.field-content .inner-wrapper {
    height: auto;
    width: 50%;
    /* top: 50%; */
    /* position: relative; */
    /* transform: translateY(-50%); */
    min-height: auto;
  }

  /* 960px */
  .block-type-banner-block .summary {
    flex: 0 0 41%;
  }

  .block-type-banner-block .block-inner {
    min-height: 43vw;
  }
}

/* Extra large + side margins */
@media screen and (min-width: 80rem) {

  /* 1200px (large) + 80px (side margins) = 1280px */
  .block-type-banner-block .block-inner {
    padding: 0;
  }
}