/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html,
body {
    margin: 0;
    padding: 0;
}

.site-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem;
}

body.full-width {
    .site-content {
        max-width: none;
        padding-top: 0;
    }
}

body.photo-landing {
    .site-content {
        header {
            h1 {
                font-size: 1rem;
                margin: 0;
            }
        }

        .photos-grid {
            margin-top: 0;
        }
    }

}

.post-image {
    max-width: 100%;
    height: auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.site-content {
    pre {
        overflow-x: auto;
        padding: 1rem;
        border: 1px solid var(--light_gray);
        border-radius: 6px;
        background: color-mix(in srgb, var(--black) 6%, var(--white));
        line-height: 1.5;
    }

    code {
        font-size: 0.92em;
    }

    :not(pre) > code {
        padding: 0.1em 0.25em;
        border-radius: 4px;
        background: color-mix(in srgb, var(--black) 6%, var(--white));
    }

}
