/* Case Studies Module Styling */
/* Main Page Styles */
.case_grid, .case_list {
    margin: 2rem 0;
}
.case_grid .case_study_items {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}
@media screen and (min-width:420px) {
    .case_grid .case_study_items {grid-template-columns: 1fr 1fr;}
}
@media screen and (min-width:960px) {
    .case_grid .case_study_items {grid-template-columns: 1fr 1fr 1fr;}
}
.case_study_item {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0;
    background: #f7f7f7;
    border-radius: 5px;
    border: none;
    overflow: hidden;
}
.case_list .case_study_item {
    display: flex;
    margin-bottom: 20px;
}
.case_study_thumbnail {
    background: rgba(0,0,0,.1);
}
.case_grid .case_study_thumbnail {
    height: 100px;
}
.case_list .case_study_thumbnail {
    flex: 0 0 100px;
    position: relative;
    margin: 0;
    float: none;
    width: auto;
}
.case_study_thumbnail img {
	width: 100%;
	height: 100%;
    object-fit: cover;
}
.case_list .case_study_thumbnail img {
	position: absolute;
    max-height: none;
}
.case_study_item_details {
    padding: 15px;
}
.case_study_item .case_study_title {
	margin-bottom: 15px;
    font-size: 16px;
	line-height: 1.2em;
    font-weight: bold;
}
.case_study_item .case_study_preview {
	margin-bottom: 10px;
    font-size: 14px;
}
.case_study_related_items .related_items_header {
	padding: 7px 15px;
	background: #eee;
	margin-bottom: 10px;
	font-size: 16px;
	color: #666
}
.case_study_related_items .template_4724 {
	clear: both;
	margin: 10px auto;
	width: 90%;
	float: none
}
.case_study_related_items .template_4724 .scrollable-controls {
	float: none
}
.case_study_related_items .template_4784 {
	height: 150px
}
.case_study_related_items .related_items_video {
	width: 560px;
	height: 315px;
	margin: 0 auto 10px auto;
	clear: both
}
.module_more_link, .module_expand_text {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Entity Page Styles */
.case_study_details .horizontal_social_share {
    margin: 30px auto 20px;
    float: none;
    text-align: left;
}
.case_study_details_date {
    font-size: 14px;
}
.case_study_details .module_expand_text {
    margin: 15px 0 30px;
}
#cs_content {
    position: relative;
    overflow: hidden;
}
#cs_content.collapsed {
    max-height: 350px;
}
#cs_content.collapsed::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 60px;
    background-image: linear-gradient(rgba(255, 255, 255, 0),rgba(255, 255, 255,.95));
    bottom: 0;
    left: 0;
}
#gallery {
    max-width: 670px;
    margin: 3rem auto;
    background: #f9f9f9;
    box-shadow: 0 0 10px #e6e6e6;
    margin-bottom: 32px;
    padding: 16px;
    overflow: hidden;
    border-radius: 2px;
}
#gallery-wrap .gallery-title {
    text-align: center;
}
#gallery-wrap .gallery-description {
    text-align: center;
    margin-bottom: 32px;
}
#gallery .embla {
    position: relative;
    margin-bottom: 16px;
}
#gallery .embla__viewport {
    overflow: hidden;
    width: 100%;
}
#gallery .embla__viewport.is-draggable {
    cursor: move;
    cursor: grab;
}
#gallery .embla__viewport.is-dragging {
    cursor: grabbing;
}
#gallery .embla__container {
    display: flex;
    user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: transparent;
    margin-left: -10px;
}
#gallery .embla__slide {
    padding-left: 10px;
    min-width: 100%;
    position: relative;
}
#gallery .embla__slide__inner {
    position: relative;
    overflow: hidden;
    height: 300px;
    margin-bottom: 16px;
}
#gallery .embla__slide__img {
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    width: auto;
    min-height: 100%;
    min-width: 100%;
    max-width: none;
    transform: translate(-50%, -50%);
    max-height: 300px;
    object-fit: contain;
}
#gallery .embla__slide p:last-of-type {
    margin-bottom: 16px;
}
@media screen and (min-width:641px) {
    #gallery .embla__slide__inner {
        height: 400px;
    }
    #gallery .embla__slide__img {
        max-height: 400px;
    }
}
#gallery .embla--thumb {
    padding-top: 0;
}
#gallery .embla__container--thumb {
    cursor: default;
    margin-left: -8px;
}
#gallery .embla__slide--thumb {
    padding-left: 8px;
    min-width: 20%;
}
#gallery .embla__slide__inner--thumb {
    touch-action: manipulation;
    cursor: pointer;
    border: 0;
    outline: 0;
    margin: 0;
    padding: 0;
    height: 100px;
    width: 100%;
    background-color: transparent;
    position: relative;
    display: block;
    overflow: hidden;
}
#gallery .embla__slide__thumbnail {
    position: absolute;
    opacity: 0.2;
    top: 0;
    bottom: 0;
    left: -10000%;
    right: -10000%;
    margin: auto;
    min-width: 1000%;
    min-height: 1000%;
    max-width: none;
    transform: scale(0.1);
    transition: opacity 0.2s;
}
#gallery .embla__slide--thumb.is-selected .embla__slide__thumbnail {
    opacity: 1;
}
#gallery .embla__prev,
#gallery .embla__next {
    position: absolute;
    top: 33%;
    background: none;
    transition: all .2s ease;
    padding: 0;
    border: 0;
}
#gallery .embla__prev:hover,
#gallery .embla__next:hover,
#gallery .embla__prev:focus,
#gallery .embla__next:focus {
    background: none;
}
#gallery .embla__prev {
    left: -40px;
}
#gallery .embla__next {
    right: -40px;
}
#gallery #main-carousel.embla {
    margin-bottom: 16px;
}
#gallery #main-carousel.embla:hover .embla__prev {
    left: 20px;
}
#gallery #main-carousel.embla:hover .embla__next {
    right: 20px
}
#gallery .embla__prev::before,
#gallery .embla__next::before {
    content: "";
    display: block;
    position: relative;
    background: transparent;
    height: 30px;
    width: 30px;
    border-color: rgba(210, 212, 210, 0.6);
    border-style: solid;
    padding: 0px;
    z-index: 10;
    top: 50%;
    transition: all .2s ease;
    outline: none;
    border-width: 4px 4px 0px 0px;
}
#gallery .embla__prev::before {
    transform: rotate(-135deg);
}
#gallery .embla__next::before {
    transform: rotate(45deg);
}
.go-to-link {
    margin:2rem 0;
    display: block;
    font-size: 14px;
}
.go-to-link::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform-origin: right center;
    transform: rotate(45deg);
    margin-right: 10px;
}

/* Related Content */
.module > .related_content {
    border: none;
    padding: 0;
    margin-bottom: 2rem;
    overflow: visible;
}