/* Koenig Editor Required Styles - Ghost CMS */
/* These classes are required by Ghost's Koenig editor for proper content display */

/* Wide width images */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: auto calc(50% - 50vw);
    transform: translateX(calc(50vw - 50%));
}

/* Full width images */
.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Ensure images scale properly */
.kg-width-wide img,
.kg-width-full img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery container */
.kg-gallery-container {
    position: relative;
    width: 100%;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.kg-gallery-image {
    flex: 1 1 0%;
}

.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bookmark card styles */
.kg-bookmark-card {
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    display: flex;
    text-decoration: none;
    margin-top: 1.5em;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    min-height: 140px;
}

.kg-bookmark-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
}

.kg-bookmark-title {
    font-weight: 600;
    line-height: 1.3;
}

.kg-bookmark-description {
    display: -webkit-box;
    overflow-y: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    margin-top: 0.5em;
}

.kg-bookmark-thumbnail {
    position: relative;
    min-width: 33%;
    max-height: 100%;
}

.kg-bookmark-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 3px 3px 0;
}

/* Code card */
.kg-code-card {
    width: 100%;
    margin: 1.5em 0;
}

.kg-code-card pre {
    margin: 0;
}

/* Embed cards */
.kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 1.5em 0;
}

/* Image card */
.kg-image-card {
    width: 100%;
    margin: 1.5em 0;
}

.kg-image-card img {
    width: 100%;
    height: auto;
}

/* Button card */
.kg-button-card {
    display: flex;
    justify-content: center;
    margin: 1.5em 0;
}

/* Callout card */
.kg-callout-card {
    display: flex;
    padding: 1.5em;
    border-radius: 3px;
    margin: 1.5em 0;
}

/* Toggle card */
.kg-toggle-card {
    margin: 1.5em 0;
}

/* Product card */
.kg-product-card {
    display: flex;
    margin: 1.5em 0;
}

/* Audio card */
.kg-audio-card {
    display: flex;
    width: 100%;
    margin: 1.5em 0;
}

/* Video card */
.kg-video-card {
    width: 100%;
    margin: 1.5em 0;
}

.kg-video-card video {
    width: 100%;
    height: auto;
}

/* File card */
.kg-file-card {
    display: flex;
    margin: 1.5em 0;
}

/* Header card */
.kg-header-card {
    padding: 12vw 4em;
    margin: 1.5em 0;
    text-align: center;
}