/* Az eredeti oldal méretei, színei és tipográfiája. */
* { padding: 0; margin: 0; }
body { font-family: Arial, Helvetica, sans-serif; font-size: 13px; background: #eee; }
#wrapper { margin: 0 auto; width: 970px; background: #fff; box-shadow: 3px 3px 5px 6px #ccc; }
#header { width: 970px; height: 490px; background: #231b18 url("head-home.jpg") no-repeat bottom; }
#logohead { margin: 10px 0 0 10px; border: 0; }
#headmenu { position: relative; height: 0; }
#nav { position: absolute; top: -46px; left: 0; display: flex; list-style: none; }
#nav a { text-transform: uppercase; color: #fff; display: block; font-size: 15px; font-weight: bold; height: 46px; line-height: 46px; margin-left: 3px; padding: 0 14px; text-decoration: none; }
#nav a:hover, #nav a:focus-visible { background-color: #fff; color: #3c2f27; }
#nav #homebtn { width: 46px; padding: 0; background: url("home-ico.jpg") no-repeat; }
#nav #homebtn:hover, #nav #homebtn:focus-visible { background-image: url("home-ico-a.jpg"); }
#tartalom { background: #fff; display: flow-root; width: 970px; }
#tleft { float: left; width: 640px; padding: 20px 5px 0; }
#tright { overflow: hidden; padding: 20px 10px 0; }
.newsblock { float: left; height: 200px; width: 300px; border-right: 1px solid #eee; margin: 10px 5px 10px 10px; }
.nbcim { color: #3c2f27; font-size: 25px; font-weight: normal; margin-bottom: 20px; }
.kiscim { color: #3c2f27; font-size: 15px; margin-bottom: 10px; }
.nbtext { margin-bottom: 10px; }
a.nblink { color: #3c2f27; font-weight: bold; text-align: right; text-decoration: none; float: right; margin-right: 20px; }
a.nblink:hover { text-decoration: underline; }
.label { background: #231b18; color: #fff; display: block; min-height: 30px; padding: 3px; font-weight: bold; margin-top: 5px; }
.archive-section summary { cursor: pointer; list-style: none; }
.archive-section summary::-webkit-details-marker { display: none; }
.archive-section summary:focus-visible { outline: 2px solid #d8bf86; outline-offset: 2px; }
.archive-section:not([open]) summary::after { content: " +"; }
.kepek { display: block; }
.info-text { text-align: justify; font-size: 13px; }
.gallery-photo { display: inline-block; line-height: 0; }
.gallery-photo img { border: 2px solid silver; vertical-align: bottom; }
.gallery-photo:hover img, .gallery-photo:focus-visible img { border-color: gray; }
.text { padding-left: 10px; }
.text a { display: block; color: #231b18; }
.page-content { padding-bottom: 20px !important; }
#footer { width: 970px; clear: both; color: #fff; background: #3c2f27; height: 50px; margin-top: 5px; padding-top: 3px; }
#footer p { text-align: center; }
#footer a { color: #fff; }
#footer .footlink { margin-top: 15px; }
#footer .footlink a + a { margin-left: 4px; }
.facebook-card { width: 298px; border: 1px solid #ccc; border-radius: 3px; background: #fff; padding-bottom: 18px; }
.facebook-cover { display: block; height: 129px; overflow: hidden; }
.facebook-cover img { width: 100%; height: 129px; object-fit: cover; }
.facebook-info { display: flex; position: relative; gap: 10px; padding: 0 16px; margin-top: -20px; align-items: center; background: #fff; border-radius: 18px 18px 0 0; }
.facebook-info strong { font-size: 20px; padding-top: 10px; }
.facebook-avatar { width: 72px; height: 72px; border: 4px solid white; border-radius: 50%; object-fit: cover; object-position: 76% 12%; }
.facebook-category { margin: 40px 12px 20px; }
.facebook-button { display: block; background: #0866ff; color: #fff; border-radius: 6px; text-align: center; text-decoration: none; font-size: 14px; font-weight: bold; padding: 10px; margin: 0 12px; }
.facebook-button:hover, .facebook-button:focus-visible { background: #075adf; }
#photo-viewer { box-sizing: border-box; position: fixed; inset: 0; margin: auto; max-width: 96vw; max-height: 96vh; background: #fff; color: #231b18; border: 0; border-radius: 5px; padding: 38px 48px 16px; box-shadow: 0 6px 24px #0006; }
#photo-viewer::backdrop { background: #000b; }
#photo-viewer figure { text-align: center; }
#viewer-image { display: block; margin: auto; max-width: calc(96vw - 96px); max-height: calc(96vh - 90px); object-fit: contain; }
#viewer-caption { margin-top: 10px; font-size: 13px; }
#photo-viewer button { position: absolute; border: 0; background: transparent; color: #3c2f27; cursor: pointer; font-size: 36px; line-height: 38px; width: 40px; height: 40px; }
#photo-viewer .viewer-close { top: 0; right: 0; }
#photo-viewer .viewer-prev { top: calc(50% - 20px); left: 0; }
#photo-viewer .viewer-next { top: calc(50% - 20px); right: 0; }
/* Keskeny képernyőn az eredeti asztali megjelenés alatt rendeződik át. */
@media (max-width: 970px) {
  #wrapper, #tartalom, #footer { width: 100%; }
  #header { width: 100%; height: auto; aspect-ratio: 970 / 490; background-size: 100% 100%; }
  #logohead { width: 60.1%; height: auto; margin: 1.03% 0 0 1.03%; }
  #headmenu { height: auto; background: #3c2f27; }
  #nav { position: static; flex-wrap: wrap; }
  #tleft { box-sizing: border-box; width: 67%; }
  #tright { padding: 20px 10px; }
  .newsblock { box-sizing: border-box; width: calc(50% - 15px); height: auto; min-height: 200px; }
  .facebook-card { width: 100%; }
  .facebook-info { padding: 0 8px; gap: 5px; }
  .facebook-info strong { font-size: 16px; }
  .facebook-avatar { width: 54px; height: 54px; }
  .gallery-photo img { max-width: 100%; height: auto !important; max-height: 250px; }
}
@media (max-width: 650px) {
  #nav a { font-size: 12px; padding: 0 8px; margin-left: 0; }
  #nav #homebtn { margin-left: 0; }
  #tleft { width: 100%; padding: 20px 10px; float: none; display: flow-root; }
  #tright { clear: both; max-width: 300px; margin: auto; }
  .newsblock { margin: 10px 5px; width: calc(50% - 10px); }
  .nbcim { font-size: 22px; }
  #footer { height: auto; min-height: 50px; padding: 8px 0; }
  #footer .footlink { margin-top: 10px; }
}
@media (max-width: 380px) {
  .newsblock { width: calc(100% - 10px); min-height: 0; padding-bottom: 15px; border-right: 0; border-bottom: 1px solid #eee; }
}
