/* Honlapdoktor Elementor Műhely – 5-story editorial block.
   Applied only to templates bearing hdem-featured-editorial and its Loop Items. */
.hdem-featured-editorial,
.hdem-featured-editorial * { box-sizing: border-box; }
.hdem-featured-editorial { width: 100%; max-width: 100%; margin: 0; padding: 0; gap: 10px; color: #22201e; }
.hdem-featured-editorial .hdem-feature-top,
.hdem-featured-editorial .hdem-feature-bottom,
.hdem-featured-editorial .hdem-feature-main,
.hdem-featured-editorial .hdem-feature-aside { min-width: 0; padding: 0; margin: 0; }
.hdem-featured-editorial .hdem-feature-top { display: grid !important; grid-template-columns: 3fr 2fr; gap: 12px; align-items: stretch; }
.hdem-featured-editorial .hdem-feature-main,
.hdem-featured-editorial .hdem-feature-aside { display: block !important; width: 100%; }
.hdem-featured-editorial .hdem-feature-bottom { display: block !important; width: 100%; }
.hdem-featured-editorial .elementor-widget-loop-grid { width: 100%; max-width: 100%; min-width: 0; }
.hdem-featured-editorial .elementor-loop-container { gap: 10px !important; margin: 0 !important; min-width: 0; }
.hdem-featured-editorial .hdem-feature-lead-grid .elementor-loop-container { display: grid; grid-template-columns: 1fr; }
.hdem-featured-editorial .hdem-feature-side-grid .elementor-loop-container { display: grid; grid-template-columns: 1fr; grid-auto-rows: minmax(0,1fr); }
.hdem-featured-editorial .hdem-feature-bottom-grid .elementor-loop-container { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.hdem-featured-editorial .e-loop-item,
.hdem-featured-editorial .e-loop-item > .e-con,
.hdem-featured-editorial .e-loop-item > .elementor-section,
.hdem-featured-editorial .e-loop-item > .elementor-section > .elementor-container { min-width: 0; height: 100%; }
.hdem-featured-editorial .hdem-card { position: relative; display: flex; width: 100%; min-width: 0; min-height: 0; padding: 0; overflow: hidden; }
.hdem-featured-editorial .hdem-card .elementor-widget,
.hdem-featured-editorial .hdem-card .elementor-widget-container { min-width: 0; }
.hdem-featured-editorial :is(h2,h3,p,span,a,time) { word-break: normal; overflow-wrap: normal; hyphens: auto; -webkit-hyphens: auto; }
.hdem-featured-editorial h2,
.hdem-featured-editorial h3 { font-family: Georgia, 'Times New Roman', serif !important; letter-spacing: -.025em; }
.hdem-featured-editorial .hdem-card a { text-decoration: none; }
.hdem-featured-editorial .hdem-card a:hover { text-decoration: underline; text-underline-offset: .12em; }
.hdem-featured-editorial .hdem-editorial-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 7px; }
.hdem-featured-editorial .hdem-editorial-tag { display: inline-block; padding: 3px 7px; background: #94142e; color: #fff !important; font-size: 11px; line-height: 1.2; text-transform: uppercase; font-weight: 700; text-decoration: none; font-family: Georgia,'Times New Roman',serif; }
.hdem-featured-editorial .hdem-editorial-tag--gold { background: #e7c475; color: #241a12 !important; }
.hdem-featured-editorial .hdem-editorial-byline { display: flex; gap: 8px; align-items: center; min-width: 0; margin-top: auto; font: 12px/1.3 Georgia,'Times New Roman',serif; }
.hdem-featured-editorial .hdem-editorial-avatar { display: inline-flex; width: 30px; flex: 0 0 30px; height: 30px; overflow: hidden; border-radius: 50%; }
.hdem-featured-editorial .hdem-editorial-avatar img { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; }
.hdem-featured-editorial .hdem-editorial-byline time { opacity: .8; }
.hdem-featured-editorial .hdem-card--hero { min-height: 425px; display: block !important; background: #171614; isolation: isolate; }
.hdem-featured-editorial .hdem-card--hero::after { content:''; position:absolute; inset:0; pointer-events:none; z-index:0; background: linear-gradient(0deg,rgba(0,0,0,.86),rgba(0,0,0,.20) 63%,transparent); }
.hdem-featured-editorial .hdem-card--hero .hdem-hero-photo,
.hdem-featured-editorial .hdem-card--hero .hdem-hero-photo .elementor-widget-container,
.hdem-featured-editorial .hdem-card--hero .hdem-hero-photo img { width:100%; height:100%; }
.hdem-featured-editorial .hdem-card--hero .hdem-hero-photo { position:absolute; inset:0; margin:0; }
.hdem-featured-editorial .hdem-card--hero .hdem-hero-photo img { display:block; position:absolute; inset:0; object-fit:cover; }
.hdem-featured-editorial .hdem-card--hero .hdem-hero-copy { position:absolute; display:flex; flex-direction:column; justify-content:end; align-items:stretch; inset:auto 0 0; padding:24px 22px; z-index:2; background: transparent !important; color:#fff; }
.hdem-featured-editorial .hdem-card--hero .hdem-hero-title :is(h1,h2,h3),
.hdem-featured-editorial .hdem-card--hero .hdem-hero-title a { margin:0; color:#fff !important; font-size:clamp(32px,4.1vw,60px); line-height:1.01; font-weight:700; }
.hdem-featured-editorial .hdem-card--hero .hdem-hero-excerpt { max-width:80%; }
.hdem-featured-editorial .hdem-card--hero .hdem-hero-excerpt :is(p,div) { margin:8px 0 10px; color:#fff; font: 16px/1.3 Georgia,'Times New Roman',serif; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; }
.hdem-featured-editorial .hdem-card--hero .hdem-editorial-byline { color:#fff; }
.hdem-featured-editorial .hdem-card--side { display:flex !important; flex-direction:row; background:#fbf8f0; min-height:206px; border-bottom:1px solid #d5cec1; }
.hdem-featured-editorial .hdem-card--bottom { display:flex !important; flex-direction:row; background:#fbf8f0; min-height:178px; border-top:1px solid #d5cec1; }
.hdem-featured-editorial .hdem-card--side > .hdem-side-photo,
.hdem-featured-editorial .hdem-card--bottom > .hdem-bottom-photo { flex: 0 0 47%; width:47%; min-width:0; position:relative; margin:0; }
.hdem-featured-editorial .hdem-card--side .hdem-side-photo .elementor-widget-container,
.hdem-featured-editorial .hdem-card--bottom .hdem-bottom-photo .elementor-widget-container { position:absolute; inset:0; }
.hdem-featured-editorial .hdem-card--side .hdem-side-photo img,
.hdem-featured-editorial .hdem-card--bottom .hdem-bottom-photo img { display:block; height:100%; width:100%; object-fit:cover; }
.hdem-featured-editorial .hdem-card--side .hdem-side-copy,
.hdem-featured-editorial .hdem-card--bottom .hdem-bottom-copy { flex:1 1 0; min-width:0; padding:12px 12px 10px; background:#fbf8f0; display:flex; flex-direction:column; align-items:stretch; }
.hdem-featured-editorial .hdem-card--side :is(.hdem-side-title h3,.hdem-side-title a),
.hdem-featured-editorial .hdem-card--bottom :is(.hdem-bottom-title h3,.hdem-bottom-title a) { color:#211a16 !important; font:700 clamp(17px,1.75vw,26px)/1.13 Georgia,'Times New Roman',serif; }
.hdem-featured-editorial .hdem-card--side .hdem-side-excerpt :is(p,div),
.hdem-featured-editorial .hdem-card--bottom .hdem-bottom-excerpt :is(p,div) { margin:8px 0 10px; font:14px/1.35 Georgia,'Times New Roman',serif; color:#41372f; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; }
.hdem-featured-editorial .hdem-card--side .hdem-editorial-byline,
.hdem-featured-editorial .hdem-card--bottom .hdem-editorial-byline { flex-wrap:wrap; }
@media (max-width:1100px) {
  .hdem-featured-editorial .hdem-feature-top { grid-template-columns:1fr !important; }
  .hdem-featured-editorial .hdem-feature-side-grid .elementor-loop-container { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hdem-featured-editorial .hdem-card--hero { min-height:390px; }
  .hdem-featured-editorial .hdem-card--side { min-height:220px; }
}
@media (max-width:767px) {
  .hdem-featured-editorial .hdem-feature-side-grid .elementor-loop-container,
  .hdem-featured-editorial .hdem-feature-bottom-grid .elementor-loop-container { grid-template-columns:1fr; }
  .hdem-featured-editorial .hdem-card--hero { min-height:400px; }
  .hdem-featured-editorial .hdem-card--hero .hdem-hero-copy { padding:16px; }
  .hdem-featured-editorial .hdem-card--hero .hdem-hero-title :is(h1,h2,h3),
  .hdem-featured-editorial .hdem-card--hero .hdem-hero-title a { font-size:clamp(27px,8vw,42px); }
  .hdem-featured-editorial .hdem-card--hero .hdem-hero-excerpt { max-width:100%; }
  .hdem-featured-editorial .hdem-card--side,
  .hdem-featured-editorial .hdem-card--bottom { min-height:180px; }
  .hdem-featured-editorial .hdem-card--side > .hdem-side-photo,
  .hdem-featured-editorial .hdem-card--bottom > .hdem-bottom-photo { flex-basis:42%; width:42%; }
  .hdem-featured-editorial .hdem-card--side .hdem-side-copy,
  .hdem-featured-editorial .hdem-card--bottom .hdem-bottom-copy { padding:10px; }
  .hdem-featured-editorial .hdem-card--side :is(.hdem-side-title h3,.hdem-side-title a),
  .hdem-featured-editorial .hdem-card--bottom :is(.hdem-bottom-title h3,.hdem-bottom-title a) { font-size:clamp(16px,4.7vw,20px); }
  .hdem-featured-editorial .hdem-card--side .hdem-side-excerpt,
  .hdem-featured-editorial .hdem-card--bottom .hdem-bottom-excerpt { display:none; }
}
@media (max-width:360px) {
  .hdem-featured-editorial .hdem-editorial-byline { gap:4px; font-size:11px; }
  .hdem-featured-editorial .hdem-card--side > .hdem-side-photo,
  .hdem-featured-editorial .hdem-card--bottom > .hdem-bottom-photo { flex-basis:39%; width:39%; }
}
/* Stretch the lead image to the complete height of the two-card editorial column. */
@media (min-width:1101px) {
  .hdem-featured-editorial .hdem-feature-main,
  .hdem-featured-editorial .hdem-feature-main > .elementor-widget-loop-grid,
  .hdem-featured-editorial .hdem-feature-main .elementor-widget-container,
  .hdem-featured-editorial .hdem-feature-main .elementor-loop-container,
  .hdem-featured-editorial .hdem-feature-main .e-loop-item,
  .hdem-featured-editorial .hdem-feature-main .hdem-card--hero { height:100%; }
}
