/* ========================================
   Blog Content Styles
   ======================================== */

/* Set embed cards - float right on desktop */
.set-embed {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
    max-width: 280px;
}

@media (max-width: 576px) {
    .set-embed {
        float: none;
        margin-left: 0;
        max-width: 100%;
    }
}

/* Set image figures */
.set-image {
    max-width: 100%;
}

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

/* Set gallery grid */
.set-gallery .card {
    transition: transform var(--transition-normal);
}

.set-gallery .card:hover {
    transform: var(--card-hover-transform);
}

.set-gallery .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--bs-tertiary-bg);
    padding: 0.5rem;
}

/* Tables from markdown */
article table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

article table th,
article table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--bs-border-color);
}

article table thead th {
    background: var(--bs-tertiary-bg);
    font-weight: 600;
}

article table tbody tr:hover {
    background: var(--bs-tertiary-bg);
}

/* Clear floats after article content */
article::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   Article Header Styles
   ======================================== */

.blog-article.card {
    border: none;
}

.article-header {
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 1.5rem;
}

.article-hero img {
    max-height: 400px;
    object-fit: cover;
}

.article-share .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: var(--bs-secondary-color);
    color: var(--bs-body-color);
}

.article-share .btn:hover {
    background-color: var(--bs-secondary-bg);
    border-color: var(--bs-body-color);
    color: var(--bs-body-color);
}

.article-share .btn svg {
    width: 18px;
    height: 18px;
}
