/* Media Results - Balise Subaru (DDC) CSS MY26 */

body {
    margin: 0;
    line-height: 1.6;
    --button-roundness: 0;
    --page-width: 70em;
    --page-max-width: 1400px;
    --gray-bg: #fafafa;
}

/* DDC */

.container-max-md {
    padding: 0 !important;
}

.inventory-lead-default {
    width: 90%;
    max-width: var(--page-width);
    margin: 2em auto 0 auto !important;
}

/* Hero */
#hero {
    height: 20em;
    background: var(--hero-image) center/cover;
}

/* Opening */
#opening {
    background-color: white;
    border-bottom: 1px solid #CCCCCC;
}

#opening h1 {
    font-size: 1.6em;
    margin: 0 0 1em 0;
    color: var(--color-primary-500);
}

#opening h1 span {
    font-size: 1.5em;
    line-height: 1.3em;
}

#opening .section-container {
    flex-direction: column;
    gap: 2em;
}

#model-image-mobile {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 22em;
    margin: 0 auto 1.5em auto;
}

#model-image-desktop {
    display: none;
}

.c2a-button:link,
.c2a-button:visited,
.c2a-button:active {
    font-weight: bold;
    text-align: center;
    width: 100%;
    color: white;
    background-color: var(--color-primary-500);
    border: 2px solid var(--color-primary-500);
    text-decoration: none;
    display: inline-block;
    padding: 1em 2.5em;
    border-radius: var(--button-roundness);
    transition: 0.1s;
}

.c2a-button:hover {
    background-color: white;
    color: var(--color-primary-500);
}

#opening .c2a-button {
    margin-top: 1em;
}

/* Content */
.content-section {
    border-bottom: 1px solid #CCCCCC;
}

.section-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 2em 0;
    margin: 0 auto;
    width: 90%;
    max-width: var(--page-width);
    align-items: flex-start;
    justify-content: center;
}

.section-container h2 {
    display: flex;
    flex-direction: row;
    gap: 0.65em;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 1em 0;
    padding: 0;
    font-size: 1.75em;
}

.section-content p {
    margin: 0;
    padding: 0;
}

.section-container h2 i {
    color: var(--color-primary-500);
    margin: 0;
    font-size: 1.25em;
}

.section-gallery {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 24em;
}

.content-section:nth-of-type(even) {
    background-color: white;
}

.content-section:nth-of-type(odd) {
    background-color: var(--gray-bg);
}

.content-section:has(.section-gallery) {
    display: flex;
    flex-direction: column;
}

.section-gallery+.section-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--page-width);
}

/* Responsive CSS */
@media only screen and (min-width: 400px) {

    .c2a-button:link,
    .c2a-button:visited,
    .c2a-button:active {
        width: auto;
    }
}

@media only screen and (min-width: 800px) {
    .section-container {
        padding: 3em 0;
    }

    .section-gallery {
        max-height: none;
        width: 30em;
    }

    .content-section:has(.section-gallery) {
        flex-direction: row;
    }

    .section-gallery+.section-container {
        padding-left: 5%;
        padding-right: 5%;
        margin: 0;
        max-width: 54em;
    }

    #hero {
        height: 30em;
        display: flex;
    }

    #model-image-mobile {
        display: none;
    }

    #model-image-desktop {
        display: inline-block;
        width: 20em;
        object-fit: contain;
    }

    #opening .section-container {
        flex-direction: row-reverse;
        align-items: center;
        justify-content: center;
    }

    .right-image {
        flex-direction: row-reverse !important;
    }
}

@media only screen and (min-width: 1248px) {
    .section-gallery+.section-container {
        max-width: 56em;
    }
}

@media only screen and (min-width: 1300px) {
    #content-main {
        max-width: 1300px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media only screen and (min-width: var(--page-max-width)) {
    #content-main {
        max-width: var(--page-max-width);
    }

    .section-gallery {
        width: 33%;
    }

    .section-gallery+.section-container {
        padding-left: 3em;
        padding-right: 3em;
    }
}

@media only screen and (min-width: 1400px) {
    #content-main {
        max-width: var(--page-max-width);
        margin-left: auto;
        margin-right: auto;
    }

    .section-gallery+.section-container {
        padding-left: 3em;
        padding-right: 3em;
        margin: 0;
        max-width: 58em;
    }
}