/* ===========================================================
   CHIBI HOMEPAGE SHOWCASE
=========================================================== */

.cms-showcase{

    display:grid;
    grid-template-columns:72% 28%;
    gap:18px;
    align-items:stretch;
    margin:40px 0;
	width: 100%;

}


/* ===========================================================
   HERO
=========================================================== */

.cms-showcase-main{

    position:relative;
    overflow:hidden;
    border-radius:4px;
	width:100%;
    min-width:0;

}

.cms-main-link{

    display:block;
    position:relative;
    width:100%;
    height:100%;
    color:#fff;
    text-decoration:none;

}

.cms-main-link img{

    width:100%;
    height:650px;
    object-fit:cover;
    display:block;

    transition:
        opacity .18s ease,
        transform .45s ease;

}

.cms-main-link:hover img{

    transform:scale(1.03);

}


/* ===========================================================
   OVERLAY
=========================================================== */

.cms-overlay{

    position:absolute;

    left:0px;

    bottom:30px;

    width:360px;

    max-width:calc(100% - 60px);

    background:#ffffff;

    padding:22px 24px;

    border-radius:0;

}

.cms-featured{

    display:block;

    margin-bottom:0px;

    font-family:"Source Sans 3",sans-serif;

    font-size:12px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.08em;

    color:#5C88E3;

}

.cms-overlay h2{

    margin:0;

    font-family:"Source Sans 3",sans-serif;

    font-size:20px;

    font-weight:600;

    line-height:1.35;

    color:#222;
	
	display:-webkit-box;

    -webkit-box-orient:vertical;

    -webkit-line-clamp:2;

    overflow:hidden;

}


/* ===========================================================
   THUMBNAILS
=========================================================== */

.cms-showcase-thumbs{

    display:flex;
    flex-direction:column;

    gap:18px;

    height:650px;
	width:100%;
    min-width:0;

}

.cms-thumb{

    position:relative;

    flex:1;

    overflow:hidden;

    cursor:pointer;

    border-radius:4px;

    transition:
        transform .2s ease,
        opacity .2s ease,
        outline-color .2s ease;

}

.cms-thumb img{

    width:100%;
    height:100%;

    object-fit:cover;

    display:block;

    transition:transform .35s ease;

}

.cms-thumb:hover{

    opacity:.92;

}

.cms-thumb:hover img{

    transform:scale(1.05);

}

.cms-thumb.active{

    outline:3px solid #57B5EF;
    outline-offset:-3px;

}


/* ===========================================================
   TABLET
=========================================================== */

@media (max-width:1024px){

    .cms-showcase{

		width:100%;
		max-width:100%;

		grid-template-columns:minmax(0,65%) minmax(0,35%);

    }

    .cms-main-link img{

        height:500px;

    }

    .cms-showcase-thumbs{

        height:500px;

    }

    .cms-overlay{

    left:0px;

    bottom:22px;

    width:320px;

    padding:18px 20px;

	}

	.cms-overlay h2{

		font-size:18px;

	}

}


/* ===========================================================
   MOBILE
=========================================================== */

@media (max-width:767px){

    .cms-showcase-thumbs{

    display:none;

	}

	.cms-showcase-dots{

		display:flex;

		justify-content:center;

		gap:10px;

		margin-top:18px;

	}

	.cms-showcase-dot{

    width:12px;
    height:12px;

    border-radius:50%;

    background:#d9d9d9;

    cursor:pointer;

    transition:.2s ease;

	}

	.cms-showcase-dot.active{

		background:#5C88E3;
		transform:scale(1.15);

	}
	
	.cms-showcase{

        display:block;
		width:100%;
		max-width:100%;

    }

    .cms-showcase-main{

        width:100%;

        max-width:100%;

    }

    .cms-main-link{

        display:block;

        width:100%;

    }

    .cms-main-link img{

        width:100%;

        height:320px;

        object-fit:cover;

    }

    .cms-overlay{

    left:0px;

    right:16px;

    bottom:16px;

    width:auto;

    max-width:none;

    padding:16px;

	}

	.cms-overlay h2{

	font-size:16px;
	-webkit-line-clamp: 1;

	}

}