.articleSectionTile {
  width: 100%;
  min-height: 300px;
}
.articleSection {
  width: 100%;
  min-height: 300px;
}

.sectionAtricleTile {
  margin: 0;
}
.sectionAtricle {
  margin: 0;
}

.article {
  /* width: 100%; */
  padding: 30px;
  margin: 0 0 20px 0;
}
.articleTile {
  background: #d8d8d8;
  padding: 30px;
  margin: 0 0 20px 0;
}

.content {
  margin: 40px 0 0 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: 1fr;
  gap: 0;
}

.title {
  display: flex;
  flex-direction: row;
  align-items: left;
  margin: 0;
  flex-direction: column;
}
.lang-pl > h2 {
  margin: 0;
  font-size: 50px;
  font-weight: 550;
}
.lang-en > h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 550;
}
.title > p {
  margin: 0 10px 15px 0;
  font-size: 20px;
  color: #6e6f75;
  font-weight: 700;
}

.lang-pl, .lang-en {
  display: flex;
  flex-direction: row;
}
.langTag {
  margin: 8px 20px 0 0;
  font-size: 25px;
  font-weight: 700;
  color: #6e6f75;
}

.titleEn {
  color: #25408f;
}
.tagEn {
  margin: 4px 25px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #25408f9a;
}

.content-lang-pl, .content-lang-en {
  display: flex;
  flex-direction: row;
  align-items: top;
}

.contentText {
  display: flex;
  gap: 15px;
  flex-direction: column;
  margin: 0;
}
.contentTextLang {
  margin: 10px 20px 0 1px;
  font-size: 15px;
  font-weight: 500;
  color: #6e6f75;
}

.contentEn {
  color: #25408f;
}
.contentTagEn {
  color: #25408f9a;
}

.contentTextText > p {
  font-size: 22px;
  /* margin: 0; */
}

.imageText {grid-area: 1 / 1 / 2 / 7;}
.noImageText {grid-area: 1 / 1 / 2 / 11; margin: 0 40px 0 0 ;}

.imageIMG {grid-area: 1 / 7 / 2 / 11;}
.noImageIMG {display: none;}



.cardContentExtraHeading {
  width: 100%;
  height: 235px;
  margin: 0 0 25px 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  align-items: center; /* Centrowanie w pionie */
  text-decoration: none;
}

/* OBSZARY GRID */
.div1Heading { 
  grid-area: 1 / 1 / 2 / 4; 
  display: flex;
  justify-content: center;
  min-width: 330px;
}
.div1Heading > img {
  width: 180px;
}


.div2Heading { 
  grid-area: 1 / 4 / 2 / 13; 
}

/* STYLIZACJA ELEMENTÓW */
.cardIcon {
  max-height: 80px;
  width: auto;
}

.cardTitle {
  margin: 0;
  font-size: 70px;
  font-weight: 700;
  text-transform: none;
}

.cardItem {
  text-decoration: none;
  display: block;
}

.cardTitleEn {
  color: #25408f;
  font-size: 40px;
  margin: 0;
}



.cardItemM {
  text-decoration: none;
  display: block;
}

.cardContentM {
  background: #d8d8d8;
  width: 100%;
  min-height: 110px;
  margin: 0 0 25px 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  align-items: center; 
  text-decoration: none;
}

/* OBSZARY GRID */
.div1M { 
  grid-area: 1 / 1 / 2 / 12; 
  display: flex;
  font-size: 24px;
}

.div2M { 
  grid-area: 1 / 12 / 2 / 13; 
  display: flex;
  justify-content: center;
  font-size: 24px;
  min-width: 150px;
}
.div2M > img {
  height: 50px;
}

.cardTitleM {
  margin: 25px 40px;
  font-size: 50px;
  font-weight: 700;
  text-transform: none;
}











/* ===== GALERIA ===== */
.contentImageGalery {
  margin: 20px 20px 20px 50px;
}

.pwgal {
  width: 100%;
  max-width: 650px;
}
.pwgal-main {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.pwgal-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pwgal-prev, .pwgal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}
.pwgal-prev { left: 8px; }
.pwgal-next { right: 8px; }
.pwgal-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 0;
  overflow-x: auto;
}
.pwgal-thumb {
  flex-shrink: 0;
  /* width: 100px; */
  height: 95px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
}
.pwgal-thumb.active {
  opacity: 1;
  /* border-color: #3b82f6; */
}
.pwgal-single .pwgal-prev,
.pwgal-single .pwgal-next,
.pwgal-single .pwgal-counter,
.pwgal-single .pwgal-thumbs { display: none; }






/* Kontener z miniaturami */
.pwgal-thumbs {
  /* Definicja zmiennych lokalnie dla galerii */
  --sb-track-color: #d8d8d8;
  --sb-thumb-color: #14161f;
  --sb-size: 10px;

  /* Wymagane, aby pasek się pojawił */
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 8px; /* Odstęp, żeby pasek nie dotykał zdjęć */
  
  /* Standard dla Firefox */
  scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  /* scrollbar-width: thin; */
}

/* Styl dla Chrome, Safari i Edge */
.pwgal-thumbs::-webkit-scrollbar {
  height: var(--sb-size); /* Używamy height dla paska poziomego */
}

.pwgal-thumbs::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  /* border-radius: 18px; */
}

.pwgal-thumbs::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 0px;
  border: 1px solid #d8d8d8;
}

/* Opcjonalnie: zmiana koloru przy najechaniu */
.pwgal-thumbs::-webkit-scrollbar-thumb:hover {
  background: #2a2e3d;
}


@media (min-width: 320px) and (max-width: 629px) {
 .container {
    padding: 20px 15px;
    width: 90%;
    margin: auto;
  }

  .article {
    /* width: max-content; */
  }
  
  .div1Heading {
    display: none;
  }
  .div2Heading {
    grid-area: 1 / 1 / 2 / 13; 
    margin: 0 20px;
  }

  .cardTitle {
    font-size: 45px;
  }
  .cardTitleEn {
    font-size: 35px;
  }

  .lang-pl > h2 {font-size: 35px;}
  .lang-en > h2 {font-size: 25px;}

  .langTag {
    margin: 5px 10px 0 0;
    font-size: 15px;
  }
  .tagEn {
    margin: 4px 16px 0 0;
    font-size: 10px;
  }

  .content {
    display: flex;
    flex-direction: column-reverse;
  }
  .contentTextLang {
    margin: 20px 15px 0 0;
  }

  .contentImageGalery {
    margin: 10px 0;
  }

  .pwgal-thumbs {
    padding: 6px 0;
  }
  .pwgal-thumb {
    height: 60px;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .imageText {display: flex;}
  .noImageText {display: flex; margin: 0;}

  .imageIMG {display: flex;}
  .noImageIMG {display: none;}

  .cardTitleM {
    margin: 20px 30px;
    font-size: 35px;
  }

  .div2M { 
    min-width: 90px;
  }
  .div2M > img {
    height: 40px;
  }
}
@media (min-width: 630px) and (max-width: 1024px) {}
