/*======================================
Theme Name: code Multipurpose code layouts for Divi Child Theme
Theme URI:https://code.rise-creators.com/
Author: Rise Themes
Author URI: https://risethemes.net/
Template: Divi
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
======================================*/

/* ===== NOTES ==================================================================
 *
 *
 * Discover our premium Divi products: https://elvarstudios.com/

 * =============================================================================== */

/* =========================================
   IMAGE AREA
========================================= */

.service-image-wrap {
    position: relative !important;
    overflow: hidden !important;
    min-height: 500px !important;
}


/* =========================================
   DIVI IMAGE MODULE
========================================= */

.service-image-wrap .hover-image {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 1;

    overflow: hidden !important;
}


/* =========================================
   DIVI IMAGE WRAPPER
========================================= */

.service-image-wrap .hover-image .et_pb_image_wrap {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}


/* =========================================
   ACTUAL IMAGE
========================================= */

.service-image-wrap .hover-image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;

    transform: translate3d(0, 0, 0);

    will-change: transform, clip-path;
}


/* =========================================
   SERVICE ITEMS
========================================= */

.service-item {
    cursor: pointer;
}








/* =====================================================
   SNAP SLIDER — MAIN CONTAINER
===================================================== */

.tp-snap-slider-holder {
    position: relative;
    width: 100%;
    overflow: clip;
}


/* =====================================================
   ROW
===================================================== */

.tp-snap-slider-holder > .et_pb_row {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}


/* =====================================================
   ALL COLUMNS
===================================================== */

.tp-snap-slider-holder .et_pb_column {
    margin: 0 !important;
    padding: 0 !important;
}


/* =====================================================
   MAIN IMAGE COLUMN
===================================================== */

.tp-snap-main {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}


/* =====================================================
   MAIN SLIDES
===================================================== */

.tp-snap-main .tp-snap-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    transform: translateY(100%);
}

.tp-snap-main .tp-snap-slide:first-child {
    transform: translateY(0);
}

.tp-snap-main .tp-snap-slide {
    z-index: 1;
}

.tp-snap-main .tp-snap-slide:first-child {
    z-index: 2;
}

/* =====================================================
   DIVI IMAGE WRAPPER
===================================================== */

.tp-snap-main .tp-snap-slide .et_pb_image_wrap {
    display: block;

    width: 100%;
    height: 100%;
}


/* =====================================================
   ACTUAL IMAGE
===================================================== */

.tp-snap-main .tp-snap-slide img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;
}


/* =====================================================
   CAPTION COLUMN
===================================================== */

.tp-snap-slider-captions {
    position: relative;

    height: 100vh;
    min-height: 700px;

    overflow: hidden;
}


/* =====================================================
   CAPTIONS
===================================================== */

.tp-snap-slider-captions .tp-snap-slide-caption {
    min-height: 100vh;

    display: flex;
    align-items: flex-start;

    margin: 0 !important;
    padding: 40px 30px !important;
}


/* =====================================================
   THUMBNAIL COLUMN
===================================================== */

.tp-snap-slider-thumbs {
    position: relative;

    height: 100vh;
    min-height: 700px;

    overflow: hidden;
}


/* =====================================================
   THUMBNAILS
===================================================== */

.tp-snap-slider-thumbs .thumb-slide {
    margin: 0 !important;
    padding: 0 !important;

    width: 100%;
}


/* =====================================================
   THUMBNAIL IMAGE
===================================================== */

.tp-snap-slider-thumbs .thumb-slide .et_pb_image_wrap {
    display: block;

    width: 100%;
}


.tp-snap-slider-thumbs .thumb-slide img {
    display: block;

    width: 100%;
    height: auto;
}


/* =====================================================
   REMOVE DIVI SPACING
===================================================== */

.tp-snap-slider-holder .et_pb_module {
    margin-bottom: 0 !important;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .tp-snap-slider-holder > .et_pb_row {
        min-height: auto;
    }

    .tp-snap-main {
        height: 70vh;
        min-height: 500px;
    }

    .tp-snap-slider-captions,
    .tp-snap-slider-thumbs {
        height: auto;
        min-height: auto;
    }

    .tp-snap-slider-captions .tp-snap-slide-caption {
        min-height: auto;
    }

}