.hero img {
  display: block;
  width: 100%;
  min-height: 400px;
  object-fit: cover;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
  padding: 2rem;
  margin: auto;
  max-width: 800px;
  color: rgb(var(--pri));
}

.hero__content h1 {
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 2rem;
  line-height: 100%;
}

.hero__content .ctas {
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
}

.hero__content a {
  padding: 0.3em 1em;
  background-color: rgb(var(--pri));
  color: rgb(var(--sec));
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.hero__content a:focus,
.hero__content a:hover {
  opacity: 0.5;
}

.hero__bg {
  display: grid;
  background-color: #000;
}

/* Below class is a div post-generated by JQuery */
.infiniteslide_wrap {
  background-color: rgb(var(--sec));
}

.infinite-ticker {
  color: rgb(var(--pri));
  font-weight: 200;
}

.infinite-ticker ul {
  display: flex;
  flex-flow: row nowrap;
  list-style-type: none;
}

.infinite-ticker li {
  position: relative;
  white-space: nowrap;
  padding: 0.5rem 2rem;
}

.infinite-ticker i {
  position: absolute;
  font-size: 0.75em;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

#products {
  display: grid;
  padding: 4rem 0;
  gap: 8rem;
}

.product {
  display: grid;
  width: 100%;
  padding-right: var(--header-padding-x);
  grid-template-areas: "text image";
  gap: var(--header-padding-x);
}

.product:nth-child(2n) {
  grid-template-areas: "image text";
  padding-left: var(--header-padding-x);
  padding-right: 0;
}

.product:nth-child(2n) .text {
  margin-left: auto;
}

.product img {
  grid-area: image;
  margin: auto;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.product .text {
  position: relative;
  display: flex;
  flex-flow: column;
  justify-content: center;
  gap: 0.5rem;
  grid-area: text;
  max-width: 40vw;
  padding: 2rem;
  padding-inline: var(--header-padding-x);
  margin: auto 0;
  color: rgba(var(--pri));
}

.product .text::before {
  position: absolute;
  content: "";
  top: 0rem;
  right: 0rem;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--sec), 0.75);
  z-index: -1;
  border-radius: 0 10px 10px 0;
}

.product:nth-child(2n) .text::before {
  border-radius: 10px 0 0 10px;
}

.product h2 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.75em;
}

.product ul {
  display: flex;
  flex-flow: row wrap;
  gap: 0.5em;
  list-style-type: none;
}

.product li {
  padding: 0.25rem 0.5rem;
  line-height: 100%;
  border-radius: 2rem;
  background-color: rgb(var(--pri));
  color: rgb(var(--sec));
}

.product a {
  padding: 0.3em 1em;
  margin-right: auto;
  margin-top: 1rem;
  color: rgb(var(--pri));
  border: 2px solid rgb(var(--pri));
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.product a:focus,
.product a:hover {
  background-color: rgb(var(--pri));
  color: rgb(var(--sec));
}

.recent {
  display: grid;
  width: 100%;
}

.recent h2 {
  width: 100%;
  text-align: center;
  background: rgb(var(--sec));
  color: rgb(var(--pri));
  text-transform: uppercase;
  font-weight: normal;
  font-size: 2em;
  padding: 0.5em 0;
}

.recent__posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 700px), 1fr));
  gap: calc(var(--header-padding-x) / 2);
  padding: var(--header-padding-x);
}

.post {
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-template-columns: 1fr auto;
  padding: 1rem;
  border-radius: 0.5rem;
  column-gap: 1rem;
  color: rgb(var(--pri));
  overflow-x: auto;
}

.post__title {
  letter-spacing: 0.075em;
  font-size: 1.5em;
  font-weight: normal;
  grid-column: 1 / 3;
}

.post__date {
  opacity: 0.5;
  margin-bottom: 0.5rem;
  grid-column: 1 / 3;
}

.post__content {
  margin: auto 0;
}

.post__content p + p {
  margin-top: 0.5rem;
}

.post__img {
  margin: auto;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

#posts_more {
  margin: auto;
  grid-column: 1/-1;
  padding: 0.3em 1em;
  background-color: rgb(var(--pri));
  color: rgb(var(--sec));
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

#posts_more:focus,
#posts_more:hover {
  opacity: 0.5;
}

.contact h2 {
  width: 100%;
  text-align: center;
  background: rgb(var(--sec));
  color: rgb(var(--pri));
  text-transform: uppercase;
  font-weight: normal;
  font-size: 2em;
  padding: 0.5em 0;
}

.contact__content {
  padding: var(--header-padding-x);
}

.contact__inner {
  display: grid;
  border-radius: 0.5rem;
  grid-template-columns: repeat(2, 1fr);
  padding: var(--header-padding-x);
  gap: var(--header-padding-x);
}

.contact__details {
  display: flex;
  flex-flow: row wrap;
  gap: 1em;
  grid-column: 1/3;
  font-size: 1.2em;
  color: rgb(var(--pri));
  justify-content: space-around;
  text-align: center;
}

.contact__details a {
  color: inherit;
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact__details a:hover,
.contact__details a:focus {
  opacity: 0.8;
}

.contact__form {
  display: grid;
  width: 100%;
  gap: 0.5rem;
  font-size: 1.2em;
}

.contact__form label {
  display: grid;
  gap: 0.5rem;
}

.contact__form p {
  color: rgb(var(--pri));
}

.contact__form .fa-asterisk {
  color: red;
  font-size: 0.6em;
}

.contact__form span {
  font-size: 0.75em;
  opacity: 0.75;
}

.contact__form input,
.contact__form textarea {
  background-color: #fff2;
  border: 0;
  outline: 0;
  font-size: 1rem;
  padding: 0.5em;
  color: rgb(var(--pri));
  resize: vertical;
}

.contact__form input:focus,
.contact__form textarea:focus {
  background-color: #fff3;
}

.contact__buttons {
  display: grid;
  grid-template-columns: auto auto;
  border-radius: 0.5em;
  margin-right: auto;
  overflow: hidden;
  margin-top: 0.5em;
}

.contact button {
  padding: 0.75em 2em;
  font-size: 1em;
  border: 0;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.1s;
}

.contact button:hover,
.contact button:focus {
  opacity: 0.75;
}

.contact__map {
  height: 100%;
  width: 100%;
}

@media (max-width: 1024px) {
  #products {
    padding: 2rem;
    gap: 2rem;
  }
  .product {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "image" "text" !important;
    padding: 0 !important;
    gap: 2rem;
  }
  .product .text {
    max-width: none;
  }
  .product .text::before {
    border-radius: 10px !important;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact__details {
    grid-column: 1 / 2;
  }

  .contact__map {
    height: 400px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    text-align: center;
  }
  .hero .ctas {
    margin: auto;
  }
  #products ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .post {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "date"
      "image"
      "content";
  }
  .post__title {
    grid-area: title;
    text-align: center;
  }
  .post__date {
    grid-area: date;
    text-align: center;
    margin: 0;
  }
  .post__img {
    grid-area: image;
    width: 100%;
    height: auto;
    max-height: 60vh;
    margin: 1rem 0;
  }
  .post__content {
    grid-area: content;
    text-align: justify;
    text-align-last: center;
  }

  .jumbo {
    text-align: justify;
    text-align-last: center;
  }

  .post.hide_below_540 {
    display: none;
  }
}

@media (max-width: 420px) {
  .contact__form {
    overflow-x: auto;
  }
}
