/**
 * content.css — Motyw T (trenerzy.org.pl)
 * Komponenty treści: przyciski, hero, sekcje, karty, slider, formularze, FAQ, etc.
 * Ładowany zarówno na froncie JAK I w edytorze Gutenberga.
 */

/* ============================================
   PRZYCISKI
   ============================================ */
.kide_btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: normal;
    width: fit-content;
}
.kide_btn_primary { background-color: var(--kide-background-blue); color: var(--kide-white) !important; }
.kide_btn_primary:hover { background-color: var(--kide-primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(34,197,94,0.3); }
.kide_btn_large  { padding: 1rem 2rem; font-size: 1.125rem; }
.kide_btn_block, .kide_btn_block:hover { display: block; width: 100%; margin: 2rem auto; width: fit-content; }
.kide_btn_header { white-space: nowrap; }
.kide_cards_grid .kide_btn_primary { /*! width: 100%; */ margin: 1rem auto;}

/* ============================================
   HERO
   ============================================ */
.kide_hero {
    position: relative;
    height: 80dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--kide-white);
}
.kide_hero:has(.light) * { color: #222; }
.kide_hero:has(.light) p { font-size: 1.75rem; line-height: 1.6; }

.kide_hero_overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(31,41,55,.85), rgba(31,41,55,.7));
}
.kide_hero_overlay.light {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0, rgba(255,255,255,1), rgba(255,255,255,.7));
}
.kide_hero .kide_container { position: relative; z-index: 1; }
.kide_hero_title    { font-size: 4.5rem; font-weight: bold; margin-bottom: 4rem; line-height: 1.2; color: #fff; }
.kide_hero_subtitle { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.95; color: #fff; }

/* ============================================
   SEKCJE
   ============================================ */
.kide_section         { padding: 1rem 0; margin: 0; }
.kide_section_title   { font-size: 4rem; font-weight: bold; text-align: center; margin-bottom: 1rem; color: var(--kide-dark); }
.kide_section_subtitle{ font-size: 1.125rem; text-align: center; color: var(--kide-gray); }
.kide_section_title_light,
.kide_section_subtitle_light { color: var(--kide-white); }

/* ============================================
   STATYSTYKI
   ============================================ */
.kide_stats            { background-color: var(--kide-light); text-align: center; }
.kide_stats_grid       { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.kide_stat_card        { background-color: var(--kide-white); padding: 2rem; border-radius: .25rem; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,.05); }
.kide_stat_card h3     { font-size: 1.25rem; line-height: 1.2; margin-bottom: 2rem; }
.kide_stat_card h2     { font-size: 3rem; line-height: 1.2; margin-bottom: 2rem; color: #444; }
.kide_stat_icon        { font-size: 3rem; margin-bottom: 1rem; min-height: 10rem; display: flex; justify-content: space-around; }
.kide_stat_value       { font-size: 2.5rem; font-weight: bold; color: var(--kide-primary); margin-bottom: 0.5rem; }
.kide_stat_label       { color: var(--kide-gray); font-size: 0.9375rem; }
.kide_stat_chart       { width: 120px; height: 120px; margin: 0 auto 1rem; }
.kide_circle_chart     { transform: rotate(0deg); }

/* ============================================
   TŁO TEKSTOWE
   ============================================ */
.kide_text_bg {
    background-image: url('');
    background-size: cover; background-position: center; background-attachment: fixed;
    position: relative;
}
.kide_text_bg::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,.8), rgba(255,255,255,1));
}
.kide_text_bg .kide_container { position: relative; z-index: 1; }
.kide_text_content      { max-width: 800px; margin: 0 auto; }
.kide_text_content p    { margin-bottom: 1.5rem; font-size: 1.0625rem; line-height: 1.8; }

/* ============================================
   KARTY
   ============================================ */
.kide_cards_grid  { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.kide_card {
    background-color: var(--kide-white);
    border-radius: .25rem; overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 0; position: relative;
    display: flex; flex-direction: column;
}
.kide_card:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0,0,0,.1); }
.kide_card_image  { position: relative; width: 100%; height: 200px; background-size: cover; background-position: center; background-color: #e5e7eb; }
.kide_card_title  { font-size: 1.5rem; font-weight: bold; margin: 1.5rem 1.5rem 1rem; }
.kide_card p, .kide_card ul { margin: 0 1.5rem 1.5rem; color: var(--kide-gray); }

/* ============================================
   USŁUGI
   ============================================ */
.kide_services      { background-color: var(--kide-light); }
.kide_services_grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.kide_service_box   { background-color: var(--kide-white); padding: 2.5rem; border-radius: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,.05); }
.kide_service_title { font-size: 1.5rem; font-weight: bold; margin-bottom: 1rem; color: var(--kide-dark); }
.kide_service_intro { margin-bottom: 1.5rem; color: var(--kide-gray); }
.kide_service_list  { margin-bottom: 1rem; list-style: none; }
.kide_service_list li { padding: 0 0 0 1.5rem; position: relative; color: var(--kide-dark); }
.kide_service_list li::before { content: '✓'; position: absolute; left: 0; color: var(--kide-primary); font-weight: bold; }

/* ============================================
   GALERIA KLIENTÓW
   ============================================ */
.kide_clients       { background-color: var(--kide-light); }
.kide_clients_grid  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.kide_client_item   { position: relative; height: 200px; background-size: cover; background-position: center; background-color: #e5e7eb; border-radius: 0.5rem; overflow: hidden; }
.kide_client_overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
    color: var(--kide-white); padding: 1.7rem 0 0 1rem;
    font-weight: 600; height: 4rem; font-size: 1rem;
}

/* ============================================
   FEATURES
   ============================================ */
.kide_features_grid  { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.kide_feature_card   { text-align: center; padding: 2rem; }
.kide_feature_icon   { font-size: 3rem; margin-bottom: 1rem; }
.kide_feature_title  { font-size: 1.25rem; font-weight: bold; margin-bottom: 1rem; }
.kide_feature_card p { color: var(--kide-gray); }

/* ============================================
   OPINIE / TESTIMONIALE
   ============================================ */
.kide_testimonials     { background-color: var(--kide-light); }
.kide_testimonial      { max-width: 800px; margin: 0 auto; text-align: center; padding: 2rem; }
.kide_testimonial_text { font-size: 1.25rem; font-style: italic; margin-bottom: 1.5rem; color: var(--kide-dark); }
.kide_testimonial_author { color: var(--kide-gray); }

/* ============================================
   CTA
   ============================================ */
.kide_cta       { background-color: var(--kide-primary); color: var(--kide-white); text-align: center; }
.kide_cta_title { font-size: 2rem; font-weight: bold; margin-bottom: 1rem; }
.kide_cta_text  { font-size: 1.125rem; margin-bottom: 2rem; opacity: 0.95; }

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
    width: 100%; height: 2rem;
    background-color: #e0e0e0; border-radius: .25rem; overflow: hidden;
}
.progress-bar.vertical {
    position: relative; width: 2rem; height: 10rem;
    display: inline-block;
}
.progress-fill { height: 100%; background-color: #4CAF50; transition: width 0.3s ease; }
.progress-bar.vertical .progress-fill { width: 100%; bottom: 0; position: absolute; }

/* ============================================
   TABELA CEN USŁUG
   ============================================ */
.services_prices { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: .25rem; }
.services_prices > .service_set :where(label, p, th, td, tr, div) { all: initial; margin: 0; padding: 0; font-family: "Fira Sans"; }
.services_prices > .service_set:not(:first-of-type) label { display: none; }
.services_prices > .service_set > div {
    display: flex; text-align: center; min-height: 6rem;
    justify-content: center; align-items: center;
    width: calc(100% - 1rem); padding: .5rem; margin-bottom: .5rem;
    border-bottom: solid 1px #ccc;
}
.services_prices > .service_set > div:first-of-type { height: 2rem !important; background-color: green; color: #fff; }
.services_prices > .service_set > div:nth-child(even) { background-color: #eee; }
.services_prices > .service_set:first-of-type > div:not(:first-of-type) { justify-content: left; align-items: center; }
.services_prices > .service_set * { font-size: 1rem; }

/* ============================================
   FAQ
   ============================================ */
.faq { list-style-type: none; padding: 0; margin: 0; }
.faq > li { padding: 0; }
.faq > li > input { display: none; }
.faq > li > input ~ div { max-height: 0; overflow: hidden; transition: max-height 0.25s ease-out; }
.faq > li > input:checked ~ div { max-height: 30dvw; }
.faq > li > label:before {
    content: ''; display: inline-block; position: relative; top: .5rem;
    width: 2rem; height: 2rem; margin: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path d="M3 2 L8 5 L3 8 Z" fill="green"/></svg>');
    background-size: contain; background-repeat: no-repeat;
    transition: transform 0.3s ease;
}
.faq > li > label:hover:before { color: #fefefe; }
.faq > li > input:checked ~ label:before {
    transform: rotate(90deg);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path d="M3 2 L8 5 L3 8 Z" fill="%23ffffff"/></svg>');
}
.faq > li > input:checked ~ label { background-color: green; color: #fefefe; }
.faq > li > label {
    background: none; padding: 0; cursor: pointer; width: 100%;
    display: block; padding: .5rem; transition: max-height 0.5s ease-out; border-radius: .25rem;
}
.faq > li > label:hover { background-color: green; transition: max-height 0.5s ease-out; }
.faq > li > label:hover * { text-decoration: underline green; color: #efefef; }
.faq > li > label * { padding: 0; margin: 0; line-height: 1; }

/* ============================================
   POLA TEKSTOWE / BOKSY
   ============================================ */
.kide_txt_box       { border: solid 1px green; padding: 2rem; border-radius: .25rem; }
.kide_txt_box.promo { border: solid 1px red; box-shadow: 1px 1px 2px green; }

/* ============================================
   KOMUNIKATY
   ============================================ */
.msg.info  { display: block; position: relative; background-color: green; padding: 1rem; }
.msg.error { display: block; position: relative; background-color: red; padding: 1rem; }

/* ============================================
   SLIDER REKOMENDACJI
   ============================================ */
.kide_recommendations { padding: 3rem 0; }
.kide_slider_wrapper  { position: relative; display: flex; align-items: center; gap: 1rem; max-width: 1360px; margin: 0 auto; padding: 0 1.5rem; }
.kide_slider_container { overflow: hidden; width: 100%; position: relative; }
.kide_slider_track     { display: flex; transition: transform 0.5s ease-in-out; will-change: transform; }
.kide_slider_item      { flex: 0 0 100%; padding: 0 0.5rem; }

.kide_recommendation {
    background-color: var(--kide-white); border-radius: .25rem;
    box-shadow: 0 4px 6px rgba(0,0,0,.05); overflow: hidden;
    height: 100%; display: flex; flex-direction: column; min-height: 400px; padding: 2rem;
}
.kide_rec_photo    { width: 100%; height: 200px; object-fit: cover; flex-shrink: 0; }
.kide_rec_content  { flex: 1; display: flex; flex-direction: column; }
.kide_rec_header   { margin-bottom: 1rem; }
.kide_rec_name     { font-size: 1.5rem; font-weight: bold; color: var(--kide-dark); margin: 0 0 .5rem 0; text-align: left; }
.kide_rec_position { font-size: 1rem; color: var(--kide-gray); margin: 0 0 1rem 0; line-height: 1.4; }
.kide_rec_text     { font-size: 1.1rem; line-height: 1.6; color: var(--kide-back); margin: 0; flex: 1; }

.kide_slider_nav {
    background-color: var(--kide-white); border: 2px solid var(--kide-primary);
    color: var(--kide-primary); width: 3rem; height: 3rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s; flex-shrink: 0; z-index: 10; font-size: 1.5rem;
}
.kide_slider_nav:hover  { background-color: var(--kide-primary); color: var(--kide-white); transform: scale(1.1); }
.kide_slider_nav:disabled { opacity: 0.3; cursor: not-allowed; }
.kide_slider_nav:disabled:hover { background-color: var(--kide-white); color: var(--kide-primary); transform: scale(1); }

.kide_slider_dots  { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.kide_slider_dot   { width: .75rem; height: .75rem; border-radius: 50%; background-color: #d1d5db; border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.kide_slider_dot:hover { background-color: #9ca3af; }
.kide_slider_dot.active { background-color: var(--kide-primary); width: 2rem; border-radius: 1rem; }

.kide_slider_item > .kide_card { display: flex; height: 100%; position: relative; justify-content: space-around; }
.kide_slider_item > .kide_card > .kide_btn { display: block; position: static; bottom: 0; top: auto; margin-bottom: 0; margin-top: 100%; }

/* ============================================
   STYLE SPECYFICZNE TRENERZY.ORG.PL  (t-)
   ============================================ */

/* Siatka trenerów */
.t-trenerzy-grid { grid-template-columns: repeat(3, 1fr); }

/* Karta trenera */
.t-trener-card .kide_card_image { height: 260px; }
.t-trener-spec {
    font-size: 0.9rem; color: var(--kide-primary); font-weight: 600;
    margin: 0 1.5rem 0.5rem; text-transform: uppercase; letter-spacing: 0.05em;
}

/* Profil trenera (single) */
.t-trener-header {
    display: grid; grid-template-columns: 300px 1fr;
    gap: 3rem; margin-bottom: 3rem; align-items: start;
}
.t-trener-photo img { width: 100%; height: auto; border-radius: 0.5rem; }
.t-trener-name     { font-size: 2.5rem; text-align: left; margin: 0 0 0.5rem 0; }
.t-trener-contact  { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
.t-trener-link     { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--kide-primary); font-size: 1rem; }
.t-trener-content  { max-width: 800px; }

/* Wyszukiwarka */
.t-search-bar { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.t-search-form { flex: 1; min-width: 250px; }
.t-search-input-group { display: flex; gap: 0.5rem; align-items: center; }
.t-search-input-group input[type="text"],
.t-select-spec { flex: 1; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 0.25rem; font-size: 1rem; background-color: #fff; color: #222; }

/* Artykuł wiedzy */
.t-wiedza-kategoria { color: var(--kide-primary); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 1.5rem; }
.t-featured-image   { margin: 2rem 0; }
.t-featured-image img { width: 100%; max-height: 500px; object-fit: cover; }
.t-entry-content    { max-width: 800px; margin: 0 auto; }
.t-entry-content p,
.t-entry-content li { font-size: 1.1rem; line-height: 1.8; }

/* Ogólny main */
.t-main { min-height: 60vh; }

/* Blok kontenera */
.t-container-block { width: 100%; }

/* ============================================
   BLOK: LISTA WPISOW
   ============================================ */
/*
 * scroll-margin-top — offset dla sticky headera.
 * Gdy paginacja przenosi do kotwicy #lista-N, przeglądarka
 * zatrzymuje się tyle pikseli PRZED elementem.
 * Wartość musi odpowiadać rzeczywistej wysokości sticky headera.
 * Header ma height: 8rem w nav.css → 8 × 16px = 128px.
 * Jeśli zmieni się wysokość headera, zaktualizuj tę zmienną.
 */
:root {
    --t-header-h: 128px; /* = 8rem (rzeczywista wysokość headera z nav.css) */
}

.t-lista-wrap {
    scroll-margin-top: calc( var(--t-header-h) + 1.5rem );
}
.t-lista-grid   { display: grid; gap: 2rem; }

/* Kolumny 1–5 — nadpisują grid-template z .kide_cards_grid */
.t-lista-cols-1 { grid-template-columns: 1fr !important; }
.t-lista-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.t-lista-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.t-lista-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
.t-lista-cols-5 { grid-template-columns: repeat(5, 1fr) !important; }

.t-lista-brak   { color: #9ca3af; font-style: italic; }

/* Link owijajacy karte - bez podkreslenia */
.t-lista-card-img-link { text-decoration: none; color: inherit; display: block; }
.t-lista-card-img-link:hover { text-decoration: none; }

/* Paginacja — SZARY (domyślny) */
.t-lista-pagination { display: flex; justify-content: center; margin: 2rem 0 1rem; }
.t-lista-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.25rem; height: 2.25rem; padding: 0 0.75rem;
    border-radius: 0.25rem;
    font-size: 1rem; font-weight: 600; text-decoration: none;
    color: var(--kide-dark); transition: all 0.2s; margin: 0 0.2rem;
}

.t-lista-pagination .page-numbers.current {
    background-color: var(--kide-gray);
    color: var(--kide-white);
}
.t-lista-pagination .prev,
.t-lista-pagination .next {
    color: var(--kide-gray);
}
.t-lista-pagination .page-numbers:not(.current):not(.prev):not(.next):hover {
    background-color: var(--kide-light);
}
.t-lista-pagination .prev:hover,
.t-lista-pagination .next:hover {
    color: var(--kide-dark);
}
.t-lista-pagination ul { list-style: none; display: flex; gap: 0.25rem; padding: 0; margin: 0; }
.t-lista-pagination ul li { display: inline; }

/* Paginacja — CZERWONA (wariant) */
.t-lista-pagination--red .page-numbers.current {
    background-color: var(--kide-primary);
    color: var(--kide-white);
}
.t-lista-pagination--red .prev,
.t-lista-pagination--red .next {
    color: var(--kide-primary);
}
.t-lista-pagination--red .prev:hover,
.t-lista-pagination--red .next:hover {
    color: var(--kide-primary-dark);
}

/* Przycisk "więcej w kategorii" */
.t-lista-more-wrap { text-align: center; margin: 2rem 0 0; }

/*KONTENERY*/
.t-container{width: 1360px; margin: 0 auto;}

@media screen and (max-width: 1023px) {
    .t-lista-cols-3,
    .t-lista-cols-4,
    .t-lista-cols-5 { grid-template-columns: repeat(2, 1fr) !important; }
    .t-container{max-width: 100dvw; width: 1360px; margin: 0 auto;}
}
@media screen and (max-width: 639px) {
    .t-lista-cols-2,
    .t-lista-cols-3,
    .t-lista-cols-4,
    .t-lista-cols-5 { grid-template-columns: 1fr !important; }
    .t-container{max-width: 100dvw; width: 1360px; margin: 0 auto;}
}

/* ============================================
   BLOK: SLAJDER
   ============================================ */

/* Wspólny wrapper */
.t-slajder {
    position: relative;
    overflow: hidden;
    width: 100%;
    user-select: none;
}

/* Hero + Cinematic — wysokość z CSS var ustawionym inline per-instancję */
.t-slajder--hero,
.t-slajder--cinematic {
    height: var(--t-slider-h, 480px);
}

.t-slajder--hero .swiper-wrapper,
.t-slajder--cinematic .swiper-wrapper { height: 100%; }

.t-slajder--hero .swiper-slide,
.t-slajder--cinematic .swiper-slide { height: 100%; }

/* Hero — tło per-slajd */
.t-slajder-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Cinematic — stałe tło */
.t-slajder-cin-img,
.t-slajder-cin-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.t-slajder-cin-img { background-size: cover; background-position: center; }
.t-slajder--cinematic .swiper-wrapper { position: relative; z-index: 2; }

/* Nakładka — kolor i krycie z CSS var (obliczane w render.php jako rgba()) */
.t-slajder-overlay {
    position: absolute;
    inset: 0;
    background: var(--t-overlay-bg, rgba(0,0,0,0.55));
    z-index: 1;
    pointer-events: none;
}

/* Treść slajdu */
.t-slajder-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 3rem;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.t-slajder-title {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.t-slajder-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    margin: 0 0 2rem;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.t-slajder-cta {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    background-color: var(--kide-background-blue, #1a56a0);
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}
.t-slajder-cta:hover { background-color: var(--kide-primary-dark, #153e7a); transform: translateY(-2px); }

/* Hero — tryb "pod grafiką" */
.t-slajder--below .t-slajder-slide {
    align-items: flex-end;
}
.t-slajder-below-caption {
    background: #fff;
    padding: 1.25rem 2rem;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 2;
}
.t-slajder-below-title { font-size: 1.4rem; font-weight: 700; margin: 0 0 0.4rem; color: var(--kide-dark); }
.t-slajder-below-sub   { font-size: 1rem; color: #555; margin: 0 0 0.75rem; }

/* Karuzela */
.t-slajder--logos { height: auto; }
/* Wysokość slajdów karuzeli sterowana wyłącznie przez scoped <style> w render.php */
.t-slajder--logos:has([style*="--t-carousel-aspect"]) .swiper-slide {
    height: auto;
    aspect-ratio: var(--t-carousel-aspect);
}

.t-slajder-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    padding: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
    overflow: hidden;
    position: relative;
}
.t-slajder-logo-wrap:hover { opacity: 0.85; }

/* Contain — loga/zdjęcia: cały obrazek widoczny + podpis pod spodem */
.t-slajder--fit-contain .t-slajder-logo-wrap {
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
    overflow: hidden;
}
.t-slajder--fit-contain .t-slajder-logo-wrap img {
    flex: 1;
    min-height: 0;        /* kluczowe — pozwala flex-item skurczyć się poniżej intrinsic height */
    width: 100%;
    object-fit: contain;
    display: block;
}
.t-slajder--fit-contain .t-slajder-logo-name {
    flex-shrink: 0;
    position: static;
    background: transparent;
    color: var(--kide-gray, #6b7280);
    font-size: 0.8rem;
    padding: 0.25rem 0 0;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cover — zdjęcia: obrazek wypełnia cały kafelek */
.t-slajder--fit-cover .t-slajder-logo-wrap {
    padding: 0;
    justify-content: flex-end; /* podpis below ląduje na dole */
}
.t-slajder--fit-cover .t-slajder-logo-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Cover overlay (domyślnie) */
.t-slajder--fit-cover .t-slajder-logo-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: auto; /* reset dla below */
    box-sizing: border-box;
}
/* Below: wrap musi rozciągać dzieci w osi poprzecznej */
.t-slajder--names-below .t-slajder-logo-wrap {
    align-items: stretch;
}

/* Cover + below: podpis pod zdjęciem (nie overlay) */
.t-slajder--names-below.t-slajder--fit-cover .t-slajder-logo-name,
.t-slajder--names-below.t-slajder--fit-contain .t-slajder-logo-name {
    align-self: stretch;
    position: relative !important;
    bottom: auto;
    left: auto;
    right: auto;
    background: transparent;
    color: var(--kide-gray, #6b7280);
    text-align: center;
    padding: 0.35rem 0.5rem;
    box-sizing: border-box;
}

/* Fallback gdy klasa fit nie jest ustawiona */
.t-slajder--logos:not(.t-slajder--fit-contain):not(.t-slajder--fit-cover) .t-slajder-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.t-slajder--grayscale .t-slajder-logo-wrap img {
    filter: grayscale(1) opacity(0.65);
    transition: filter 0.3s;
}
.t-slajder--grayscale .t-slajder-logo-wrap:hover img { filter: none; }

.t-slajder-logo-name {
    font-size: 0.8rem;
    color: var(--kide-gray, #6b7280);
    text-align: center;
}

/* Strzałki Swiper */
.t-slajder-prev,
.t-slajder-next {
    color: #fff;
    --swiper-navigation-size: 1.5rem;
}
.t-slajder-prev::after,
.t-slajder-next::after {
    font-size: 1.5rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Kropki Swiper */
.t-slajder-pagination { bottom: 16px !important; }
.t-slajder-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
    opacity: 1;
    transition: background 0.2s, width 0.2s;
}
.t-slajder-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 1.75rem;
    border-radius: 0.5rem;
}

/* ============================================
   BLOK: GALERIA LIGHTBOX
   ============================================ */

.t-galeria {
    /* grid ustawiany inline per-instancję */
}

.t-galeria-item {
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-radius: 0.25rem;
    position: relative;
}

.t-galeria-thumb {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: #e5e7eb;
}

.t-galeria-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.t-galeria-item:hover .t-galeria-thumb img {
    transform: scale(1.05);
}

.t-galeria-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9ca3af;
}

.t-galeria-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    transition: background 0.2s;
}
.t-galeria-item:hover .t-galeria-play-overlay { background: rgba(0,0,0,0.45); }

.t-galeria-play-btn {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    line-height: 1;
    transition: transform 0.2s;
}
.t-galeria-item:hover .t-galeria-play-btn { transform: scale(1.15); }

.t-galeria-caption {
    font-size: 0.85rem;
    color: var(--kide-gray, #6b7280);
    text-align: center;
    margin: 0.4rem 0 0;
    padding: 0 0.25rem;
    font-style: italic;
    line-height: 1.3;
}

/* ============================================
   Bloki rdzenia wewnątrz t-main mają automatyczny kontener */
/* (zachowany oryginalny komentarz jako separator) */
/* ============================================ */

/* Bloki rdzenia wewnątrz t-main mają automatyczny kontener
   (paragraf, nagłówek itp.) — nie dotyczy bloków full-width */
.t-main > .wp-block-paragraph,
.t-main > .wp-block-heading,
.t-main > .wp-block-list,
.t-main > .wp-block-quote,
.t-main > .wp-block-table,
.t-main > .wp-block-image:not(.alignfull):not(.alignwide),
.t-main > .wp-block-buttons,
.t-main > .wp-block-group:not(.alignfull):not(.alignwide) {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
