*{box-sizing:border-box}body{margin:0;background:#faf6e9;color:#333;font:16px/1.6 system-ui,-apple-system,Segoe UI,Arial,sans-serif}a{color:inherit;text-decoration:none}.sitehead{background:linear-gradient(115deg,#fffaf0,#f8e4bd);border-bottom:4px solid #f18a14}.headinner{max-width:1536px;margin:auto;min-height:140px;padding:25px 24px;display:flex;justify-content:space-between;align-items:center;gap:24px}.school{display:flex;align-items:center;gap:18px}.school small{color:#a66a19;letter-spacing:.08em;text-transform:uppercase}.school h1{font-size:clamp(22px,3vw,38px);margin:0;line-height:1.2;color:#473522}.emblem{font-size:42px;color:#ee8713}.kreta,.read{background:#e9800c;color:white;padding:10px 17px;border-radius:9px;font-weight:700;display:inline-block}.navigation{background:#e9800c;color:white}.navigation>div{max-width:1536px;margin:auto;display:flex;gap:5px;flex-wrap:wrap;padding:0 18px}.navigation a{padding:13px 16px}.navigation a:hover,.navigation a.active{background:#bc6000}main{max-width:1536px;margin:auto;padding:35px 24px 70px}.intro{margin-bottom:30px}.intro span{color:#b76b0a;font-size:13px;font-weight:800;letter-spacing:.13em}.intro h2{font-size:clamp(26px,3vw,39px);margin:0}.intro p{margin:0;color:#766e64}.newsgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.newscard{min-width:0;background:white;border-radius:16px;overflow:hidden;box-shadow:0 8px 25px #49301816;display:flex;flex-direction:column}.newscard>a img{width:100%;height:190px;object-fit:cover;display:block}.cardbody{padding:18px;display:flex;flex-direction:column;flex:1}.cardbody time,.detail time{color:#a96715;font-size:13px;font-weight:700}.cardbody h3{font-size:19px;line-height:1.3;margin:10px 0}.cardbody p{font-size:14px;color:#67615a;flex:1;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.cardbody .read{align-self:start;font-size:14px}.pagination{display:flex;gap:5px;flex-wrap:wrap;justify-content:center;margin-top:35px}.pagination a{padding:6px 13px;background:white;border-radius:6px}.pagination a.selected{background:#d9790b;color:white}.detail{background:white;border-radius:16px;box-shadow:0 8px 25px #49301816;position:relative;display:flex;align-items:stretch;overflow:clip}.detailinner{padding:clamp(20px,4vw,50px);flex:1;min-width:0}.detail h2{font-size:clamp(25px,3vw,38px);line-height:1.25}.heroimage{display:block;max-width:100%;max-height:650px;object-fit:contain;margin:24px auto}.articlecontent img{max-width:100%;height:auto}.articlecontent{overflow-wrap:anywhere}.gallerytab{position:sticky;top:100px;align-self:flex-start;background:#e9800c;color:white;writing-mode:vertical-rl;padding:20px 10px;border-radius:0 0 10px 0;font-weight:700;flex:none}.mediagrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mediagrid img,.mediagrid video{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}footer{padding:28px;text-align:center;background:#3f3428;color:white}@media(max-width:1050px){.newsgrid{grid-template-columns:repeat(3,1fr)}}@media(max-width:780px){.newsgrid{grid-template-columns:repeat(2,1fr)}.headinner{min-height:110px}.mediagrid{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.newsgrid{grid-template-columns:1fr}.headinner{flex-direction:column;align-items:start}.navigation a{padding:9px}.gallerytab{top:65px;padding:12px 6px}.detailinner{padding:16px}}
/* Képgalériák és a kártyán belül mozgó galériafül */
.detail { overflow: visible; isolation: isolate; }
.detail.has-gallery { display: flex; align-items: stretch; }
.detail.has-gallery .detailinner { min-width: 0; }
.gallerytab { position: sticky; top: 18px; align-self: flex-start; z-index: 2; flex: 0 0 auto; max-height: 180px; margin: 0; writing-mode: vertical-rl; text-orientation: mixed; border-radius: 0 0 10px 0; }
/* A galériafül a kártya saját oszlopában marad, nem kerül negatív bal margóra. */
.gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.gallery-tile { display: block; min-width: 0; overflow: hidden; border-radius: 12px; background: #f4ede2; aspect-ratio: 4/3; }
.gallery-tile img,.gallery-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-tile img { transition: transform .2s ease; }
.gallery-tile:hover img { transform: scale(1.035); }
.inline-gallery { margin: 30px 0; }
.inline-gallery h3 { margin-bottom: 14px; }
.gallery-overlay[hidden] { display: none; }
.gallery-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(15,15,15,.94); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 55px 18px 20px; }
.gallery-overlay img { max-width: 95vw; max-height: 80vh; object-fit: contain; }
.gallery-close { position: absolute; top: 10px; right: 20px; font-size: 35px; border: 0; background: transparent; color: white; cursor: pointer; }
@media(max-width:900px) { .gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:650px) { .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .gallerytab { top: 8px; padding: 12px 6px; } }

/* V29.32 - Nagy, képpel induló hírkártya. Csak a részletes híroldalra. */
main:has(> .detail) { max-width: 1536px; padding: 34px 20px 76px; }
main > .detail { max-width: 1100px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(30, 25, 20, .16); overflow: visible; }
main > .detail .detailinner { padding: 0; overflow: hidden; border-radius: 18px; }
main > .detail .heroimage { display: block; width: 100%; height: auto; max-width: 100%; max-height: none; object-fit: contain; margin: 0 auto; }
main > .detail .detailcopy { padding: clamp(22px, 3.5vw, 48px); min-width: 0; }
main > .detail .detailcopy time { display: block; font-size: 14px; letter-spacing: .025em; font-weight: 750; margin: 0 0 15px; }
main > .detail .detailcopy h2 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.2; margin: 0 0 28px; color: #263243; overflow-wrap: anywhere; }
main > .detail .articlecontent { font-size: 16px; line-height: 1.8; color: #344054; }
main > .detail .articlecontent p { margin: 0 0 1.1em; }
main > .detail .articlecontent img { max-width: 100%; height: auto; }
main > .detail .articlecontent iframe, main > .detail .articlecontent video { max-width: 100%; }
main > .detail .detail-back { margin: 30px 0 0; }
main > .detail .detail-back .read { border-radius: 9px; padding: 10px 17px; font-size: 14px; }
main > .detail .inline-gallery { margin: 30px 0; }
@media (max-width: 600px) { main:has(> .detail) { padding: 18px 10px 44px; } main > .detail, main > .detail .detailinner { border-radius: 14px; } main > .detail .detailcopy { padding: 20px 18px 26px; } main > .detail .detailcopy h2 { margin-bottom: 20px; } }

/* V29.39.6 – Kompakt térközök, háromoszlopos galériafül.
   A külső elem vízszintes flex, kizárólag a feliratok függőlegesek.
   Így a korábbi writing-mode és max-height szabályok nem ütköznek. */
main > .detail.has-gallery { position: relative; }
main > .detail.has-gallery .gallerytab-v2939 {
  position: absolute;
  top: 90px;
  right: 100%;
  left: auto;
  z-index: 5;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 46px;
  min-width: 46px;
  height: 228px;
  max-height: none;
  margin: 0;
  padding: 12px 6px;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  transition: width .24s ease;
}
main > .detail.has-gallery .gallerytab-v2939:hover,
main > .detail.has-gallery .gallerytab-v2939:focus-visible { width: 120px; }
main > .detail.has-gallery .gallerytab-v2939-title,
main > .detail.has-gallery .gallerytab-v2939-info,
main > .detail.has-gallery .gallerytab-v2939-action {
  display: block;
  flex: 0 0 auto;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
  color: #fff !important;
  line-height: 1.15;
}
main > .detail.has-gallery .gallerytab-v2939-title {
  font-size: 23px;
  font-weight: 850;
}
main > .detail.has-gallery .gallerytab-v2939-extra {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  width: 0;
  min-width: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  writing-mode: horizontal-tb;
  transform: none;
  transition: width .24s ease, opacity .18s ease, visibility .18s ease;
}
main > .detail.has-gallery .gallerytab-v2939-info { font-size: 14px; font-weight: 650; }
main > .detail.has-gallery .gallerytab-v2939-action { font-size: 16px; font-weight: 850; }
main > .detail.has-gallery .gallerytab-v2939:hover .gallerytab-v2939-extra,
main > .detail.has-gallery .gallerytab-v2939:focus-visible .gallerytab-v2939-extra {
  width: 62px;
  opacity: 1;
  visibility: visible;
}
main > .detail.has-gallery .gallerytab-v2939:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 1279px) {
  main > .detail.has-gallery .gallerytab-v2939 { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  main > .detail.has-gallery .gallerytab-v2939,
  main > .detail.has-gallery .gallerytab-v2939-extra { transition: none; }
}

/* V29.45: Imported legacy image sequences use the same tiles as modern mini galleries. */
main > .detail .articlecontent .legacy-mini-gallery-v2945 {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; margin: 20px 0 28px;
}
main > .detail .articlecontent .legacy-mini-gallery-v2945 .gallery-tile {
  display: block; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 12px; background: #f4ede2;
}
main > .detail .articlecontent .legacy-mini-gallery-v2945 .gallery-tile img {
  display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; transition: transform .2s ease;
}
main > .detail .articlecontent .legacy-mini-gallery-v2945 .gallery-tile:hover img { transform: scale(1.035); }
@media (max-width: 900px) {
  main > .detail .articlecontent .legacy-mini-gallery-v2945 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
}
