:root{
  --slider-desktop-height: 450px;
  --slider-mobile-height: 600px;
  --slider-primary-color: hsl(301deg 32% 36%);
  --slider-button-hover-color: hsl(301deg 54% 24%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  border: 0;
}

.mdc-custom__slider {
  overflow: hidden;
  text-align: center;
  /** Autoplay toggle button in the top left corner */
  /** Custom previous and next arrows in the top right corner */
  /** Default slide navigation dots */
  /** Slide content */
}

.mdc-custom__slider-overlay > div:not(.container) {
  max-width: 65ch;
}

.mdc-custom__slider-overlay--color {
  background-color: hsl(0 0% 0% / 60%);
  color: #fff;
}

:is(.slick-autoplay-toggle-button, .mdc-custom__slider-custom-prev-button, .mdc-custom__slider-custom-next-button) svg {
  fill: #fff;
}

.mdc-custom__slider-title,
.mdc-custom__slider-description,
.mdc-custom__slider-btn,
.mdc-custom__slider-img-tint,
.mdc-custom__slider-background-video,
.mdc-custom__slider-background-image {
   -webkit-transform: translate3d(0,0,0); /**Fixes a bug with the transition3d that makes the elements hidden on slide for a second only on mobile */
}

.mdc-custom__slider .slick-dots li.slick-active button:focus .slick-dot-icon,
.mdc-custom__slider .slick-dots li button:focus .slick-dot-icon::before {
  color: var(--primary-color);
}

.mdc-custom__slider-arrow,
.mdc-custom__slider-pause,
.mdc-custom__slider-play {
  width: 32px;
  height: 32px;
}

.mdc-custom__slider-arrow {
  display: flex;
  padding: 0.2rem;
}

.mdc-custom__slider, .mdc-custom__slider .slick-track {
  position: relative;
  -webkit-backface-visibility: hidden;
}

.mdc-custom__slider .slick-autoplay-toggle-button,
.mdc-custom__slider-custom-container {
  position: absolute;
  background: none;
  border: 0;
  z-index: 10;

  opacity: 1;
  color: black;
}

.mdc-custom__slider-custom-container {
  bottom: 50px;
  color: #fff;
  width: 100%;

  display: flex;
  justify-content: center;
}

.mdc-custom__slider-custom-view,
.mdc-custom__slider-custom-view:hover,
.mdc-custom__slider-custom-view:focus {
  background-color: transparent;
  box-shadow: none;
  text-align: center;
}

.mdc-custom__slider-custom-view-svg {
  width: 30px;
  height: 30px;
  display: block;
  margin: 0 auto;
}

.mdc-custom__slider .slick-autoplay-toggle-button {
  bottom: auto;
  left: 3rem;
  font-size: 32px;
  display: flex;
  padding: 0.3rem;
  cursor: pointer;
}

.mdc-custom__slider .slick-autoplay-toggle-button,
.mdc-custom__slider-custom-prev-button,
.mdc-custom__slider-custom-next-button {
  top: 2rem;
}

.mdc-custom__slider .slick-autoplay-toggle-button:where(:hover, :focus) {
  background-color: rgba(0, 0, 0, 0.05);
}

.mdc-custom__slider .la, .mdc-custom__slider .las,
.mdc-custom__slider .slick-dots li.slick-active button .slick-dot-icon{
  color: var(--primary-color);
}

.mdc-custom__slider .slick-dots li button .slick-dot-icon {
  color: #fff;
  opacity: 1;
}

.mdc-custom__slider-custom-prev-button,
.mdc-custom__slider-custom-next-button {
  position: absolute;
  right: 3rem;
  z-index: 1;
  display: block;
  float: left;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 32px;
  cursor: pointer;
}

.mdc-custom__slider-custom-prev-button:where(:hover, :focus),
.mdc-custom__slider-custom-next-button:where(:hover, :focus) {
  background-color: rgba(0, 0, 0, 0.05);
}

.mdc-custom__slider-custom-prev-button {
  right: 6rem;
}

.mdc-custom__slider .slick-dots {
  bottom: 0.5rem;
}

.mdc-custom__slider .slick-slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--slider-mobile-height);
  height: auto;
  /** Float text overlay */
}

.mdc-custom__slider-background-image {
  width: 100%;
  display: inline !important;
  height: var(--slider-mobile-height);
  object-fit: cover;
}

.slick-slide > div {
  width: 100%;
}

.mdc-custom__slider-overlay {
  width: 100%;
  transition: width .2s ease-in-out;
  padding: 5rem 3rem;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mdc-custom__slider-overlay__grid {
  display: grid !important;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.mdc-custom__slider-overlay__grid picture {
  display: contents;
}

.mdc-custom__slider-overlay,
.mdc-custom__slider-background-image {
  grid-column: 1/2;
  grid-row: 1/2;
}

.mdc-custom__slider-background-image {
  z-index: 1;
}

.mdc-custom__slider .mdc-custom__slider-title {
  font-size: clamp(2.4rem, 2.5vw, 3.2rem);
  color: #fff;
  padding: 0;
  margin-top: 1rem;
}

.mdc-custom__slider-description {
  margin-bottom: 1rem;
  overflow: hidden;
  /*--Needed for text line limit--*/
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

/*--Checking to see if title exist, if not, darken the background-color on the controls--*/
.mdc-custom__slider-custom-next-button:not(:has(~ .slick-list .slick-active .mdc-custom__slider-title)),
.mdc-custom__slider-custom-prev-button:not(:has( ~ .slick-list .slick-active .mdc-custom__slider-title)),
.mdc-custom__slider .slick-autoplay-toggle-button:not(:has(~ .slick-list .slick-active .mdc-custom__slider-title)),
.mdc-custom__slider:not(:has(.slick-list .slick-active .mdc-custom__slider-title)) .slick-dots > li
 {
  background-color: hsl(0 0% 0% / 80%);
}

.mdc-custom__slider:not(:has(.slick-list .slick-active .mdc-custom__slider-title)) .slick-dots > li:first-child {
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
}

.mdc-custom__slider:not(:has(.slick-list .slick-active .mdc-custom__slider-title)) .slick-dots > li:last-child {
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
}

.mdc-custom__slider-overlay:not(:has(.mdc-custom__slider-title)) {
  background-color: transparent;
}

/** Generic ghost button styles */
.mdc-custom__slider-btn{
  display: inline-block;
  /*margin-top: 10px;*/
  padding: 10px 30px;
  font-family: 'Oswald',sans-serif;
  font-size: 14px;
  background-color: var(--primary-color);
  border-radius: .25rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.1s linear;
}

.mdc-custom__slider a.mdc-custom__slider-btn {
  color: #fff;
}

a.mdc-custom__slider-btn:is(:hover, :focus) {
  background-color: var(--primary-color-500);
  color: #fff;
  text-decoration: underline;
  box-shadow: none;
}

.mdc-custom__slider-btn:focus {
  box-shadow: none;
  outline: 4px dashed black;
  outline-offset: 2px;
}

.mdc-custom__slider .slick-dots {
  display: grid;
  grid-template-columns: repeat( auto-fit, 25px);

  justify-content: center;
}

.mdc-custom__slider .slick-dots li button .slick-dot-icon::before,
.mdc-custom__slider .slick-dots li.slick-active button .slick-dot-icon::before {
  font-size: 4rem;
  margin-top: 0;
  margin-left: 0;
  line-height: .5;
  height: 100%;
  display: block;
}

.mdc-custom__slider .slick-dots li button .slick-dot-icon:before {
  position: relative;
}

.mdc-custom__slider .slick-dots li button {
  width: auto;
  height: auto;
  margin-top: 0;
  margin-left: 0;
  padding: 0;
}

.mdc-custom__slider .slick-dots li {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 2rem;
}

/* ----------------------------------------------------------------
Styles to make the slider display correctly in edit view in LiveSite; target ".iw-fullscreen-edit" if you want to change the look in edit view
-------------------------------------------------------------------*/

/* --------------------------
Media Breaks
-------------------------- */

@media (min-width: 991px) {
  .mdc-custom__slider {
    height: var(--slider-desktop-height);
  }

  .mdc-custom__slider .slick-slide {
    min-height: var(--slider-desktop-height);
  }

  .mdc-custom__slider-background-image {
    height: var(--slider-desktop-height);
  }

  .mdc-custom__slider-overlay {
    max-height: var(--slider-desktop-height);
  }

  .mdc-custom__slider-description {
    -webkit-line-clamp: 6;
  }  
}

@media (max-width: 990px) {
  .mdc-custom__slider {
    height: var(--slider-mobile-height);
  }

  .mdc-custom__slider-description {
    -webkit-line-clamp: 12;
  }
}


@media (max-width: 768px) {
  .mdc-custom__slider-custom-container {
    bottom: 10%;
  }

}

@media (max-width: 600px) {
  .mdc-custom__slider-description > div > span {
    font-size: 18px !important;
  }
}