/*
Theme Name: Fryzura Magazine
Template: generatepress
Text Domain: fryzura-magazine
Description: Lekki magazyn o fryzurach zbudowany jako motyw potomny GeneratePress.
Version: 1.0.4
Requires at least: 6.5
Requires PHP: 7.4
WPVibe: yes
*/
:root{--fm-ink:#262321;--fm-muted:#716a65;--fm-accent:#9b514b;--fm-rose:#f3e5e0;--fm-paper:#fff;--fm-bg:#faf8f5;--fm-border:#e8ded9;--fm-serif:Georgia,'Times New Roman',serif;--fm-sans:system-ui,-apple-system,'Segoe UI',Arial,sans-serif}
*,*:before,*:after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--fm-bg);color:var(--fm-ink);font:16px/1.7 var(--fm-sans)}
body .site{max-width:none}a{color:inherit;text-decoration:none}a:hover{color:var(--fm-accent)}img{max-width:100%;height:auto}button,input{font:inherit}
.fm-wrap{width:min(1210px,calc(100% - 48px));margin:auto}
.fm-topline{height:4px;background:linear-gradient(90deg,#75534b,#d7aba0,#e4d4c9)}
.fm-header{z-index:80;background:rgba(255,255,255,.97);border-bottom:1px solid var(--fm-border);position:sticky;top:0}
.admin-bar .fm-header{top:32px}
.fm-head-inner{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:34px}
.fm-brand{font:700 39px/.85 var(--fm-serif);letter-spacing:-2px;white-space:nowrap}
.fm-brand span{color:var(--fm-accent);font-size:.66em;font-weight:500;letter-spacing:-1.1px}.fm-brand small{display:block;font:600 9px/1.5 var(--fm-sans);letter-spacing:2.2px;color:var(--fm-muted);margin-top:11px;text-transform:uppercase}
.fm-nav{display:flex;gap:23px;align-items:center;font-size:13px;font-weight:650}
.fm-nav a{white-space:nowrap}.fm-nav a:hover{color:var(--fm-accent)}
.fm-header-search{display:flex;align-items:center;border:1px solid var(--fm-border);border-radius:50px;padding:6px 12px;gap:8px;background:#fff;min-width:180px}
.fm-header-search input{width:122px;min-width:0;border:0;background:transparent;padding:3px;color:var(--fm-ink);font-size:12px;outline:0}
.fm-header-search button{border:0;background:none;padding:0;color:var(--fm-accent);cursor:pointer}
.fm-mobile{display:none}
.fm-eyebrow{color:var(--fm-accent);font-size:11px;letter-spacing:2.2px;text-transform:uppercase;font-weight:750}
.fm-hero{display:grid;grid-template-columns:1.05fr .95fr;min-height:500px;background:var(--fm-rose);margin:30px 0 40px;border-radius:12px;overflow:hidden}
.fm-hero-copy{padding:74px 7%;display:flex;flex-direction:column;justify-content:center}
.fm-hero h1{font:500 clamp(43px,5vw,72px)/1.1 var(--fm-serif);letter-spacing:-2.3px;margin:17px 0 21px}
.fm-hero h1 em{font-weight:500;color:var(--fm-accent)}
.fm-hero p{font-size:16px;max-width:500px;color:#5e5651;margin:0 0 25px}
.fm-button{display:inline-flex;align-items:center;gap:10px;align-self:flex-start;background:var(--fm-accent);color:white;border-radius:40px;padding:11px 23px;font-size:13px;font-weight:700}
.fm-button:hover{color:white;background:#753c38}
.fm-hero-photo{position:relative;min-height:390px;background:#dacac6}
.fm-hero-photo img{display:block;width:100%;height:100%;object-fit:cover}
.fm-photo-label{position:absolute;right:20px;bottom:20px;color:#fff;background:rgba(38,28,26,.65);padding:13px 17px;max-width:310px;font-size:13px;line-height:1.4;border-radius:5px;backdrop-filter:blur(4px)}
.fm-section{padding:28px 0 65px}
.fm-section-top{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}
.fm-section-top h1,.fm-category-section h2{font:500 clamp(29px,3.4vw,44px)/1.15 var(--fm-serif);margin:8px 0}
.fm-more{color:var(--fm-accent);font-size:13px;font-weight:750}
.fm-tags{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0 28px}
.fm-tags a{border:1px solid var(--fm-border);border-radius:30px;background:#fff;font-size:12px;padding:8px 16px;font-weight:650}
.fm-tags a:hover{background:var(--fm-rose);border-color:#dec8c2}
.fm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 25px}
.fm-card{display:block;min-width:0}.fm-card-photo{overflow:hidden;border-radius:9px;background:#ece4df;aspect-ratio:4/3}
.fm-card-photo img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .5s ease}
.fm-card:hover .fm-card-photo img{transform:scale(1.045)}
.fm-card-kicker{color:var(--fm-accent);font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:1.4px;margin-top:17px}
.fm-card h3{font:500 24px/1.23 var(--fm-serif);margin:7px 0 9px}
.fm-card p{font-size:13px;color:var(--fm-muted);line-height:1.6;margin:0}
.fm-card time{font-size:11px;color:#938982;display:block;margin-top:13px}
.fm-editorial{background:#efe3de;padding:67px 0;margin:22px 0 55px}
.fm-editorial-inner{display:grid;grid-template-columns:1fr .85fr;align-items:center;gap:55px}
.fm-editorial h2{font:500 clamp(36px,4vw,53px)/1.12 var(--fm-serif);margin:12px 0 20px}
.fm-editorial p{max-width:550px;color:#665b55;margin-bottom:25px}
.fm-editorial-image{height:300px;border-radius:9px;overflow:hidden}.fm-editorial-image img{height:100%;width:100%;object-fit:cover}
.fm-category-section{padding:12px 0 75px}
.fm-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-top:25px}
.fm-category-tile{border:1px solid var(--fm-border);border-radius:8px;padding:24px 20px;background:#fff;min-height:120px;display:flex;flex-direction:column;justify-content:space-between}
.fm-category-tile span{font:500 21px/1.25 var(--fm-serif)}.fm-category-tile small{color:var(--fm-accent);font-weight:700}
.fm-category-tile:hover{background:var(--fm-rose)}
.fm-footer{background:#282522;color:#f2e9e4;padding:42px 0 22px;margin-top:40px}
.fm-footer-top{display:flex;align-items:start;justify-content:space-between;gap:30px;border-bottom:1px solid #504a46;padding-bottom:30px}
.fm-footer .fm-brand small{color:#cbbcb4}
.fm-footer-links{display:flex;flex-wrap:wrap;gap:20px;font-size:13px}
.fm-footer-bottom{font-size:12px;color:#c0b5af;padding-top:20px}
.fm-list-heading{padding:55px 0 22px}.fm-list-heading h1{font:500 clamp(34px,4vw,56px)/1.1 var(--fm-serif);margin:12px 0}
.fm-list-heading p{color:var(--fm-muted);max-width:680px}
.fm-pagination{text-align:center;margin:42px 0}.fm-pagination .page-numbers{display:inline-block;border:1px solid var(--fm-border);padding:7px 14px;margin:3px;border-radius:5px}.fm-pagination .current{background:var(--fm-accent);color:#fff}
.fm-article-layout{display:grid;grid-template-columns:minmax(0,790px) minmax(0,270px);gap:65px;padding:47px 0 60px}
.fm-article-breadcrumb{font-size:12px;color:#887d76;margin-bottom:24px}
.fm-article-breadcrumb a{color:var(--fm-accent)}
.fm-article h1{font:500 clamp(37px,4vw,57px)/1.12 var(--fm-serif);letter-spacing:-1px;margin:10px 0 16px}
.fm-article-meta{color:#8a807a;font-size:12px;margin:0 0 24px}
.fm-article-body{font-size:16px;line-height:1.85;color:#37322e}
.fm-article-body>p:first-child{font-size:18px;line-height:1.78}
.fm-article-body p{margin:0 0 21px}
.fm-article-body h2{font:500 32px/1.25 var(--fm-serif);color:var(--fm-ink);margin:44px 0 18px;scroll-margin-top:125px}
.fm-article-body h3{font:500 25px/1.3 var(--fm-serif);margin:30px 0 12px}
.fm-article-body a{color:var(--fm-accent);text-decoration:underline;text-underline-offset:3px}
.fm-article-body img{border-radius:5px}
.fm-article-body ul,.fm-article-body ol{padding-left:22px}
/* WordPress legacy gallery: never constrain a grid item to a fraction of its grid cell. */
.fm-article-body .gallery{
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 align-items:start;
 gap:24px 18px!important;
 width:100%;
 max-width:100%;
 margin:26px 0 40px!important;
 padding:0!important;
}
.fm-article-body .gallery.gallery-columns-1{grid-template-columns:minmax(0,1fr)!important}
.fm-article-body .gallery.gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.fm-article-body .gallery > .gallery-item{
 display:block!important;
 box-sizing:border-box;
 float:none!important;
 width:100%!important;
 max-width:none!important;
 min-width:0!important;
 margin:0!important;
 padding:0!important;
 text-align:left!important;
 justify-self:stretch;
}
.fm-article-body .gallery .gallery-icon,
.fm-article-body .gallery .gallery-icon a{
 display:block!important;
 width:100%!important;
 min-width:0!important;
 max-width:100%!important;
 margin:0!important;
 padding:0!important;
}
.fm-article-body .gallery .gallery-icon img{
 display:block!important;
 width:100%!important;
 max-width:100%!important;
 height:auto!important;
 max-height:420px;
 object-fit:contain;
 object-position:top center;
 margin:0 auto!important;
 border:0!important;
 border-radius:8px;
}
.fm-article-body .gallery-caption{
 box-sizing:border-box;
 display:-webkit-box!important;
 -webkit-box-orient:vertical;
 -webkit-line-clamp:3;
 overflow:hidden;
 width:100%!important;
 max-width:100%!important;
 min-width:0!important;
 margin:0!important;
 padding:10px 3px 0!important;
 font-size:12px;
 line-height:1.5!important;
 color:var(--fm-muted);
 text-align:left!important;
 overflow-wrap:anywhere;
}
.fm-article-body .gallery:before,.fm-article-body .gallery:after{display:none!important}
.fm-article-cover{display:flex;align-items:center;justify-content:center;max-width:100%;min-width:0;margin:15px 0 30px;padding:16px;background:#efe9e5;border-radius:10px;overflow:hidden}
.fm-article-cover .fm-article-lead{display:block;width:auto;max-width:100%;height:auto;max-height:540px;object-fit:contain;object-position:center;border-radius:7px;margin:0}
@media(max-width:760px){.fm-article-cover{padding:9px;margin:14px 0 24px}.fm-article-cover .fm-article-lead{max-height:440px}}
.fm-aside-box{border-top:3px solid var(--fm-accent);background:white;padding:23px 20px;margin-bottom:24px}
.fm-aside-box h2{font:500 23px var(--fm-serif);margin:0 0 13px}
.fm-aside-box p,.fm-aside-box li{font-size:13px;color:var(--fm-muted)}
.fm-aside-box ul{margin:0;padding-left:20px}
.fm-aside-box li{margin-bottom:10px}
.fm-aside-box a:hover{color:var(--fm-accent)}
.fm-article-body .fm-toc{border:1px solid var(--fm-border);background:#fffaf7;border-radius:8px;padding:20px 24px;margin:25px 0}
.fm-article-body .fm-toc strong{display:block;margin-bottom:8px;font:500 23px var(--fm-serif)}
.fm-article-body .fm-toc ol{margin:0;padding-left:19px;font-size:14px}
.fm-article-body .fm-toc li{margin:4px 0}
.fm-related{border-top:1px solid var(--fm-border);padding-top:38px;margin-top:45px}
.fm-related h2{font:500 29px var(--fm-serif);margin-bottom:17px}
.fm-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.fm-related-grid .fm-card h3{font-size:17px}
.fm-related-grid .fm-card-photo{aspect-ratio:1.2}
.fm-empty{padding:55px 0;color:var(--fm-muted)}
@media(max-width:1020px){.fm-head-inner{gap:14px}.fm-nav{gap:13px}.fm-header-search{display:none}.fm-article-layout{grid-template-columns:1fr}.fm-aside{display:none}}
@media(max-width:760px){.admin-bar .fm-header{top:46px}.fm-wrap{width:min(100% - 30px,1210px)}.fm-head-inner{min-height:75px}.fm-brand{font-size:33px}.fm-nav{display:none}.fm-mobile{display:block;position:relative}.fm-mobile summary{list-style:none;cursor:pointer;font-weight:700;padding:10px}.fm-mobile summary::-webkit-details-marker{display:none}.fm-mobile-panel{position:absolute;right:0;top:45px;background:white;border:1px solid var(--fm-border);border-radius:8px;box-shadow:0 10px 30px #0002;min-width:220px;z-index:9;padding:12px}.fm-mobile-panel a{display:block;padding:11px;border-bottom:1px solid var(--fm-border)}.fm-hero{grid-template-columns:1fr;min-height:0;margin-top:15px}.fm-hero-copy{padding:42px 24px 32px}.fm-hero h1{font-size:46px}.fm-hero-photo{height:310px;min-height:0}.fm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 14px}.fm-card h3{font-size:20px}.fm-section{padding-bottom:45px}.fm-section-top{align-items:start}.fm-editorial{padding:40px 0}.fm-editorial-inner{grid-template-columns:1fr;gap:22px}.fm-editorial-image{height:230px}.fm-category-grid{grid-template-columns:repeat(2,1fr)}.fm-article-layout{padding-top:28px}.fm-article h1{font-size:39px}.fm-article-body h2{font-size:28px}.fm-footer-top{flex-direction:column}.fm-related-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.fm-grid{grid-template-columns:1fr}.fm-card-photo{aspect-ratio:1.45}.fm-card h3{font-size:23px}.fm-article-body .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.fm-article-body .gallery img{height:170px}.fm-related-grid{grid-template-columns:1fr}.fm-hero-photo{height:260px}.fm-section-top{display:block}.fm-more{display:block;margin-top:8px}}
/* Responsive gallery widths override the legacy two-column rule. */
@media(max-width:780px){
 .fm-article-body .gallery,
 .fm-article-body .gallery.gallery-columns-3,
 .fm-article-body .gallery.gallery-columns-4,
 .fm-article-body .gallery.gallery-columns-5,
 .fm-article-body .gallery.gallery-columns-6{
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   gap:23px 14px!important;
 }
 .fm-article-body .gallery.gallery-columns-1{grid-template-columns:minmax(0,1fr)!important}
 .fm-article-body .gallery .gallery-icon img{height:auto!important}
}
@media(max-width:560px){
 .fm-article-body .gallery,
 .fm-article-body .gallery.gallery-columns-2,
 .fm-article-body .gallery.gallery-columns-3,
 .fm-article-body .gallery.gallery-columns-4,
 .fm-article-body .gallery.gallery-columns-5,
 .fm-article-body .gallery.gallery-columns-6{
   grid-template-columns:minmax(0,1fr)!important;
   gap:26px!important;
 }
 .fm-article-body .gallery .gallery-icon img{max-height:520px;height:auto!important}
 .fm-article-body .gallery-caption{font-size:13px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.fm-card-photo img{transition:none}}

/* Globalny lightbox galerii: duze zdjecia bez powtarzalnych podpisow pod miniaturami. */
.fm-article-body .gallery .gallery-caption,
.fm-article-body .wp-block-gallery figcaption,
.fm-article-body .blocks-gallery-grid figcaption {
 display:none!important;
}
.fm-article-body .gallery .fm-lightbox-trigger,
.fm-article-body .wp-block-gallery .fm-lightbox-trigger,
.fm-article-body .blocks-gallery-grid .fm-lightbox-trigger {
 display:block;
 cursor:zoom-in;
 text-decoration:none!important;
}
.fm-article-body .fm-lightbox-trigger img { transition:opacity .2s ease; }
.fm-article-body .fm-lightbox-trigger:hover img { opacity:.88; }
.fm-article-body .fm-lightbox-trigger:focus-visible { outline:3px solid var(--fm-accent); outline-offset:4px; border-radius:7px; }
body.fm-lightbox-open { overflow:hidden; }
dialog.fm-lightbox {
 position:fixed;
 inset:0;
 width:100vw;
 height:100vh;
 height:100dvh;
 max-width:none;
 max-height:none;
 padding:0;
 margin:0;
 border:0;
 color:#fff;
 background:rgba(19,17,17,.97);
 overflow:hidden;
 z-index:2147483600;
}
dialog.fm-lightbox::backdrop { background:rgba(19,17,17,.95); }
.fm-lb-view { position:relative; display:flex; width:100%; height:100%; align-items:center; justify-content:center; }
.fm-lb-figure { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; height:100%; padding:40px 75px 58px; margin:0; overflow:hidden; }
.fm-lb-stage { display:flex; align-items:center; justify-content:center; width:100%; min-height:0; max-height:100%; flex:1 1 auto; touch-action:none; overflow:hidden; }
.fm-lb-image { display:block; width:auto; height:auto; max-width:100%; max-height:calc(100vh - 155px); max-height:calc(100dvh - 155px); object-fit:contain; border-radius:2px; cursor:zoom-in; transform-origin:center; transition:transform .12s ease; user-select:none; -webkit-user-drag:none; }
.fm-lb-image.fm-lb-zoomed { cursor:zoom-out; }
.fm-lb-caption { flex:0 0 auto; max-width:min(720px,100%); padding:12px 0 0; text-align:center; font:400 13px/1.5 system-ui,sans-serif; color:#e7ded9; }
.fm-lb-caption[hidden] { display:none!important; }
.fm-lb-counter { position:absolute; bottom:15px; left:50%; transform:translateX(-50%); white-space:nowrap; font:600 12px/1.3 system-ui,sans-serif; letter-spacing:.1em; color:#dcd4d0; }
.fm-lightbox button { position:absolute; display:flex; align-items:center; justify-content:center; flex:0 0 auto; width:44px; height:44px; border:1px solid rgba(255,255,255,.27); border-radius:50%; background:rgba(23,20,20,.64); color:white; font:400 32px/1 Georgia,serif; cursor:pointer; z-index:2; }
.fm-lightbox button:hover { background:rgba(255,255,255,.2); border-color:rgba(255,255,255,.65); }
.fm-lightbox button:focus-visible { outline:3px solid #fff; outline-offset:4px; }
.fm-lightbox button[hidden] { display:none!important; }
.fm-lb-close { top:15px; right:20px; font-size:30px!important; }
.fm-lb-prev { top:50%; left:15px; transform:translateY(-50%); }
.fm-lb-next { top:50%; right:15px; transform:translateY(-50%); }
@media(max-width:700px) {
 .fm-lb-figure { padding:55px 14px 84px; }
 .fm-lb-image { max-height:calc(100vh - 220px); max-height:calc(100dvh - 220px); }
 .fm-lb-prev,.fm-lb-next { top:auto; bottom:13px; transform:none; }
 .fm-lb-prev { left:15px; }
 .fm-lb-next { right:15px; }
 .fm-lb-close { top:12px; right:13px; }
 .fm-lb-counter { bottom:25px; }
 .fm-lb-caption { font-size:12px; padding-top:9px; }
}
@media(prefers-reduced-motion:reduce) {
 .fm-lb-image,.fm-article-body .fm-lightbox-trigger img { transition:none; }
}

