/* ===== Bajka Klub v3 – wygląd odtworzony na podstawie wartości z oryginalnego motywu =====
   Własny kod. Czcionka: Roboto (tak jak w ustawieniach starej strony), tekst 18px, menu 14px. */

:root {
  --bg: #f2f2f2;
  --line: #d9d9d9;
  --font: 'Roboto', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 22px;
  font-weight: 400;
  color: #000;
  background: var(--bg);
  overflow-x: hidden;
}
body, button, input, select, textarea { font-family: var(--font); }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: #000; text-decoration: none; outline: none; cursor: pointer; }
a:hover, a:focus { text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 22px; }
p { margin: 0 0 10px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; position: relative; }
.container.wide { max-width: 1368px; }
.text-left { text-align: left; }

/* ---------- Nagłówek ---------- */
.header-container { position: relative; z-index: 10; }
body.no-banner .header-container { min-height: 78px; }
#header { position: relative; z-index: 10000; width: 100%; min-height: 78px; }

/* strona główna: nagłówek nałożony na zdjęcie */
#header.header_frontpage {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
  border-top: 1px solid rgba(255, 255, 255, .2);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
/* podstrony: jasny nagłówek w normalnym układzie */
#header.no-banner { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); }
/* po przewinięciu */
#header.stick {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--bg) !important;
  border: 0; border-bottom: 1px solid var(--line);
}
body.admin-bar #header.stick { top: 32px; }

.header-inner { display: flex; align-items: flex-start; justify-content: space-between; min-height: 78px; }
.logo { display: block; padding: 20px 0 0; opacity: .8; }
.logo img { max-height: 40px; width: auto; }
.logo-text { font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: 1px; line-height: 38px; display: block; color: #fff; }
#header.stick .logo-text, #header.no-banner .logo-text { color: #000; }

/* dwa logo: jasne (nad zdjęciem) i ciemne (po przewinięciu / na podstronach) */
.logo-standar.logo-stick { display: none; }
#header.stick .logo-standar, #header.no-banner .logo-standar { display: none; }
#header.stick .logo-standar.logo-stick, #header.no-banner .logo-standar.logo-stick { display: block; }

#primary-nav { margin-left: auto; margin-right: 185px; text-align: right; }
.primary-menu { display: flex; flex-wrap: nowrap; font-size: 14px; font-weight: 400; }
.primary-menu li { position: relative; text-align: left; border-right: 1px solid var(--line); margin-left: -5px; }
.primary-menu li:first-child { border-left: 1px solid var(--line); margin-left: 0; }
.primary-menu a {
  display: block; position: relative; z-index: 1;
  padding: 29px 27px 27px;
  color: #000;
  transition: all .45s linear;
}
#header.header_frontpage:not(.stick) .primary-menu li { border-color: rgba(255, 255, 255, .2); }
#header.header_frontpage:not(.stick) .primary-menu a { color: #fff; }

.primary-menu a:hover,
.primary-menu li:hover > a,
.primary-menu li.current-menu-item > a,
.primary-menu li.current_page_item > a,
.primary-menu li.current-menu-ancestor > a,
#header.header_frontpage:not(.stick) .primary-menu a:hover,
#header.header_frontpage:not(.stick) .primary-menu li:hover > a,
#header.header_frontpage:not(.stick) .primary-menu li.current-menu-item > a {
  background: #000;
  color: #fff;
}

/* podmenu */
.primary-menu ul { display: none; position: absolute; top: 100%; left: 0; z-index: 99999; width: 210px; background: #292929; }
.primary-menu li:hover > ul { display: block; }
.primary-menu ul li { display: block; border: 0 !important; margin: 0; border-bottom: 1px solid #555 !important; }
.primary-menu ul li:last-child { border-bottom: 0 !important; }
.primary-menu ul a { padding: 20px 15px; color: rgba(255, 255, 255, .8) !important; }
.primary-menu ul a:hover { background: #000; }

/* wyszukiwarka (pigułka po prawej) */
.sticky-search { position: absolute; right: 15px; top: 24px; width: 32px; z-index: 2; opacity: .7; margin: 0; transition: all .5s ease; }
.sticky-search input {
  float: right; height: 30px; max-width: 85px; padding: 0 28px 0 15px; margin: 0;
  border: none; border-radius: 50px; opacity: .7; font: inherit; font-size: 14px; color: #333;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round'><circle cx='10' cy='10' r='7'/><path d='M21 21l-6-6'/></svg>") no-repeat right 8px center;
  transition: all .5s ease;
}
.sticky-search input:focus { border: 1px solid #dfdfdf; width: 160px; max-width: 160px; outline: none; }

#toggle-menu { display: none; background: none; border: 0; cursor: pointer; padding: 28px 0 0; width: 44px; }
#toggle-menu span { display: block; width: 30px; border-top: 3px solid #fff; border-bottom: 10px double #fff; }
#header.stick #toggle-menu span, #header.no-banner #toggle-menu span { border-color: #000; }

/* ---------- Zdjęcie główne ---------- */
#slider-wrapper { padding: 0; }
.hero {
  width: 100%; height: 660px;
  background-color: #222;
  background-position: center center; background-size: cover; background-repeat: no-repeat;
}

/* ---------- Pionowe napisy z boku (przy lewej krawędzi ekranu) ---------- */
.about-container { position: relative; }
.b-about-social {
  position: absolute; z-index: 100; left: 24px; top: 60px; font-size: 13px; opacity: .8;
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
}
.b-about-social ul { display: flex; flex-direction: row-reverse; gap: 14px; margin: 0; padding: 0; list-style: none; }
.b-about-social a { color: #000; text-decoration: underline; }
.b-about-social a:hover { opacity: .6; }

/* ---------- Bloki ---------- */
.b-section { padding-top: 97px; position: relative; }
.b-title { text-transform: uppercase; font-weight: 700; }
.beau-heading, .home-item > .b-title { font-size: 35px; text-align: center; line-height: 28px; margin-bottom: 42px; }
.beau-heading { line-height: 27px; padding-top: 97px; }
.home-item { max-width: 1068px; margin: 0 auto; padding-bottom: 130px; overflow: hidden; position: relative; }

/* O klubie */
.beau-testimonial.bg-testimonial {
  background-position: center; background-repeat: repeat-x; background-size: cover; background-color: #222;
}
.bg-testimonial blockquote {
  position: relative; margin: 0; padding: 170px 0 140px; border: 0;
  text-align: center; color: #fff; background: none; font-style: italic;
  font-size: 30px; line-height: 36px; font-weight: 300;
}
.bg-testimonial blockquote::before {
  content: '\201C'; display: block; width: 60px; height: 40px; margin: 0 auto;
  font-size: 110px; line-height: 80px; text-align: center; font-family: Georgia, serif;
  box-sizing: content-box; padding-bottom: 15px; font-style: normal;
}
.bg-testimonial blockquote p {
  box-sizing: content-box; max-width: 747px; margin: 0 auto; padding: 0 152px 65px;
  line-height: 1.25; font-size: 30px;
}
.bg-testimonial blockquote strong { font-weight: 300; }

/* Imprezy – kafelki */
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 33px 20px; }
.event-card { position: relative; }
.event-link { display: block; transition: opacity .25s linear; }
.event-link:hover { opacity: .8; }
.event-card .post-thumb { margin-bottom: 26px; background: #ddd; }
.event-card .post-thumb img { width: 100%; display: block; }
.event-noimage { aspect-ratio: 4 / 5; background: #000; }
.schedule-datetime { font-size: 18px; opacity: .7; margin-top: 25px; }
.event-card .schedule-datetime { margin-top: 0; }
.schedule-datetime .month { font-size: 50px; line-height: 50px; }
.event-card h2.b-title { margin: 10px 0 15px; font-size: 18px; line-height: 22px; }
.event-card .time, .event-card .location, .event-meta .time, .event-meta .location { opacity: .5; font-size: 14px; }
.event-card .location { margin-top: 2px; }

/* Galeria */
.gallery-menu { display: flex; justify-content: center; margin: 0 0 35px; padding: 0; }
.gallery-menu li:not(:first-child)::before { content: '/'; color: #666; }
.gallery-menu li a { display: inline-block; padding: 10px 25px; color: #666; }
.gallery-menu li.active a, .gallery-menu li a:hover { color: #000; }

.grid-4, .grid-3 { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid { position: relative; overflow: hidden; cursor: pointer; display: block; padding: 0; background: #1a1a1a; }
.post-thumb { position: relative; overflow: hidden; }
.grid .post-thumb { aspect-ratio: 4 / 3; }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.grid:hover img { transform: scale(1.06); }
/* podpis zawsze widoczny na dole kafla, spójny w całej siatce */
.gallery-inner {
  position: absolute; left: 0; right: 0; bottom: 0; box-sizing: border-box;
  padding: 48px 18px 16px; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
  transition: padding .3s ease;
}
.grid:hover .gallery-inner { padding-bottom: 22px; }
.gallery-inner .b-title { font-size: 16px; line-height: 20px; text-transform: none; font-weight: 500; margin: 0; padding: 0; color: #fff; }
.b-position { font-size: 12px; font-style: italic; opacity: .5; margin-bottom: 8px; }
.gallery-inner .b-position { font-style: normal; margin: 0 0 4px; opacity: .8; padding: 0; letter-spacing: .5px; }

/* Film */
.ss-gallery-video { overflow: hidden; padding: 0; margin: 0; line-height: 6px; display: block; }
.ss-gallery-video .video-wrap { position: relative; width: 100%; padding-bottom: 56.25%; max-height: 90vh; }
.ss-gallery-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Kontakt */
.contact-block { max-width: 1068px; margin: 0 auto; padding: 40px 15px 0; }
.contact-block .contact-col { width: 33.33%; min-width: 260px; }
.contact-block a { text-decoration: underline; }

/* Partnerzy */
.partners { display: flex; flex-wrap: wrap; justify-content: center; }
.partner-item { width: 16.66%; max-width: 178px; margin-bottom: 20px; opacity: .7; transition: all .25s linear; }
.partner-item:hover { opacity: 1; }
.partner-item .post-thumb { padding: 0 20px; }
.partner-item img { width: 100%; }

/* ---------- Strony wewnętrzne ---------- */
.page-content { padding: 0 0 80px; }
.page-content .container { max-width: 1068px; }
.page-content .container.wide { max-width: 1368px; }
.page-content .entry-title {
  font-size: 35px; font-weight: 700; text-align: center; text-transform: uppercase;
  line-height: 40px; margin: 0 auto 22px; padding-top: 97px;
}
.entry-content { max-width: 1068px; margin: 0 auto; }
.entry-content p { margin: 0 0 20px; }
.entry-content img { margin: 0 auto 20px; }
.entry-content a { text-decoration: underline; }
.entry-content iframe { max-width: 100%; }

.event-single .event-meta { text-align: center; margin-bottom: 30px; }
.event-single .event-meta > span { display: inline-block; margin: 0 15px; }
.event-image { max-width: 695px; margin: 0 auto 30px; }
.event-djs { text-align: center; margin-top: 30px; }

.djs-list { max-width: 1068px; margin: 0 auto; }
.dj-card { display: flex; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.dj-card:last-child { border-bottom: 0; }
.dj-photo { flex: 0 0 33%; }
.dj-info { flex: 1; }
.dj-info .b-title { font-size: 28px; line-height: 32px; margin-bottom: 8px; }
.dj-info .b-position { margin-bottom: 20px; }
.dj-bio p { margin: 0 0 15px; }
.dj-fb { text-decoration: underline; }
.dj-single .entry-title { padding-top: 0; text-align: left; }

/* ---------- Stopka ---------- */
#footer { background: #000; font-size: 14px; position: relative; }
#copyright-wrapper { font-size: 12px; padding: 15px 0; color: rgba(255, 255, 255, .6); text-align: right; }
#copyright-wrapper a { color: rgba(255, 255, 255, .3); }

/* ---------- Przewiń do góry ---------- */
.scrollTop { position: fixed; bottom: 55px; right: 15px; display: none; z-index: 90; }
.scrollTop.show { display: block; }
.scrollTop a { display: block; width: 40px; height: 40px; background: #d3d3d9; text-indent: -9999px; position: relative; overflow: hidden; }
.scrollTop a::after { content: ''; position: absolute; left: 14px; top: 17px; width: 10px; height: 10px; border-left: 2px solid #333; border-top: 2px solid #333; transform: rotate(45deg); }

/* ---------- Okno albumu ---------- */
#lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .8); overflow-y: auto; padding: 5vh 15px; }
#lightbox[hidden] { display: none; }
.lb-box { position: relative; max-width: 1068px; margin: 0 auto; background: #fff; padding: 25px; display: flex; flex-wrap: wrap; }
.lb-main { position: relative; flex: 1 1 75%; min-width: 0; padding: 55px; display: flex; align-items: center; justify-content: center; }
.lb-main img { max-width: 100%; max-height: 70vh; width: auto; }
.lb-side { flex: 0 0 25%; padding: 55px 20px; }
.lb-side .b-title { text-transform: none; font-weight: 400; font-size: 18px; line-height: 22px; margin-top: 8px; }
.lb-side .b-position { font-style: normal; }
.lb-caption { font-size: 35px; opacity: .7; margin-top: 40px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.lb-close { position: absolute; top: 6px; right: 12px; background: none; border: 0; font-size: 34px; line-height: 1; cursor: pointer; color: #000; opacity: .6; }
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .8); border: 0; width: 36px; height: 56px; font-size: 38px; line-height: 1; cursor: pointer; color: #000; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }

/* ---------- WordPress ---------- */
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 10px; }

/* ---------- Responsywność (progi jak w oryginale) ---------- */
@media (max-width: 1300px) { .sticky-search { display: none; } #primary-nav { margin-right: 0; } }
@media (max-width: 1199px) { .hero { height: 55vw; } .b-about-social { display: none; } }

@media (max-width: 1024px) {
  .bg-testimonial blockquote { padding: 40px 20px; }
  .bg-testimonial blockquote p { padding: 0 20px 30px; font-size: 24px; max-width: 100%; }
  .events-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 979px) {
  #header, body.no-banner .header-container { min-height: 70px; }
  #toggle-menu { display: block; margin-left: auto; padding-top: 25px; }
  #primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #d9d9d9; margin: 0; z-index: 99999; box-shadow: 0 8px 12px rgba(0,0,0,.15); }
  #primary-nav.open { display: block; }
  .primary-menu { flex-direction: column; }
  .primary-menu li, .primary-menu li:first-child { border: 0 !important; border-bottom: 1px solid #fff !important; margin: 0; }
  .primary-menu a, #header.header_frontpage:not(.stick) .primary-menu a { padding: 14px 20px; color: #000; }
  .primary-menu ul { position: static; display: block; width: auto; background: transparent; }
  .primary-menu ul a { color: #333 !important; padding-left: 40px; }
  .b-about-social { display: none; }
  .hero { height: 64vw; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 769px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-item { width: 48%; max-width: 48%; margin-left: 2%; }
  .home-item { padding-bottom: 60px; }
  .beau-heading, .home-item > .b-title { font-size: 28px; }
  .hero { height: 70vw; min-height: 260px; }
  .lb-side { flex: 1 1 100%; padding: 10px 20px 20px; }
  .lb-main { flex: 1 1 100%; padding: 20px 0; }
  .lb-caption { display: none; }
  .dj-card { flex-direction: column; gap: 20px; }
  .dj-photo { flex: none; width: 100%; max-width: 360px; }
  .contact-block .contact-col { width: 100%; }
}

@media (max-width: 480px) {
  .events-grid { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-inner { padding: 30px 10px 10px; }
  .gallery-inner .b-title { font-size: 13px; line-height: 16px; }
  .gallery-inner .b-position { font-size: 11px; }
  .bg-testimonial blockquote p { font-size: 20px; }
}

/* ---------- Obrazy w treści podstron (odstęp od tekstu) ---------- */
.entry-content img, .page-content .entry-content figure img { display: block; margin: 25px auto; max-width: 100%; height: auto; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content p img { margin: 25px auto; }

/* ---------- Wyniki wyszukiwania ---------- */
.search-results-list { list-style: none; margin: 30px 0; padding: 0; }
.search-results-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-results-list .sr-type { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #888; }
.search-results-list .sr-title { font-size: 22px; font-weight: 700; }
.search-results-list p { margin: 6px 0 0; color: #555; }

/* ---------- Podstrona Video ---------- */
.video-intro { text-align: center; max-width: 760px; margin: 0 auto 30px; color: #555; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 40px 0 20px; }
.video-item { min-width: 0; }
.video-frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; overflow: hidden;
}
.video-frame::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); transition: background .3s; }
.video-frame:hover::after { background: rgba(0,0,0,.05); }
.video-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(0,0,0,.75); border: 2px solid #fff; transition: transform .3s;
}
.video-play::before {
  content: ""; position: absolute; left: 25px; top: 19px;
  border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.video-frame:hover .video-play { transform: scale(1.1); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.video-link { display: block; margin-top: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #666; }
.video-link:hover { color: #000; }
.video-more { text-align: center; margin: 30px 0 10px; }
.video-btn { display: inline-block; padding: 14px 30px; background: #000; color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.video-btn:hover { background: #333; color: #fff; }
/* osadzone filmy w zwykłych podstronach */
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-embed__wrapper, .entry-content .wp-has-aspect-ratio { position: relative; }
@media (max-width: 979px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

/* social w stopce */
#copyright-wrapper .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
#copyright-wrapper .footer-social a { color: rgba(255,255,255,.7); margin-right: 18px; text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
#copyright-wrapper .footer-social a:hover { color: #fff; }
