/* Zuar Ghost Theme — blog-specific styles */

/* Ensure Ghost card/button styles don't conflict */
.gh-content > * + * {
    margin-top: 1.5em;
}

.gh-content > [id] {
    scroll-margin-top: 80px; /* offset for fixed nav */
}

/* Ghost image cards */
.gh-content figure {
    margin: 2em 0;
}

.gh-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.gh-content figcaption {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* Code blocks */
.gh-content pre {
    background: #f4f4f4;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 14px;
}

.gh-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
}

.gh-content pre code {
    background: none;
    padding: 0;
}

/* Blockquotes */
.gh-content blockquote {
    border-left: 4px solid #f6245b;
    padding: 4px 0 4px 20px;
    margin: 1.5em 0;
    color: #555;
    font-style: italic;
}

/* Ghost bookmark cards */
.kg-bookmark-card {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.kg-bookmark-content {
    padding: 16px;
    flex: 1;
}

.kg-bookmark-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.kg-bookmark-description {
    font-size: 13px;
    color: #666;
}

.kg-bookmark-thumbnail img {
    width: 160px;
    height: 100%;
    object-fit: cover;
}

/* Ghost gallery */
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kg-gallery-row {
    display: flex;
    gap: 8px;
}

.kg-gallery-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Ghost video cards */
.kg-video-card {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.kg-video-card iframe,
.kg-video-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .post-title {
        font-size: 1.8rem;
    }
    .kg-bookmark-container {
        flex-direction: column;
    }
    .kg-bookmark-thumbnail img {
        width: 100%;
        height: 200px;
    }
}

/* Required Ghost image width classes */
.kg-width-wide {
    margin-left: calc(50% - 50vw + 40px);
    margin-right: calc(50% - 50vw + 40px);
    max-width: none;
}

.kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none;
    width: 100vw;
}

@media (max-width: 767px) {
    .kg-width-wide,
    .kg-width-full {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
}
