﻿
.slider-wrapper {
    position: relative;
    height: 750px;
    overflow: hidden;
}

    .slider-wrapper img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 98.5%;
        object-fit: inherit;
        opacity: 0;
        transition: opacity .6s ease;
    }

        .slider-wrapper img.active {
            opacity: 1;
            z-index: 1;
        }




.slider-wrapper1 {
    position: relative;
    height: 585px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


    .slider-wrapper1 img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 98%;
        object-fit: fill;
        opacity: 0;
        transition: opacity .6s ease;
    }

        .slider-wrapper1 img.active {
            opacity: 1;
            z-index: 1;
        }


.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #c9a063;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    padding: 9px 10px;
    font-size: 20px;
}

    .nav-btn.prev {
        left: 10px;
    }

    .nav-btn.next {
        right: 10px;
    }


.thumb-viewport {
    overflow: hidden;
    margin-top: 11px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    transition: transform .3s ease;
}

    .thumbnails img {
        width: 150px;
        height: 110px;
        object-fit: cover;
        cursor: pointer;
        opacity: .4;
        border: 2px solid transparent;
        flex-shrink: 0;
    }

        .thumbnails img.active {
            opacity: 1;
        }


#gallery-slider .tabss {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

    #gallery-slider .tabss button {
        padding: 4px 12px;
        border: none;
        background-color: transparent;
        cursor: pointer;
        color: #2e1f0c;
        border-bottom: 3px solid transparent;
    }

        #gallery-slider .tabss button.active {
            border-bottom: 3px solid #2e1f0c;
            color: #2e1f0c;
        }

.category {
    display: none;
    height: 100%;
}

    .category.active {
        display: block;
    }



#simple-slider .container {
    padding: 0;
    margin: 0;
}

.tabss {
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    white-space: nowrap; 
    padding: 5px 0; 
    scrollbar-width: thin; 
}

    .tabss::-webkit-scrollbar {
        height: 6px; 
    }

    .tabss::-webkit-scrollbar-thumb {
        background-color: #c9a063;
        border-radius: 3px;
    }

    .tabss::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }


.tab-list-content .nav-pills .nav-link {
    border-bottom: 3px solid transparent;
    color: #2e1f0c;
    background-color: transparent;
    border-radius: 0;
    text-align: start;
    padding: 5px 5px 5px 5px;
    margin:5px 0 0 0;
}


    .tab-list-content .nav-pills .nav-link.active {
        border-bottom: 3px solid #2e1f0c75;
        color: #2e1f0c;
        background-color: transparent;
        border-radius: 0;
        text-align: start;
        padding: 5px 5px 5px 5px;
        font-weight: 600;
    }


.category {
    overflow: hidden;
}

    .category.grid-view {
        flex: 1;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }


    .category.grid-view img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        cursor: pointer;
        position: relative;
        opacity: unset;
    }

    .category.grid-view ~ .nav-btn,
    .category.grid-view ~ .thumb-viewport {
        display: none;
    }

    
        .category.grid-view::-webkit-scrollbar {
            width: 8px;
            min-height: 50px;
        }

        .category.grid-view::-webkit-scrollbar-thumb {
            background: #c9a063;
            border-radius: 0;
            min-height: 200px;
        }


        .category.grid-view ~ .thumb-viewport {
            display: none !important;
            margin: 0;
            padding: 0;
        }

.thumb-viewport {
    margin-top: 11px;
}





.grid-item .card {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
    color: #333333;
    border-radius: 2px;
}

.grid-item .card-image {
    background: #ffffff;
    display: block;
    padding-top: 70%;
    position: relative;
    width: 100%;
}

    .grid-item .card-image img {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }







.gallery {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

    .gallery img {
        width: 200px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

        .gallery img:hover {
            transform: scale(1.03);
        }


#lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 55%);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: block;
    opacity: 0;
}

.lightbox-opening {
    animation: zoomIn 0.3s ease;
}

#lightbox {
    background-color: rgba(0, 0, 0, 0.8);
}


.close-btn-light-box {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
}


#caption {
    color: #ccc;
    margin-top: 15px;
    font-family: sans-serif;
}


@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


.box-slider-list .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 23px;
    font-weight: bold;
    cursor: pointer;
    /*padding: 0;*/
    user-select: none;
    transition: 0.3s;
    z-index: 1000;
}

.box-slider-list .prev-btn {
    left: 20px;
}

.box-slider-list .next-btn {
    right: 20px;
}



.close-btn-light-box:hover {
    color: #e74c3c;
}




.square-picture {
    position: relative;
}

.caption-name {
    position: absolute;
    bottom: 0;
    background: #c9a063;
    color: #fff;
    width: auto;
    text-align: center;
    padding: 5px 0;
    font-size: 11px;
    left: 5px;
    padding: 0 10px;
    font-weight: 500;
    display: none;
}





img.lazy {
    width: 100%;
    display: block;
}



.modal-thumb-viewport{
    margin:0;
}

@media (max-width: 600px) {
    .category.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
    .category.grid-view img {
        height: 100%;
    }
}


@media (min-width: 768px)  {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 65vh;
    }

    .slider-wrapper1 {
        height: 655px;
    }

    .category.grid-view img {
        height: 145px;
    }

   
}


@media (min-width: 1024px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 71vh;
    }

    .slider-wrapper1 {
        height: 610px;
    }

    .category.grid-view img {
        height: 135px;
    }

    .btn-all-pictures {
        font-weight: 500;
        font-size: 16px;
        color: white;
    }
}


@media (min-width: 1280px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 70vh;
    }

    .slider-wrapper1 {
        height: 600px;
    }

    .category.grid-view img {
        height: 145px;
    }
}


@media (min-width: 1366px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 71vh;
    }

    .slider-wrapper1 {
        height: 660px;
    }

    .category.grid-view img {
        height: 175px;
    }
}

@media (min-width: 1440px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 67vh;
    }

    .slider-wrapper1 {
        height: 590px;
    }

    .category.grid-view img {
        height: 175px;
    }
}



@media (min-width: 1600px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 75vh;
    }

    .slider-wrapper1 {
        height: 760px;
    }

    .category.grid-view img {
        height: 177px;
    }
}


@media (min-width: 1920px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 77vh;
    }

    .slider-wrapper1 {
        height: 890px;
    }

    .category.grid-view img {
        height: 220px;
    }
}


.category img {
    display: none;
}

.category.active img {
    display: block;
}

.category.active .caption-name {
    display: block;
}




/*@media (max-width: 728px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 34vh;
    }
}

@media (max-width: 800px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 65vh;
    }

    .slider-wrapper1 {
        height: 500px;
    }

    .category.grid-view img {
        height: 107px;
    }
}


@media (max-width: 1024px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 71vh;
    }

    .slider-wrapper1 {
        height: 655px;
    }

    .category.grid-view img {
        height: 145px;
    }
}


@media (max-width: 1280px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 71vh;
    }

    .slider-wrapper1 {
        height: 610px;
    }

    .category.grid-view img {
        height: 135px;
    }
}

@media (max-width: 1366px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 71vh;
    }

    .slider-wrapper1 {
        height: 655px;
    }

    .category.grid-view img {
        height: 145px;
    }
}


@media (max-width: 1440px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 74vh;
    }

    .slider-wrapper1 {
        height: 770px;
    }

    .category.grid-view img {
        height: 175px;
    }
}


@media (max-width: 1600px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 66vh;
    }

    .slider-wrapper1 {
        height: 780px;
    }

    .category.grid-view img {
        height: 177px;
    }
}


@media (max-width: 1920px) {
    .slider-wrapper1:not(:has(.category.grid-view.active)) {
        height: 77vh;
    }

    .slider-wrapper1 {
        height: 945px;
    }

    .category.grid-view img {
        height: 220px;
    }
}*/


