body {
	margin-bottom: 0 !important;
}

.front-menu-wrapper {
	border-bottom: solid 18px brown;
	border-image: linear-gradient(
90deg, rgb(23, 19, 18) 50%, rgb(157, 106, 59) 50% ) 9;
	/* overflow: hidden; */
	display: grid;
	grid-template-columns: 100% 2fr;
	justify-items: right;
}

.front-menu-column {
	display: grid;
}

.front-menu-group  {
	float: right;
	background-color: rgba(255, 255, 255, 0.3);
	height: 100%;
	right: 0;
	top: 0;
	grid-area: 1 / 1 / 1 / 1;
	z-index: 1;
}

#bs-navbarNav, #bs-pageNavbarNav {
	font-family: Open Sans;
	line-height: 3rem;
	text-align: center;
	margin: auto;
}

.front-menu-group .front-page-nav li {
	list-style: none;
}

.front-menu-group .front-page-nav a {
	text-decoration: none;
	color: #17293A;
}

.front-menu a:hover {
	background-color: #C4C4C4;
}

.front-menu ul, ol {
	margin: 0 auto !important;
}

.front-menu li:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

var {
	font-family: Dosis;
}

.entry-content {
	margin-top: 0 !important;
}

/* ------------------------------------------------------------------- MOJE ZMIANY --------------------------------------------------------*/

/*-------------------------------------- MENU ----------------------------------*/

.sticky-container.scrolled {
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.8);
}
.sticky-container {
  position: sticky;
  width: 100%;
  z-index: 1000; 
  top: 0;
}

.sticky-container.scrolled {
  background-color: #fff;
  color: black;
}

.dropdown-menu li a:hover {
	background-color: #3E3D3D !important;
	color: white;
}

.collapse .navbar-nav .dropdown-menu li a:hover {
	background-color: #3E3D3D !important;
	color: white;
}


/*------ SUBPAGE MENU --------*/

.subpages-menu-class .nav-item-static {
	color: black;
}

/* Mega Menu Styles */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 0 .375rem .375rem;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu .list-group-item {
  border: 0;
  padding: .5rem 1rem;
}

.dropdown-menu .list-group-item-action {
  padding: .5rem 1rem;
}

/* Mega Menu Container */
.dropdown-menu .container {
  width: 100%;
}

.dropdown-menu .row {
  margin: 0;
}

.dropdown-menu .col-md-6 {
  padding: 0;
}

.dropdown-menu .list-group-item.text-uppercase {
  font-weight: bold;
}

.nav-item .dropdown{
  position: relative;
}

.menu-item-type-custom {
  padding: 10px;
  list-style: none;
}

.menu-item-type-post_type {
  padding: 5px;
  list-style: none;
}

.about-us-container {
  max-width: 700px !important;
}

.mega-menu-wrapper {
  margin: auto;
  max-width: 1000px;
}

/*-------------------------------ZMIANA MENU--------------------------------------------*/
.navbar-nav {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
}

.underline {
  width: 80%;
  height: 1px;
  background-color: black;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  margin-left: 0;
}

a:visited  {
  color: black ;
}

.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap !important;
}

@media (max-width: 752px) {
  /* .menu-container {
    display: none !important;
  } */
  .custom-logo-link {
    display: none !important;
  }
}


.collapse  ul {
  margin: 0 !important;
}
/*------------------------------- ABOUT US ----------------------------*/
.about-us-menu {
  width: 550px;
  top: 100%;
  left: 0;
  position: absolute;
}

.about-us-title {
  font-weight: bold;
  padding: 0.5rem 1rem;
  padding-bottom: 0 !important;
}

/*--------------------------------- OUR MISSION ----------------------*/

.our-mission-menu {
  width: 960px;      
  top: 100%;
  left: 0;
  position: absolute;
}

.our-mission-title {
  font-weight: bold;
  padding: 0.5rem 1rem;
  padding-bottom: 0 !important;
}

/*----------------------------------- Vocation ------------------------*/
.vocation-menu {
  width: 450px;
  top: 100%;
  left: 0;
  position: absolute;
}

.vocation-title {
  font-weight: bold;
  padding: 0.5rem 1rem;
  padding-bottom: 0 !important;
}

/*--------------------------------------- SUPPORT US ------------------------*/
.support-us-menu {
  width: 250px;
  top: 100%;
  left: 0;
  position: absolute;
}

.support-us-title {
  font-weight: bold;
  padding: 0.5rem 1rem;
  padding-bottom: 0 !important;
}

/*---------------------------------------- MEDIA -----------------------------*/
.media-menu {
  width: 450px;
  top: 100%;
  left: 0;
  position: absolute;
}

.media-title {
  font-weight: bold;
  padding: 0.5rem 1rem;
  padding-bottom: 0 !important;
}

/*------------------------------------------ Necrology ----------------------*/
.necrology-menu {
  width: 250px;
  top: 100%;
  left: 0;
  position: absolute;
}

.necrology-title {
  font-weight: bold;
  padding: 0.5rem 1rem;
  padding-bottom: 0 !important;
}

/*-------------------------------------- LIBRARIES ---------------------------*/
.libraries-menu {
  width: 250px;
  top: 100%;
  left: 0;
  position: absolute;
}

.libraries-title {
  font-weight: bold;
  padding: 0.5rem 1rem;
  padding-bottom: 0 !important;
}

/*--------------------------------------- CALENDARS -------------------------*/
.calendars-menu {
  width: 250px;
  top: 100%;
  left: 0;
  position: absolute;
}

.calendars-title {
  font-weight: bold;
  padding: 0.5rem 1rem;
  padding-bottom: 0 !important;
}






/*-------------------------------------- MULTILEVEL HAMBURGER MENU --------------------------------*/
.dropdown-submenu-main {
  position: relative;
}

.dropdown-submenu-main > a:after {
  content: "\f0da";
  float: right;
  border: none;
  font-family: 'FontAwesome';
}

.dropdown-submenu-main > .dropdown-level2 {
  top: 0;
  left: 100%;
  margin-top: 0px;
  margin-left: 0px;
}

code {
  color: #B06AB3;
  background: #fff;
  padding: 0.1rem 0.2rem;
  border-radius: 0.2rem;
}


@media (min-width: 753px) {
  .menu-hamburger1b {
    display: none !important;
  }
}



/* Stylizacja Sticky Menu */
.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sticky-container {
  background-color: white;
}

.d-none {
  display: none !important;
}

.d-lg-block {
  display: block !important;
}

/* Hamburger Menu */
.navbar-toggler {
  border-color: transparent;
}

.dropdown-level1,
.dropdown-level2 {
  background-color: white;
  border-radius: 0.25rem;
}

/* Responsive */
/* @media (min-width: 991px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 991px) {
  .sticky-container {
    display: none;
  }
} */

.dropdown-level1,
.dropdown-level2 {
  display: none;
  position: absolute;
  z-index: 1000;
}

/* Pokaż menu rozwijane na hover lub kliknięcie */
.dropdown-main:hover > .dropdown-level1,
.dropdown-submenu-main:hover > .dropdown-level2 {
  display: block;
}


/* Stylizacja ikony hamburgera */
.navbar-toggler {
  border: none; 
}

.navbar-toggler .navbar-toggler-icon {
  color: black;
}

.navbar-toggler:focus {
  outline: none;
}


/* Stylizacja ikony hamburgera */
.navbar-toggler {
  border: none; 
}

.navbar-toggler .navbar-toggler-icon {
  background-color: transparent;
  border: none; 
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  content: "";
  display: block;
  width: 30px; 
  height: 3px; 
  background-color: black !important; 
  margin: 6px 0; 
}

.navbar-toggler.collapsed .navbar-toggler-icon::before,
.navbar-toggler.collapsed .navbar-toggler-icon::after {
  background-color: black !important; 
}


/*-------------------------------------- HEADER --------------------------------*/


/*----------------- reveal -----------------*/
.reveal {
	position: relative;
	transform: translateY(150px);
	opacity: 0;
	transition: all 2s ease;
}
  

.reveal.active {
	transform: translateY(0px);
	opacity: 1;
}



/*--------------------------------------- LATEST NEWS -----------------------------------------*/

.container-title {
  max-width: 200px;
  max-height: 40px;
  margin-bottom: -17px;
  margin-top: 100px;
  padding: 5px 2%;
}

.latests-container {
  max-width: 1400px;
  margin: 0 auto;
}

.separator-linia {
  max-width: 80%;
}

.aktualnosci-container {
  /*max-width: 1400px;*/
  margin: 0 auto;
}
.row {
  max-width: 1400px;
  margin: 0 auto !important;
  display: flex;
  flex-wrap: wrap;
}

.latest-news-grid .post-thumbnail {
  overflow: hidden; 
}

.latest-news-grid .post-thumbnail img {
  display: block;
  width: 100%; 
  height: auto;
  transition: transform 0.3s ease;
}

.latest-news-grid .post {
  position: relative;
  transition: transform 0.3s ease; 
}

.latest-news-grid .post:hover {
  transform: scale(1.05);
}

.small-post:hover img {
  transform: scale(1.1);
}

.big-post:hover img {
  transform: scale(1.1);
}

.latest-news-grid .big-post,
.latest-news-grid .small-post {
  position: relative; 
}

.latest-news-grid .big-post .post-title-overlay-wrapper,
.latest-news-grid .small-post .post-title-overlay-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: linear-gradient(1deg, #2e2c2c, transparent);
  width: 100%;
  height: 100%;
}

.latest-news-grid .big-post .post-title-overlay,
.latest-news-grid .small-post .post-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  width: 100%;
  height: 50%;
}

.latest-news-grid .big-post .post-title-overlay h3,
.latest-news-grid .small-post .post-title-overlay h4 {
  margin: 0;
  font-size: 1rem; 
  color: #fff;
}

.latest-news-grid .big-post .post-title-overlay .post-date,
.latest-news-grid .small-post .post-title-overlay .post-date {
    font-size: 0.6rem;
    color: #adadad;
}

/* Flexbox layout for small screens */
@media (max-width: 767px) {  /* Zmienione z 929px na 767px */
  .latest-news-grid .col-md-6 {
    width: 100%;
    margin-bottom: 20px;
  }

  .latest-news-grid .col-md-3 {
    width: 100%; /* Pełna szerokość dla małych ekranów */
    display: flex;
    flex-wrap: wrap;
  }

  /* Małe wpisy wewnątrz ostatniej kolumny obok siebie */
  .latest-news-grid .col-md-3 .small-post {
    width: 48%; /* Dwa wpisy obok siebie */
    margin-right: 4%; /* Odstęp między nimi */
    margin-bottom: 20px;
  }

  /* Resetowanie marginesu dla ostatniego wpisu w rzędzie */
  .latest-news-grid .col-md-3 .small-post:nth-of-type(2n) {
    margin-right: 0;
  }
}

.latest-news-grid .post-thumbnail img {
  display: block;
  width: 100%;
  height: 200px; /* Ustalona wysokość dla wszystkich obrazów */
  object-fit: cover; /* Obraz będzie przycięty w razie potrzeby, aby zachować proporcje */
  transition: transform 0.3s ease;
}

.latest-news-grid .big-post {
  display: flex; /* Użyj flexbox, aby wyśrodkować zawartość */
  justify-content: center; /* Wyśrodkowanie w poziomie */
  align-items: center; /* Wyśrodkowanie w pionie, jeśli kontener ma określoną wysokość */
}

.latest-news-grid .big-post .post-thumbnail {
	max-width: 700px; /* Ustal maksymalną szerokość dla obrazka */
	width: 100%; /* Obrazek będzie miał 100% szerokości kontenera */
	height: 400px; /* Ustalona wysokość dla dużego obrazka */
	overflow: hidden; /* Ukryj nadmiarowe części obrazka */
	display: flex; /* Flexbox dla centrowania */
	justify-content: center; /* Wyśrodkowanie w poziomie */
}

.latest-news-grid .big-post .post-thumbnail img {
  height: 100%; /* Ustal wysokość obrazka na 100% kontenera */
  width: auto; /* Ustal szerokość automatycznie, aby zachować proporcje */
  object-fit: cover; /* Przycięcie obrazka, aby pasował do kontenera */
}

.image-placeholder {
    width: 100%; /* Szerokość dopasowana do kontenera */
    height: 200px; /* Wysokość dla małych wpisów */
    background-color: #f0f0f0; /* Kolor tła jako placeholder */
    display: flex;
    justify-content: center; /* Wyśrodkowanie zawartości */
    align-items: center; /* Wyśrodkowanie zawartości w pionie */
    border: 1px dashed #ccc; /* Dodatkowy efekt wizualny */
}




  
.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 5px 10px;
  margin-right: 5px;
  background-color: #333;
  color: white;
  text-decoration: none;
}

.pagination .current {
  background-color: #333;
  color: #fff;
}

.big-post .post-thumbnail {
  width: 100%;
  height: auto;
}

.small-post .post-thumbnail {
  width: 100%;
  height: auto;
}

.post-thumbnail img {
  min-width: 100%;
}

.latest-news-grid .big-post .latest-news-grid .small-post { 
  position: relative;
}

.latest-news-grid .big-post .post-title-overlay .latest-news-grid .small-post .post-title-overlay { 
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5); 
  padding: 10px;
  width: 100%;
  height: 73px; 
}

@media (min-width: 768px) {
  .col-md-3 {
      width: 19% !important;
  }
  .col-md-6 {
    width: 41% !important;
}
}

@media (min-width: 1400px) {
  .col-md-6 {
    padding-left: 0 !important;
  }
}

/*---------------------------------------- COMMON HOME --------------------------------------*/
.justice-columns {
  max-width: 1400px;
  margin: 0 auto;
}

.news-container {
  max-width: 1400px;
  margin: 0 auto;
}

.news-kolumny-container {
  max-width: 1400px;
  margin: 0 auto;
}

.rome-news-grid {
  display: flex;
  flex-direction: column; 
  gap: 10px; /* Zmniejszono odstęp między elementami */
  max-width: 400px; 
  margin: 0 auto; 
}

.rome-news-item {
  position: relative;
  overflow: hidden;
  max-width: 300px; 
  min-height: 190px; /* Ustalona minimalna wysokość, aby obrazki były widoczne */
  margin: 0; /* Ustawienie marginesu na 0 */
}

.rome-post {
  position: relative;
  max-width: 100%; /* Umożliwia pełne wykorzystanie szerokości */
}

.rome-post .post-thumbnail {
  overflow: hidden;
  margin: 0; /* Ustawienie marginesu na 0 */
}

.rome-post .post-thumbnail img {
  width: 100%; /* Zapewnia, że obrazek zajmuje całą szerokość kontenera */
  height: auto; /* Utrzymuje proporcje obrazka */
  display: block; /* Zmiana na block, aby uniknąć dodatkowej przestrzeni poniżej */
  transition: transform 0.3s ease; /* Animacja podczas hover */
}

.rome-post:hover .post-thumbnail img {
  transform: scale(1.1); /* Powiększenie obrazka na hover */
}

.rome-post .post-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px; /* Padding dla tytułu i daty */
  color: #fff;
}

.rome-post .post-title-overlay h3 {
  font-size: 18px; /* Rozmiar czcionki tytułu */
  margin: 0; /* Ustawienie marginesu na 0 */
}

.rome-post .post-title-overlay .post-date {
  font-size: 14px; /* Rozmiar czcionki daty */
  margin-top: 5px; /* Margines między datą a tytułem */
}

.news-columns {
  border: 1px solid black; /* Opcjonalne: Obramowanie kolumn */
}

.news-columns-title {
  padding-top: 20px; /* Padding dla tytułów kolumn */
  padding-bottom: 20px;
}

.posts-column {
  border: none !important; /* Usunięcie obramowania */
}

.post-date {
  margin-bottom: 0; /* Usunięcie marginesu pod datą */
}

.post-title-overlay {
  padding-bottom: 0; /* Usunięcie paddingu u dołu */
}

.post-overlay-content {
	position: absolute;
	bottom: 0;
	padding-bottom: 10px;
}

.rome-news-item {
  position: relative;
  overflow: hidden;
  max-width: 300px;
  max-height: 190px; /* Ograniczona wysokość dla obrazka */
}

.rome-post .post-thumbnail {
  overflow: hidden;
  height: 190px; /* Zapewnienie równej wysokości obrazka */
  width: 100%; /* Pełna szerokość obrazka */
}

.rome-post .post-thumbnail img {
  width: 100%; /* Obraz zajmuje pełną szerokość kontenera */
  height: 100%; /* Obraz zajmuje pełną wysokość kontenera */
  object-fit: cover; /* Zapobiega deformacji obrazu, zachowując proporcje */
  transition: transform 0.3s ease;
}

.rome-post:hover .post-thumbnail img {
  transform: scale(1.1); /* Efekt powiększenia przy hover */
}



/* --------they preceed us ---------*/
.they-preceed-us-list {
  font-family: 'Montserrat', sans-serif;
  list-style-type: none;
  margin-right: 40px;
  min-height: 400px;
  padding: 0;
}

.they-preceed-us-list li {
  margin-bottom: 20px; 
  font-size: 14px;
}

.they-preceed-us-list li a {
  text-decoration: none;
  color: black;
}

.they-preceed-us-list li a:hover {
  text-decoration: underline;
  color: black;
}


/* -------- anniversaries ---------*/
.anniversaries-list {
  margin-right: 40px;
  min-height: 400px;
  list-style-type: none;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

.anniversaries-list li {
  margin-bottom: 20px;
  font-size: 14px;
}

.anniversaries-list li a {
  text-decoration: none;
  color: black;
}

.anniversaries-list li a:hover {
  text-decoration: underline;
  color: black;
}
.post-date {
  font-weight: bold; 
}

/* -------- ordinations ---------*/
.ordinations-list {
  font-family: 'Montserrat', sans-serif;
  list-style-type: none;
  margin-right: 40px;
  min-height: 400px;
  padding: 0;
}

.ordinations-list li {
  margin-bottom: 20px;
  font-size: 14px;
}

.ordinations-list li a {
  text-decoration: none; 
  color: black;
}

.ordinations-list li a:hover {
  text-decoration: underline;
  color: black;
}

.post-date {
  font-weight: bold; /* Pogrubienie daty */
}

.post-title {
  font-weight: normal;
  color: #333;
}

#news-button div{
  padding-bottom: 20px;
}

.news-button div{
  padding-bottom: 20px;
}

.news-kolumny-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Automatyczne dopasowanie kolumn */
}

/*---------------------------------------- JUSTICE --------------------------------------*/
.justice-container {
  margin-top: 150px;
  padding-top: 60px;
  padding-bottom: 50px;
}

.justice-button {
  padding-top: 60px;
}

/*---------------------------------------- MEDIA --------------------------------------*/
.media-container {
  max-width: 1400px;
  margin: 0 auto;
}

.recent-posts-gallery {
  display: flex;         
  flex-wrap: wrap;      
  gap: 10px;       
}

.recent-posts-gallery div {
  width: calc(50% - 5px); 
  position: relative;      
  overflow: hidden;     
}

.recent-posts-gallery img {
  width: 173px;            
  height: 115px;          
  object-fit: cover;  
  transition: transform 0.3s ease; 
  position: relative;     
  left: 50%;      
  transform: translateX(-50%); 
}

.recent-posts-gallery div:hover img {
  transform: translateX(-50%) scale(1.1);
}

.footer1-group {
  margin: 0 auto;
  padding-top: 90px;
  padding-bottom: 90px;
}

.footer1-button {
  min-width: 140px;
  padding-left: 60px;
}

#footer-sidebar section {
  margin-bottom: 0 ;
}

.footer-media {
  padding-top: 50px;
}

.footer1-columns {
  padding-right: 70px;
  padding-left: 60px;

}

/*---------------------------------------- PODSTRONY --------------------------------------*/

.subpage-contener
{
  }

  .subpage-top {
	   width: 100%;
	   height: 400px;
	   background-size: cover;
   }
  
  .subpage-header {
	height: 400px;
	background-size: cover;
	position: relative;
  }

  .subpage-title {
	color: white;
	font-family: "Playfair Display", serif;
	font-size: 28px !important;
	text-transform: uppercase;
	position: relative;
	background: linear-gradient(183deg, rgba(2,0,34,0) 0%, rgba(0,0,0,0.37160801820728295) 72%, rgba(0,0,0,1) 100%);
	height: 100%;
  }

  .subpage-text {
	margin: 0 auto;
	font-size: 20px;
	font-family: 'Open Sans';
	min-height: 600px;
  }
  
  .subpage-title h1 {
  	bottom: 15px;
	position: absolute;
  	font-size: 3.2rem;
  } 

  .subpage-contener {
	padding-bottom: 100px;
  }


table {
  width: 900px;
  text-align: center;
  margin: 0 auto;
}

.archive-posts {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 20px; /* Dodatkowy odstęp na górze */
}

.archive-post {
  display: flex;
  margin-bottom: 20px;
  padding-top: 50px;
}

.archive-post-border {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

.archive-post-thumbnail {
  flex: 0 0 auto;
  margin-right: 20px;
}

.archive-post-thumbnail img {
  max-width: 100%;
  height: auto;
}

.archive-post-content {
  flex: 1 1 auto;
}

.entry-title a {
  color: #1E74A9;
  font-weight: bold;
  text-decoration: none;
}

.entry-meta {
  margin-bottom: 10px;
}

.entry-summary {
  margin-top: 10px;
}

.page-title {
  text-align: center !important;
}

.pagination {
  display: block !important;
  margin-top: 20px;
  text-align: center;
  width: 100%; /* Rozciągnięcie na całą szerokość */
  padding-bottom: 50px;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 5px 10px;
  margin-right: 5px;
  border: 1px solid #ccc;
}

.pagination .page-numbers.current {
  color: #fff;
}

.page-numbers {
  background: none;
  text-decoration: none;
}


/*------------------------- WPISY -----------------------------*/

/* Main Content Area */
.content-area {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 20px 20px 20px;
    background-color: #fff;
}

.main-content {
  margin-right: 20px;
}

.aside {
  margin-left: 20px;
  top: 100px;
  position: sticky;
  align-items: start;
  max-height: calc(100vh);
  overflow-y: auto;
}



/* Article Styling */

article {
    margin: 2px;
}

.entry-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e2e2;
    padding-bottom: 10px;
}

.entry-title {
    font-size: 2.5em;
    margin: 0;
    color: #333;
    padding: 50px 0 20px;
}

.entry-meta {
    font-size: 0.9em;
    color: #999;
}

.entry-content {
    margin-top: 20px;
    font-size: 1.2em;
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content a {
    color: #0073aa;
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

.entry-footer {
    margin-top: 20px;
    font-size: 0.9em;
    color: #999;
    border-top: 1px solid #e2e2e2;
    padding-top: 10px;
}

/* Comments Section */
.comments-area {
    margin-top: 40px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 20px;
}

.comment .comment-author {
    font-weight: bold;
}

.comment .comment-metadata {
    font-size: 0.9em;
    color: #999;
}

.comment .comment-content {
    margin-top: 10px;
}

/* Sidebar */
.sidebar {
    margin-top: 40px;
}


.widget-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    border-bottom: 2px solid #e2e2e2;
    padding-bottom: 5px;
}

.wp-block-latest-posts {
  margin-left: 0;
}

/* 

/* Responsive Design */

@media (max-width: 768px) {
    .content-area {
        padding: 80px 10px 10px 10px;
    }

    .entry-title {
        font-size: 2em;
    }
    
}

@media (max-width: 812px) {
  #media-columns {
    display: grid !important;
  }
  .recent-posts-gallery img {
    width: 250px !important;
    height: 150px !important;
  }
  .recent-posts-gallery {
    padding: 50px;
  }
  
}

@media (max-width: 928px) {
  .news-kolumny-container {
    display: grid !important;
    padding: 10%;
  }

}

/*------------------------- PODSTRONY -----------------------------*/
.subpage-group {
max-width: 1068;
	margin: 0 auto;
	padding-top: 70px;
}


/*-----------------  YOUTUBE  --------------------------- */
.youtube-videos {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
.youtube-video {
	flex: 1 1 auto;
}
.youtube-video iframe {
	width: 100%;
	max-width: 560px;
}





/* High Contrast Mode - Target all elements */
.high-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

.high-contrast *:not(button):not(.button) a {
  color: #ffff00 !important;
  text-decoration: underline !important;
}

.high-contrast img,
.high-contrast picture,
.high-contrast video {
  filter: brightness(0.8) contrast(120%) !important;
}

.high-contrast button,
.high-contrast .button,
.high-contrast input[type="button"],
.high-contrast input[type="submit"] {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

.high-contrast input[type="text"],
.high-contrast input[type="email"],
.high-contrast input[type="password"],
.high-contrast textarea,
.high-contrast select {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

.high-contrast ::placeholder {
  color: #ccc !important;
}

/* Grayscale Mode - Target everything */
.grayscale * {
  filter: grayscale(100%) !important;
  -webkit-filter: grayscale(100%) !important;
}

/* Override common background colors and images */
.high-contrast [style*="background"],
.high-contrast [style*="background-color"] {
  background: #000 !important;
  background-color: #000 !important;
}

.high-contrast [style*="color"] {
  color: #fff !important;
}

/* Control Buttons - Keep them visible and styled */
.accessibility-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 16px;
  margin: 4px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

.accessibility-controls button:focus {
  outline: 3px solid #0066cc !important;
  outline-offset: 2px;
}

/* Active state for buttons */
.contrast-toggle.active,
.grayscale-toggle.active {
  background-color: #0066cc !important;
  color: #fff !important;
  border-color: #0056b3 !important;
}

.contrast-toggle a {
  color: white;
}







/* Make all elements inherit font size */
* {
  font-size: inherit;
}

/* Elements that commonly have fixed sizes - make them use rem */
/* h1 { font-size: 2rem !important; }
h2 { font-size: 1.5rem !important; }
h3 { font-size: 1.25rem !important; }
h4 { font-size: 1.125rem !important; }
h5 { font-size: 1rem !important; }
h6 { font-size: 0.875rem !important; } */

/* Common text elements */
/* p, span, div, li, a, button, input, textarea, select {
  font-size: 1rem !important;
} */

/* Small text */
/* small, .small {
  font-size: 0.875rem !important;
} */

/* Handle font awesome and other icon fonts */
.fa, .fas, .far, .fal, .fab,
[class^="icon-"], [class*=" icon-"] {
  font-size: inherit !important;
}

/* Override any inline styles */
/* [style*="font-size"] {
  font-size: inherit !important;
} */

/* Ensure form elements inherit properly */
/* input, select, textarea, button {
  font-size: inherit !important;
} */

/* Maintain control button sizes */
.accessibility-controls button {
  font-size: 1rem !important;
}