/* =========================================================================
   publish.css — gosica.com
   A clean, single-column photography site on Obsidian Publish.
   Layout only: native Obsidian navigation and theming are left untouched;
   we just constrain the content width and hide the interactive graph.
   ========================================================================= */

:root {
  --content-width: 1100px;
  --gutter: 24px;
}

/* Let the content area span its full width, so our container — not
   Obsidian's readable-line-length — decides the measure. */
.markdown-preview-view .markdown-preview-sizer {
  max-width: none;
}

/* The parent container (built in publish.js) wrapping the page title
   (.mod-header) and every content block (.el-*). One place sets the width;
   everything inside, including images, simply fills it. */
.page-content {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* Images fill the container at full width and are never cropped. */
.page-content .image-embed {
  display: block;
}

.page-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 2.5rem auto;
}

/* A little more typographic scale and rhythm than the defaults. */
.markdown-rendered h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.markdown-rendered h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
}

.markdown-rendered p {
  line-height: 1.7;
}

/* KS - Basic styling */
.site-body {
    background-color: #fafafa;
}
.site-footer {
    display: none;
}

/* KS - Force graph into left sidebar, JS complements
.published-container.is-readable-line-width .site-body-right-column {
    position: relative;
}
.site-body-right-column {
    min-width: auto;
    padding-inline-end: 1rem;
}
.site-body-right-column .site-body-right-column-inner {
    width: 265px;
    max-width: 100%;
    margin: 0;
}
.published-container.is-readable-line-width .site-body-right-column {
    width: 100%;
}
.site-body-right-column .site-body-right-column-inner > div:first-child {
    margin-top: 0;
}
.site-body-left-column .search-view-outer {
    margin-block-end: 2rem;
}
*/

/* KS - Left sidebar styling */
.published-container.is-readable-line-width .site-body-left-column {
    flex-basis: calc((100vw - var(--page-width)) / 3);
}
.site-body-left-column {
    border: none;
    background-color: inherit;
}

/* KS - Hide interactive graph */
.published-container.has-graph .site-body-right-column {
  display: none;
}

/* KS - Gaps between images */
.markdown-preview-section .image-embed img {
    margin-block-end: 6vw;
}

/* KS - Main content layout */
.published-container.is-readable-line-width .markdown-preview-sizer {
    max-width: 95%;
    margin-inline: auto;
}
@media screen and (min-width: 1000px) {
    .is-readable-line-width.has-graph.has-navigation .publish-renderer > .markdown-preview-view > .markdown-preview-sizer {
        margin-inline: 1rem;
    }
    body:not(.sliding-windows) .is-readable-line-width.has-graph.has-navigation .publish-renderer > .markdown-preview-view > .markdown-preview-sizer {
        margin-inline: 1rem;
    }
}
.page-content {
    max-width: 100%;
}
.publish-renderer > .markdown-preview-view > .markdown-preview-sizer {
    padding: 0;
}