/* --- 1. ZOOM / LIGHTBOX (Tezkor, animatsiyasiz) --- */
.markdown-preview-view img {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.lightbox-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

/* --- HTML ALBOM STILI (Universal) --- */

.my-album {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

/* 1. Agar toza HTML <img> ishlatilsa */
.my-album > img {
    flex: 1 1 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 !important;
}

/* 2. Agar Obsidian ![[rasm]] ishlatilsa (span ichida bo'ladi) */
.my-album .image-embed,
.my-album .internal-embed {
    flex: 1 1 300px !important; /* Qutini cho'zamiz */
    height: 250px !important;
    margin: 0 !important;
    display: block;
}

.my-album .image-embed img,
.my-album .internal-embed img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 8px;
}

/* Mobil telefon uchun */
@media (max-width: 600px) {
    .my-album > img,
    .my-album .image-embed {
        height: auto !important;
        flex: 1 1 100% !important;
    }
}

/* --- FULL WIDTH / TAQDIMOT REJIMI --- */

/* Asosiy kontent maydonini topib, maksimal kengligini 100% qilamiz */
.full-width .markdown-preview-view {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 20px; /* Yonlarda ozgina bo'sh joy qoldiramiz */
}

/* Saytning boshqa qobiq (wrapper) elementlari cheklamasligi uchun */
.full-width .page-content-wrapper,
.full-width .page-content-container {
    max-width: 100% !important;
}

/* O'qishni qiyinlashtirmaslik uchun, faqat katta ekranlarda kengaytiramiz */
@media (min-width: 1200px) {
    .full-width .markdown-preview-view {
        /* Masalan, 1800px dan oshmasin desangiz, max-width: 1800px qilib qo'yishingiz mumkin */
        max-width: 90% !important; 
        margin-left: auto;
        margin-right: auto;
    }
}