/*
 Theme Name:   Carrepair Child
 Description: Child theme for Carrepair
 Author:      Your Name
 Template:    carrepair
 Version:     1.0
*/
:root {
  --colorMain: #ee3435;
}

/* 
 * Navigation styles
 */
/* Override main.js height setting for page_header */


/* End of Navigation styles */

/* Force Footer Background color to be dark Gray */
.ds.color {
    background-color: #000915;
}
/* Wrapper fixed to right-center */
#sticky-form-wrapper {
  position: fixed;
  top: 40%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
}
/* Sticky button */
#sticky-form-toggle {
  background: var(--colorMain);
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 6px 0 0 6px;
  cursor: pointer;
  font-size: 16px;
  white-space: nowrap;
  transition: all .3s ease-in-out 0s;
  opacity: .7;
}
#sticky-form-toggle:hover {
  background: var(--colorMain);
  opacity: 1;
}
#sticky-form-toggle:after, #sticky-form-close:after {
  background: var(--colorMain);
}
#sticky-form-close {
  padding: 0;
  text-align: right;
}
/* Hide button when panel is open */
#sticky-form-toggle.hidden, .sticky-button-hide {
  display: none;
}
/* Slide-out panel */
#sticky-form-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  height: 100vh;
  background: var(--colorMain);
  color: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  transition: right 0.35s ease;
  padding: 24px;
  border-radius: 0;
}
#sticky-form-panel .form-builder-item {
    margin-bottom: 15px;
}

/* Active state */
#sticky-form-panel.active {
  right: 0;
}
#sticky-form-panel input,
#sticky-form-panel textarea,
#sticky-form-panel select {
  background-color: rgba(255, 255, 255, 1);
  color: #262626;
  padding: 5px;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
  height: 40px;
  border-radius: 0;
  font-size: 14px;
}
#sticky-form-panel input::placeholder,
#sticky-form-panel textarea::placeholder {
  color: var(--colorMain);
}
/* Close button */
#sticky-form-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/*
 *  Youtube Embed Plus: Gallery Styles
 * 
 * /
 
/* Create a grid container from the parent wrapping all the video divs */
 #youtube-embed-gallery .col-xs-12 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Remove empty p tags so they do not create a grid row. */
 #youtube-embed-gallery .col-xs-12 > p:empty {
  display: none;
}

/* Make the h2 and p span ALL columns so they don't eat video slots */
#youtube-embed-gallery .col-xs-12 > h2,
#youtube-embed-gallery .col-xs-12 > p {
  grid-column: 1 / -1;
}

/* Each video wrapper defines its own 16:9 box */
.epyt-video-wrapper {
  min-width: 0;
  aspect-ratio: 16 / 9;
  position: relative;
}

/* Inner plugin div fills the wrapper */
.epyt-video-wrapper > div {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Facade and iframe fill the inner div */
.epyt-video-wrapper .epyt-facade,
.epyt-video-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
}

/* Responsive: 2 across on tablet */
@media (max-width: 900px) {
  #youtube-embed-gallery .col-xs-12 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 across on mobile */
@media (max-width: 480px) {
  #youtube-embed-gallery .col-xs-12 {
    grid-template-columns: 1fr;
  }
}