@charset "UTF-8";
/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Template: twentytwentyfive
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Tags: one-column,custom-colors,custom-menu,custom-logo,editor-style,featured-images,full-site-editing,block-patterns,rtl-language-support,sticky-post,threaded-comments,translation-ready,wide-blocks,block-styles,style-variations,accessibility-ready,blog,portfolio,news
Version: 1.3.1763970419
Updated: 2025-11-24 08:46:59

*/
body {
  --wp--style--root--padding-right: 50px;
  --wp--style--root--padding-left: 50px;
}

@media (max-width: 499px) {
  body {
    --wp--style--root--padding-right: 15px;
    --wp--style--root--padding-left: 15px;
  }
}
.wpml-ls-legacy-list-horizontal {
  margin-left: 1rem !important;
}

.wpml-ls-link br {
  display: none;
}

.hero__bg {
  background-color: #000;
}

.newsletter__bg {
  background-color: #000;
}

.wp-block-social-links .wp-social-link svg {
  height: 2em;
  width: 2em;
}
.wp-block-social-links .wp-social-link.wp-social-link-wordpress svg {
  height: 2em;
  width: 2.8em;
}

.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
  height: 29px;
  width: 29px;
}

@media (width < 768px) {
  .menu-and-icons-wrapper {
    flex-direction: row-reverse !important;
  }
}

.btn-acf-strona-projektu {
  font-weight: 700;
}

.wp-block-navigation__responsive-container-open {
  margin-left: 1rem !important;
}

.about__item .wp-block-media-text__content p {
  margin: 0 !important;
}
@media (max-width: 768px) {
  .about__item .wp-block-media-text__media img {
    max-width: 3rem !important;
    height: auto !important;
  }
}
@media (max-width: 768px) {
  .about__item.wp-block-media-text {
    text-align: center !important;
  }
}

@media (max-width: 1380px) {
  .header__main-navigation {
    gap: 15px 15px !important;
  }
}
@media (max-width: 1250px) {
  .header__main-row {
    justify-content: center !important;
  }
  .header__main .wp-block-navigation__responsive-container-open {
    border: 2px solid #000;
    border-radius: 19px;
    vertical-align: middle;
    padding: 0.5rem;
  }
  .header__main .wp-block-navigation__responsive-container-open:after {
    line-height: 1;
    content: "MENU";
    margin-left: 0.2rem;
    margin-top: 0.45rem;
  }
  .hide-on-mobile {
    display: none !important;
  }
  .mobile-text-align-left {
    text-align: left !important;
  }
  .mobile-text-align-left .has-text-align-right {
    text-align: left !important;
  }
  :root :where(.wp-block-button .wp-block-button__link) {
    padding-right: 14px;
    padding-left: 14px;
  }
  .wp-block-navigation__responsive-container-open {
    margin-left: 0;
  }
  .wp-block-navigation .wp-block-navigation-item__content {
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  /* Ensure submenu displays as block */
  .wp-block-navigation .wp-block-navigation__submenu,
  .wp-block-navigation .sub-menu {
    width: 100%;
  }
}
.da-attachments-list {
  list-style-type: disc;
}
.da-attachments-list li {
  margin-bottom: 0.5rem;
}
.da-attachments-list li a {
  font-weight: 500;
}
.da-attachments-list li .attachment-size {
  font-size: 0.8em;
}
.da-attachments-list li .attachment-downloads {
  font-size: 0.8em;
}

.acf_banner {
  max-width: 100%;
  height: auto;
}

.acf-partnerzy .gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.acf-partnerzy .gallery figure, .acf-partnerzy .gallery img {
  height: 5rem;
  max-width: 100%;
  width: auto;
}

.wp-block-button__link {
  transition: 0.3s ease-in-out all;
}
.wp-block-button__link.has-accent-1-border-color:hover, .wp-block-button__link.has-accent-1-border-color:focus {
  border-color: #016baa !important;
}
.wp-block-button__link.has-accent-1-background-color img {
  transition: 0.3s ease-in-out all;
}
.wp-block-button__link.has-accent-1-background-color:hover, .wp-block-button__link.has-accent-1-background-color:focus {
  background-color: #016baa !important;
}
.wp-block-button__link.has-accent-1-background-color:hover img, .wp-block-button__link.has-accent-1-background-color:focus img {
  filter: invert(1);
}
.wp-block-button__link.has-contrast-color:hover, .wp-block-button__link.has-contrast-color:focus {
  color: #fff !important;
}

.mailpoet_submit {
  transition: 0.3s ease-in-out all;
  cursor: pointer;
}
.mailpoet_submit:hover, .mailpoet_submit:focus {
  background-color: #016baa !important;
  color: #fff !important;
}

.wp-block-button__link {
  transition: 0.3s ease-in-out all;
}
.wp-block-button__link.has-link-color img {
  transition: 0.3s ease-in-out all;
}
.wp-block-button__link.has-link-color:hover, .wp-block-button__link.has-link-color:focus {
  color: #fff !important;
  background-color: #016baa !important;
}
.wp-block-button.is-style-black-outline .wp-block-button__link {
  transition: 0.3s ease-in-out all;
}
.wp-block-button.is-style-black-outline .wp-block-button__link:hover, .wp-block-button.is-style-black-outline .wp-block-button__link:focus {
  color: #fff !important;
  background-color: #016baa !important;
}
.wp-block-button.is-style-black-outline .wp-block-button__link:hover img, .wp-block-button.is-style-black-outline .wp-block-button__link:focus img {
  filter: invert(1);
}

header.wp-block-template-part ul > li .wp-block-navigation-item__content {
  position: relative;
}
header.wp-block-template-part ul > li .wp-block-navigation-item__content:after {
  content: "";
  position: absolute;
  bottom: -0.8rem;
  left: 0;
  width: 0;
  height: 10px;
  background-color: #000;
  border-radius: 1rem;
  transition: 0.3s ease-in-out all;
}
header.wp-block-template-part ul > li .wp-block-navigation-item__content:hover, header.wp-block-template-part ul > li .wp-block-navigation-item__content:focus, header.wp-block-template-part ul > li .wp-block-navigation-item__content:active {
  outline: none !important;
  text-decoration: none;
}
header.wp-block-template-part ul > li .wp-block-navigation-item__content:hover:after, header.wp-block-template-part ul > li .wp-block-navigation-item__content:focus:after, header.wp-block-template-part ul > li .wp-block-navigation-item__content:active:after {
  width: 100%;
}
header.wp-block-template-part ul > li.current-menu-item {
  /* position: relative;
   &:after{
     content: "";
     position: absolute;
     bottom: -0.8rem;
     left: 0;
     width: 100%;
     height: 10px;
     background-color: #000;
     border-radius: 1rem;
     transition: 0.3s ease-in-out all;
   }*/
}

.wp-element-button img {
  margin-right: 10px;
}

.wp-block-button.is-style-black-outline .wp-block-button__link {
  background: transparent;
  color: #000;
  border: 2px solid #000;
  border-radius: 19px !important;
}

.wp-block-latest-posts.wp-block-latest-posts_list--big li:nth-of-type(1) {
  background-color: #fac440 !important;
}
.wp-block-latest-posts.wp-block-latest-posts_list--big li:nth-of-type(1):hover, .wp-block-latest-posts.wp-block-latest-posts_list--big li:nth-of-type(1):focus, .wp-block-latest-posts.wp-block-latest-posts_list--big li:nth-of-type(1):active {
  color: #fff !important;
  background-color: #016baa !important;
}
.wp-block-latest-posts.wp-block-latest-posts_list--big li:nth-of-type(1):hover a, .wp-block-latest-posts.wp-block-latest-posts_list--big li:nth-of-type(1):focus a, .wp-block-latest-posts.wp-block-latest-posts_list--big li:nth-of-type(1):active a {
  text-decoration: none;
  outline: none !important;
  box-shadow: none !important;
}
.wp-block-latest-posts__list li {
  margin: 1rem 0 !important;
  box-shadow: 0 3px 15.04px 0.96px rgba(0, 0, 0, 0.19);
  border-radius: 2rem;
  padding-bottom: 1rem;
  position: relative;
  transition: all 0.3s ease-in-out;
}
.wp-block-latest-posts__list li:hover, .wp-block-latest-posts__list li:focus, .wp-block-latest-posts__list li:active {
  color: #fff !important;
  background-color: #016baa !important;
}
.wp-block-latest-posts__list li:hover a, .wp-block-latest-posts__list li:focus a, .wp-block-latest-posts__list li:active a {
  text-decoration: none;
  outline: none !important;
  box-shadow: none !important;
}
.wp-block-latest-posts__list li a:hover, .wp-block-latest-posts__list li a:focus, .wp-block-latest-posts__list li a:active {
  text-decoration: none;
  outline: none !important;
  box-shadow: none !important;
}
.wp-block-latest-posts__list li a:focus-visible {
  outline: 3px solid #000 !important;
  border-radius: 1rem;
}
.wp-block-latest-posts__list li a,
.wp-block-latest-posts__list li time {
  padding: 0 1rem;
}
.wp-block-latest-posts__list li a {
  display: block;
  text-decoration: none;
}
.wp-block-latest-posts__list li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 2rem;
}
.wp-block-latest-posts__featured-image img, .wp-block-latest-posts__featured-image svg {
  aspect-ratio: 457/231;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  border-top-right-radius: 1rem;
  border-top-left-radius: 1rem;
  max-width: 100%;
}
.wp-block-latest-posts__post-date {
  font-weight: 300;
  font-size: clamp(1rem, 0.5rem + (1vw - 0.2rem) * 1.333, 1.3rem);
  margin-bottom: 0.3rem;
  margin-top: 0.4rem;
}

@media (min-width: 600px) {
  .wp-block-latest-posts_list--big.wp-block-latest-posts__list li a,
  .wp-block-latest-posts_list--big.wp-block-latest-posts__list li time {
    padding: 0 2rem;
  }
  .wp-block-latest-posts_list--big.wp-block-latest-posts.wp-block-latest-posts_list--big {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .wp-block-latest-posts_list--big.wp-block-latest-posts.wp-block-latest-posts_list--big.wp-block-latest-posts.columns-3 li {
    width: 100% !important;
  }
}
@media (min-width: 1024px) {
  .wp-block-latest-posts.wp-block-latest-posts_list--big {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .wp-block-latest-posts.wp-block-latest-posts_list--big li:nth-of-type(1) {
    grid-column: 1/span 2;
    grid-row: 1/span 2;
    background-color: #fac440;
  }
  .wp-block-latest-posts.wp-block-latest-posts_list--big li:nth-of-type(1) time {
    margin-top: 1rem;
  }
  .wp-block-latest-posts.wp-block-latest-posts_list--big li:nth-of-type(1) .wp-block-latest-posts__post-title {
    font-size: clamp(1.5rem, 0.5rem + (1vw - 0.2rem) * 1.333, 10.25rem) !important;
  }
}
.ttf-dates-wrap {
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 3px 15px 1px rgba(0, 0, 0, 0.19);
  margin-bottom: 3rem;
}

.ttf-events-carousel-wrapper {
  max-width: 1470px;
  margin: 30px auto;
  padding: 0 32px;
  font-family: inherit;
}

.splide { /* use Splide's default styles; no custom overrides */ }

#ttf-dates-splide {
  margin: 3rem;
}

/* Button */
.ttf-date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 1.1rem 1rem;
  margin: 10px auto;
  border-radius: 1rem;
  cursor: pointer;
  transition: 0.3s ease-in-out all;
}
.ttf-date-btn:hover, .ttf-date-btn:focus {
  background-color: #016baa !important;
  color: #fff !important;
}

.ttf-date-btn .ttf-date-day {
  background: transparent;
  padding: 0;
  font-weight: 800;
  font-size: 1rem;
}

.ttf-date-slide.has-events .ttf-date-day {
  color: #000;
}

/* Only slides that have events (li.has-events) will get yellow bg on the button */
.ttf-date-slide.has-events .ttf-date-btn {
  background: #fac440;
  color: #000;
  box-shadow: none;
}
.ttf-date-slide.has-events .ttf-date-btn:hover, .ttf-date-slide.has-events .ttf-date-btn:focus {
  background-color: #016baa !important;
  color: #fff !important;
}
.ttf-date-slide.has-events .ttf-date-btn:hover .ttf-date-day, .ttf-date-slide.has-events .ttf-date-btn:focus .ttf-date-day {
  color: #fff !important;
}

.ttf-date-slide.active .ttf-date-btn {
  outline: 3px solid #000;
  box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.14);
}

/* Highlight today's date with gray background; override yellow if both */
.ttf-date-slide.ttf-today .ttf-date-btn {
  background: #e6e6e6;
  color: #000;
}

.ttf-date-slide.ttf-today.has-events .ttf-date-btn {
  background: #e6e6e6 !important;
  color: #000;
}
.ttf-date-slide.ttf-today.has-events .ttf-date-btn:hover, .ttf-date-slide.ttf-today.has-events .ttf-date-btn:focus {
  background-color: #016baa !important;
  color: #fff !important;
}
.ttf-date-slide.ttf-today.has-events .ttf-date-btn:hover .ttf-date-day, .ttf-date-slide.ttf-today.has-events .ttf-date-btn:focus .ttf-date-day {
  color: #fff !important;
}

/* Slightly stronger focus outline for today's button */
.ttf-date-slide.ttf-today .ttf-date-btn:focus-visible {
  outline: 3px solid #555;
  outline-offset: 2px;
}

.ttf-featured {
  border-radius: 8px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  display: none;
}

.ttf-featured img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
  -o-object-fit: cover;
     object-fit: cover;
}

.ttf-featured .ttf-no-image {
  padding: 16px;
  color: #666;
}

.ttf-events-list {
  flex: 1;
  min-width: 0;
  padding-left: 0;
}

.ttf-events-list-inner {
  list-style: none;
  margin: 0;
  padding: 0;
  outline: none;
  overflow: auto;
  max-height: 660px;
  position: relative;
}
.ttf-events-list-inner--masked:after {
  content: "";
  height: 135px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background: #FFF;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgb(244, 244, 244) 89%);
}
.ttf-events-list-inner--masked.is-scrolled:after {
  display: none !important;
}

.ttf-event-item {
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
}

.ttf-event-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ttf-event-title {
  font-weight: 800;
  font-size: clamp(1.2rem, 0.5rem + (1vw - 0.2rem) * 1.333, 1.5rem);
  margin: 0.5rem 0 0.5rem;
}

.ttf-event-meta {
  font-size: 13px;
  color: #666;
}

.ttf-no-events {
  padding: 12px;
  color: #666;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  z-index: 15;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Icon and text inside no-events message */
.ttf-no-events__icon {
  display: inline-flex;
  flex: 0 0 3rem;
  width: 3rem;
  height: 3remx;
  align-items: center;
  justify-content: center;
  color: #000; /* svg uses currentColor */
}

.ttf-no-events__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ttf-no-events__text {
  flex: 1 1 auto;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #000;
  font-weight: 700;
}

/* Events list header */
.ttf-events-heading {
  font-size: clamp(1rem, 1rem + (1vw - 0.2rem) * 1.333, 2rem);
  margin: 0 0 12px;
  padding: 0;
  color: #111;
}

/* Event row: left date block + right content */
.ttf-event-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-direction: column;
}

.ttf-event-date {
  flex: 0 0 3rem;
  min-width: 3rem;
  text-align: center;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.ttf-event-date-day {
  display: inline-block;
  background: #fac440;
  color: #000;
  border-radius: 20px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: clamp(1rem, 0.5rem + (1vw - 0.2rem) * 1.333, 3rem);
  min-width: 44px;
}

.ttf-event-date-month {
  margin-top: 6px;
  font-size: 1.125rem;
  color: #000;
}

.ttf-event-date-year {
  margin-top: 4px;
  font-size: 1.125rem;
  color: #000;
}

.ttf-event-body {
  flex: 1;
  min-width: 0;
}

.ttf-event-excerpt {
  margin: 0;
  color: #000;
  font-size: 1.125rem;
  font-weight: 300;
}

/* Individual list item style */
.ttf-events-area {
  display: flex;
  gap: 18px;
  flex-flow: column wrap;
}

/* Featured area adjustments */
@media (width >= 768px) {
  .ttf-events-area {
    flex-direction: row;
  }
  .ttf-featured {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
/* Screen-reader only helper */
.ttf-sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Visible focus for keyboard users (WCAG) */
.ttf-date-btn:focus-visible {
  outline: 3px solid #222;
  outline-offset: 2px;
}

/* Ensure interactive elements have sufficient hit area */
.ttf-date-btn, .splide__arrow {
  touch-action: manipulation;
}

.ttf-events-carousel-wrapper .splide__arrow--prev {
  left: -2.5rem;
}

.ttf-events-carousel-wrapper .splide__arrow--next {
  right: -2.5rem;
}

@media (width >= 768px) {
  #ttf-dates-splide {
    margin: 0 3.8rem;
  }
  .ttf-events-carousel-wrapper .splide__arrow--prev {
    left: -3.1rem;
  }
  .ttf-events-carousel-wrapper .splide__arrow--next {
    right: -3.1rem;
  }
  .ttf-date-btn .ttf-date-day {
    font-size: 1.25rem;
  }
  .ttf-events-list {
    padding-left: 2rem;
  }
  .ttf-event-date {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    gap: 0;
    flex-direction: column;
    flex: 0 0 5rem;
    min-width: 5rem;
  }
  .ttf-event-row {
    display: flex;
    gap: 16px;
    flex-direction: row;
    align-items: flex-start;
    flex: 0 0 5rem;
    min-width: 5rem;
  }
  .ttf-event-title {
    margin: 1.5rem 0 1.5rem;
  }
}
.ttf-projekt-item {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  position: relative;
  background: #ced6cc;
  border-radius: 1rem;
  padding: 0.5rem 1.5rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 180px;
}
@media (min-width: 768px) {
  .ttf-projekt-item {
    min-height: 244px;
  }
}
.ttf-projekt-item:hover, .ttf-projekt-item:focus, .ttf-projekt-item:active {
  background: #ccc !important;
  box-shadow: 0 3px 15.04px 0.96px rgba(0, 0, 0, 0.19);
}
.ttf-projekt-title {
  font-weight: 500;
  font-size: clamp(1rem, 1rem + (1vw - 0.2rem) * 1.333, 1.5rem);
}
.ttf-projekt-link {
  color: #000;
  text-decoration: none;
  /* Limit displayed text to maximum 6 lines with ellipsis */
  line-height: 1.25; /* base line-height used to calculate max-height — adjust if needed */
  display: -webkit-box; /* needed for -webkit-line-clamp */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ttf-projekt-link::after {
  cursor: pointer;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ttf-projekty-list .ttf-projekty-list__item {
  margin-bottom: 0.7rem;
}
.ttf-projekty-list .ttf-projekty-list__link {
  text-decoration: none;
}
.ttf-projekty-list .ttf-projekty-list__link:hover, .ttf-projekty-list .ttf-projekty-list__link:focus, .ttf-projekty-list .ttf-projekty-list__link:active {
  text-decoration: underline;
}

.ttf-projekty-splide {
  position: relative;
  padding-bottom: 2rem;
  margin: 0 auto;
  padding-left: 4rem;
  padding-right: 4rem;
  overflow: hidden;
}
.ttf-projekty-splide .splide__pagination {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  bottom: 1rem;
}
.ttf-projekty-splide {
  /* Powiększone i czytelne kropki paginacji dla Splide (SCSS source) */
}
.ttf-projekty-splide .splide__pagination button, .ttf-projekty-splide .splide__pagination .splide__pagination__page {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  margin: 0 8px;
  border: none;
  display: inline-block;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.ttf-projekty-splide .splide__pagination .is-active, .ttf-projekty-splide .splide__pagination button.is-active, .ttf-projekty-splide .splide__pagination .splide__pagination__page.is-active {
  background: #000;
  transform: scale(1.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.ttf-projekty-splide .splide__pagination button:focus, .ttf-projekty-splide .splide__pagination .splide__pagination__page:focus {
  outline: 3px solid rgba(0, 0, 0, 0.12);
  outline-offset: 4px;
}
.ttf-projekty-splide .splide__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.ttf-projekty-splide .splide__arrow {
  pointer-events: auto;
  background: transparent;
  border: 0;
  color: inherit;
}
.ttf-projekty-splide .splide__arrow.splide__arrow--prev {
  left: 1rem;
}
.ttf-projekty-splide .splide__arrow.splide__arrow--next {
  right: 1rem;
}
.ttf-projekty-splide .splide__slide {
  padding: 0;
}
.ttf-projekty-splide .splide__slide:nth-of-type(2n+1) .ttf-projekt-item:nth-of-type(1) {
  background: #5fc2f7;
}
.ttf-projekty-splide .splide__slide:nth-of-type(2n+1) .ttf-projekt-item:nth-of-type(2) {
  background: #fac440;
}
.ttf-projekty-splide .splide__slide:nth-of-type(2n+2) .ttf-projekt-item:nth-of-type(1) {
  background: #ced6cc;
}
.ttf-projekty-splide .splide__slide:nth-of-type(2n+2) .ttf-projekt-item:nth-of-type(2) {
  background: #5fc2f7;
}
.ttf-projekty-splide .splide__slide:nth-of-type(2n+3) .ttf-projekt-item:nth-of-type(1) {
  background: #fac440;
}
.ttf-projekty-splide .splide__slide:nth-of-type(2n+3) .ttf-projekt-item:nth-of-type(2) {
  background: #66ecb8;
}
.ttf-projekty-splide .ttf-projekty-pair {
  width: 100%;
  height: 100%;
}

.projects__image img {
  width: auto !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  .ttf-projekty-splide .splide__arrows {
    display: flex;
  }
}
/* Modal root */
.ttf-social__modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.ttf-social__modal[aria-hidden=false] {
  display: block;
}

/* Overlay: czarno-żółty gradient z efektem kuli (radial) */
.ttf-social__modal__overlay {
  position: absolute;
  inset: 0;
  /* dwa radialne źródła "kuli" + ciemny gradient dla kontrastu */
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

/* Modal content */
.ttf-social__modal__content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.96));
  color: #111;
  max-width: 25rem;
  width: calc(100% - 2rem);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ttf-social__modal__wrap {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
}

.ttf-social__modal__content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.ttf-social__modal-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 3rem;
  height: 3rem;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #111;
  background-color: #f1f1f1;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Formularz wyszukiwania */
.ttf-social__search-form-wrap {
  margin-top: 0.5rem;
}
.ttf-social__search-form-wrap .search-form {
  display: flex;
  align-items: center;
}
.ttf-social__search-form-wrap br {
  display: none !important;
}

.ttf-search-field-wrap {
  display: flex;
  align-items: center;
  margin-top: 2em;
}

.ttf-social__search-form-wrap .search-field,
.ttf-social__search-form-wrap input[type=search],
.ttf-social__search-form-wrap input[type=text] {
  flex: 1 1 auto;
  padding: 1rem 1rem;
  font-size: 1rem;
  border: 1px solid #373737;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.01);
  transition: box-shadow 0.12s ease, transform 0.12s ease;
  background: #fff;
}

.ttf-social__search-form-wrap .search-field {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.ttf-social__search-form-wrap .search-submit {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
  text-transform: uppercase;
}

.ttf-social__search-form-wrap .search-field:focus,
.ttf-social__search-form-wrap input[type=search]:focus {
  outline: none;
  border-color: rgba(11, 102, 195, 0.85);
}

.ttf-social__search-form-wrap .search-submit,
.ttf-social__search-form-wrap input[type=submit] {
  background: linear-gradient(180deg, #ffd54a, #f7b800);
  color: #111;
  border: 1px solid #111;
  padding: 1rem 1rem;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(250, 196, 64, 0.16);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ttf-social__search-form-wrap .search-submit {
  padding: 1.1rem 1rem;
}

.ttf-social__search-form-wrap .search-submit:focus,
.ttf-social__search-form-wrap input[type=submit]:focus {
  outline: 3px solid rgba(11, 102, 195, 0.14);
  outline-offset: 2px;
}

/* Małe ekrany */
@media (max-width: 600px) {
  .ttf-social__modal__wrap {
    padding: 1rem;
  }
  .ttf-social {
    margin-left: 0 !important;
  }
  .ttf-social__list {
    flex-wrap: wrap;
  }
}
@media (max-width: 340px) {
  .ttf-social__search-form-wrap .search-field,
  .ttf-social__search-form-wrap input[type=search],
  .ttf-social__search-form-wrap input[type=text] {
    padding: 1rem 0.3rem;
  }
  .ttf-social__search-form-wrap .search-submit {
    padding: 1.1rem 0.2rem;
  }
}
/* Helper: sr-only (if not present elsewhere) */
.ttf-sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* -----------------------------
   Social list (used in shortcode)
   ----------------------------- */
.ttf-sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Block root */
.ttf-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}
@media (width >= 768px) {
  .ttf-social {
    margin-left: 2rem !important;
  }
}
@media (width >= 768px) {
  .ttf-social--footer {
    margin-left: 0 !important;
  }
}

/* Elements */
.ttf-social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #000;
  justify-content: center;
}

.ttf-social__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-items: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
  text-decoration: none;
  color: #000;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.ttf-social__item a {
  min-height: 24px;
  min-width: 24px;
  display: flex;
  justify-items: center;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ttf-social__item img {
  display: block;
  width: auto;
  height: 1.2rem;
}
.ttf-social__item--ue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ttf-social__item--ue img {
  width: 3rem;
  height: auto;
}
.ttf-social__item--bip img {
  width: 3.5rem;
  height: auto;
}
.ttf-social__item:hover, .ttf-social__item:focus {
  transform: translateY(-3px);
}

.ttf-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* UE logo — większe */
/* Search icon button in the list (opens modal) */
.ttf-social__search-btn {
  background: transparent;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Footer variant: smaller, compact */
.ttf-social--footer .ttf-social__list {
  gap: 0.5rem;
  align-items: center;
}
.ttf-social--footer .ttf-social__item {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-items: center;
}
.ttf-social--footer .ttf-social__item a {
  min-height: 24px;
  min-width: 24px;
  display: flex;
  justify-items: center;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ttf-social--footer .ttf-social__item img {
  height: 1.2rem;
}

/* Responsive: keep list visible on mobile like desktop */
@media (max-width: 600px) {
  .ttf-social--footer {
    margin-left: 0 !important;
  }
  .ttf-social {
    gap: 0.4rem;
  }
  .ttf-social__list {
    gap: 0.4rem;
  }
}
.mailpoet_form .mailpoet_text_label {
  margin-bottom: 0.7rem;
}
.mailpoet_form .parsley-errors-list {
  background-color: #fff;
  padding: 1rem;
  border-radius: 1rem;
}

.ttf-gallery {
  margin: 2rem 0;
}
.ttf-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 100%;
}
.ttf-gallery__item {
  overflow: hidden;
  position: relative;
}
.ttf-gallery__item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.ttf-gallery__item a:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}
.ttf-gallery__item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.ttf-gallery__item a:hover img {
  transform: scale(1.05);
}
.ttf-gallery__item--large {
  grid-column: 1/-1;
  grid-row: 1/3;
  aspect-ratio: 16/9;
}
@media (max-width: 768px) {
  .ttf-gallery__item--large {
    aspect-ratio: 4/3;
  }
}
.ttf-gallery__item--thumb {
  aspect-ratio: 1/1;
}
@media (max-width: 768px) {
  .ttf-gallery__item--thumb {
    aspect-ratio: 4/3;
  }
}
.ttf-gallery__item--more {
  position: relative;
}
.ttf-gallery__item--more a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  transition: background 0.3s ease;
}
.ttf-gallery__item--more a:hover::after {
  background: rgba(0, 0, 0, 0.7);
}
.ttf-gallery__more-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .ttf-gallery__more-overlay {
    font-size: 1rem;
  }
}
.ttf-gallery__thumbnails {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .ttf-gallery__thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ttf-gallery__hidden {
  display: none;
}

.ttf-gallery-pagination {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  z-index: 999999;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .ttf-gallery-pagination {
    bottom: 60px;
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

@media (max-width: 768px) {
  .ttf-gallery__grid {
    gap: 8px;
  }
  .ttf-gallery__item a {
    border-radius: 8px;
  }
  .ttf-gallery__item img {
    border-radius: 8px;
  }
  .ttf-gallery__item--more a::after {
    border-radius: 8px;
  }
  .ttf-gallery__thumbnails {
    gap: 8px;
  }
}
.ttf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (max-width: 768px) {
  .footer__logos .is-layout-flow > .aligncenter {
    margin-left: 0;
    margin-right: 0;
  }
  .footer__logos {
    display: flex;
    gap: 15px;
  }
}

@media print {
  .header__main, .dontprint {
    display: none !important;
  }
}
