


/* =========================================
MAIN WRAPPER
========================================= */

.csg-wrapper {
    width: 100%;
    position: relative;
    border-style: none;
}

/* =========================================
SLIDE CONTAINER
========================================= */

.slide-container {
    position: relative;
    width: 100%;
    height: var(--csg-height, 550px);
    overflow: hidden;
}

/* =========================================
SLIDES WRAPPER
========================================= */

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

/* =========================================
SLIDE MODE
========================================= */

.csg-mode-slide .slides {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    transition: transform 0.5s ease;
}

.csg-mode-slide .img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

/* =========================================
FADE MODE
========================================= */

.csg-mode-fade .slides {
    position: relative;
    height: 100%;
}

.csg-mode-fade .img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.csg-mode-fade .img.active {
    opacity: 1;
    z-index: 2;
}

/* =========================================
COMMON SLIDE
========================================= */

.img {
    overflow: hidden;
}

/* =========================================
IMAGE
========================================= */

.csg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* =========================================
CONTENT
========================================= */

.csg-content {
    position: absolute;
 z-index: 10;

    width: 70%;
    height:
        var(--csg-content-height, auto);
}

.csg-caption {
    display: block;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.csg-caption-content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.csg-btn {
    display: inline-block;

    padding: 12px 20px;

    background: #0073aa;

    color: #fff;

    text-decoration: none;

    border-radius: 6px;

    transition: background 0.3s ease;
}

.csg-btn:hover {
    background: #005177;
}

/* =========================================
DOTS
========================================= */

.dotsContainer {
    position: absolute;

    bottom: 20px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 10px;

    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: rgba(255,255,255,.5);

    cursor: pointer;

    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
}

/* =========================================
NAVIGATION
========================================= */

.prevt,
.nextt {
    position: absolute;

    z-index: 20;

    width: 45px;
    height: 45px;

    border-radius: 50%;

    background: rgba(0,0,0,.5);

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    user-select: none;

    transition: background 0.3s ease;
}

.prevt:hover,
.nextt:hover {
    background: rgba(0,0,0,.75);
}

.prevt {
    left: 20px;
}

.nextt {
    right: 20px;
}

/* =========================================
NAV POSITIONS
========================================= */

.csg-nav-top .prevt,
.csg-nav-top .nextt {
    top: 30px;
}

.csg-nav-center .prevt,
.csg-nav-center .nextt {
    top: 50%;
    transform: translateY(-50%);
}

.csg-nav-bottom .prevt,
.csg-nav-bottom .nextt {
    bottom: 30px;
}



/* =========================================
FOR PERFECT SQUARES
height = width
========================================= */

.csg-grid-square {

    aspect-ratio: 1 / 1;

    height: var(--csg-height, 350px);
    width: var(--csg-height, 350px);

}

/* =========================================
GRID IMAGE
========================================= */

.csg-grid-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}


/* =========================================
CONTENT COLORS
========================================= */

.csg-content {

    background:
        var(--csg-content-bg);

    color:
        var(--csg-content-color);

}

.csg-btn {

    background:
        var(--csg-cta-bg);

    color:
        var(--csg-cta-color);

}

/* =========================================
CONTENT POSITIONS
========================================= */

.csg-content-center .csg-content {

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);
        width: 70%;
        
          padding-left: 20px;
border-radius: 12px;
}



/* =========================================
OUTER TOP
Double height
Content above image
========================================= */

.csg-content-top .img {

    display: flex;
    flex-direction: column;

    height: auto;
    min-height: 100%;

}
.csg-content-top .csg-image {

    order: 2;

    height: 50vh;
}

.csg-content-top .slide-container {
    position: relative;
    width: 100%;
    height: calc(var(--csg-height, 550px) + var(--csg-content-height, 550px));
    overflow: hidden;
}

.csg-content-top .csg-content {

    height: var(--csg-content-height, 550px) !important;
    order: 1;
  padding-left: 30px;
    width: 100%;

}

.csg-content-top .csg-image {

    height: var(--csg-height, 550px) !important;
    transform: translateY(var(--csg-content-height, 0px));
    order: 2;

}


/* BOTTOM */



.csg-content-bottom .img {

    display: flex;
    flex-direction: column;

    height: auto;
    min-height: 100%;

}
.csg-content-bottom .csg-image {

    order: 2;

    height: 50vh;
}

.csg-content-bottom .slide-container {
    position: relative;
    width: 100%;
    height: calc(var(--csg-height, 550px)+ var(--csg-content-height, 550px));
    overflow: hidden;
}

.csg-content-bottom .csg-content {

    height: var(--csg-content-height, 550px) !important;
    order: 1;
  padding-left: 30px;
    width: 100%;
    transform: translateY(100%);

}

.csg-content-bottom .csg-image {

    height: var(--csg-height, 550px) !important;
    transform: translateY(-7.5%);
    order: 2;

}




/* =========================================
SIDE LEFT
50/50 layout
========================================= */


.csg-content-left .img {

    display: flex;
    flex-direction: row;

    align-items: stretch;

}

.csg-content-left .csg-content {

    width: calc(50% - 40px) !important;
    order: 1;
    height: 100%;    
  padding-left: 20px;
  padding-right: 20px;

}

.csg-content-left .csg-image {

    width: 50% !important;
    margin-left: calc(50% - 0px);
    order: 2;


}

/* =========================================
SIDE RIGHT
50/50 layout
========================================= */

.csg-content-right .img {

    display: flex;
    flex-direction: row;

    align-items: stretch;

}

.csg-content-right .csg-content {
width: calc(50% - 40px) !important;
    order: 1;

  padding-left: 20px;
  
  padding-right: 20px;
    
    height: 100%;
    margin-left: 50%;

}

.csg-content-right .csg-image {

    width: 50% !important;
    order: 2;

}

.csg-btn {
    margin-right: 10px;
    margin-top: 10px;
}

.csg-btn:last-child {
    margin-right: 0;
}


/* =========================================
GRID
========================================= */

.csg-grid {

    display: grid;

    grid-template-columns:
        repeat(
            var(--csg-columns-desktop, 3),
            minmax(0, 1fr)
        );
gap: 20px;
width: 100%;
    align-items: stretch;
    margin: 0 auto;

}

/* =========================================
GRID ITEM
========================================= */

.csg-grid-item {

    position: relative;

    overflow: hidden;

    width: 100%;

    height: var(--csg-height, 350px);

}



/* =========================================
GRID CONTENT
========================================= */

.csg-grid .csg-content {

    position: absolute;
    z-index: 5;
    

}

/* CENTER */

.csg-grid .csg-content.center {

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

}

/* TOP */

.csg-grid .csg-content.top {

    top: -20px;
    left: 20px;
    right: 20px;
    transform: translate(-7%,-5%);

}

.csg-content-top .csg-grid-item {

    position: relative;
    overflow: hidden;
    
/*
    width: var(--csg-height, 350px) !important;
*/
    height: calc(var(--csg-height, 350px) + var(--csg-content-height, 550px)) !important;
}

/* BOTTOM */

.csg-grid .csg-content.bottom {

    bottom: 40px;
    left: 20px;
    right: 20px;
    transform: translate(-7%,4.5%);

}

.csg-content-bottom .csg-grid-item {

    position: relative;
    overflow: hidden;
    
/*
    width: var(--csg-height, 350px) !important;
*/
    height: calc(var(--csg-height, 350px) + var(--csg-content-height, 550px)) !important;
    
    

}

/* LEFT */

.csg-grid .csg-content.left {
  padding-right: 20px;    
    width: calc(50% - 40px) !important;  
}

/* RIGHT */

.csg-grid .csg-content.right {   
  padding-right: 20px;
  width:  calc(50% - 40px)  !important;
  margin-left: 50%;
}





/* =========================================
TABLET
========================================= */

@media (max-width: 1024px) {

    .csg-grid {
        grid-template-columns:
            repeat(
                var(--csg-columns-tablet, 2),
                1fr
            );
    }

}

/* =========================================
MOBILE
========================================= */

@media (max-width: 768px) {

    .csg-grid {
        grid-template-columns:
            repeat(
                var(--csg-columns-mobile, 1),
                minmax(0, 1fr)
            );

    }

    .csg-hide-nav-mobile .prevt,
    .csg-hide-nav-mobile .nextt {
        display: none;
    }

    .csg-hide-dots-mobile .dotsContainer {
        display: none;
    }

    .csg-content {
        width: 90%;

    }

    .csg-caption {
        font-size: 20px;
    }

    .csg-caption-content {
        font-size: 14px;
    }
    
    
    


}




/* =========================================
GRID ITEM STYLE
========================================= */

.csg-grid-item {

    border-style: solid;

    border-width:
        var(--csg-grid-border-width, 0px);

    border-color:
        var(--csg-grid-border-color, transparent);

    border-top-left-radius:
        var(--csg-grid-radius-tlbr, 0px);

    border-bottom-right-radius:
        var(--csg-grid-radius-tlbr, 0px);

    border-top-right-radius:
        var(--csg-grid-radius-trbl, 0px);

    border-bottom-left-radius:
        var(--csg-grid-radius-trbl, 0px);

}

/* =========================================
KEEP IMAGE INSIDE RADIUS
========================================= */

.csg-grid-item img {

    width: 100%;
    height: 100%;

    object-fit: cover;

/*
    border-radius: inherit;
*/

}

.csg-content-bottom .csg-image {
	border-top-left-radius:
        var(--csg-grid-radius-tlbr, 0px);

    border-bottom-right-radius:
        var(--csg-grid-radius-tlbr, 0px);

    border-top-right-radius:
        var(--csg-grid-radius-trbl, 0px);

    border-bottom-left-radius:
        var(--csg-grid-radius-trbl, 0px);
}

.csg-content-top .csg-image {
	border-top-left-radius:
        var(--csg-grid-radius-tlbr, 0px);

    border-bottom-right-radius:
        var(--csg-grid-radius-tlbr, 0px);

    border-top-right-radius:
        var(--csg-grid-radius-trbl, 0px);

    border-bottom-left-radius:
        var(--csg-grid-radius-trbl, 0px);
}




/* =====================================
SLIDE FIXES
===================================== */

/*
.csg-mode-slide .slides {

    width: 100%;

    overflow: hidden;

}

.csg-mode-slide .img {

    position: relative;

    width: 100%;

    min-width: 100%;

    height: 100%;

    flex-shrink: 0;

    overflow: hidden;

}
*/

