/* Renders the "Blog Content Sections" block builder output.
   Used by Admin's Web/blog-show view; drop into the main site's own
   stylesheet pipeline too if/when the article page moves there. */

.blg-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blg-article-title {
    margin-bottom: 24px;
}

.blg-block {
    display: flex;
}

.blg-block-inner {
    width: 100%;
}

.blg-w-full .blg-block-inner {
    max-width: none;
}

.blg-w-wide .blg-block-inner {
    /* max-width: 900px; */
}

.blg-w-narrow .blg-block-inner {
    max-width: 600px;
}

.blg-align-left {
    justify-content: flex-start;
}

.blg-align-center {
    justify-content: center;
    text-align: center;
}

.blg-align-right {
    justify-content: flex-end;
}

.blg-force-left-text {
    text-align: left;
}

.blg-mt-sm {
    margin-top: 16px;
}

.blg-mt-md {
    margin-top: 0px;
}

.blg-mt-lg {
    margin-top: 56px;
}

/* hero */
.blg-hero {
    position: relative;
    margin-bottom: 24px;
}

.blg-hero-img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.blg-hero-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 24px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 12px 12px;
}

.blg-hero-eyebrow {
    display: block;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.blg-hero-heading {
    margin: 4px 0 0;
}

/* text blocks */
.blg-quote {
    border-left: 4px solid #673de6;
    padding: 8px 20px;
    font-style: italic;
    margin: 0;
}

.blg-cta {
    background: #f4f5ff;
    border-radius: 12px;
    padding: 24px;
}

.blg-cta-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: #673de6;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}

/* images */
.blg-image {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.blg-image-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.blg-cols-1.blg-image-pair {
    grid-template-columns: 1fr;
}

.blg-image-pair img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
}

.blg-gallery-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.blg-gallery-track img {
    flex: 0 0 calc((100% - (var(--gallery-gap, 12px) * 2)) / 3);
    scroll-snap-align: start;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
}

.blg-cols-1 .blg-gallery-track img {
    flex-basis: 100%;
}

.blg-cols-2 .blg-gallery-track img {
    flex-basis: calc((100% - 12px) / 2);
}

/* video */
.blg-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}

.blg-video-embed iframe,
.blg-video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.blg-divider {
    border: none;
    border-top: 1px solid #e0e0e6;
}
