/* D50 klón – helyi finomhangolások */

* {
  font-family: 'Open Sans Condensed', 'Arial Narrow', Arial, sans-serif;
}

body .advert-index {
  display: none !important;
}

body .modal-app-promo {
  display: none !important;
}

body .leaderboard-container {
  display: none !important;
}

body #first-leaderboard {
  margin-top: 134px;
}

/* Cikkoldal finomhangolások */
body .content-section .img-container img {
  display: block;
  width: 100%;
  height: auto;
}

body .single-article-content .full-article ul {
  margin: 0 0 1em 1.2em;
  padding-left: 0.5em;
}

body .single-article-content .full-article li {
  margin-bottom: 0.4em;
}

body .main-container > .right-1-col-container {
  clear: right;
}

body .main-container > br.clear {
  clear: both;
}

/* Képgaléria – fogóalbum a cikkekben */
body .d50-gallery {
  margin: 36px 0;
  padding: 20px 0;
  border-top: 1px solid #dad9d9;
  border-bottom: 1px solid #dad9d9;
  clear: both;
}

body .d50-gallery-title {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3b4455;
  margin-bottom: 16px;
  padding-left: 4px;
  border-left: 4px solid #9ec843;
}

body .d50-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

body .d50-gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #eee;
  cursor: pointer;
  transition: opacity 0.2s;
}

body .d50-gallery-grid img:hover {
  opacity: 0.88;
}

/* Lightbox */
body.d50-lightbox-open {
  overflow: hidden;
}

.d50-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.d50-lightbox.is-open {
  display: block;
}

.d50-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.d50-lightbox-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 100px);
  padding: 0;
  z-index: 2;
}

.d50-lightbox-stage img {
  display: block;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.d50-lightbox-close,
.d50-lightbox-prev,
.d50-lightbox-next {
  position: absolute;
  z-index: 3;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 12px;
  line-height: 1;
}

.d50-lightbox-close {
  top: 12px;
  right: 16px;
  font-size: 42px;
  font-weight: 300;
}

.d50-lightbox-prev,
.d50-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.d50-lightbox-prev:hover,
.d50-lightbox-next:hover,
.d50-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.d50-lightbox-prev {
  left: 16px;
}

.d50-lightbox-next {
  right: 16px;
}

.d50-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 20px;
}

@media (max-width: 600px) {
  .d50-lightbox-stage,
  .d50-lightbox-stage img {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 80px);
  }

  .d50-lightbox-prev {
    left: 4px;
  }

  .d50-lightbox-next {
    right: 4px;
  }
}

@media (max-width: 800px) {
  body .d50-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body .d50-gallery-grid img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  body .d50-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  body .d50-gallery-grid img {
    height: 120px;
  }
}

/* Interjú formázás */
body .d50-interview {
  margin-top: 8px;
}

body .d50-qa {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e8e8;
}

body .d50-qa:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

body .d50-question {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #1b1e21;
}

body .d50-answer-name {
  font-weight: bold;
  color: #3b4455;
}

body .d50-qa p {
  margin: 0 0 6px;
  line-height: 1.5;
}

/* Költemény formázás */
body .d50-poem p {
  margin: 0 0 1.6em;
  line-height: 1.7;
  font-size: 18px;
}

body .d50-poem p.hatterszin {
  font-size: 20px;
}

/* Placeholder képek, ha hiányzik a fájl */
.img-container {
  background-color: #3b4455 !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Vezércikk mobilon: ugyanaz a kártya-elrendezés, mint a többi cikknek */
@media (max-width: 800px) {
  body .main-container .left-640-container {
    max-width: 480px !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 10px;
    float: left;
    color: #000;
    text-align: left;
    padding-bottom: 0;
  }

  body .main-container .left-640-container a {
    text-decoration: none;
    color: #000;
    display: block;
  }

  body .main-container .left-640-container .img-container {
    width: 100%;
    height: 250px !important;
    overflow: hidden;
    background-size: cover !important;
    background-position: center center !important;
    text-align: center;
  }

  body .main-container .left-640-container .category-label {
    top: 237px !important;
    float: none;
    margin: 0 auto;
  }

  body .main-container .left-640-container .title {
    width: 100% !important;
    max-width: none;
    min-height: 0;
    float: none !important;
    position: static !important;
    top: auto !important;
    margin: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 14px !important;
    padding: 10px !important;
    background: transparent;
    color: #000;
    font-size: 20px;
    line-height: 28px;
    text-align: left;
  }

  body .main-container .left-640-container .title h1,
  body .main-container .left-640-container .title h2 {
    font-size: 20px !important;
    line-height: 28px !important;
    font-weight: bold;
    margin: 0;
  }

  body .main-container .left-640-container .lead {
    display: none !important;
  }
}
