/* Ghost editor cards, restyled for glass. Base behaviour comes from card_assets. */

.gh-content .kg-width-wide {
    position: relative;
    width: min(var(--column-wide), calc(100vw - 40px));
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
}
.gh-content .kg-width-full {
    position: relative;
    width: 100vw;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
}
.gh-content .kg-width-full img { border-radius: 0; }
.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img { border-radius: 14px; }
.gh-content .kg-width-full figcaption { padding: 0 20px; }

.gh-content .kg-gallery-container { gap: 8px; }
.gh-content .kg-gallery-row { gap: 8px; }

/* Shared frosted surface for container cards */
.gh-content :is(.kg-callout-card-grey, .kg-callout-card-white, .kg-bookmark-container, .kg-toggle-card, .kg-product-card-container, .kg-file-card-container, .kg-audio-card) {
    background: var(--glass-fill) !important;
    border: 1px solid var(--glass-border) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-radius: 18px !important;
    color: #fff !important;
    box-shadow: none !important;
}

.gh-content .kg-callout-card { padding: 18px 20px; border-radius: 18px; }
.gh-content :is(.kg-signup-card, .kg-header-card) { border-radius: 18px; overflow: hidden; }
.gh-content .kg-callout-text { font-size: 16px; line-height: 1.6; }

.gh-content .kg-bookmark-container { overflow: hidden; text-decoration: none !important; }
.gh-content .kg-bookmark-title { color: #fff; font-weight: 600; }
.gh-content .kg-bookmark-description,
.gh-content .kg-bookmark-metadata { color: var(--text-soft) !important; }
.gh-content .kg-bookmark-thumbnail img { border-radius: 0 17px 17px 0; }

.gh-content .kg-toggle-card { padding: 16px 20px; }
.gh-content .kg-toggle-heading-text { color: #fff; font-family: var(--font-heading); }
.gh-content .kg-toggle-card svg { color: #fff; fill: none; stroke: currentColor; }
.gh-content .kg-toggle-content { color: rgba(255, 255, 255, 0.9); }

.gh-content :is(.kg-file-card-title, .kg-audio-title, .kg-product-card-title) { color: #fff; }
.gh-content :is(.kg-file-card-caption, .kg-file-card-metadata, .kg-audio-duration, .kg-product-card-description) { color: var(--text-soft); }

.gh-content .kg-btn,
.gh-content .kg-product-card-button,
.gh-content .kg-header-card-button,
.gh-content .kg-signup-card-button {
    background: #fff !important;
    color: var(--ink) !important;
    border-radius: var(--radius-pill) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.gh-content .kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.gh-content .kg-embed-card iframe { border-radius: 14px; aspect-ratio: 16 / 9; width: 100%; height: auto; }
.gh-content .kg-video-card video { border-radius: 14px; }
