/*****************************************************************************/
/* Common */
/*****************************************************************************/
html {
    height: 100%;
    font-size: 1.1em;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Verdana";
    font-size: medium;
    background-color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0;
}
* {
    margin: 0;
    padding: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-size: 1em;
}
p {
    margin: 1em 0;
}
a {
    color: #00a;
    text-decoration: none;
}
a:hover {
    color: #fabd2f;
}
a:visited:hover {
    color: #fabd2f;
}
a:visited {
    color: #a0a;
}
table {
    font: inherit;
}
blockquote {
    padding: 0.05em 1em;
    border-left: 4px solid #ccc;
    color: #555;
    background-color: #f9f9f9;
}
.flex-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* or cover, depending on your goal */
}
/*****************************************************************************/
/* Home */
/*****************************************************************************/
ul.posts {
    list-style: none;
    margin-bottom: 2em;
}
ul.posts li {
    line-height: 1.75em;
}
ul.posts span {
    color: #aaa;
    font: 0.8em "IBM Plex Mono", monospace;
}
/*****************************************************************************/
/* Site */
/*****************************************************************************/
.site {
    flex: 1;
    padding-top: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 40em;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.5em;
    text-align: left;
    width: 100%;
    padding-left: 1em;
    padding-right: 1em;
    box-sizing: border-box;
}
.title {
    color: #a00;
    font-family: "Verdana";
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 2em;
}
.title a {
    color: #a00;
}
.title a:hover {
    color: #fabd2f;
}
.title a.extra {
    color: #aaa;
    margin-left: 1em;
}
.title a.extra:hover {
    color: #fabd2f;
}
.title a.extra.active {
    color: black;
}
.site .meta {
    color: #aaa;
}
.footer {
    font-family: 'Verdana', sans-serif;
    font-size: 0.8em;
    color: #666;
    border-top: 4px solid #eee;
    margin-top: auto;
    padding-bottom: 2em;
    padding-left: 1em;
    padding-right: 1em;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    box-sizing: border-box;
}
.footer .contact {
    float: left;
    margin-right: 3em;
}
.footer .contact a {
    color: #8085C1;
}
.footer .rss {
    float: right;
    margin-top: 1.1em;
    margin-right: -0.2em;
}
.footer .rss img {
    border: 0;
}
.footer-note {
    color: #888;
    font-size: 0.65em;
    text-align: center;
    margin-top: 50px;
}
/*****************************************************************************/
/* Posts */
/*****************************************************************************/
#post pre,
#post code {
    background-color: #eef;
    border: 1px solid #ddd;
}
#post pre {
    padding: 0 0.4em;
    overflow-x: auto;
}
#post code {
    font-size: 0.85em;
    padding: 0 0.2em;
    word-wrap: break-word;
}
#post pre code {
    border: none;
}
#post ul,
#post ol {
    margin-left: 1.35em;
}
#post h1 {
    font-size: 1.15em;
    margin-bottom: 1em;
}
#post h2 {
    font-size: 1.05em;
}
#post h3,
#post h4,
#post h5,
#post h6 {
    font-size: 1em;
}

#post 
hr {
    margin-top: 2rem;   /* space above */
    margin-bottom: 2rem; /* space below */
    border: none;       /* optional: remove default border */
    border-top: 2px solid #ccc; /* optional: custom style */
}

/*****************************************************************************/
/* About */
/*****************************************************************************/
.right-image {
    float: right;
    margin: 0 0 0.5em 0.5em;
    max-width: 35%;
    height: auto;
    margin-top: 1.2em;
}

/*****************************************************************************/
/* Mobile Responsiveness */
/*****************************************************************************/
@media screen and (max-width: 768px) {
    html {
        font-size: 1em; /* Reduce from 1.1em */
    }

    .site {
        font-size: 1em;
        padding-left: 0.8em;
        padding-right: 0.8em;
        line-height: 1.4em; /* Slightly tighter line spacing */
    }
}

/*****************************************************************************/
/* Photos */
/*****************************************************************************/
.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
}

.photo-item {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.photo-item.landscape {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

