/******************************************************************

Stylesheet: Block Style
Block: Cover

******************************************************************/
/******************************************************************

Stylesheet: Variables

Here is where we declare all our variables like colors, fonts,
base values, and defaults. We want to make sure this file ONLY
contains variables that way our files don't get all messy.
No one likes a mess.

******************************************************************/
/*********************
WRAPS
*********************/
/*********************
COLORS
*********************/
/*********************
FONT FAMILY
*********************/
/*********************
FONT SIZES
*********************/
/*********************
PADDINGS
*********************/
/*********************
TRANSITIONS
*********************/
.wp-block-acf-cover {
  position: relative;
}
.wp-block-acf-cover .sp-cover-image {
  width: 100%;
  min-height: 700px;
  height: 100vh;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  position: relative;
}
.wp-block-acf-cover .sp-cover-image:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(22, 47, 36, 0.3) 0%, rgba(22, 47, 36, 0) 60%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 1100px) {
  .wp-block-acf-cover .sp-cover-image {
    height: 100vh;
    aspect-ratio: auto;
  }
  .admin-bar .wp-block-acf-cover .sp-cover-image {
    height: calc(100vh - var(--admin-bar-height));
  }
}
.wp-block-acf-cover .sp-cover-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center center;
     object-position: center center;
}
.wp-block-acf-cover .cover-content {
  position: absolute;
  width: 100%;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  bottom: auto;
  margin-top: 0;
  z-index: 1;
}
@media (min-width: 768px) {
  .wp-block-acf-cover .cover-content {
    top: clamp(130px, 30%, 480px);
  }
}
.wp-block-acf-cover .cover-content .cover-text-line {
  color: #fff;
}
.wp-block-acf-cover .cover-content .cover-text-line > * {
  font-size: var(--wp--preset--font-size--sp-xxxl);
  line-height: 1.2;
}
.wp-block-acf-cover .text-slider {
  position: relative;
  visibility: hidden; /* prevent FOUC until GSAP sets it */
  overflow: hidden;
  max-width: 320px;
  color: #fff;
}
@media (max-width: 767px) {
  .wp-block-acf-cover .text-slider {
    text-align: center;
    margin: 0 auto;
    max-width: 480px;
  }
}
@media (min-width: 768px) {
  .wp-block-acf-cover .text-slider {
    max-width: 880px;
  }
}
.wp-block-acf-cover .text-slider .cover-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  height: 100%;
}
@media (max-width: 767px) {
  .wp-block-acf-cover .text-slider .cover-slide {
    align-items: center;
  }
}
.wp-block-acf-cover .text-slider .small-text {
  font-size: var(--sp-font-base-size);
  margin-bottom: 8px;
  font-weight: 500;
  display: block;
  width: 100%;
}
.wp-block-acf-cover .text-slider .sp-line {
  display: block;
  will-change: transform;
}
.wp-block-acf-cover .text-slider .sp-word {
  display: inline-block;
  will-change: transform;
}
.wp-block-acf-cover .text-slider > h2,
.wp-block-acf-cover .text-slider .text-slide {
  font-weight: 700;
  margin: 0;
}
@media (max-width: 400px) {
  .wp-block-acf-cover .text-slider .text-slide {
    font-size: 32px !important;
  }
}
.wp-block-acf-cover .cover-button-wrap {
  margin-top: 32px;
}
@media (max-width: 767px) {
  .wp-block-acf-cover .cover-button-wrap {
    text-align: center;
  }
}
.wp-block-acf-cover .cover-links {
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(40, 66, 54, 0.7);
}
.wp-block-acf-cover .cover-links .text-links {
  display: grid;
  justify-content: stretch;
  gap: 0;
  grid-template-columns: repeat(var(--cover-links-count), auto);
}
@media (max-width: 767px) {
  .wp-block-acf-cover .cover-links .text-links {
    display: none;
  }
}
.wp-block-acf-cover .cover-links .text-links > a {
  padding: 20px 0;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  font-size: 0.8em;
}
@media (min-width: 1100px) {
  .wp-block-acf-cover .cover-links .text-links > a {
    font-size: var(--sp-font-small-size);
  }
}
.wp-block-acf-cover .cover-links .text-links > a:after {
  display: block;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  content: "";
  width: 1px;
  height: 50%;
  background-color: #fff;
}
.wp-block-acf-cover .cover-links .text-links > a:last-child:after {
  content: none;
}
.wp-block-acf-cover .cover-links .text-links > a:hover {
  text-decoration: none;
  color: #c49a6c;
}
.wp-block-acf-cover .mobile-cover-subtext {
  position: absolute;
  width: 100%;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  z-index: 1;
  text-align: center;
  color: #fff;
  font-size: var(--sp-font-base-size);
}
@media (min-width: 768px) {
  .wp-block-acf-cover .mobile-cover-subtext {
    display: none;
  }
}
.wp-block-acf-cover .mobile-cover-subtext .cover-mobile-title {
  font-size: var(--wp--preset--font-size--sp-small);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
}
.wp-block-acf-cover .mobile-cover-subtext .cover-mobile-title a {
  color: #fff;
}
.wp-block-acf-cover .mobile-cover-subtext .cover-mobile-title a:hover, .wp-block-acf-cover .mobile-cover-subtext .cover-mobile-title a:focus {
  color: #c49a6c;
}
.wp-block-acf-cover .mobile-cover-subtext .big-wrap > * {
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
