/*
Theme Name: Twenty Seventeen Child
Theme URI: http://example.com/
Description: Child theme for Twenty Seventeen
Author: Matthew Young
Author URI: http://example.com/
Template: twentyseventeen
Version: 1.0.0
*/

/* 1. The Main Container */
.fjc-hero-carousel {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  position: relative;
  /* Ensure the container doesn't hide the arrows */
  overflow: visible !important;
}

/* 2. The Slide - Shrinks to fit image proportions */
.hero-slide {
  width: 100%;
  aspect-ratio: 16 / 5;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
}

/* This is the magic CSS that hides text from the screen but leaves it for Screen Readers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* 4. Fix the Arrows (Accessible-Slick) */
/* This forces them to be visible on top of the image */
.slick-prev,
.slick-next {
  z-index: 10;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.3) !important; /* Makes arrows pop */
  border-radius: 50%;
}

.slick-prev {
  left: 20px;
}
.slick-next {
  right: 20px;
}

/* Ensure the arrow icons (the < and >) are white and large */
.slick-prev:before,
.slick-next:before {
  color: #ffffff !important;
  font-size: 30px;
  opacity: 1;
}

.slide-link {
  background-color: #ffffff;
  display: block;
  width: 100%;
  height: 100%; /* Important: takes height from .hero-slide */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain; /* Shows the whole image, no zoom */
  text-decoration: none;
}

/* 5. Mobile Adjustment - Make it taller on phones so it's readable */
@media (max-width: 768px) {
  .hero-slide {
    aspect-ratio: 4 / 3; /* Square-ish on mobile */
  }
  .hero-overlay {
    left: 0;
    width: 100%;
    text-align: center;
  }
}

/* 3. Remove the extra space Twenty Seventeen adds to entry-content */
.entry-content .fjc-hero-carousel {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
