/* ================== Bejegyzés konténer ================== */
.post-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.post-content:hover {
    transform: translateY(-3px);
}

/* Bejegyzés főcím */
.post-content h1 {
    font-size: 28px;
    color: #002746;
    margin-bottom: 10px;
    text-align: center;
}

/* Kategória kiírása */
.post-content .category {
    font-size: 14px;
    color: #21a391;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
}

/* Kiinduló kép */
.featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Bejegyzés szövege */
.post-content p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    text-align: justify;
}

/* ================== Galéria ================== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* ================== Lightbox ================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.lightbox-controls {
    margin-top: 10px;
}

.lightbox-controls button {
    background: #21a391;
    border: none;
    padding: 8px 12px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    margin: 0 5px;
}

.lightbox-controls button:hover {
    background: #188978;
}
