﻿
:root {
    --border-radius: 20px;
}

/* hero images */
.primary-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

/* Flexbox-based solution: */
.images--flex {
    width: 100%;
    display: flex;
}

    .images--flex > * {
        flex: 1;
        height: 45vh;
        max-width: 50%;
    }

.images--flex__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

    .images--flex__inner > * {
        width: 50%; /* 50% normalt */
        height: 50%;
    }

.img-hero {
    width: 100%; /* normalt 50% */
}

.img-out {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    padding-right: 8px;
}

.radius-right-top {
    border-top-right-radius: 20px;
}

.radius-right-bottom {
    border-bottom-right-radius: 20px;
}

.custom-image-fit img {
    position: absolute;
    max-height: 100%;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate3d(-50%, -50%, 0);
}

.img-cover {
    overflow: hidden;
    filter: brightness(95%);
}

.img-all-button {
    position: absolute;
    right: 25px;
    bottom: 10px;
}

.nyvideo {
    position: absolute;
    color: white;
    right: 72%;
    top: 45%;
    display: inline-block;
    text-align: center;
    z-index: 2;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 50px;
    cursor: pointer;
}


/* formaterar beroende på skärmstorlek*/

@media screen and (min-width: 1920px) {
    .custom-image-fit {
        height: 240px;
    }

    .img-fluid-mini {
        max-height: 100px;
    }

    .images--flex > * {
        height: 45vh;
    }
}

@media screen and (max-width: 1920px) {
    .img-fluid-mini {
        max-height: 100px;
    }

    .images--flex > * {
        height: 45vh;
    }
}

@media screen and (min-width: 1365px) {
    .custom-image-fit {
        height: 240px;
    }

    .img-fluid-mini {
        max-height: 100px;
    }

    .images--flex > * {
        height: 45vh;
    }
}

/* för avlånga skärmar */
@media screen and (min-width: 1920px) and (min-height: 1024px) {
    .img-fluid-mini {
        max-height: 100px;
    }
    .images--flex > * {
        height: 60vh;
    }
}

@media screen and (max-width: 1440px) {
    .img-fluid-mini {
        max-height: 100px;
    }
    .images--flex > * {
        height: 40vh;
    }
}

@media screen and (max-width: 1024px) {
    /* start of large tablet styles */
    .img-fluid-mini {
        max-height: 100px;
    }
    .images--flex > * {
        height: 30vh;
    }
}

@media screen and (max-width: 767px) {
    /* start of medium tablet styles */
    /* Adding a fixed/percentage min-width could ensure that the image doesn't get too small */
    .img-fluid-mini {
        max-height: 80px;
    }
    .pt-md-1 {
        padding-top: 2px !important;
    }
}

@media screen and (max-width: 479px) {
    /* start of phone styles */
    /* It's possible to hide the image if the screen becomes too small */
    .img-fluid-mini {
        max-height: 60px;
    }
    .pt-sm-1 {
        padding-top: 2px !important;
    }
}

/* height on screen */
@media screen and (max-height: 1024px) {
    /* ipad pro */
    .images--flex > * {
        max-height: 50vh;
    }
}


html.dark .owl-carousel .owl-nav button[class*="owl-"] {
    background-color: #323536;
    border-color: #323536 #323536 #323536;
    color: #FFF;
}

html.dark .text-color-primary, html.dark .text-primary {
    color: #808080 !important;
}

.img-fluid-mini {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.img-fluid-mini img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate3d(-50%, -50%, 0);
    border-radius: var(--border-radius) !important;
}

.price-tag-small {
    position: absolute;
    z-index: 9;
    right: 4%;
    bottom: 180px;
}

.carousel_similar .owl-nav {
    top: 35%;
}


/* owl-kontrollen*/
.owl-item img {
    border-radius: 20px !important;
}

/* vänster/högerpil */
.owl-carousel button.owl-prev:after {
    font-family: "Font Awesome 6 pro";
    content: "\f053";
}

.owl-carousel button.owl-next:after {
    font-family: "Font Awesome 6 pro";
    content: "\f054";
}

.owl-carousel .owl-nav button[class*="owl-"] {
    border-radius: 100px;
    margin: 10px;
    background-color: black;
}

.owl-carousel .owl-nav button[class*="owl-"]:hover, .owl-carousel .owl-nav button[class*="owl-"].hover {
    background-color: #222121;
}

/* filter ovanpå bilderna */
.img-2:hover, .img-2:focus {
    opacity: 0.9;
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
    cursor: pointer;
}

.owl-carousel .owl-nav button.owl-next {
    right: 12px;
}

/* tar bort dubbla << i navigering på similar fordon */
.fa-chevron-left:before, .fa-chevron-right:before {
   /* content: "";*/
}

#lg-prev-1, #lg-next-1 {
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 15px;
    font-weight: 500;
}

/* storlek på mini-bilderna */
@media only screen and (max-width: 480px) {
    .companylogo {
        max-width: 170px !important;
    }

    .img-fluid-mini {
        min-height: 110px !important;
        max-height: 110px !important;
    }
}

@media only screen and (max-width: 768px) {
    .img-fluid-mini {
        min-height: 120px !important;
        max-height: 120px !important;
    }
}

@media only screen and (max-width: 1024px) {
    .img-fluid-mini {
        min-height: 130px !important;
        max-height: 130px !important;
    }
}

@media (min-width: 1024px) {
    .modal-xl {
        min-width: 840px !important;
    }
}

/* bookmark */
.bookmark {
    position: absolute;
    top: 15px;
    left: 30px;
    z-index: 84;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    border: none;
    outline: 0;
}

/* markerad thumbnail */
.owl-item.is-active img {
    filter: brightness(90%);
    border-radius: var(--border-radius);
}

.preview {
    border-radius: var(--border-radius);
}
.thumb-info {
    border-radius: var(--border-radius);
}

.img-thumbnail {
   /* background: unset;*/
    border-radius: var(--border-radius);
}

.owl-item img {
    border-radius: var(--border-radius);
}



/* owl/thumbnail-fix för att justera vänster/högermarginaler */
.thumbs-wrap {
    position: relative;
}

.thumbs-wrap .owl-stage-outer {
    margin-left: 0;
    margin-right: 0;
}

.thumbs-wrap.is-first .owl-stage-outer {
    margin-left: -32px; /* 👈 tar bort vänster-luft */
}

/* När vi är på sista */
.thumbs-wrap.is-last .owl-stage-outer {
    margin-right: -32px; /* 👈 tar bort höger-luft */
}
