.kt550-news-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.kt550-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.kt550-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.kt550-card {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.kt550-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.kt550-card-body {
    padding: 15px;
}

.kt550-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.kt550-checkboxes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 20px;
}

.kt550-pagination {
    margin-top: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
}

.kt550-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

/* Modal */
.kt550-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.kt550-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 1200px;
    position: relative;
}

.kt550-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.kt550-close:hover {
    color: black;
}

/* Type tags in modal */
.kt550-type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.kt550-type-tag {
    display: inline-block;
    background-color: #a7231f;
    color: #fff;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Modal Gallery Thumbnail Strip ─────────── */
.kt550-m-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 8px;
}

.kt550-gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}

.kt550-gallery-thumb:hover {
    border-color: #a7231f;
    transform: scale(1.06);
}

/* ── Lightbox ───────────────────────────────── */
.kt550-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kt550-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.kt550-lb-close,
.kt550-lb-prev,
.kt550-lb-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.kt550-lb-close:hover,
.kt550-lb-prev:hover,
.kt550-lb-next:hover {
    background: rgba(255, 255, 255, 0.28);
}

.kt550-lb-close {
    top: 18px;
    right: 18px;
    font-size: 1.6rem;
}

.kt550-lb-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.kt550-lb-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

/* ── Gallery Upload Field (formular page) ───── */
.kt550-gallery-input,
.kt550-gallery-error,
.kt550-gallery-descr {
    display: block;
    font-style: italic;
}

.kt550-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kt550-upload-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
}