/* repeatable styles across case study html files */

html {
    font-size: 14px;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
li {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-optical-sizing: auto;
}

header {
    margin: 2rem auto;
    width: 85%;
    max-width: 900px;
}

section {
    margin: 4.5rem auto;
    padding: 0 7.5%;
    max-width: 600px;
}

hr {
    margin: 2rem 0;
}

figure {
    margin-bottom: 1rem;
}

figcaption {
    margin: 0.5rem 1rem;
}


/* TYPOGRAPHY */
h1 {
    color: var(--heading-primary-color);
    font-size: var(--h1-font-size);
    font-weight: var(--h1-font-weight);
    line-height: var(--h1-line-height);
    margin-bottom: 2rem;
}

h2 {
    color: var(--heading-primary-color);
    font-size: var(--h2-font-size);
    font-weight: var(--h2-font-weight);
    line-height: var(--h2-line-height);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

h3 {
    color: var(--heading-primary-color);
    font-size: var(--h3-font-size);
    font-weight: var(--h3-font-weight);
    line-height: var(--h3-line-height);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4,
figcaption {
    color: var(--heading-primary-color);
    font-size: var(--callout-heading-font-size);
    font-weight: var(--callout-heading-font-weight);
    line-height: var(--callout-heading-line-height);
}

section>h4 {
    font-size: 1rem;
    margin-top: 1.5rem;
}

p,
li {
    color: var(--paragraph-primary-color);
    font-size: var(--paragraph-font-size);
    font-weight: var(--paragraph-font-weight);
    line-height: var(--paragraph-line-height);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}


blockquote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #B51A17;
}

.quote {
    color: #B51A17;
}

.citation {
    color: var(--paragraph-primary-color)
}


/* CALLOUT */
.callout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (850px<=width) {
    html {
        font-size: 16px;
    }

    header {
        width: 90%;
    }

    section {
        padding: 0 5%;
    }

    .callout {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .carousel {
        margin: 0 auto;
        max-width: 600px;
    }
}

.callout-section {
    display: inherit;
    align-items: center;
    gap: 1rem;
}

.callout-label {
    font-size: var(--callout-label-font-size);
    font-weight: var(--callout-label-font-weight);
    margin: 0;
}

i,
.icon::before {
    width: 1.5em;
    height: 1.5em;
}



/* IMAGES */
img {
    max-width: 100%;
}

figure {
    margin: 1.25rem 0;
}

.splash-img {
    width: 100vw;
    height: 85vh;
    object-fit: cover;
}

.img-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.carousel {
    display: flex;
    width: 100vw;
    gap: 1rem;
    /* max-height: 425px; */
    /* max-width: 600px; */
    /* margin: 0 auto; */
}

.carousel-img {
    height: 20vh;
    object-fit: cover;
}

/* changing dual-column-img to be next to each other as opposed to stacked  */
@media (450px <=width) {
    .img-container {
        flex-wrap: nowrap;
    }

    .img-duo-1 {
        width: 65%;
        object-fit: cover;
    }

    .img-duo-2 {
        width: 35%;
        object-fit: cover;
    }

    .carousel-img {
        height: 35vh;
    }
}


/* BUTTONS */
.btn-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (450px <=width) {
    .btn-container {
        flex-direction: row;
    }
}

.linkedin-btn,
.email-btn {
    text-decoration: none;
    background-color: #222;
    color: rgb(236, 236, 236);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    gap: .75rem;
    padding: 1rem 0;
    border-radius: 1rem;
}

.linkedin-btn:hover {
    background-color: #095077;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 16px 0px;
    transition: 200ms;
}

.email-btn:hover {
    background-color: rgb(138, 24, 30);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 16px 0px;
    transition: 200ms;
}