/* BPX Gyászjelentés – frontend */
.bpx-gy-page__wrap{max-width:900px;margin:0 auto;padding:60px 20px 80px}
.bpx-gy-single{display:flex;flex-direction:column;gap:22px}
.bpx-gy-back{margin:0;font-size:15px}
.bpx-gy-back a{text-decoration:none}
.bpx-gy-page .bpx-gy-hero + .bpx-gy-page__wrap{padding-top:50px}

/* Teljes szélességű oldal (pl. Hello Elementor .site-main max-width felülírása) */
body .site-main.bpx-gy-page,body main.bpx-gy-page{max-width:none !important;width:100% !important;margin-left:0 !important;margin-right:0 !important;padding-left:0 !important;padding-right:0 !important}

/* Fejléc sáv */
.bpx-gy-hero{background:var(--bpx-gy-hero-bg,#111);color:#fff;padding:170px 20px 70px;text-align:center}
.bpx-gy-hero__inner{max-width:1140px;margin:0 auto}
.bpx-gy-hero__title{margin:0 0 12px;color:#fff;font-family:var(--e-global-typography-secondary-font-family,Georgia,"Times New Roman",serif);font-size:clamp(30px,4vw,42px);line-height:1.2}
.bpx-gy-hero__crumbs{font-size:14px;color:rgba(255,255,255,.85)}
.bpx-gy-hero__crumbs a{color:#fff;text-decoration:none}
.bpx-gy-hero__crumbs a:hover{opacity:.8}
.bpx-gy-hero__sep{margin:0 10px;color:var(--e-global-color-accent,rgba(255,255,255,.6))}
@media (max-width:767px){.bpx-gy-hero{padding:130px 16px 50px}}

/* A gyászjelentés kártya – nyomtatott gyászjelentés stílus */
.bpx-gy-notice{--bpx-gy-ink:#000;background:#fff;color:var(--bpx-gy-ink);padding:10px 10px 6px;box-shadow:0 10px 30px rgba(0,0,0,.08);font-family:"Times New Roman",Times,"Liberation Serif",Georgia,serif}
.bpx-gy-notice__frame{border:2px solid var(--bpx-gy-ink);padding:34px 40px 30px;text-align:center}
.bpx-gy-notice__photo{margin:0 auto 18px;width:130px}
.bpx-gy-notice__photo img{display:block;width:130px;height:160px;object-fit:cover;border:1px solid #333;filter:grayscale(100%)}
.bpx-gy-notice__intro,.bpx-gy-notice__line,.bpx-gy-notice__funeral,.bpx-gy-notice__extra{font-style:italic;font-size:20px;line-height:1.45;margin:0 0 6px;color:var(--bpx-gy-ink)}
.bpx-gy-notice__intro{margin-bottom:8px}
.bpx-gy-notice h1.bpx-gy-notice__name,.bpx-gy-notice__name{font-family:inherit;font-style:normal;font-weight:700;font-size:44px;line-height:1.15;letter-spacing:0;text-transform:none;margin:4px 0 14px;color:var(--bpx-gy-ink)}
.bpx-gy-notice__funeral{margin-top:26px}
.bpx-gy-notice__funeral strong{font-weight:700}
.bpx-gy-notice__extra{margin-top:18px;font-size:18px}
.bpx-gy-notice__extra p{margin:0 0 6px}
.bpx-gy-notice__footer{text-align:center;font-weight:700;font-size:13px;letter-spacing:.02em;padding:8px 6px 2px;color:var(--bpx-gy-ink)}
@media (max-width:600px){
	.bpx-gy-notice__frame{padding:24px 16px 20px}
	.bpx-gy-notice:not(.bpx-gy-notice--kep) .bpx-gy-notice__name{font-size:32px !important}
	.bpx-gy-notice__intro,.bpx-gy-notice__line,.bpx-gy-notice__funeral{font-size:17px}
}

/* Megosztás */
.bpx-gy-share{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center}
.bpx-gy-share a.bpx-gy-share__btn,.bpx-gy-share button.bpx-gy-share__btn{display:inline-flex !important;align-items:center;gap:8px;margin:0;padding:10px 16px !important;border:1px solid #d9d9d9 !important;border-radius:2px !important;background:#fff !important;color:#1d1d1d !important;font-family:inherit;font-weight:500 !important;font-size:14px !important;line-height:1.2 !important;letter-spacing:normal !important;text-transform:none !important;text-decoration:none !important;box-shadow:none !important;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.bpx-gy-share a.bpx-gy-share__btn:hover,.bpx-gy-share button.bpx-gy-share__btn:hover,.bpx-gy-share a.bpx-gy-share__btn:focus-visible,.bpx-gy-share button.bpx-gy-share__btn:focus-visible{border-color:#1d1d1d !important;background:#1d1d1d !important;color:#fff !important}
.bpx-gy-share a.bpx-gy-share__btn--fb{background:#1877f2 !important;border-color:#1877f2 !important;color:#fff !important}
.bpx-gy-share a.bpx-gy-share__btn--fb:hover,.bpx-gy-share a.bpx-gy-share__btn--fb:focus-visible{background:#0f5fd1 !important;border-color:#0f5fd1 !important}
.bpx-gy-share__btn svg{fill:currentColor;flex:none}
.bpx-gy-share__msg{flex-basis:100%;text-align:center;font-size:14px;min-height:1em}

/* Lista */
.bpx-gy-list{display:grid;gap:24px;grid-template-columns:repeat(var(--bpx-gy-cols,4),minmax(0,1fr))}
.bpx-gy-list--list{grid-template-columns:1fr}
@media (max-width:1024px){.bpx-gy-list--grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.bpx-gy-list--grid{grid-template-columns:1fr}}
.bpx-gy-list--empty{display:block;text-align:center;opacity:.8}
.bpx-gy-item{margin:0}
.bpx-gy-item,.bpx-gy-item *,.bpx-gy-notice,.bpx-gy-notice *{box-sizing:border-box}
.bpx-gy-item__link{display:block;height:100%;background:#fff;color:#111;padding:8px;text-decoration:none;box-shadow:0 6px 20px rgba(0,0,0,.12);transition:transform .25s,box-shadow .25s}
.bpx-gy-item__link:hover,.bpx-gy-item__link:focus-visible{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,.2)}
.bpx-gy-item__inner{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;border:1.5px solid #111;padding:22px 16px 18px;text-align:center;font-family:"Times New Roman",Times,"Liberation Serif",Georgia,serif}
.bpx-gy-list--list .bpx-gy-item__inner{align-items:flex-start;text-align:left}
.bpx-gy-item__photo img{display:block;width:84px;height:100px;object-fit:cover;filter:grayscale(100%);margin-bottom:6px}
.bpx-gy-item__label{font-style:italic;font-size:14px;color:#555}
.bpx-gy-item__name{font-weight:700;font-size:22px;line-height:1.2;color:#000}
.bpx-gy-item__meta{font-style:italic;font-size:15px;line-height:1.4;color:#333}
.bpx-gy-item__more{margin-top:auto;padding-top:10px;font-family:inherit;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#8a6d14}
.bpx-gy-pagination{margin-top:30px;display:flex;justify-content:center;gap:6px;flex-wrap:wrap}
.bpx-gy-pagination .page-numbers{display:inline-block;padding:8px 12px;border:1px solid #ddd;text-decoration:none}
.bpx-gy-pagination .current{background:#111;color:#fff;border-color:#111}

/* ------------------------------------------------------------------
 * Képes dizájn (fekvő A4 arány, háttérkép, áttetsző szövegdoboz)
 * ------------------------------------------------------------------ */
.bpx-gy-page__wrap:has(.bpx-gy-notice--kep){max-width:1180px}
.bpx-gy-notice--kep{container-type:inline-size;padding:0;background:#6f6f6f;box-shadow:0 12px 34px rgba(0,0,0,.18);font-family:Georgia,"Times New Roman",Times,serif}
.bpx-gy-notice--kep .bpx-gy-notice__canvas{position:relative;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;aspect-ratio:297/210;padding:4.2cqw 2.6cqw 1.55cqw;background:var(--bpx-gy-bg) left center/cover no-repeat;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.bpx-gy-notice--kep .bpx-gy-notice__canvas::before,.bpx-gy-notice--kep .bpx-gy-notice__canvas::after{content:"";position:absolute;pointer-events:none}
.bpx-gy-notice--kep .bpx-gy-notice__canvas::before{inset:.67cqw;border:1px solid rgba(238,238,238,.9)}
.bpx-gy-notice--kep .bpx-gy-notice__canvas::after{inset:1.21cqw;border:1px solid #505050}
.bpx-gy-notice--kep .bpx-gy-notice__box{position:relative;z-index:1;width:48cqw;margin-bottom:3.9cqw;padding:.9cqw 2cqw 1cqw;background:rgba(255,255,255,var(--bpx-gy-box,.6));box-shadow:0 .35cqw 1.4cqw rgba(0,0,0,.28);color:#000;text-align:center;font-size:clamp(14px,2.14cqw,22px);line-height:1.32}
.bpx-gy-notice--kep .bpx-gy-notice__orn{display:flex;align-items:center;justify-content:center;gap:.8em;margin:0 auto .45em;font-size:clamp(10px,1.3cqw,14px);line-height:1;color:#000}
.bpx-gy-notice--kep .bpx-gy-notice__box > .bpx-gy-notice__orn:last-child{margin:.7em auto 0}
.bpx-gy-notice--kep .bpx-gy-notice__orn-line{display:block;width:7.5em;max-width:28%;height:1px;background:#000}
.bpx-gy-notice--kep .bpx-gy-notice__orn-mark{font-family:"DejaVu Sans","Segoe UI Symbol","Apple Symbols",Georgia,serif;font-size:1.25em}
.bpx-gy-notice--kep .bpx-gy-notice__photo{width:auto;margin:.2em auto .5em}
.bpx-gy-notice--kep .bpx-gy-notice__photo img{display:block;width:clamp(70px,9cqw,110px);height:auto;aspect-ratio:13/16;margin:0 auto;object-fit:cover;border:1px solid #333;filter:grayscale(100%)}
.bpx-gy-notice--kep .bpx-gy-notice__intro,.bpx-gy-notice--kep .bpx-gy-notice__line,.bpx-gy-notice--kep .bpx-gy-notice__funeral,.bpx-gy-notice--kep .bpx-gy-notice__extra{margin:0;font-family:inherit;font-style:normal;font-size:1em;line-height:inherit;color:#000}
.bpx-gy-notice--kep h1.bpx-gy-notice__name,.bpx-gy-notice--kep .bpx-gy-notice__name{margin:.12em 0 .2em;font-family:inherit;font-style:normal;font-weight:700;font-size:1.89em;line-height:1.15;letter-spacing:0;text-transform:none;color:#000}
.bpx-gy-notice--kep .bpx-gy-notice__funeral{margin-top:.7em}
.bpx-gy-notice--kep .bpx-gy-notice__extra{margin-top:.6em;font-size:.9em}
.bpx-gy-notice--kep .bpx-gy-notice__extra p{margin:0 0 .3em}
.bpx-gy-notice--kep .bpx-gy-notice__footer{position:relative;z-index:1;align-self:stretch;margin:0 -.9cqw;padding:.5cqw 1cqw;background:#0f0f0f;color:#fff;font-weight:700;font-size:clamp(10px,1.52cqw,16px);letter-spacing:.02em;line-height:1.35;text-align:center}
@container (max-width:640px){
	.bpx-gy-notice--kep .bpx-gy-notice__canvas{aspect-ratio:auto;padding:46cqw 4cqw 3cqw;background-position:22% top;background-size:auto 100%}
	.bpx-gy-notice--kep .bpx-gy-notice__canvas::before{inset:1.5cqw}
	.bpx-gy-notice--kep .bpx-gy-notice__canvas::after{inset:2.6cqw}
	.bpx-gy-notice--kep .bpx-gy-notice__box{width:100%;margin-bottom:4cqw;padding:3cqw 4cqw 3.5cqw;background:rgba(255,255,255,.86);font-size:clamp(15px,4.3cqw,18px)}
	.bpx-gy-notice--kep .bpx-gy-notice__footer{margin:0 -1.5cqw;padding:2cqw 3cqw;font-size:clamp(11px,3.2cqw,14px)}
}

/* Lista elem – képes dizájn */
.bpx-gy-item--kep .bpx-gy-item__link{padding:14px;background:#6f6f6f var(--bpx-gy-bg) left center/cover no-repeat}
.bpx-gy-item--kep .bpx-gy-item__inner{border:0;outline:1px solid rgba(255,255,255,.75);outline-offset:6px;background:rgba(255,255,255,.72);font-family:Georgia,"Times New Roman",Times,serif}
.bpx-gy-item--kep .bpx-gy-item__label,.bpx-gy-item--kep .bpx-gy-item__meta{font-style:normal;color:#222}
.bpx-gy-item--kep .bpx-gy-item__more{color:#000;font-weight:700}

/* Lista elem – képes dizájn: a megosztási kép + felirat */
.bpx-gy-item--kepes .bpx-gy-item__link{display:flex;flex-direction:column;height:100%;padding:0;background:#fff;color:#242424;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.14);transition:transform .25s,box-shadow .25s}
.bpx-gy-item--kepes .bpx-gy-item__link:hover,.bpx-gy-item--kepes .bpx-gy-item__link:focus-visible{transform:translateY(-3px);box-shadow:0 14px 34px rgba(0,0,0,.22)}
.bpx-gy-item--kepes .bpx-gy-item__img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover}
.bpx-gy-item--kepes .bpx-gy-item__caption{display:flex;flex-direction:column;gap:4px;padding:14px 18px 16px;text-align:center;font-family:Georgia,"Times New Roman",Times,serif}
.bpx-gy-item--kepes .bpx-gy-item__name{font-size:20px;font-weight:700;color:#242424}
.bpx-gy-item--kepes .bpx-gy-item__meta{font-size:14px;font-style:normal;color:#555}
@media (max-width:1024px){.bpx-gy-list--grid:has(.bpx-gy-item--kepes){grid-template-columns:repeat(min(2,var(--bpx-gy-cols,2)),minmax(0,1fr))}}
@media (max-width:640px){.bpx-gy-list--grid:has(.bpx-gy-item--kepes){grid-template-columns:1fr}}

/* Nyomtatás: csak a gyászjelentés */
@media print{
	@page{size:A4 landscape;margin:8mm}
	body *{visibility:hidden !important}
	.bpx-gy-notice,.bpx-gy-notice *{visibility:visible !important}
	.bpx-gy-notice{position:absolute;left:0;top:0;width:100%;box-shadow:none;padding:0}
	.bpx-gy-notice--kep{background:none}
	.bpx-gy-share,.bpx-gy-back,.bpx-gy-hero{display:none !important}
}
