/* 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: 100vw;
    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-item.active img {
    height: 25vw;
    width: 25vw;
    min-width: 300px;
    min-height: 300px;
}

.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: 50%;
    width: 100vw;
    height: 1px;
    transform: translate(-50%, -50%);
    display: block;
}

.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-frame {
        width: 78vw;
        min-width: 720px;
        margin: 0 auto;
    }
}

.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;
}

.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);
}

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