/* Piotr Serafin — wspolny motyw galerii */
html { background:#020409; }
body.gallery-body { margin:0; min-height:100vh; color:#0b2038; background:linear-gradient(180deg,#020409 0%,#06172b 13%,#17425d 27%,#86b9ca 42%,#e5f3f5 58%,#fff 83%,#fff 100%) !important; background-attachment:scroll !important; font-family:Arial,Helvetica,sans-serif; }
body.gallery-body::before {content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse 45vw 35vw at 18% 18%,rgba(0,66,172,.30),transparent 75%),radial-gradient(ellipse 50vw 40vw at 80% 30%,rgba(0,211,251,.17),transparent 75%),radial-gradient(ellipse 50vw 35vw at 50% 70%,rgba(131,253,128,.12),transparent 75%);animation:galleryGlow 24s ease-in-out infinite alternate;}
@keyframes galleryGlow {to{transform:translate(4vw,-3vh) scale(1.08);}}
body.gallery-body .gallery-top,body.gallery-body .gallery-main,body.gallery-body .gallery-footer {position:relative;z-index:1;background:transparent !important;}
body.gallery-body .wrap {width:min(1200px,calc(100% - 40px));max-width:1200px;margin-inline:auto;}
body.gallery-body .gallery-top {padding:54px 0 56px;color:#fff !important;}
body.gallery-body .gallery-top h1 {color:#fff !important;font-size:clamp(2.3rem,6vw,4.5rem);line-height:1.05;letter-spacing:-.04em;margin:24px 0 14px;}
body.gallery-body .gallery-top p {color:#dceaf2 !important;font-size:1.06rem;}
body.gallery-body .gallery-back {display:inline-block;color:#83fd80 !important;text-decoration:none;font-weight:700;}
body.gallery-body .gallery-main {padding:30px 0 75px;}
body.gallery-body .gallery-main h2 {color:#0b2038 !important;font-size:clamp(1.5rem,3vw,2.3rem);}
body.gallery-body .gallery-intro {color:#21384c !important;max-width:850px;line-height:1.65;margin-bottom:28px;}
body.gallery-body .social-post-grid,body.gallery-body .embed-grid {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:26px !important;align-items:start !important;}
body.gallery-body .social-post-card,body.gallery-body .embed-card {display:flex !important;flex-direction:column !important;min-width:0 !important;overflow:visible !important;background:rgba(255,255,255,.96) !important;border:1px solid #d8e9e8 !important;border-radius:17px !important;box-shadow:0 12px 28px rgba(4,35,65,.10) !important;padding:14px !important;color:#0b2038 !important;}
body.gallery-body .social-post-card iframe,body.gallery-body .embed-card iframe {display:block !important;width:100% !important;max-width:100% !important;border:0 !important;border-radius:10px !important;background:#fff !important;box-sizing:border-box !important;}
body.gallery-body .social-post-card iframe {height:750px !important;min-height:750px !important;}
body.gallery-body.gallery-instagram .social-post-card iframe {height:880px !important;min-height:880px !important;}
body.gallery-body.gallery-linkedin .social-post-card iframe {height:750px !important;min-height:750px !important;}
body.gallery-body .embed-card iframe {aspect-ratio:16/9;height:auto !important;min-height:260px !important;}
body.gallery-body .embed-card.reel-card iframe {aspect-ratio:9/16;height:auto !important;min-height:540px !important;max-height:820px !important;}
body.gallery-body .embed-card video {width:100% !important;height:auto !important;aspect-ratio:16/9;object-fit:contain;background:#071423;border-radius:10px;}
body.gallery-body .youtube-launch {display:block;position:relative;width:100%;aspect-ratio:16/9;border:0;padding:0;overflow:hidden;border-radius:10px;background:#071423;cursor:pointer;}
body.gallery-body .youtube-launch img {display:block;width:100%;height:100%;object-fit:cover;}
body.gallery-body .youtube-play {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#83fd80;color:#071423;padding:17px 23px;border-radius:50%;font-size:24px;}
body.gallery-body .post-meta,body.gallery-body .embed-card .body {padding:16px 8px 8px !important;background:transparent !important;color:#0b2038 !important;}
body.gallery-body .post-meta h3,body.gallery-body .embed-card .body h3 {color:#0b2038 !important;margin:0 0 12px;}
body.gallery-body .embed-card .body p {color:#35495a !important;}
body.gallery-body .post-meta a,body.gallery-body .embed-fallback {display:inline-block;color:#0042ac !important;font-weight:700;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;}
body.gallery-body .embed-fallback {margin:12px 8px 0;}
body.gallery-body .external-post {min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f2faff;color:#0b2038;border-radius:10px;padding:20px;text-align:center;}
body.gallery-body .external-post span {font-size:40px;color:#0042ac;font-weight:800;}
body.gallery-body .gallery-nav {display:flex;flex-wrap:wrap;gap:12px;margin-top:42px;}
body.gallery-body .gallery-nav a {display:inline-block;border:1px solid #77d5ba;border-radius:30px;padding:12px 20px;background:#fff;color:#0b2038 !important;font-weight:700;text-decoration:none;}
body.gallery-body .gallery-nav a:hover {background:#83fd80;border-color:#83fd80;}
body.gallery-body .gallery-footer {padding:30px 0 45px;color:#0b2038 !important;border-top:1px solid #d9e8ed;}
body.gallery-body .gallery-footer a {color:#0042ac !important;}
body.gallery-body .gallery-embed-note {font-size:.9rem;color:#4b6171 !important;margin:8px 8px 0;line-height:1.5;}
@media(max-width:760px){body.gallery-body .social-post-grid,body.gallery-body .embed-grid {grid-template-columns:minmax(0,1fr) !important;}body.gallery-body .wrap{width:min(100% - 28px,620px);}body.gallery-body .gallery-top{padding:36px 0 42px;}body.gallery-body .social-post-card iframe{height:780px !important;min-height:780px !important;}body.gallery-body.gallery-instagram .social-post-card iframe{height:880px !important;min-height:880px !important;}body.gallery-body .embed-card iframe{min-height:220px !important;}}
@media(prefers-reduced-motion:reduce){body.gallery-body::before{animation:none;}}

/* Pionowa rolka Facebook — proporcje oficjalnego kodu osadzania */
body.gallery-body .embed-card.reel-card iframe {width:min(100%,420px) !important;align-self:center;aspect-ratio:265/591 !important;height:auto !important;min-height:591px !important;max-height:none !important;}
@media(max-width:420px){body.gallery-body .embed-card.reel-card iframe{min-height:540px !important;}}

body.gallery-body .facebook-reel-post iframe{width:min(100%,420px) !important;align-self:center;height:720px !important;min-height:720px !important;}
