.page-rzeczy-wspolne__flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card--page-rzeczy-wspolne {
  max-width: calc(25% - 40px);
  margin: 0 20px 40px;
  min-width: 200px;
}

@media (max-width: 780px) {
  .card--page-rzeczy-wspolne {
    min-width: 250px;
  }
}

.card--img-container-height {
  box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1444px) {
}

/* .card--page-rzeczy-wspolne:nth-of-type(4n) {
  margin-right: 0;
} */

/* img size 420px x  560px */

.page-rzeczy-wspolne.single-post-content {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
}

.post__img {
  max-width: calc(50% - 20px);
  width: 100%;
  margin-right: 40px;
  /* box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.20); */
}

.post__img img {
  max-width: 100%;
}

.post__description__wrapper {
  max-width: calc(50% - 20px);
  width: 100%;
}

.post__description__buttons {
  display: flex;
  margin-top: 40px;
}

.post__description__buttons > div {
  margin-right: 20px;
}

/* popup */
.custom_popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100099;
}

.custom_popup__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
}

.custom_popup_exit {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 30px;
  height: 30px;
  display: block;
  cursor: pointer;
  z-index: 20;
}

.custom_popup__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* height: 100%; */
  /* width: 100%; */
}

.custom_popup__content {
  background: #fff;
  max-width: 400px;
  width: 90vw;
  padding: 30px;
  border: 1px solid #e83335;
  border-radius: 10px;
  position: relative;
}

.custom_popup__content iframe {
  max-height: 90vh;
  max-width: 1150px;
  width: 90vw;
}

.custom_popup__content input[type='email'],
.custom_popup__content input[type='text'] {
  box-sizing: border-box;
  padding: 12px 20px;
  border-radius: 5px;
  width: 100%;
  /* height: 40px; */
  border: 1px solid;
  font-family: 'Inter', serif;
}

.custom_popup__content .button--send {
  margin: 30px auto 0;
  width: 100%;
  cursor: pointer;
  font-family: 'Inter', serif;
  transition: 0.3s all;
}

.custom_popup__content .button--send:hover {
  color: #d1282e;
  background: #ffffff;
}

.custom_popup__content h2 {
  font-size: 25px;
  padding-bottom: 20px;
}

.custom_popup--pdf .iframe .custom_popup__content .custom_popup_exit {
  top: 40px;
  left: -40px;
}

.custom_popup--pdf .custom_popup__wrapper.iframe {
  height: 100vh;
  min-width: 400px;
  margin: 0 auto;
  width: 90vw;
}

.custom_popup--pdf .iframe .custom_popup__content {
  max-width: 1150px;
  margin: 0 auto;
  width: 90vw;
  max-height: 90vh;
  border: none;
  border-radius: 0;
  padding: 0;
}

.footer__logos-img-container img{
  height: auto;
}
.footer__logo-freshmail{
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;

}
@media (min-width: 1260px) {
.footer__logo-freshmail{
  margin-left: 50px;
  margin-top: 0;
}

}
.footer__logo-freshmail img{
  height: auto; 
  width: 150px !important;
}


@media (max-height: 500px) {
  .custom_popup__content img {
    max-height: 95vh;
  }
}

@media (max-width: 1040px) {
  .post__img {
    max-width: calc(50% - 10px);
    margin-right: 20px;
  }

  .post__description__wrapper {
    max-width: calc(50% - 10px);
  }

  .single-post-content {
    box-sizing: border-box;
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 900px) {
  .page-rzeczy-wspolne.single-post-content {
    flex-wrap: wrap;
  }

  .post__img {
    max-width: 100%;
    margin-right: 0;
  }

  .post__description__wrapper {
    max-width: 100%;
  }
}

.page-co-robimy__flex {
  justify-content: space-between;
}
.page-co-robimy__flex .card--page-co-robimy {
  /* margin-right: 5%; */
  margin: 0;
  margin-bottom: 50px;
}
/*.page-co-robimy__flex .card--page-co-robimy:nth-of-type(3n) {
  margin-right: 0;
} */
/* @media (max-width: 1260px) {
  .page-co-robimy__flex .card--page-co-robimy {
    margin-right: 4%;
    margin: 0;
  }
  .page-co-robimy__flex .card--page-co-robimy:nth-of-type(2n) {
    margin-right: 0;
  }
  .page-co-robimy__flex .card--page-co-robimy:nth-of-type(3n) {
    margin-right: 4%;
  }
} */

@media (max-width: 760px) {
  .page-co-robimy__flex .card--page-co-robimy{
    margin-right: auto;
    margin-left: auto;
  }
  /* .page-co-robimy__flex .card--page-co-robimy:nth-of-type(2n) {
    margin-right: auto;
  }
  .page-co-robimy__flex .card--page-co-robimy:nth-of-type(3n) {
    margin-right: auto;
  } */
}

.related__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-left: 40px;
  padding-right: 40px;
}

.related__inner .card {
  text-align: center;
  max-width: 80%;
  margin: 40px auto;
}

@media (min-width: 761px) {
  .related__inner .card {
    text-align: left;
    flex-basis: 48%;
    margin: 0;
    margin-bottom: 40px;
  }
}

@media (min-width: 1261px) {
  .related__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

#more_posts {
  color: #fff;
  text-transform: uppercase;
  padding: 10px 20px;
  display: inline-block;
  border: 2px solid #E83335;
  margin: 20px 0 50px;
  background: #E83335;
  font-size: 14px;
  transition: all .3s ease-in;
}

#more_posts:hover {
  border: 2px solid #E83335;
  background: #fff;
  color: #E83335;
}

#more_posts.is-active {
  text-decoration: none;  
}
