/* The wrapper wraps the entire slider which is broken into header, frame, and controls */
.cgCar-wrapper {
    background-color: transparent;
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
    position: relative;
}

/* The header is an optional title that appears above the slider */
.cgCar-header {
    height: 75px;
    flex: 0 0 75px;
    box-sizing: border-box;
}

.cgCar-header h2 {
}

/* The frame fits around the main section of the slider and contains the slider panel which holds all slider items */
.cgCar-frame {
    background-color: transparent;
    width: 100%;
    flex: 0 0 550px; /* the frame has a height of 550px */
    height: 550px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* The slider panel holds all slider items. It is the part that moves back and forth within the frame */
.cgCar-slider {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;   /* slider height fills up the frame height */
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}

/* Individual slider item can be an image or block of text or whatever */
.cgCar-item {
    margin: 0 1.2vw;
    position: relative;
    overflow: hidden;
    color: #405060;
}

.cgCar-image {
    overflow: hidden;
}

.cgCar-image img {
    height: 22.5vw;
    width: 22.5vw;
    min-width: 250px;
    min-height: 250px;
    max-width: none;
}

.cgCar-image img.anim {
    transition: all 500ms ease-in-out;
}

.cgCar-title-box {
    position: absolute;
    top: 50%;
    width : 100%;
    transform: translateY(-50%);
    left: 0;
}

.cgCar-title {
    font-size: 1.6em;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    text-align: center;
    transition: font-size 500ms ease-in-out;
}

.cgCar-item.active .cgCar-title {
    font-size: 1.75em;
}

.cgCar-controls {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 0;
    width: 100vw;
    height: 1px;
    transform: translateY(-50%);
    display: block;
}
.focusCenter .cgCar-controls {
    left: 50%;
    transform: translate(-50%, -50%);
}

.cgCar-wrapper.mobileHideControls .cgCar-controls {
    display: none;
}

_:-ms-fullscreen, :root .cgCar-controls {
    display: block !important;
}

@media only screen and (pointer: fine) {
    .cgCar-controls {
        display: block !important;
    }
}

.cgCar-controls .cgCar-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6vw;
    height: 6vw;
    min-width: 45px;
    min-height: 45px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.cgCar-controls .cgCar-ctrl-left {
    left: 2vw;
    background-image: url(assets/round-arrow-left.png);
}
.cgCar-controls .cgCar-ctrl-right {
    transform: rotate(180deg) translateY(50%);
    right: 2vw;
    background-image: url(assets/round-arrow-left.png);
}

.cgCar-controls .cgCar-ctrl-play-pause {
    left: 50%;
    top: 100%;
    transform: translate(-50%, -50%);
    background-image: url(assets/pause.svg);
}

.cgCar-wrapper.autoplay:not(.playing) .cgCar-controls .cgCar-ctrl-play-pause {
    background-image: url(assets/play.svg);
}

.cgCar-quote::before {
    content: "\201C";
    display: inline;
}
.cgCar-quote::after {
    content: "\201D";
    display: inline;
}

.cgCar-markers {
    display: block;
}
.cgCar-marker-number {
//    display: none;
}

.cgCar-markers .cgCar-marker {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 12px 0 0;
    border-radius: 6px;
    background-color: black;
}

.cgCar-markers .cgCar-marker.active {
    background-color: red;
}

.cgCar-thumbnails {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    width: 100%;
    height: 80px;
    list-style-type: none;
    margin: 12px 0 0;
    padding: 0;
}

.cgCar-thumbnails .cgCar-marker {
    flex-basis: 100%;
    max-width: 80px;
    height: 80px;
    margin: 0;
    padding: 0;
}

.cgCar-thumbnails .cgCar-marker.active {
    border: 1px solid red;
}

.cgCar-thumbnails .cgCar-marker button {
    width: 100%;
    padding: 0;
}


.cgCar-thumbnails img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 720px) {
    .cgCar-frame {
        min-width: 100vw;
        width: 100vw;
    }
}
