/*-- -------------------------- -->
<---       Side By Side         -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #sbs-578 {
    }
    #sbs-578 .cs-container {
    	padding-left: 0rem;
        width: 100%;
        max-width: 60rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(0.6rem, 1.5vw, 0.9rem);
    }
    #sbs-578 .cs-content {
    	color: var(--bodyTextColor);
        /* set text align to left if content needs to be left aligned */
        text-align: left;
        width: 100%;
/*         max-width: 32.625rem; */
		max-width: 50rem;
        /* moved section padding to the .cs-content so we can have the cs-picture be full width on mobile without the padding preventing it from doing so */
        padding: var(--sectionPadding);
        /* prevents padding from affecting width and height */
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: flex-start;
    }

	#sbs-578 .cs-title {
        max-width: 40rem;
        font-size: var(--headerFontSize)
    }

    #sbs-578 .cs-text {
        margin-bottom: 1rem;
        max-width: 40rem;
        font-size: 1rem;
        line-height: 1.3em;
    }
    #sbs-578 .cs-text:last-of-type {
        margin-bottom: 2rem;
    }
    #sbs-578 .cs-button-solid {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: #fff;
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: var(--primary);
        border-radius: 0.25rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
    }
    #sbs-578 .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }
    #sbs-578 .cs-button-solid:hover:before {
        width: 100%;
    }
    #sbs-578 .cs-picture {
        display: block;
        position: relative;
        width: 100%;
        max-width: 190px;
        height: 18.75rem;
    }
    #sbs-578 .cs-picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
        #sbs-578 .cs-square-picture {
        display: block;
        position: relative;
        width: 100%;
        max-width: 200px;
        height: 13rem;
    }
    #sbs-578 .cs-square-picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #sbs-578 {
        padding: var(--sectionPadding);
/* 
        padding-top: 2rem;
        padding-bottom: 0;
 */
        padding-left: 5.5rem;
    }
    #sbs-578 .cs-container {
        flex-direction: row;
        justify-content: flex-start;
        /* 60px - 128px */
        gap: clamp(3.75rem, 10vw, 8rem);
    }
    #sbs-578 .cs-content {
        width: 53%;
        /* reset the padding, add the section padding back to the section container */
        padding: 0;
    }
    #sbs-578 .cs-picture {
        width: 19vw;
        min-height: 340px;
        min-width: 220px;
        max-width: 13rem;
        /* 518px - 700px */
        height: clamp(16.6rem, 30vw, 20rem);   
/* 
        width: 47vw;
        max-width: 30.875rem;
        /* 518px - 700px */
/*         height: clamp(32.375rem, 63vw, 43.75rem); */
 
        /* 16px - 28px, added margin left and bottom to cs-picture so it pushes away by the same amount the yellow box element overlaps it left and bottom. This maintains consistent spacing left and bottom */
        margin: 0 0 clamp(1rem, 2.4vw, 1.75rem) clamp(1rem, 2.4vw, 1.75rem);
        margin-right: -40px;
        position: relative;
    }
        #sbs-578 .cs-square-picture {
        min-width: 220px;
        width: 26vw;
        max-width: 14.6rem;
        height: clamp(14.8rem, 23vw, 15.2rem);   
        margin: 0 0 clamp(1rem, 2.4vw, 1.75rem) clamp(1rem, 2.4vw, 1.75rem);
        margin-right: -40px;
        position: relative;
    }

}


                                

/*-- -------------------------- -->
<---           Quote            -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    .quote-561 {
        padding: var(--sectionPadding);
        background-color: white;
    }
    .quote-561 .cs-container {
        width: 100%;
        max-width: 42rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
        padding-left: 0rem;
    }
    .quote-561 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: left;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: flex-start;
        /* 16px - 20px */
        gap: clamp(1rem, 2vw, 1.25rem);
    }
    .quote-561 .cs-content ul {
		list-style-type: square;
	}
	.quote-561 .cs-topper:before, a.cs-topper:before {
        /* line */
        padding-top: 2px;
        height: 1px;
        background: var(--primary);
        opacity: 1;
        display: block;
    }
    .quote-561 .cs-topper-book-excerpt.cs-topper:before {
        content: "book excerpt";
        color: var(--secondary);
    }
    .quote-561 .cs-topper-review-excerpt.cs-topper:before {
        content: "review excerpt";
        color: var(--secondary);
    }
    .quote-561 .cs-topper-learn-more.cs-topper:before {
        content: "learn more";
        color: var(--secondary);
    }
    .quote-561 .cs-topper-what-people-are-saying.cs-topper:before {
        content: "What People Are Saying";
        color: var(--secondary);
    }
    .quote-561 .cs-topper-take-closer-look.cs-topper:before {
        content: "Take a Closer Look";
        color: var(--secondary);
    }
    
    .quote-561 .cs-quote, #quote-561 .cs-quote a {
        /* 31px - 49px */
        padding-top: 6px;
        font-size: clamp(1rem, 1.8vw, 1.2rem);
        line-height: 1.5em;
        font-weight: 700;
        margin: 0;
    }
    .quote-561 .cs-quote {
    	color: var(--primary);
    	}

    .quote-561 .cs-name {
        /* 16px - 20px */
/* 
        font-size: clamp(1rem, 1.7vw, 1.25rem);
        line-height: 1.2em;
 */
        font-size: var(--topperFontSize);
    	line-height: 1.3em;
        font-weight: 700;
        text-transform: uppercase;
        margin: 0;
        color: var(--secondary);
        display: block;
        letter-spacing: 0.01em;
    }
}

/*-- -------------------------- -->
<---       Single Text          -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    .sbs-578-double-text {
            padding: var(--sectionPadding);
            padding-bottom: 0;
    }
    .sbs-578-double-text .cs-container {
    	padding-left: 0rem;
        width: 100%;
/*         max-width: 70rem; */
        max-width: 42rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(3rem, 7vw, 4rem);
        column-gap: 0;
    }
    .sbs-578-double-text .cs-content-left {
    	color: var(--bodyTextColor);
        /* set text align to left if content needs to be left aligned */
        text-align: left;
        width: 100%;
/*         max-width: 32.625rem; */
		max-width: 40rem;
        /* moved section padding to the .cs-content so we can have the cs-picture be full width on mobile without the padding preventing it from doing so */
        padding: var(--sectionPadding);
        padding-top: 0;
        padding-left: 0;
        /* prevents padding from affecting width and height */
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: flex-start;
    }
    .sbs-578-double-text .cs-content-left ul,
    .sbs-578-double-text .cs-content-right ul {
		list-style-type: square;
	}
    .sbs-578-double-text .cs-content-right {
    	color: var(--bodyTextColor);
        /* set text align to left if content needs to be left aligned */
        text-align: center;
        width: 100%;
/*         max-width: 32.625rem; */
		max-width: 32rem;
        /* moved section padding to the .cs-content so we can have the cs-picture be full width on mobile without the padding preventing it from doing so */
        padding: var(--sectionPadding);
        padding-top: 0;
        /* prevents padding from affecting width and height */
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: flex-start;
    }

    .sbs-578-double-text .cs-text {

        margin-bottom: 1rem;
        max-width: 60rem;
        font-size: 1.05rem;
        line-height: 1.5em;
    }
    .sbs-578-double-text .cs-text:last-of-type {
        margin-bottom: 2rem;
    }
}
/* Tablet - 768px */
@media only screen and (min-width: 60rem) {
    .sbs-578-double-text {
        padding: var(--sectionPadding);
		padding-bottom: 0;
    }
    .sbs-578-double-text .cs-container {
        flex-direction: row;
        justify-content: flex-start;
        /* 60px - 128px */
        gap: clamp(3.75rem, 10vw, 8rem);
        column-gap: 6em;
        padding-left: 0rem;
    }
    .sbs-578-double-text .cs-content-left {
        width: 100%;
        /* reset the padding, add the section padding back to the section container */
        padding: 0;
    }
    
    .sbs-578-double-text .cs-content-right {
        width: 0%;
        /* reset the padding, add the section padding back to the section container */
        padding: 0;
    }
}

/*-- -------------------------- -->
<---          Gallery           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #gallery-1152 {
        padding: var(--sectionPadding);
        background-color: white;
    }
    #gallery-1152 .cs-container {
        padding-left: 0rem;
        width: 100%;
        /* changes to 1280px at large desktop */
        max-width: 59rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: left;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
    }
    #gallery-1152 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: center;
    }

    #gallery-1152 .cs-topper {
        color: #767676;
    }
    #gallery-1152 .cs-title {
        margin: 0;
    }
    #gallery-1152 .cs-gallery {
        width: 40%;
        /* changes to 100% at tablet */
        max-width: 31.25rem;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        /* 16px - 20px */
        gap: clamp(0.5rem, 0.75vw, 0.65rem);
    }
    #gallery-1152 .cs-image {
        /* 260px - 360px */
        min-height: clamp(6.5rem, 24vw, 8rem);
        border-radius: 0.5rem;
        /* clips the image corners */
        overflow: hidden;
        display: block;
        grid-column: span 12;
        grid-row: span 1;
        position: relative;
    }
    #gallery-1152 .cs-image img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        /* makes it act like a background image */
        object-fit: cover;
    }
        #gallery-1152 .cs-gallery {
        max-width: 10rem;
/*     max-width: 100%; */
        grid-template-rows: 1fr;
    }
    #gallery-1152 .cs-image {
            grid-column: span 6;
}
/* Tablet - 700px */
@media only screen and (min-width: 43.75rem) {
	#gallery-1152 .cs-container {
        padding-left: 8rem;
        }
    #gallery-1152 .cs-gallery {
        max-width: 18rem;
/*     max-width: 100%; */
        grid-template-rows: 1fr;
    }
    #gallery-1152 .cs-image {
            grid-column: span 4;
/*         grid-column: span 5; */
    }
/* 
    #gallery-1152 .cs-image:nth-of-type(5),
    #gallery-1152 .cs-image:nth-of-type(6) {
        grid-column: span 7;
    }
 */
}
/* JG: could reduce number of pixels and it still works pretty well down do around 55rem or so) */
/* Large Desktop - 1300px */
@media only screen and (min-width: 81.25rem) {
    #gallery-1152 .cs-container {
    padding-left: 8rem;
/*         max-width: 80rem; */

/* 
    }
    #gallery-1152 .cs-gallery {
        grid-template-columns: repeat(6, 1fr);
        max-width: 100%;
    }
    #gallery-1152 .cs-image {
        grid-column: span 1;
    }
    #gallery-1152 .cs-image:nth-of-type(5),
    #gallery-1152 .cs-image:nth-of-type(6) {
        grid-column: span 1;
    }
 */
	}
}
