﻿@import url("https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.min.css");
@import url("/Public/css/slick.css");
@import url("/Public/css/slick-theme.css");

.gallery-sect {
    margin-top: 50px;
}
.gallery-sect h2 {
    font-size: 32px;
    letter-spacing: -1px;
    font-family: "bmw_group_RgBd";
    font-weight: 400;
    text-transform: uppercase;
}
.gallery-sect .no-padding {
    padding: 0px;
    margin-top: 15px;
}
.gallery-sect .gallery-year-dd {
    font-family: Arial;
}
.gallery-sect .slider, .slick-slide {
    outline: none;
}
.gallery-sect .gallery {
    margin: 0px -15px;
    margin-bottom: 25px;
}
.gallery-sect .gallery .crop-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}
.gallery-sect .grandchild {
    float: left;
    padding: 15px 15.5px;
    margin: 0px auto;
    width: 33.3%;
}
.gallery-sect .grandchild img {
    width: 100%;
    cursor: pointer;
}
.gallery-sect .clearboth {
    clear: both;
}

.gallery-sect .custom_paging {
    text-align: center;
    padding: 0px;
    margin-top: 20px;
    margin-bottom: 0px;
}

.gallery-sect .custom_paging li {
    display: none;
    font-family: "Arial";
    font-size: 15px;
    font-weight: bold;
}

.gallery-sect .custom_paging .slick-active {
    display: block;
}

.gallery-sect .slider {
    display: none;
}
.gallery-sect .slider.active {
    display: block;
}

/*slick*/
.slick-dots li button:before {
    font-size: 14px;
    line-height: 14px;
}
.arrow-icons {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 20px));
    background: #4d4d4d;
    width: 40px;
    height: 40px;
}
.arrow-icons::before {
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.icon-arrow-left {
    left: -40px;
}
.icon-arrow-right {
    right: -40px;
}
.gallery-background-modal {
    position: fixed;
    width: 100%;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: rgba(0,0,0, 0.8);
    z-index: 10000;
    display: none;
}
.gallery-modal {
    z-index: 10001;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
}
.gallery-modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90%;
    max-width: 90%;
    display: none;
}
.gallery-modal .close {
    cursor: pointer;
    color: #fff;
    position: fixed;
    top: 5%;
    right: 3.8%;
    font-size: 28px;
    opacity: 0.7;
    z-index: 10;
}

.gallery-modal .icon-refresh {
    color: #fff;
    font-size: 24px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spinAnimation 2s infinite;
}

@keyframes spinAnimation {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

@media (max-width: 1150px) {
    .icon-arrow-left {
        left: 0px;
        z-index: 1111;
    }
    .icon-arrow-right {
        right: 0px;
        z-index: 1111;
    }
    .gallery-sect .gallery .crop-img { 
        height: 215px;
    }
}

@media (max-width: 768px) {
    .gallery-sect {
        margin: 0px auto;
    }
    .gallery-sect h2 {
        font-size: 28px;
        line-height: 28px;
        letter-spacing: -2px
    }
    .gallery-sect .gallery .crop-img { 
        height: 100%;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
    }
    .gallery-sect .grandchild {
        padding: 0px;
        height: 325px;
    }
    .gallery-sect .grandchild img {
        margin: 0px auto;
        max-width: 100%;
        max-height: 100%;
        width: auto;
    }
    .icon-arrow-left {
        left: 4px;
    }
    .icon-arrow-right { 
        right: 4px;
    }
    .slick-list {
        margin-top: 25px;
    }
    .slick-dotted.slick-slider, .gallery-sect .gallery {
        margin-bottom: 0px !important;
    }
    .gallery-sect .gallery {
        margin: 0px -25px;
    }
    #content {
        margin-bottom: 25px;
    }
}

@media (max-width: 420px) {
    .gallery-sect .gallery .crop-img { 
        /*height: auto;*/
    }
    .gallery-sect .grandchild {
        padding: 0px;
        height: 280px;
    }
    .gallery-sect .gallery {
        margin: 0px -25px;
        max-width: calc(100% + 45px);
    }
    .gallery .icon-arrow-left {
        left: 4px;
    }
    .gallery .icon-arrow-right {
        right: 0px;
    }
}
@media (max-width: 385px) {
    .gallery-sect .grandchild {
        padding: 0px;
        height: 260px;
    }
    .gallery-sect .gallery {
        margin: 0px -30px;
        max-width: calc(100% + 50px);
    }
    .gallery .icon-arrow-left {
        left: 8px;
    }
    .gallery .icon-arrow-right {
        right: 0px;
    }
}

@media (max-width: 325px) {
    .gallery-sect .grandchild {
        padding: 0px;
        height: 220px;
    }
    .gallery-sect .gallery {
        margin: 0px -25px;
        max-width: calc(100% + 45px);
    }
    .gallery .icon-arrow-left {
        left: 0px;
    }
}