.site-content #primary.bs-jednostka-single-post h1 {
  font-size: 2.8vw;
  margin-bottom: 40px;
  font-weight: 700;
}

.site-content #primary.bs-jednostka-single-post {
  direction: ltr;
  display: grid;
  grid-template-columns: 50% 1fr;
  grid-template-rows: auto;
  overflow: hidden;
  margin-top: 35px;
  margin-bottom: 2vw;
}

.site-content #primary.bs-jednostka-single-post .jednostka-content {
  z-index: 10;
  background-color: #fff;
  min-height: 400px;
  height: 100%;
  grid-row: 1;
  grid-column: 2;
  margin-bottom: 50px;
}

.site-content #primary.bs-jednostka-single-post .jednostka-content.bs-contact-right-column h1 {
  margin-left: 14%;
  margin-right: 6%;
}

.site-content #primary.bs-jednostka-single-post .jednostka-content h2 {
  margin-bottom: 1vw;
  font-size: 1.8vw;
}

.site-content #primary.bs-jednostka-single-post figure {
  transition-duration: 0.5s;
  overflow: hidden;
  z-index: 0;
  min-height: 400px;
  max-height: 700px;
  align-self: auto;
  height: 100%;
  grid-row: 1;
  grid-column: 1;
}

.site-content #primary.bs-jednostka-single-post figure img {
  height: 100%;
  object-fit:contain;
}

.site-content #primary.bs-jednostka-single-post figure:hover {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1);
  z-index: 0;
}

.site-content #primary.bs-jednostka-single-post hr {
  height: 3px;
  opacity: 1;
  background-color: #000;
  margin-bottom: 100px;
}
.bs-jednostka-content .social-icons{
  margin-left: 14%;
}
.bs-jednostka-content .social-icons i{
  margin-right: 2vw;
}

.usos{
  font-weight: bold;
}
.usos:hover{
  text-decoration: underline;
}
.odnosniki_pracownika {
  text-align: center;
}

.kolumna1{
  width: 50%;
  display: inline-block;
  float: left;
}
.kolumna2{
  width: 50%;
  display: inline-block;
}

.odnosnik_pracownika {
  margin: 0 1vw;
  margin-bottom: 1vw;
  padding: 0.3vw 3vw;
  background-color: var(--ast-global-color-0);
  color: white;
  font-size: .8vw;
  border-radius:0 10px 10px 10px;
  line-height: inherit;
  display: inline-block;
}
.odnosnik_pracownika:hover{
  background-color: black;
  color:white;
}

/* Style the tab */
.tab_pracownik {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  margin-left: 6.5%;
  margin-right: 6.5%;
}

.bs-jednostka-single-post-content {
  margin-bottom: 2vw;
}

/* Style the buttons that are used to open the tab content */
.tab_pracownik button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  color: #000;
  font-size: 1.2vw;
  font-weight: bold;
}

/* Change background color of buttons on hover */
.tab_pracownik button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab_pracownik button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 12px 12px;
  border: 1px solid #ccc;
  border-top: none;
  margin-left: 6.5%;
  margin-right: 6.5%;
}

.tabcontent p {
  margin-left: 0;
}

.accordion {
  background-color: #fff;
  color: #000;
  cursor: pointer;
  padding: 18px;
  width: 87%;
  text-align: left;
  border: none;
  border-bottom: 3px solid #000;
  outline: none;
  transition: 0.4s;
  margin-left: 6.5%;
  margin-right: 6.5%;
  font-size: 1.2vw;
  font-weight: bold;
}

.accordion:hover,
.accordion:focus {
  background: #fff;
}

.accordion h2 {
  padding-top: 0.5vw;
  margin-bottom: 0;
}

.accordion h2:after {
  font-family: "Font Awesome 5 Free";
  content: "\f078";
  /* Unicode character for "plus" sign (+) */
  font-size: 1.3vw;
  color: #fff;
  float: right;
  margin-left: 5px;
  transition: transform 0.3s ease-in-out;
  transform: rotate(0deg);
  background-color: #000;
  padding: 0.8vw 1.1vw;
  border-radius: 50%;
  margin-top: -0.5vw;
}

.accordion.active h2:after {
  transform: rotate(180deg);
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.accordion.active {
  background-color: #2d3d50;
  color: #000;
}

.accordion.active h2 {
  color: #fff;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 18px;
  background-color: white;
  display: none;
  overflow: hidden;
  margin-left: 6.5%;
  margin-right: 6.5%;
}
.kolumna1 .bs_block__container{
  width:100%;
}
.kolumna1 .bs_block__container .button2{
  width: 50%;
}
.odnosniki_pracownika .bs_block__container{
    width: fit-content;
    margin: 0;
    display: inline-block;
    justify-content: space-between;
    align-items: center;
}
.odnosniki_pracownika .bs_block__container .button2{
  margin: 0;
  width: fit-content;
  column-gap: 2vw;
  margin-right: 2vw;
}

@media (max-width: 1000px) {
  .site-content #primary.bs-jednostka-single-post .jednostka-content p {
    font-size: 1.2rem;
  }
  .odnosnik_pracownika{
    padding: 1vw 3vw;
    font-size: 1.6vw;
  }
  .odnosniki_pracownika{
    margin-bottom: 2vw;
  }
  .kolumna1{
    width: 100%;
  }
  .kolumna2{
    width: 100%;
  }
  .accordion h2:after{
    font-size: 2.5vw;
    padding: 1vw 1.6vw;
  }
}

@media (max-width: 768px) {
  .site-content #primary.bs-jednostka-single-post {
    grid-template-columns: 100%;
  }

  .site-content #primary.bs-jednostka-single-post .jednostka-content {
    grid-row: 2;
    grid-column: 1;
    margin-top: 6vw;
    min-height: auto;
  }

  .site-content #primary.bs-jednostka-single-post .bs_add_breadcrumb_trail,
  hr {
    display: none;
  }

  .site-content #primary.bs-jednostka-single-post h1 {
    font-size: 5vw;
    margin: 0;
    line-height: 1.5;
    padding-left: 6%;
    padding-right: 6%;
    margin-bottom: 6vw !important;
  }
  .accordion h2:after{
    font-size: 3.5vw;
    padding: 1vw 1.8vw;
  }
  .site-content #primary.bs-jednostka-single-post .jednostka-content.bs-contact-right-column h1{
    margin-left: 6%;
    padding: 0!important;
  }
  .site-content #primary.bs-jednostka-single-post .jednostka-content h2 {
    font-size: 3.5vw;
  }
}

@media (max-width: 600px) {
  .site-content #primary.bs-jednostka-single-post h1 {
    font-size: 8vw;
    padding: 0 !important;
    margin-left: 6%;
    margin-right: 6%;
    line-height: 1.3;
  }

  .site-content #primary.bs-jednostka-single-post .jednostka-content p {
    font-size: 1.2rem;
  }
  .accordion h2:after{
    font-size: 4.5vw;
    padding: 1vw 2vw;
  }
  .site-content #primary.bs-jednostka-single-post .jednostka-content h2 {
    font-size: 4vw;
  }
}


