/* Import Partials */
@import 'typography.css';
@import 'tables.css';
@import 'buttons.css';
@import 'navigation.css';
@import 'meta.css';

:root {    
    --color-primary: #FFFFFF;
    --color-highlighted: var(--color-accent);
    --color-muted: #989898;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-background: #000000;
    --color-accent: #ffc414;
}

/* CSS Reset */
html, body {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
    scrollbar-gutter: stable;
    background-color: var(--color-background);
}

/* Layout */
.site-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    /* margin: 0 3em; */
}

/* Header */
header {
    /* height: 6.5rem; */
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--color-accent)
}
.header-container {
    margin: 1em auto;
}

/* Post Indexes */
.post-index {
    margin-top: 2rem;
}

i {
    padding-right: 10px;
}

.tag-index-header {
    margin-bottom: 1em;
}

.tag-index-header > h1 {
    margin-top: 0;
}

.index-item {
    margin-bottom: 2.5rem;
}
.index-item.slim {
    margin-bottom: 0;
}

.index-item .article-title {
    display: inline;
}

.index-item img {
    width: 100%;
}

.index-item .external-link {
    vertical-align: middle;
    padding: 0rem .5rem .5rem .65rem;
    font-size: .65rem;
}

/* Article & Page */
.article-content,
.page-content {
    padding-top: 1em;
}

.article-title {
    padding-top: .5em;
}

.article-content img {
    max-width: 100%;
    max-height: 350px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

figure {
    margin: 0 0 1.5em;
}
/* figure figcaption {
    width: max-content;
    margin: 0 auto;
} */

img.featured-image {
    max-height: none;
}

footer {
    margin: 4rem 0 2rem;
}

footer i {
    padding: .1em;
}

.footer-content {
    margin: 0 auto;
    width: fit-content;
}

/* Embeds */
.eleventy-plugin-youtube-embed {
    margin: 1.5rem 0;
}

/* Center the audio player container */
.audio-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em;
}

audio {
    max-width: 100%; /* Ensure it doesn't overflow */
}

.audio-container iframe {
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* CSS to style the image grid */
.image-grid,
.media-grid {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    margin: 2rem 0;
}

.grid-row {
    display: flex;
    width: 100%;
    gap: 10px; /* Adjust the spacing between items */
}

.grid-item {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink */
}

.grid-item img {
    width: 100%; /* Makes images responsive */
    height: auto;
    display: block;
}

.media-grid .eleventy-plugin-youtube-embed {
    margin: 0;
}

.media-grid p {
    display: none;
}

/* Mobile */
@media only screen and (max-width: 600px) {

    .article-content img {
        max-height: none;
    }
}