/* Garage Boxy: additions to the template CSS (fonts, slideshow, used cars). */

@font-face {
    font-family: 'Florence';
    src: url('../template/font/florsn02-webfont.woff') format('woff'),
         url('../template/font/florsn02-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'zachary';
    src: url('../template/font/zachary-webfont.woff') format('woff'),
         url('../template/font/zachary-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---- background slideshow (replaces Supersized) ---- */

#supersized {
    background: #111;
}

#supersized .gb-slide {
    position: absolute;
    inset: 0;
    background: center center / cover no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

#supersized .gb-slide.is-visible {
    opacity: 1;
}

/* "view the photo": slide the content away */

.wrapper-website {
    transition: transform 1s ease, opacity 1s ease;
}

.gb-photo-mode .wrapper-website {
    transform: translateX(-120vw);
    opacity: 0;
}

.gb-photo-mode #open-button-js {
    width: 24px;
    transition: width .7s ease 1s;
}

#toTop.is-visible {
    display: block;
}

/* ---- used cars ---- */

.gb-cars-empty {
    padding: 20px 0;
}

.gb-car-list {
    width: 100%;
    border-collapse: collapse;
}

.gb-car-list td {
    padding: 15px 10px 15px 0;
    border-top: 1px solid #d5d5d5;
    vertical-align: top;
}

.gb-car-list td.gb-car-photo {
    width: 170px;
}

.gb-car-list h3 {
    margin: 0 0 8px 0;
}

.gb-car-list img,
.gb-car-detail .gb-car-main img,
.gb-car-gallery img {
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.gb-car-price {
    font-size: 1.4em;
    margin: 0 0 8px 0;
}

.gb-car-detail .gb-car-top,
.gb-car-detail .gb-car-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gb-car-detail .gb-car-top > div {
    flex: 1 1 300px;
}

.gb-car-detail .gb-car-columns > div {
    flex: 1 1 200px;
}

.gb-car-detail .gb-car-main img {
    max-width: 100%;
    height: auto;
}

.gb-car-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 20px 0;
}

.gb-car-gallery img {
    width: 110px;
    height: 82px;
    object-fit: cover;
}

.gb-car-detail dl {
    margin: 0;
}

.gb-car-detail dt {
    font-weight: bold;
    margin-top: 6px;
}

.gb-car-detail dd {
    margin: 0;
}

.gb-car-back {
    margin-top: 20px;
}

.gb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
    cursor: zoom-out;
}

.gb-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
}

@media screen and (max-width: 600px) {
    .gb-car-list td {
        display: block;
        width: auto !important;
        border-top: 0;
        padding-bottom: 0;
    }
    .gb-car-list tr {
        display: block;
        border-top: 1px solid #d5d5d5;
        padding-bottom: 15px;
    }
}
