.ls-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0;
    grid-auto-flow: row;
    justify-items: center;
    grid-template-areas:
    "left top right"
    "left bottom right";
    max-width: 960px;
    justify-content: center;
    margin: 3rem auto;
}

.left {
    grid-area: left;
    padding: 0 20px;
}

.right {
    grid-area: right;
    padding: 0 20px;
}

.top {
    grid-area: top;
}

.bottom {
    grid-area: bottom;
}

.ls-caption {
    font-family: system-ui, -apple-system, sans-serif;
    margin-top: 8px;
    color: #898889;
    font-size: 14px;
}

.ls-caption-trigger {
    display: inline-block;
    text-decoration: underline;
    cursor: pointer;
}

.ls-caption-trigger:hover,
.ls-caption-trigger:focus {
    color: #ff5e56;
}


ls-section {
    font-family: system-ui, -apple-system, sans-serif;
    margin-top: 40px;
    color: #898889;
    grid-column: 1 / -1;
    width: 100%;
}


/* LMS Project Grid Layout */

.lms-project-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}

.lms-content {
    padding-right: 20px;
}

.lms-image {
    justify-self: center;
}

.lms-image img {
    width: 400px;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #898889;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lms-project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lms-image {
        justify-self: center;
    }

    .lms-content {
        padding-right: 0;
    }
}

.infographic-preview {
    max-height: 420px;
    overflow: hidden;
    position: relative;
}

.ls-image-trigger {
    display: block;
    text-decoration: none;
    color: inherit;
}

.carousel__slide.ls-image-trigger,
.ls-image-trigger,
.ls-caption-trigger {
    cursor: zoom-in;
}

.ls-image-trigger img {
    display: block;
}

.infographic-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), white);
}

.ls-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.86);
    z-index: 9999;
    padding: 30px;
}

.ls-lightbox.is-open {
    display: flex;
}

.ls-lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
}

.ls-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border: 10px solid #fff;
    box-sizing: border-box;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    background: #fff;
}

.ls-lightbox video {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border: 10px solid #fff;
    box-sizing: border-box;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    background: #fff;
}

.ls-lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

.ls-lightbox-open {
    overflow: hidden;
}
