/* Make H1, H2, and H3 headers Orange (using the Accent color variable) */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
    color: var(--md-accent-fg-color);
    font-weight: bold;
}

/* Add separator line below Home in Sidebar */
.md-nav__item a[href^='index.md'],
.md-nav__item a[href='.'] {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* 3-Column Grid for Index Media */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
}

.media-grid img, 
.media-grid video {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: adds nice rounded corners */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}

/* Light Mode Overrides for Cards */
[data-md-color-scheme="default"] .card {
    /* Use theme background (white usually) */
    background-color: var(--md-default-bg-color) !important;
    /* Add border to separate from white background */
    border: 1px solid var(--md-default-fg-color--lightest);
    /* Add subtle shadow */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /* Ensure text is standard color */
    color: var(--md-default-fg-color);
}

/* Ensure Links inside cards are readable */
[data-md-color-scheme="default"] .card a {
    color: inherit;
}

/* Optional: Invert Tags logic for Light Mode if needed */
/* 
[data-md-color-scheme="default"] .card span {
    background-color: #e0e0e0 !important;
    color: #333 !important;
} 
*/