.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.article-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
    list-style: disc;
}

.article-content li {
    margin-bottom: 10px;
}

.article-img-main {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    cursor: zoom-in;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5px;
    margin: 40px 0;
    justify-items: stretch;
    align-items: stretch;
}

.photo-gallery img {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.photo-gallery img:hover {
    transform: scale(1.01);
}

.photo-gallery-vertical {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 40px 0;
    align-items: center;
}

.photo-gallery-vertical img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.photo-gallery-vertical img:hover {
    transform: scale(1.01);
}

@media (max-width: 768px) {

    .photo-gallery img,
    .photo-gallery-vertical img {
        max-height: 60vh;
    }
}

/* Image modal */
.image-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 10000;
}

.image-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    max-width: min(1200px, 95vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.45);
    background: #0f172a;
}

.image-modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 38px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    .image-modal-overlay {
        padding: 16px;
    }

    .image-modal-close {
        top: 12px;
        right: 16px;
        font-size: 32px;
    }
}

.article-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-muted);
    background: rgba(37, 99, 235, 0.05);
    padding: 20px;
    border-radius: 0 16px 16px 0;
}

.highlight-text {
    background-color: #fff9c4;
    padding: 0 5px;
    border-radius: 4px;
}