/*
 Theme Name:   Hello Child
 Template:     hello-elementor
 Version:      1.0.0
*/

/* =========================
   FONT-FACE – WOFF2, latin-ext
   ========================= */

/* Plus Jakarta Sans – 300–700 */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin-ext-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin-ext-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin-ext-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin-ext-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/plus-jakarta-sans/plus-jakarta-sans-v12-latin-ext-700.woff2') format('woff2');
}


/* Merriweather – 300–700 (latin-ext) */
@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/merriweather/merriweather-v33-latin-ext-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/merriweather/merriweather-v33-latin-ext-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/merriweather/merriweather-v33-latin-ext-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/merriweather/merriweather-v33-latin-ext-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/merriweather/merriweather-v33-latin-ext-700.woff2') format('woff2');
}

/* =========================================
   0. Design tokens (kolory, typografia, spacing)
   ========================================= */

:root {
  /* Kolory tła / powierzchni */
  --re-color-bg: #FAFAFA;          /* najjaśniejsze tło z palety */
  --re-color-surface: #FAFAFA;     /* karty, bloki – jednolite z tłem */
  --re-color-surface-soft: #E2E5F8;/* miękkie tło akcentowe (np. hover, zaznaczenie) */

  /* Obramowania */
  --re-color-border: #E0E0E6;      /* standardowa ramka */
  --re-color-border-strong: #3C40C6; /* mocniejsza ramka / krawędź */

  /* Tekst */
  --re-color-text: #1E1E24;        /* główny tekst */
  --re-color-text-muted: #3D40BF;  /* tekst pomocniczy / linki wtórne */

  /* Akcenty */
  --re-color-accent: #3D40BF;      /* główny kolor akcentu (przyciski, linki) */
  --re-color-accent-soft: #E2E5F8; /* tło dla akcentów, badge, highlight */
  --re-color-accent-dark: #1E2067; /* ciemny akcent (hover, active) */

  /* Danger – jeśli chcesz trzymać się tylko palety, możesz później
     podmienić na wariację z niej; na razie zostawiam czerwony jako sygnał. */
  --re-color-danger: #b91c1c;

  /* Typografia – nasze fonty */
  --re-font-base: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --re-font-accent: "Merriweather", "Times New Roman", serif;


  /* BODY text */
  --re-fs-body: clamp(16px, 14px + 0.5vw, 20px);
  --re-lh-body: 1.4;

  /* HEADING SCALE (desktop → mobile) */
  --re-fs-h1: clamp(40px, 26px + 3.5vw, 68px);
  --re-fs-h2: clamp(32px, 22px + 2.5vw, 54px);
  --re-fs-h3: clamp(28px, 20px + 1.2vw, 36px);
  --re-fs-h4: clamp(24px, 18px + 0.8vw, 30px);
  --re-fs-h5: clamp(20px, 16px + 0.5vw, 24px);
  --re-fs-h6: clamp(18px, 15px + 0.3vw, 20px);

  /* Line height heading */
  --re-lh-heading: 1.05;

  /* Radius, shadow, animacje */
  --re-radius-xs: 4px;
  --re-radius-sm: 6px;
  --re-radius-md: 10px;
  --re-radius-lg: 18px;
  --re-radius-pill: 999px;

  --re-shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
  --re-shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.08);

  --re-transition-fast: 150ms ease-out;
  --re-transition-med: 220ms ease;

  /* Layout – docelowa szerokość */
  --re-container-width: 1200px;
  --re-section-space-y: clamp(3rem, 2.4rem + 1.5vw, 5rem);

  /* Breakpointy (referencyjnie):
     mobile: 0–639px
     tablet: 640–1023px
     desktop: 1024–1439px
     desktop-wide: 1440px+
  */
}

/* =========================================
   1. Lekki reset + bazowe body
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--re-font-base);
  font-size: var(--re-fs-body);
  line-height: var(--re-lh-body);
  color: var(--re-color-text);
  background-color: var(--re-color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Usuwamy default focus – zrobimy własny */
:focus {
  outline: none;
}

/* Linki */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--re-color-accent);
}

/* =========================================
   2. Typografia (H1–H6, tekst, helpery)
   ========================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--re-font-accent);
  line-height: var(--re-lh-heading);
  color: var(--re-color-text);
  margin: 0 0 0.6em;
}

/* konkretne rozmiary + wagi */
h1 {
  font-size: var(--re-fs-h1);
  font-weight: 500; 
	
}

/* 1) Globalnie dla nagłówków w Elementorze (tylko widget Heading) */
.elementor .elementor-widget-heading .elementor-heading-title {
  line-height: 1.2;
}


h2 {
  font-size: var(--re-fs-h2);
  font-weight: 500;
	line-height: 54px;
}

h3 {
  font-size: var(--re-fs-h3);
  font-weight: 400; 
}

h4 {
  font-size: var(--re-fs-h4);
  font-weight: 400;
}

h5 {
  font-size: var(--re-fs-h5);
  font-weight: 400;

}

h6 {
  font-size: var(--re-fs-h6);
  font-weight: 400;

}

p {
  margin: 0 0 0.75rem;
  color: var(--re-color-text);
}

.small-text {
  font-size: 0.82rem;
  color: var(--re-color-text-muted);
}

.muted {
  color: var(--re-color-text-muted);
}

/* Nagłówki sekcji jak w makietach „O nas”, „Kontakt” */
.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--re-color-text-muted);
  margin-bottom: 0.4rem;
}

/* przyciski / UI – korzystają z Plus Jakarta */
button,
input[type="submit"],
.elementor-button {
  font-family: var(--re-font-base);
  font-weight: 500;
}


/* =========================================
   BLOG POST – czytelna typografia + odstępy
   mobile-first, tylko treść wpisu
   ========================================= */

body.single-post .elementor-widget-theme-post-content,
body.single-post .elementor-post__content,
body.single-post .entry-content {
  /* Skala nagłówków – priorytet mobile */
  --re-fs-h1: clamp(32px, 6vw, 44px);
  --re-fs-h2: clamp(26px, 5vw, 34px);
  --re-fs-h3: clamp(22px, 4.2vw, 28px);
  --re-fs-h4: clamp(20px, 3.8vw, 24px);
  --re-fs-h5: clamp(18px, 3.4vw, 22px);
  --re-fs-h6: clamp(16px, 3.1vw, 20px);

  /* Czytelność nagłówków */
  --re-lh-heading: 1.18;

  /* Rytm pionowy (odstępy) */
  --re-space-p: 0.95em;          /* odstęp po akapicie */
  --re-space-h-top: 1.25em;      /* odstęp NAD nagłówkiem */
  --re-space-h-bottom: 0.55em;   /* odstęp POD nagłówkiem */
}

/* Akapity (rytm) */
body.single-post .elementor-widget-theme-post-content p,
body.single-post .elementor-post__content p,
body.single-post .entry-content p {
  margin: 0 0 var(--re-space-p);
  line-height: 1.65;
}

/* Nagłówki – równe odstępy + łamanie bez “sierot” */
body.single-post .elementor-widget-theme-post-content h1,
body.single-post .elementor-widget-theme-post-content h2,
body.single-post .elementor-widget-theme-post-content h3,
body.single-post .elementor-widget-theme-post-content h4,
body.single-post .elementor-widget-theme-post-content h5,
body.single-post .elementor-widget-theme-post-content h6,
body.single-post .elementor-post__content h1,
body.single-post .elementor-post__content h2,
body.single-post .elementor-post__content h3,
body.single-post .elementor-post__content h4,
body.single-post .elementor-post__content h5,
body.single-post .elementor-post__content h6,
body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5,
body.single-post .entry-content h6 {
  line-height: var(--re-lh-heading);
  margin: var(--re-space-h-top) 0 var(--re-space-h-bottom);
  text-wrap: pretty;
}

/* Pierwszy nagłówek w treści bez dużej “dziury” nad nim */
body.single-post .elementor-widget-theme-post-content :is(h1,h2,h3,h4,h5,h6):first-child,
body.single-post .elementor-post__content :is(h1,h2,h3,h4,h5,h6):first-child,
body.single-post .entry-content :is(h1,h2,h3,h4,h5,h6):first-child {
  margin-top: 0;
}

/* Listy – czytelny rytm */
body.single-post .elementor-widget-theme-post-content :is(ul,ol),
body.single-post .elementor-post__content :is(ul,ol),
body.single-post .entry-content :is(ul,ol) {
  margin: 0 0 1.05em;
  padding-left: 1.2em;
  line-height: 1.65;
}

body.single-post .elementor-widget-theme-post-content li,
body.single-post .elementor-post__content li,
body.single-post .entry-content li {
  margin: 0.35em 0;
}

/* Ważne: u Ciebie h2 ma line-height:54px – na blogu wyłączamy */
body.single-post .elementor-widget-theme-post-content h2,
body.single-post .elementor-post__content h2,
body.single-post .entry-content h2 {
  line-height: var(--re-lh-heading);
}

/* Tablet+ (opcjonalnie lekko zwiększ rytm i czytelność) */
@media (min-width: 768px) {
  body.single-post .elementor-widget-theme-post-content,
  body.single-post .elementor-post__content,
  body.single-post .entry-content {
    --re-space-p: 1.05em;
    --re-space-h-top: 1.35em;
    --re-space-h-bottom: 0.6em;
  }
}


/* =========================================
   3. Layout: container, sekcje, siatki
   ========================================= */

.re-container {
  width: 100%;
  max-width: var(--re-container-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

.re-section {
  padding-block: var(--re-section-space-y);
}

.re-section--tight {
  padding-block: clamp(2rem, 1.5rem + 1vw, 3rem);
}

.re-section--dark {
  background-color: #020617;
  color: #e5e7eb;
}

.re-section--surface {
  background-color: var(--re-color-surface);
}

/* Grid helper – bazowy pod “cards” jak wyróżniki/opinie itp. */
.re-grid {
  display: grid;
  gap: 1.5rem;
}

.re-grid--2 {
  grid-template-columns: 1fr;
}

.re-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .re-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .re-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Dwie kolumny tekst + obraz (jak sekcje z biurem / mapą) */
.re-split {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .re-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
  }
}

/* Karta */
.re-card {
  background-color: var(--re-color-surface);
  border-radius: var(--re-radius-md);
  border: 1px solid var(--re-color-border);
  box-shadow: var(--re-shadow-subtle);
  padding: 1.25rem 1.4rem;
}

/* =========================================
   4. Formularze – globalne style (inputs, selects, textarea)
   ========================================= */

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--re-color-text-muted);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: var(--re-radius-sm);
  border: 1px solid var(--re-color-border);
  background-color: #ffffff;
  font-size: 0.9rem;
  color: var(--re-color-text);
  transition:
    border-color var(--re-transition-fast),
    box-shadow var(--re-transition-fast),
    background-color var(--re-transition-fast),
    transform var(--re-transition-fast);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
input[type="search"]:hover,
input[type="password"]:hover,
select:hover,
textarea:hover {
  border-color: var(--re-color-border-strong);
}

/* Focus dostępnościowy */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--re-color-accent);
  box-shadow: 0 0 0 1px var(--re-color-accent);
}

/* Placeholder */
::placeholder {
  color: #9ca3af;
}

/* Select – “strzałka” */
select {
  background-image:
    linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 3px),
    calc(100% - 10px) calc(50% - 3px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.9rem;
}

/* Checkbox / radio */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--re-color-accent);
}

/* Grid formularza – pod wyszukiwarkę / kontakt */
.re-form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .re-form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .re-form-grid--3-md {
    grid-template-columns: 2fr 1.5fr 1.5fr;
  }
}

/* =========================================
   5. Przyciski – system buttonów
   ========================================= */

button,
input[type="submit"],
input[type="button"],
.elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1em; 
  padding: 20px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  background-color: var(--re-color-accent);
  color: #ffffff;
  transition:
    background-color var(--re-transition-fast),
    box-shadow var(--re-transition-fast),
    transform var(--re-transition-fast);
	gap: 4px;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.elementor-button:hover {
  background-color: var(--re-color-accent-dark);
  box-shadow: var(--re-shadow-soft);
  transform: translateY(-1px);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.elementor-button:active {
  transform: translateY(0);
  box-shadow: none;
}

button[disabled],
input[type="submit"][disabled],
input[type="button"][disabled],
.elementor-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Focus ring */
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
.elementor-button:focus-visible {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--re-color-accent);
}

/* Warianty */
.btn-outline {
  background-color: transparent;
  color: var(--re-color-text);
  border: 1px solid var(--re-color-border-strong);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--re-color-surface-soft);
}

.btn-ghost {
  background-color: transparent;
  color: var(--re-color-accent);
  border: none;
  box-shadow: none;
}

.btn-ghost:hover {
  background-color: var(--re-color-accent-soft);
}

/* =========================================
   6. Elementor – nadpisanie styli motywu
   ========================================= */


/* Links, breadcrumbs, menu – neutralne kolory */
.elementor-nav-menu a {
  color: var(--re-color-text);
  font-weight: 500;
}

.elementor-nav-menu a:hover {
  color: var(--re-color-accent);
}

/* =========================================
   7. Utility classes – do szybkiej pracy
   ========================================= */

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: var(--re-radius-pill);
  border: 1px solid var(--re-color-border);
  font-size: 0.78rem;
  color: var(--re-color-text-muted);
  background-color: var(--re-color-surface);
}



/* =========================================
   8. Dodatkowe style Fonty – Elementor
   ========================================= */

/* Heading widget */
.subtitle-accent .elementor-heading-title {
    font-family: var(--re-font-base); /* Plus Jakarta Sans */
    font-weight: 500;
    font-size: 16px;
    color: #3D40BF;
    line-height: 1em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

/* Text Editor widget */
.subtitle-accent p {
    font-family: var(--re-font-base);
    font-weight: 500;
    font-size: 16px;
    color: #3D40BF;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}



/* Hero – cytat z akcentem na słowa "historia" i "sztuka" */
.h-hero-quote {
  text-align: center;            /* wyrównanie całego widgetu */
}

.h-hero-quote .elementor-heading-title {
  font-family: var(--re-font-accent); /* Kaisei Tokumin */
  font-weight: 500;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: 0;
  margin: 0;
}

/* Akcentowane słowa w środku cytatu */
.h-hero-quote .hero-accent {
  font-family: var(--re-font-base);   /* Plus Jakarta Sans */
  font-weight: 600;
  color: var(--re-color-accent);      /* niebieski z tokenów */
}



/* --------------------------------------------- */
/*  BLOK: TELEFON / EMAIL (kontakt)               */
/* --------------------------------------------- */
/* Nazwa klasy: .c-contact-info                   */

.c-contact-info {
  font-family: var(--re-font-base);
  font-size: 20px;
  font-weight: 600;
  color: #1E1E24;
  line-height: 1;
}




/* --------------------------------------------- */
/*  UTILITY: MANUAL FONT SWITCHER (Elementor)     */
/* --------------------------------------------- */
:root{
  --re-font-base: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --re-font-accent: "Merriweather", "Times New Roman", serif;
}

/* Elementor: wymuś też na dzieciach, bo nagłówek często ma font ustawiony bezpośrednio */
.font-jakarta,
.font-jakarta *{
  font-family: var(--re-font-base) !important;
}

.font-merriweather,
.font-merriweather *{
  font-family: var(--re-font-accent) !important;
}


/* Ikony miejsce pod spodem */
.elementor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}




/* BLOKOWANIE SCROLLA POD MODALEM */
.wn-no-scroll {
    overflow: hidden;
}

/* MODAL – KONTEJNER + BLUR NA CAŁY EKRAN */
.wn-gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.wn-gallery-modal--open {
    display: block;
}

/* TO ZOSTAWIAMY – jeden globalny blur + przyciemnienie */
.wn-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(14px);
}

.wn-gallery-dialog {
    position: relative;
    max-width: 1200px;
    height: 90vh;
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* GÓRNY WIERZ – 2 PRZYCISKI + X W JEDNYM WIERSZU, BEZ BIAŁEGO PASA */
.wn-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 0 24px;
}

/* HERO TABY (na main page) */
.wn-hero-chip--tab {
    border: none;
    background: rgba(255, 255, 255, 0.85);
    padding: 20px 24px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
}

.wn-hero-chip--tab-active {
    background: #3D40BF;
    color: #fff;
}

.wn-hero-chip--tab-disabled {
    opacity: 0.5;
    cursor: default;
}

/* Taby w modalu – tylko przyciski, bez tła za nimi */
.wn-gallery-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
}

.wn-gallery-tab {
    border: none;
    background: transparent;
    padding: 20px 24px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    color: #ffffff;
    opacity: 0.7;
}

.wn-gallery-tab--active {
    background: #3D40BF;
    color: #ffffff;
    opacity: 1;
    font-weight: 500;
}

/* PRZYCISK ZAMKNIĘCIA – W TYM SAMYM WIERSZU */
.wn-gallery-close {
    border: none;
    background: #3D40BF;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* "WRÓĆ DO GALERII" – ZAWSZE NIEBIESKI, POD TABAMI, 24px ODSTĘPU */
.wn-gallery-back-row {
    padding: 20px 24px;
	min-height: 40px;     
	border-radius: 12px;
	font-size: 14px;
	 display: flex;
    align-items: flex-start;
}

/* kiedy ukryty (hidden) – sam button znika, ale row zostaje */
.wn-gallery-back-btn[hidden] {
    display: none;
}

.wn-gallery-back-icon img {
    width: 14px;
    height: 14px;
    display: block;
}

/* WIDOKI: GRID / LIGHTBOX */
/* ogólnie – grid może scrollować */
.wn-gallery-view {
    flex: 1;
    overflow: auto;
}

/* GRID MINIATUREK */
.wn-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    padding: 32px 24px 24px 24px;
}
	

/* Kafelki */
.wn-gallery-thumb {
    border: none;
    padding: 0;
    background: #26262f;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.wn-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* DESKTOP – pattern 3 małe / 2 duże */
@media (min-width: 1024px) {
    .wn-gallery-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)); /* 6 równych kolumn */
        gap: 32px; /* jak chciałeś */
    }

    /* domyślnie wszystkie kafelki: małe (2 kolumny) */
    .wn-gallery-thumb {
        grid-column: span 2;
    }

    /* w każdym bloku 5 zdjęć:
       1,2,3 -> małe (span 2) – już ustawione wyżej
       4,5   -> duże (span 3)
       6,7,8 -> znowu małe
       9,10  -> duże itd.
    */
    .wn-gallery-thumb:nth-child(5n + 4),
    .wn-gallery-thumb:nth-child(5n + 5) {
        grid-column: span 3;
    }
}



/* LIGHTBOX (po kliknięciu w miniaturę) */

/* SLIDER – bez scrolla w pionie, obrazek ma się zmieścić */
.wn-gallery-view--lightbox {
    flex: 1;
    padding: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wn-gallery-view--lightbox[hidden] {
    display: none !important;
}
/* wiersz ze strzałkami + zdjęciem */
.wn-gallery-lightbox-main {
    flex: 1;
    min-height: 0;                 /* ważne przy flex + overflow hidden */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* wrapper zdjęcia – dostaje CAŁĄ wysokość, jaką może */
.wn-gallery-lightbox-image-wrap {
    flex: 1;
    height: 100%;
    max-height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}




/* samo zdjęcie – zawsze całe, bez ucinania */
[data-wn-gallery-image] {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;           /* zamiast cover → nic nie ucina */
    display: block;
}

/* STRZAŁKI */
.wn-gallery-nav {
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LICZNIK ZDJĘĆ */
.wn-gallery-lightbox-footer {
    text-align: right;
    font-size: 13px;
    color: #fff;
    margin-top: 8px;
}

.wn-gallery-counter {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
}

/* PRZYCISK CLOSE */

.wn-gallery-close {
    border: none;
    background: #3D40BF;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.wn-gallery-close img {
    width: 16px;
    height: 16px;
    display: block;
}

/* MOBILE */
@media (max-width: 768px) {
    .wn-gallery-dialog {
        margin: 0;
        height: 100vh;
        border-radius: 0;
    }

    .wn-gallery-header {
        padding: 12px 16px 0 16px;
    }

    .wn-gallery-back-row {
        padding: 20px 16px 0 16px;
    }

    .wn-gallery-grid {
        padding: 16px;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .wn-gallery-view--lightbox {
        padding: 16px;
    }
}


/* Mobile */
@media (max-width: 768px) {
    .wn-gallery-dialog {
        margin: 0;
        height: 100vh;
        border-radius: 0;
    }

    .wn-gallery-tabs {
        padding: 0px 0px 24px 0px;
    }

    .wn-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}




/* ============================
   MOBILE – usuwamy czarne pasy
   ============================ */
@media (max-width: 768px) {

    .wn-gallery-view--lightbox {
        flex: 1;
        padding: 12px 0 16px 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .wn-gallery-lightbox-main {
        position: relative;
        flex: 1;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
    }

    /* WRAPPER zdjęcia – żadnego tła, dopasowany do wysokości zdjęcia */
    .wn-gallery-lightbox-image-wrap {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 16px;
        overflow: hidden;
        background: transparent !important;   /* <- usuwa czarne pasy */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* zdjęcie – na całą szerokość, wysokość z proporcji, bez ucinania */
    .wn-gallery-lightbox-image-wrap [data-wn-gallery-image],
    [data-wn-gallery-image] {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 200px);      /* zapas na header i przyciski */
        object-fit: contain;
        display: block;
    }

    /* strzałki w środku zdjęcia */
    .wn-gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 999px;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wn-gallery-nav--prev {
        left: 24px;
    }

    .wn-gallery-nav--next {
        right: 24px;
    }
}


/* FIX: wyrównanie X vs tabs na mobile (nie zmienia rozmiarów przycisków) */
@media (max-width: 768px){
  .wn-gallery-tabs{
    padding-bottom: 0 !important;
  }
}



/* ============================
   STRZAŁKI – BEZ ANIMACJI
   ============================ */

/* stan podstawowy */
.wn-gallery-nav {
    position: absolute;
    top: 50%;
    left: auto;
    transform: translateY(-50%);      /* ŚRODEK zdjęcia, bez innych transformacji */
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 18px;

    transition: background-color 0.15s ease;  /* tylko delikatny hover koloru */
    animation: none !important;               /* KILL wszystkie animacje */
}

/* pozycje lewa/prawa – bez kombinacji z transform */
.wn-gallery-nav--prev {
    left: 24px;
}

.wn-gallery-nav--next {
    right: 24px;
}

/* hover – ZERO ruchu, tylko kolor (możesz nawet to wywalić) */
.wn-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%); /* nadpisujemy, żeby nic nie podskakiwało */
}

/* bezpieczeństwo: jak gdzieś było :hover z innym transform */
.wn-gallery-nav--prev:hover,
.wn-gallery-nav--next:hover {
    transform: translateY(-50%);
}




/* ======================================
   DESKTOP LIGHTBOX – większe foto, bez cropa
   ====================================== */
@media (min-width: 1024px) {

    /* całe wnętrze lightboxa */
    .wn-gallery-view--lightbox {
        flex: 1;
        padding: 24px 0 32px 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* rząd: strzałka | zdjęcie | strzałka */
    .wn-gallery-lightbox-main {
        flex: 1;
        min-height: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        justify-content: center;
        column-gap: 32px;
    }

    /* wrapper zdjęcia – praktycznie cała wysokość okna */
    .wn-gallery-lightbox-image-wrap {
        max-height: calc(100vh - 200px);          /* zapas na header + "wróć do galerii" + licznik */
        max-width: min(1400px, 100vw - 160px);    /* szeroko, ale z marginesem */
        height: 100%;
        margin: 0 auto;
        border-radius: 24px;
        overflow: hidden;
        background: transparent !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* samo zdjęcie – całe widoczne, pełne wykorzystanie wysokości */
    .wn-gallery-lightbox-image-wrap [data-wn-gallery-image],
    [data-wn-gallery-image] {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;            /* KLUCZ: zero cięcia w lightboxie */
        display: block;
    }

    /* strzałki zostają po bokach, bez animacji – tylko dopasowujemy rozmiar */
    .wn-gallery-nav {
        position: static;
        transform: none;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        font-size: 20px;
        animation: none !important;
        transition: background-color 0.15s ease;
    }

    .wn-gallery-nav:hover {
        background: rgba(0, 0, 0, 0.75);
        transform: none;
    }
}









/* =========================================
   Elementor Text Editor – responsywny tekst
   Klasa: .re-text-body
   desktop 24px / tablet 20px / mobile 16px
   ========================================= */

.re-text-body,
.re-text-body *{
  font-family: var(--re-font-base);
  font-weight: 400;
  line-height: 1; /* 100% */
}

.re-text-body{
  font-size: 24px; /* desktop default */
}

@media (max-width: 1024px){
  .re-text-body{ font-size: 20px; } /* tablet */
}

@media (max-width: 767px){
  .re-text-body{ font-size: 16px; } /* mobile */
}



/* TRUSTINDEX: typografia ratingu (przebija 14px !important) */
.ti-widget.ti-goog.ti-show-rating-text .wn-ti-summary.wn-ti-rating-text{
  font-family: var(--re-font-base) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  font-size: 24px !important;
	margin-bottom: 32px;
}

@media (max-width: 1024px){
  .ti-widget.ti-goog.ti-show-rating-text .wn-ti-summary.wn-ti-rating-text{
    font-size: 20px !important;
  }
}

@media (max-width: 767px){
  .ti-widget.ti-goog.ti-show-rating-text .wn-ti-summary.wn-ti-rating-text{
    font-size: 16px !important;
  }
}

/* Reset tylko rozmiaru/rodziny/line-height – BEZ font-weight na * */
.ti-widget.ti-goog.ti-show-rating-text .wn-ti-summary.wn-ti-rating-text .ti-rating-text,
.ti-widget.ti-goog.ti-show-rating-text .wn-ti-summary.wn-ti-rating-text .ti-rating-text *,
.ti-widget.ti-goog.ti-show-rating-text .wn-ti-summary.wn-ti-rating-text .ti-footer,
.ti-widget.ti-goog.ti-show-rating-text .wn-ti-summary.wn-ti-rating-text .ti-footer *{
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Normalny tekst */
.ti-widget.ti-goog.ti-show-rating-text .wn-ti-summary.wn-ti-rating-text .ti-rating-text span,
.ti-widget.ti-goog.ti-show-rating-text .wn-ti-summary.wn-ti-rating-text .ti-footer span{
  font-weight: 400 !important;
}

/* Pogrubienia: elementy owinięte w <strong> przez JS */
.ti-widget.ti-goog.ti-show-rating-text .wn-ti-summary.wn-ti-rating-text strong,
.ti-widget.ti-goog.ti-show-rating-text .wn-ti-summary.wn-ti-rating-text b{
  font-weight: 700 !important;
}
