/* Company pages on the sr-page template: about.php, work.php, thank-you.php */
/* Loaded after css/solar-roof.css. Every rule is scoped under .sr-page. */
/* "#content .sr-page" is used where css/main-style.css has #content img rules to beat. */

/* ---- about.php ---- */
.sr-page .sr-about-intro {
    padding: 3em 0 2.5em 0;
}

.sr-page .sr-about-intro p,
.sr-page .sr-section-media-content p {
    overflow-wrap: normal;
    word-break: normal;
}

.sr-page .sr-closing .sr-icon-tiles {
    margin: 0;
}

.sr-page .sr-icon-tiles a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* ---- thank-you.php ---- */
.sr-page .sr-thanks {
    padding: 5em 0 6em 0;
}

.sr-page .sr-thanks .sr-intro {
    margin-bottom: 2em;
}

/* ---- work.php: gallery viewer ---- */
.sr-page .sr-gallery-viewer {
    margin-top: 1.5em;
}

#content .sr-page .sr-gallery-viewer img.mainimage {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    max-height: 600px;
    object-fit: contain;
    background-color: #e4e4e4;
    border-radius: 4px;
}

.sr-page .sr-gallery-thumbs {
    display: flex;
    gap: 0.5em;
    margin-top: 0.75em;
    padding: 0.25em 0 0.75em 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.sr-page .sr-gallery-thumbs button {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    margin: 0;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 4px;
    background-color: #e4e4e4;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.sr-page .sr-gallery-thumbs button:hover {
    opacity: 1;
}

.sr-page .sr-gallery-thumbs button.is-active {
    opacity: 1;
    border-color: #C24E00;
}

.sr-page .sr-gallery-thumbs button:focus-visible {
    opacity: 1;
    outline: 2px solid #C24E00;
    outline-offset: 2px;
}

#content .sr-page .sr-gallery-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .sr-page .sr-thanks {
        padding: 3em 0 3.5em 0;
    }

    .sr-page .sr-thanks .sr-intro {
        font-size: 1rem;
    }

    .sr-page .sr-gallery-thumbs button {
        width: 72px;
        height: 72px;
    }
}
