/*
Theme Name: Fire de tradiții — GAL VAM
Author: GAL Valea Ampoiului – Valea Mureșului
Description: Album digital al comunităților GAL VAM. Fotografii, povești și mărturii, cu import în pagini WordPress editabile.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: traditii-galvam
*/
:root{--paper:#f5f1e7;--ink:#233a31;--green:#173e31;--gold:#e6b85f;--muted:#667267;--line:#d8d7c9;--red:#914a3a}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:32px}body{margin:0;background:var(--paper);color:var(--ink);font-family:Verdana,sans-serif;font-size:15px;line-height:1.8}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,input{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #ab6a25;outline-offset:5px}img{max-width:100%;height:auto;display:block}figure{margin:0}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;line-height:1.1;letter-spacing:-.035em}h1{font-size:clamp(48px,6vw,92px)}h2{font-size:clamp(34px,4vw,58px)}h3{font-size:29px}em{font-weight:400;color:inherit}button{cursor:pointer}.wrap{width:min(1220px,calc(100% - 96px));margin-inline:auto}.eyebrow{font-size:10px;letter-spacing:.2em;font-weight:700;line-height:1.5;margin-bottom:24px}.masthead{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:26px 48px;background:#fffef9}.brand{display:flex;align-items:center;gap:22px}.brand img{width:214px;height:55px;object-fit:contain}.brand span{font-family:Georgia,serif;font-style:italic;border-left:1px solid var(--line);padding-left:22px;max-width:150px;line-height:1.4}.masthead nav{display:flex;gap:28px;font-size:11px;align-items:center}.masthead nav a:hover{color:var(--red)}.parent-link{border-bottom:1px solid var(--ink);padding-bottom:4px}.hero{display:grid;grid-template-columns:1fr 1fr;min-height:650px;background:var(--green);color:var(--paper)}.hero-copy{padding:78px 8% 38px  max(48px,calc((100vw - 1220px)/2));display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.hero .eyebrow{color:var(--gold)}.hero h1{font-size:clamp(54px,5.5vw,88px);margin-bottom:25px}.hero h1 em{color:var(--gold)}.hero-intro{max-width:410px;font-size:15px;color:#e0e6d9;line-height:1.9}.button{display:inline-flex;gap:25px;align-items:center;justify-content:space-between;background:var(--green);color:white;padding:17px 26px;font-size:12px;line-height:1.5;border:1px solid transparent;transition:background .2s}.button:hover{background:#2c5945;color:#fff}.button.gold{background:var(--gold);color:#193e30;margin-top:12px}.button.gold:hover{background:#f4d493}.hero-detail{display:flex;gap:35px;margin-top:50px;font-size:10px;letter-spacing:.08em;color:#c2d1c2}.hero-photo{position:relative;overflow:hidden;min-height:500px}.hero-photo>img{width:100%;height:100%;object-fit:cover;object-position:center}.hero-photo figcaption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(13,31,23,.85));padding:45px 30px 25px;display:flex;justify-content:space-between;font-size:11px}.thread-strip{display:flex;justify-content:space-around;gap:20px;align-items:center;padding:18px 35px;border-bottom:1px solid var(--line);font-size:12px;color:var(--red)}.thread-strip span{font-size:9px;letter-spacing:.18em;color:var(--ink)}.story{display:grid;grid-template-columns:1fr 1fr;gap:90px;padding-block:112px}.story h2 em{color:var(--red)}.lead{font-family:Georgia,serif;font-size:25px;line-height:1.55;letter-spacing:-.02em}.story-text>p:not(.lead){color:var(--muted);font-size:13px}.text-link{display:inline-block;font-size:12px;border-bottom:1px solid currentColor;padding-bottom:5px}.text-link:hover{color:var(--red)}.collection{padding-block:28px 110px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:45px;margin-bottom:35px}.section-heading>p{font-size:12px;color:var(--muted)}.section-heading h2{margin-bottom:0}.search-label{display:block;font-size:11px;margin-bottom:8px}#album-search{width:100%;padding:15px 20px;border:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font-size:13px;margin-bottom:10px}#search-status{font-size:11px;min-height:20px;color:var(--muted)}.album-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px 28px}.album-card[hidden]{display:none}.album-card figure{aspect-ratio:1.25;overflow:hidden;position:relative;background:#e2e0d6}.album-card img{width:100%;height:100%;object-fit:cover;transition:transform .5s}.album-card:hover img{transform:scale(1.035)}.album-number{position:absolute;left:16px;top:16px;background:var(--paper);width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:9px}.card-caption{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-block:19px}.card-caption p{font-size:8px;letter-spacing:.17em;margin-bottom:8px;color:var(--muted)}.card-caption h3{margin-bottom:0;font-size:30px}.card-caption>span{font-size:22px}.quote-band{background:#e8e3d5;text-align:center;padding-block:85px}.quote-band h2{font-size:clamp(27px,3.2vw,44px);line-height:1.4}.quote-band .eyebrow{color:var(--red)}.quote-band a{font-size:11px;border-bottom:1px solid var(--muted)}.voices{padding-block:110px}.video-item{display:grid;grid-template-columns:45px 1fr 90px 85px;gap:24px;align-items:center;padding:19px 0;border-top:1px solid var(--line)}.video-number{font-family:Georgia,serif;font-size:16px;color:var(--red)}.video-item h3{font-size:22px;letter-spacing:-.02em;margin:0}.play-video{border:1px solid var(--line);background:transparent;padding:8px;color:var(--green);font-size:10px}.play-video:hover{background:var(--green);color:white}.video-item>a{font-size:10px}.video-player{grid-column:2/-1}.video-player iframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:#14231c}.small-note{font-size:10px;color:var(--muted);margin-top:20px}.language{display:grid;grid-template-columns:1fr 1fr;gap:90px;border-top:1px solid var(--line);padding-block:80px}.language p:not(.eyebrow){color:var(--muted);font-size:13px}.word-list>div{display:flex;align-items:baseline;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line);gap:20px}.word-list strong{font-family:Georgia,serif;font-size:38px;font-weight:400;font-style:italic;color:var(--red)}.word-list span{font-size:12px;color:var(--muted)}.archive{padding-block:65px 110px}.archive h2{font-size:40px}.archive>div{display:flex;flex-wrap:wrap;align-items:center;gap:25px}.archive .text-link{font-size:11px}footer{background:var(--green);color:var(--paper);padding:65px 48px 0}.footer-top{max-width:1220px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:90px;padding-bottom:55px}.footer-top .eyebrow{color:var(--gold)}.footer-top h2{font-size:54px}.footer-top h3{font-family:Verdana,sans-serif;letter-spacing:0;font-size:13px;font-weight:400;line-height:1.7}.footer-top p,.footer-top a{font-size:12px}.funding{background:#fffef9;color:#4c584d;padding:30px;max-width:1220px;margin:auto}.funding img{width:min(100%,1094px);margin:auto auto 25px}.funding p,.funding a{font-size:10px;line-height:1.8}.funding a{border-bottom:1px solid currentColor}.footer-bottom{max-width:1220px;margin:auto;display:flex;justify-content:space-between;padding-block:27px;font-size:10px;color:#d8dfd2}.album-hero{padding-block:55px;border-bottom:1px solid var(--line)}.album-hero .back{display:block;font-size:11px;margin-bottom:55px}.album-hero h1{margin-bottom:25px}.album-hero>p:not(.eyebrow){font-size:12px}.reading{padding-block:60px;font-family:Georgia,serif;font-size:21px;line-height:1.8;max-width:860px}.reading p{white-space:pre-line;overflow-wrap:anywhere}.reading .wp-block-image{margin-block:34px;clear:both}.reading img{max-height:850px;width:auto;max-width:100%;margin:auto;object-fit:contain}.reading a{border-bottom:1px solid var(--line)}.endnote{padding-block:55px 90px;border-top:1px solid var(--line)}.endnote h2{font-size:40px}.skip-link{position:fixed;top:-100px;left:20px;background:white;padding:12px;z-index:1000}.skip-link:focus{top:15px}dialog{padding:45px 20px 15px;border:0;max-width:95vw;max-height:95vh;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#071b15e8}dialog img{max-width:85vw;max-height:78vh;object-fit:contain;margin:auto}dialog p{font-size:11px;text-align:center;margin:12px 0 0}.close-dialog{position:absolute;right:10px;top:4px;font-size:32px;border:0;background:transparent;color:var(--ink)}
@media(min-width:1400px){.hero{min-height:710px}}@media(max-width:1100px){.masthead{padding:22px 28px}.brand span{display:none}.masthead nav{gap:18px}.hero-copy{padding:55px 35px}.hero h1{font-size:60px}.wrap{width:calc(100% - 64px)}.story,.language{gap:45px}.album-grid{gap:30px 20px}.card-caption h3{font-size:26px}}@media(max-width:760px){body{font-size:14px}.wrap{width:calc(100% - 40px)}.masthead{padding:18px 20px;display:block}.brand img{width:180px;height:auto}.masthead nav{margin-top:20px;gap:18px;flex-wrap:wrap;font-size:10px}.hero{grid-template-columns:1fr}.hero-copy{padding:50px 25px 35px}.hero h1{font-size:61px}.hero-intro{font-size:14px}.hero-detail{margin-top:35px}.hero-photo{min-height:330px;height:380px}.thread-strip{gap:12px;padding:17px 15px}.thread-strip span{font-size:7px;letter-spacing:.06em}.thread-strip span:last-child{display:none}.story{grid-template-columns:1fr;gap:20px;padding-block:65px}.story h2{font-size:44px}.lead{font-size:23px}.section-heading{display:block;margin-bottom:25px}.section-heading>p{margin-top:22px}.collection{padding-bottom:60px}.album-grid{grid-template-columns:repeat(2,1fr);gap:25px 15px}.album-card figure{aspect-ratio:1}.card-caption h3{font-size:25px}.card-caption p{font-size:6px}.card-caption>span{font-size:16px}.album-number{top:10px;left:10px;width:25px;height:25px}.quote-band{padding-block:55px}.quote-band h2{font-size:29px}.quote-band h2 br{display:none}.voices{padding-block:65px}.video-item{grid-template-columns:23px 1fr 65px;gap:12px}.video-item h3{font-size:19px}.video-item>a{grid-column:2;font-size:10px}.video-player{grid-column:1/-1}.language{grid-template-columns:1fr;gap:25px;padding-block:55px}.word-list strong{font-size:34px}.archive{padding-block:30px 65px}.archive h2{font-size:34px}footer{padding:50px 20px 0}.footer-top{grid-template-columns:1fr;gap:20px}.footer-top h2{font-size:46px}.funding{padding:20px}.footer-bottom{gap:15px}.album-hero{padding-top:30px}.album-hero h1{font-size:52px}.reading{font-size:19px;padding-block:35px}.endnote h2{font-size:34px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
/* Album reading layout: native WordPress groups, paragraphs and images. */
.tr-introduction>.wp-block-group__inner-container,.tr-chapter>.wp-block-group__inner-container,.tr-photos>.wp-block-group__inner-container,.tr-intro-photos>.wp-block-group__inner-container{display:contents}
.reading .wp-block-image:has(img[src$="18d840af2c50eff9a524.png"]){display:none}
.tr-introduction>.wp-block-group__inner-container>*,.tr-chapter>.wp-block-group__inner-container>*{margin-block-start:0}
.tr-many-photos>.wp-block-group__inner-container>.wp-block-image:first-child{grid-column:1/-1}
.reading:has(.tr-introduction){max-width:1220px;padding-block:55px 30px;font-size:19px;line-height:1.85}
.tr-introduction{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:64px;align-items:start;padding-bottom:60px;margin-bottom:18px}
.tr-intro-copy{max-width:730px}.reading .tr-kicker{font-family:Verdana,sans-serif;font-size:9px;font-weight:700;letter-spacing:.18em;color:var(--red);line-height:1.6;margin:0 0 18px}
.reading .tr-intro-copy p:not(.tr-kicker){font-size:23px;line-height:1.65;color:#2d4337;letter-spacing:-.015em}
.tr-intro-photos{display:grid;gap:18px}.reading .tr-intro-photos .wp-block-image{margin:0;background:#ede8dd;padding:10px}.reading .tr-intro-photos img{max-height:330px;width:100%;object-fit:contain}
.reading .tr-section-title{font-size:42px;line-height:1.2;border-top:1px solid var(--line);padding-top:45px;margin:0 0 35px}
.tr-chapter{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:60px;padding:42px 0 50px;border-bottom:1px solid var(--line);align-items:start}
.tr-story-copy{max-width:750px}.reading .tr-story-title{font-size:34px;line-height:1.2;margin:0 0 24px;color:var(--green);letter-spacing:-.025em}
.reading .tr-story-copy p:not(.tr-kicker){margin-bottom:22px;white-space:normal;text-wrap:pretty}
.reading .tr-verse{white-space:normal;font-size:19px;line-height:1.85;border-left:2px solid var(--gold);padding:8px 0 8px 24px;margin:25px 0;color:#704938}
.tr-photos{display:grid;gap:18px;position:sticky;top:40px;min-width:0}.reading .tr-photos .wp-block-image{margin:0;clear:none;background:#ece7dd;padding:9px}
.reading .tr-photos .wp-block-image a{display:block;border:0}.reading .tr-photos img{width:100%;height:auto;max-height:400px;object-fit:contain}
.tr-many-photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.reading .tr-many-photos img{max-height:270px}.tr-many-photos>.wp-block-image:first-child{grid-column:1/-1}
.tr-text-only{grid-template-columns:minmax(0,750px);justify-content:start}.tr-text-only .tr-photos{display:none}
.reading h4{font-size:24px;font-family:Georgia,serif;font-weight:400;line-height:1.4;margin:32px 0 18px;color:var(--red)}
.album-hero{padding-block:45px 40px}.album-hero h1{margin-bottom:20px}.album-hero .back{margin-bottom:35px}.album-hero>.eyebrow{margin-bottom:16px}.album-hero .text-link{font-size:11px}
@media(max-width:1000px){.tr-introduction{gap:35px;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}.tr-chapter{gap:32px;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.reading .tr-intro-copy>p:not(.tr-kicker){font-size:21px}.reading .tr-story-title{font-size:30px}}
@media(max-width:760px){.reading:has(.tr-introduction){font-size:18px;padding-top:34px;line-height:1.85}.tr-introduction{grid-template-columns:1fr;gap:22px;padding-bottom:35px}.tr-intro-photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tr-intro-photos>.wp-block-image:first-child{grid-column:1/-1}.reading .tr-intro-photos img{max-height:270px}.reading .tr-intro-copy>p:not(.tr-kicker){font-size:21px;line-height:1.65}.reading .tr-section-title{font-size:34px;padding-top:30px;margin-bottom:8px}.tr-chapter{grid-template-columns:1fr;gap:16px;padding:32px 0}.reading .tr-story-title{font-size:30px;margin-bottom:20px}.tr-photos{position:static;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tr-photos>.wp-block-image:only-child{grid-column:1/-1}.reading .tr-photos img{max-height:300px}.reading .tr-many-photos img{max-height:240px}.reading .tr-verse{font-size:17px;padding-left:17px;line-height:1.85}.album-hero .back{margin-bottom:30px}.tr-text-only{grid-template-columns:1fr}}
@media(max-width:1000px){.reading .tr-intro-copy p:not(.tr-kicker){font-size:21px}}
@media(max-width:760px){.tr-intro-photos>.wp-block-group__inner-container>.wp-block-image:first-child,.tr-photos>.wp-block-group__inner-container>.wp-block-image:only-child{grid-column:1/-1}.reading .tr-intro-copy p:not(.tr-kicker){font-size:21px;line-height:1.65}}

/* Editorial page: project story, visual identity and glossary. */
.reading .tr-page-nav{display:flex;flex-wrap:wrap;gap:14px 25px;font-family:Verdana,sans-serif;font-size:11px;padding:0 0 28px;margin:0 0 35px;border-bottom:1px solid var(--line)}
.reading .tr-page-nav a{padding-bottom:4px}.tr-project-intro{border-bottom:1px solid var(--line);padding-bottom:48px;margin-bottom:45px;align-items:center}
.reading .tr-project-intro h2{font-size:44px;line-height:1.2;margin:0 0 25px}.tr-project-intro .tr-intro-photos{align-self:center;justify-items:center}
.reading .tr-project-logo{background:white;padding:25px!important;width:100%}.reading .tr-project-logo img{width:300px;max-width:100%;height:auto;max-height:150px;object-fit:contain}
.reading .tr-editorial-section{max-width:850px;margin:0 auto;padding:38px 0 45px;border-bottom:1px solid var(--line)}
.reading .tr-editorial-section h2{font-size:36px;line-height:1.25;color:var(--green);margin:0 0 27px}.reading .tr-editorial-section h3{font-size:28px;line-height:1.35;margin:35px 0 20px}
.reading .tr-editorial-section p{font-size:19px;line-height:1.85;margin:0 0 22px;text-wrap:pretty;white-space:normal}
.reading .tr-project-brand h2{font-size:44px;margin:0 0 25px}.reading .tr-project-brand h3{font-size:27px;margin:30px 0 15px}.tr-project-brand .tr-photos{position:static;align-self:center}
.reading .tr-brand-art{padding:20px;background:#e8e2d5}.reading .tr-brand-art img{width:340px;height:auto;max-width:100%;max-height:320px;object-fit:contain}
.tr-gold-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:35px 0 50px}.tr-gold-grid>.wp-block-group__inner-container,.tr-value-grid>.wp-block-group__inner-container,.tr-glossary>.wp-block-group__inner-container{display:contents}
.tr-gold-card{padding:28px 30px;border-top:2px solid var(--gold);background:#eee8db}.reading .tr-gold-card h3{font-size:28px;margin:0 0 16px}.reading .tr-gold-card p{font-size:17px;line-height:1.75;margin:0}
.reading .tr-values-section,.reading .tr-glossary-section{max-width:none}.tr-value-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.reading .tr-value{font-family:Verdana,sans-serif;font-size:12px;line-height:1.65;padding:20px;border:1px solid var(--line);margin:0;background:#fbf8ef}
.reading .tr-landmark{padding:18px 22px;border-left:2px solid var(--gold);background:#eee9dd;margin:16px 0;font-size:18px;line-height:1.8}
.reading .tr-highlight{font-family:Georgia,serif;font-style:italic;font-size:28px;line-height:1.55;color:var(--red);padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:30px 0}
.tr-glossary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 35px}.tr-word{padding:22px 0;border-bottom:1px solid var(--line);min-width:0}.reading .tr-word h3{font-size:28px;font-style:italic;color:var(--red);margin:0 0 8px}.reading .tr-word p{font-family:Verdana,sans-serif;font-size:12px;color:var(--muted);line-height:1.75;margin:0;overflow-wrap:anywhere}
.reading .tr-closing{border-bottom:0;padding-block:60px}.tr-project-landscape .tr-photos{position:static;align-self:center}.tr-project-landscape h2{font-size:36px;line-height:1.25;margin-top:0}
.brand img{max-width:214px;height:auto;object-fit:contain}
.reading .tr-editorial-section .tr-kicker{font-family:Verdana,sans-serif;font-size:9px;font-weight:700;letter-spacing:.18em;color:var(--red);line-height:1.6;margin:0 0 18px}
.reading .tr-value-grid .tr-value{font-family:Verdana,sans-serif;font-size:12px;line-height:1.65;padding:20px;margin:0}
.reading .tr-editorial-section .tr-highlight{font-size:28px;line-height:1.55;margin:30px 0}
@media(max-width:1000px){.tr-value-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tr-glossary{gap:0 24px}.reading .tr-project-intro h2,.reading .tr-project-brand h2{font-size:38px}}
@media(max-width:760px){.reading .tr-page-nav{font-size:10px;gap:10px 18px;margin-bottom:25px}.reading .tr-project-intro h2{font-size:34px}.tr-project-intro{padding-bottom:30px;margin-bottom:20px}.tr-project-intro .tr-intro-photos{grid-template-columns:1fr}.reading .tr-project-logo{width:100%;max-width:335px;padding:22px!important}.reading .tr-project-logo img{width:260px;max-height:130px}.reading .tr-editorial-section{padding:30px 0}.reading .tr-editorial-section h2,.reading .tr-project-brand h2,.tr-project-landscape h2{font-size:32px}.reading .tr-editorial-section p{font-size:18px;line-height:1.85}.tr-gold-grid{grid-template-columns:1fr;gap:15px;margin:20px 0 30px}.tr-gold-card{padding:23px}.reading .tr-gold-card h3{font-size:26px}.reading .tr-gold-card p{font-size:17px}.tr-value-grid{gap:10px}.reading .tr-value{font-size:11px;padding:15px}.reading .tr-landmark{font-size:17px;padding:16px 18px}.reading .tr-highlight{font-size:24px}.tr-glossary{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.reading .tr-word h3{font-size:25px}.reading .tr-word p{font-size:11px;line-height:1.75}.tr-project-brand .tr-photos{grid-template-columns:1fr}.reading .tr-brand-art img{max-height:270px}.tr-project-landscape .tr-photos{grid-template-columns:1fr}}
@media(max-width:760px){.reading .tr-value-grid .tr-value{font-size:11px;padding:15px}.reading .tr-editorial-section .tr-highlight{font-size:24px}}
/* Balanced logo scale; keep each original aspect ratio. */
.masthead .brand img{width:180px;max-width:180px;height:auto;max-height:none;object-fit:contain;flex-shrink:0}
.reading .tr-project-logo{width:100%;max-width:300px;padding:20px!important;justify-self:center}
.reading .tr-project-logo img{width:260px;max-width:100%;height:auto;max-height:none;object-fit:contain}
.reading .tr-brand-art{width:fit-content;max-width:100%;padding:20px;justify-self:center}
.reading .tr-brand-art img{width:280px;max-width:100%;height:auto;max-height:none;object-fit:contain}
@media(max-width:760px){.masthead .brand img{width:160px;max-width:160px;height:auto}.reading .tr-project-logo{max-width:280px;padding:18px!important}.reading .tr-project-logo img{width:244px;height:auto;max-height:none}.reading .tr-brand-art img{width:260px;height:auto;max-height:none}}

/* Permanent static community QR codes, hosted with the theme. */
.card-caption{gap:14px;min-height:132px}
.album-card .card-caption .community-qr{width:96px;height:96px;flex:0 0 96px;object-fit:contain;transform:none;background:#fff;transition:none}
.card-caption .community-name{flex:1;min-width:0}
.card-caption h3{font-size:clamp(24px,2.2vw,30px);line-height:1.16;overflow-wrap:anywhere}
.card-caption>span{flex-shrink:0}
@media(max-width:1100px) and (min-width:761px){.album-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.album-grid{grid-template-columns:1fr;gap:30px}.album-card figure{aspect-ratio:1.4}.card-caption{gap:16px}.card-caption p{font-size:8px}.card-caption h3{font-size:28px}}

/* Videos belong to their community and play inside the page. */
.album-hero .community-video-jump{display:table;margin:26px 0 20px;font-size:14px}
.community-videos{padding-block:64px 90px;scroll-margin-top:50px;border-top:1px solid var(--line)}
.community-videos .section-heading{align-items:end;gap:32px}
.community-videos h2{font-size:clamp(34px,4vw,54px);max-width:680px;line-height:1.12}
.community-videos .section-heading>p{font-size:15px;line-height:1.7;max-width:330px}
.community-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.community-video-card{min-width:0;background:#fff;border:1px solid var(--line)}
.community-video-frame{aspect-ratio:16/9;background:#172b25}
.community-video-frame iframe{display:block;width:100%;height:100%;border:0}
.community-video-caption{padding:24px}
.community-video-caption h3{font-size:26px;line-height:1.2;margin:0 0 14px}
.community-video-caption .text-link{font-size:12px}
@media(max-width:760px){.community-videos{padding-block:40px 60px}.community-video-grid{grid-template-columns:1fr;gap:24px}.community-videos .section-heading{align-items:start;gap:16px}.community-video-caption{padding:20px}}

/* Fluid, compact community pages: consistent rhythm and no empty side column. */
.tr-community-page .wrap{width:calc(100% - 48px);max-width:none}
.tr-community-page .album-hero{padding-block:28px 22px}
.tr-community-page .album-hero .back{margin-bottom:24px}
.tr-community-page .album-hero>.eyebrow{margin-bottom:12px}
.tr-community-page .album-hero h1{font-size:clamp(44px,5vw,72px);line-height:1.08;margin-bottom:15px}
.tr-community-page .album-hero>p:not(.eyebrow){margin-bottom:20px}
.community-page-nav{display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center;font:12px/1.6 Verdana,sans-serif}
.community-page-nav a{border-bottom:1px solid var(--line);padding:6px 0}
.community-page-nav a:hover{color:var(--red);border-color:var(--red)}
.community-page-nav span{display:inline-grid;place-items:center;min-width:21px;height:21px;background:var(--green);color:#fff;border-radius:50%;font-size:10px;margin-left:5px}
.tr-community-page .reading{font-size:19px;line-height:1.8;padding-block:26px;max-width:none}
.tr-community-page .tr-introduction{grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr);gap:30px;align-items:start;padding:0;margin:0}
.tr-community-page .tr-intro-copy,.tr-community-page .tr-story-copy{max-width:none;min-width:0}
.tr-community-page .reading .tr-intro-copy p:not(.tr-kicker){font-size:20px;line-height:1.75;letter-spacing:0;margin-bottom:18px}
.tr-community-page .tr-intro-photos{gap:12px}
.tr-community-page .reading .tr-intro-photos .wp-block-image{padding:6px;background:#eae5d9}
.tr-community-page .reading .tr-intro-photos img{max-height:300px;height:auto;width:100%;object-fit:contain}
.tr-community-page .community-videos{padding-block:28px 32px;scroll-margin-top:48px}
.tr-community-page .community-videos .section-heading{margin-bottom:20px;gap:24px}
.tr-community-page .community-videos h2,.tr-community-page .reading .tr-section-title{font-size:clamp(30px,3vw,42px);line-height:1.2}
.tr-community-page .community-videos .section-heading>p{font-size:13px;margin-bottom:0}
.tr-community-page .community-video-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:20px}
.tr-community-page .community-video-card{max-width:none;background:#fbf9f3}
.tr-community-page .community-video-caption{padding:16px 18px}
.tr-community-page .community-video-caption h3{font-size:23px;line-height:1.3;margin-bottom:10px}
.tr-community-page .reading .tr-section-title{padding-top:22px;margin-bottom:0}
.tr-community-page .tr-chapter{display:flow-root;padding:26px 0;margin:0;min-width:0}
.tr-community-page .tr-story-copy{display:contents}
.tr-community-page .tr-story-copy>.wp-block-group__inner-container{display:contents}
.tr-community-page .reading .tr-story-title{font-size:30px;line-height:1.25;margin-bottom:18px}
.tr-community-page .reading .tr-story-copy p:not(.tr-kicker){font-size:19px;line-height:1.8;margin-bottom:18px}
.tr-community-page .tr-photos{position:static;gap:12px}
.tr-community-page .tr-flow-story .tr-photos{float:right;width:34%;margin:0 0 18px 28px;grid-template-columns:1fr}
.tr-community-page .reading .tr-photos .wp-block-image{padding:6px;background:#eae5d9;margin:0}
.tr-community-page .reading .tr-photos img{width:100%;height:auto;max-height:350px;object-fit:contain}
.tr-community-page .tr-gallery-story .tr-photos{clear:both;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px;margin-top:22px}
.tr-community-page .tr-gallery-story .tr-photos .wp-block-image{grid-column:auto;display:flex;align-items:center;justify-content:center}
.tr-community-page .tr-gallery-story .tr-photos img{height:260px;max-height:260px;object-fit:contain}
.tr-community-page .tr-text-only .tr-photos{display:none}
.tr-community-page .reading .tr-verse{font-size:18px;line-height:1.75;padding:6px 0 6px 18px;margin-block:18px}
.tr-community-page #prezentare,.tr-community-page #povesti{scroll-margin-top:48px}
.tr-community-page .endnote{padding-block:28px 40px}
.tr-community-page .endnote h2{font-size:34px;margin-bottom:22px}
@media(min-width:1600px){.tr-community-page .tr-introduction{grid-template-columns:minmax(0,2fr) minmax(320px,1fr)}.tr-community-page .reading .tr-story-copy p:not(.tr-kicker){font-size:20px}}
@media(max-width:760px){
 .tr-community-page .wrap{width:calc(100% - 28px)}
 .tr-community-page .album-hero{padding-block:22px 18px}
 .tr-community-page .album-hero .back{margin-bottom:20px}
 .community-page-nav{gap:6px 18px;font-size:11px}
 .tr-community-page .tr-introduction{grid-template-columns:1fr;gap:18px}
 .tr-community-page .reading{padding-block:22px;font-size:18px}
 .tr-community-page .reading .tr-intro-copy p:not(.tr-kicker){font-size:19px;line-height:1.7}
 .tr-community-page .tr-intro-photos{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
 .tr-community-page .tr-intro-photos .wp-block-image{grid-column:auto}
 .tr-community-page .tr-flow-story .tr-photos{float:none;width:100%;margin:0 0 20px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
 .tr-community-page .reading .tr-photos img{max-height:300px}
 .tr-community-page .reading .tr-story-copy p:not(.tr-kicker){font-size:18px;line-height:1.75}
 .tr-community-page .reading .tr-story-title{font-size:28px}
 .tr-community-page .tr-gallery-story .tr-photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .tr-community-page .tr-gallery-story .tr-photos img{height:200px;max-height:200px}
 .tr-community-page .community-videos .section-heading>p{margin-top:12px;max-width:none}
 .tr-community-page .community-video-grid{grid-template-columns:1fr;gap:16px}
 .tr-community-page .endnote h2{font-size:30px}
}

html:has(body.tr-community-page){scroll-behavior:auto}
.tr-community-page .tr-introduction{display:flow-root}
.tr-community-page .tr-intro-copy,.tr-community-page .tr-intro-copy>.wp-block-group__inner-container{display:contents}
.tr-community-page .tr-intro-photos{float:right;width:34%;margin:0 0 18px 28px;grid-template-columns:repeat(2,minmax(0,1fr))}
.tr-community-page .tr-intro-photos .wp-block-image{grid-column:auto}
.tr-community-page .tr-intro-photos .wp-block-image:only-child{grid-column:1/-1}
@media(max-width:760px){.tr-community-page .tr-intro-photos{float:none;width:100%;margin:0 0 20px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}

/* Video files served directly by this WordPress site. */
.community-video-frame video{display:block;width:100%;height:100%;object-fit:contain;background:#101a16}
.video-player video{display:block;width:100%;max-height:75vh;aspect-ratio:16/9;object-fit:contain;background:#101a16}
video::cue{background:rgba(0,0,0,.85);color:white;font-size:1em}
.video-item{grid-template-columns:45px minmax(0,1fr) 90px 105px}
@media(max-width:760px){.video-item{grid-template-columns:23px minmax(0,1fr) 65px}.video-item>a{grid-column:2}.video-player video{max-height:65vh}}

.caption-note{font:11px/1.6 Verdana,sans-serif;color:var(--muted);margin:0 0 12px}
