body {
    margin: 0;
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}

h1 {
    text-align: center;
    margin: 20px 0;
    font-size: 22px;
}

/* =========================
   MAIN MASONRY
========================= */

.masonry {
    column-count: 5;
    column-gap: 8px;
    padding: 8px;
    column-fill: balance;
    display: block !important;
}

.masonry a {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 8px;
}

.masonry img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

@media (max-width: 1200px) {
    .masonry { column-count: 5; }
}

@media (max-width: 768px) {
    .masonry { column-count: 2; }
}

/* =========================
   HEADER
========================= */

.site-header {
    padding: 20px 10px 10px;
    text-align: center;
    border-bottom: 1px solid #222;
    margin-bottom: 10px;
    background: linear-gradient(to bottom, #111, #0c0c0c);
}

.site-header .logo {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1px;
}

.site-header .logo span {
    color: #ffd200;
}

.site-header .tagline {
    margin-top: 6px;
    font-size: 13px;
    color: #aaa;
    letter-spacing: 0.5px;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 10px 0 20px;
    display: block !important;
}

.section h2 {
    text-align: center;
    font-size: 16px;
    margin: 10px 0 15px;
    letter-spacing: 1px;
    color: #ccc;
    text-transform: uppercase;
}

.section > .masonry {
    width: 100%;
}

/* =========================
   RELATED SITES (MASONRY FIX)
========================= */

.related-sites {
    padding: 30px 0 20px;   /* ⬅️ oldal padding kivéve */
    text-align: center;
}

.related-sites h3 {
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaa;
}

.related-grid {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;

    display: grid;
    grid-template-columns: repeat(5, 1fr); /* ⬅️ KŐBE VÉSVE 5 */
    gap: 8px;
}


.related-item {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    text-align: center;
}

.related-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.related-title {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #bbb;
    text-decoration: none;
    line-height: 1.3;
}

.related-title:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .related-grid { column-count: 3; }
}

@media (max-width: 480px) {
    .related-grid { column-count: 2; }
}

/* =========================
   SITE DESCRIPTION
========================= */

.site-description {
    max-width: 760px;
    margin: 10px auto 0;
    font-size: 13px;
    line-height: 1.5;
    color: #999;
    text-align: center;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 40px;
    padding: 30px 10px;
    border-top: 1px solid #222;
    background: linear-gradient(to bottom, #0c0c0c, #111);
    color: #888;
    font-size: 12px;
}

.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.site-footer .footer-brand {
    margin-bottom: 12px;
    font-size: 13px;
    color: #aaa;
}

.site-footer .footer-links {
    margin-bottom: 10px;
}

.site-footer .footer-links a {
    margin: 0 8px;
    color: #777;
    text-decoration: none;
}

.site-footer .footer-links a:hover {
    color: #ccc;
    text-decoration: underline;
}

.site-footer .footer-copy {
    font-size: 11px;
    color: #666;
}

