:root {
  --glowny-kolor-ciemny: #0a4493;
}

/* Frontend style for custom block */
.bs-events {
  width: 100%;
  height: fit-content;
  max-width: 1000px;
}

.bs-events__titlebar {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.site-content .bs-events__titlebar__title {
  margin-bottom: 0.5em;
  margin-top: 0.5em;
  font-weight: 900;
}

.bs-events__titlebar__select-wrapper {
  position: relative;
  font-family: "Signika Negative", sans-serif;
  letter-spacing: 0px;
  color: #070707;
  opacity: 1;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
}

.bs-events__titlebar____select-wrapper__preview {
  display: flex;
  font-weight: 700;
  font-size: 1.2vw;
}
.bs-events__titlebar__select-wrapper__preview img {
  height: 18px;
  margin-left: 10px;
  margin-bottom: 3px;
}

.bs-events__titlebar____select-wrapper__preview__icon {
  width: 45px;
  height: 45px;
}

.bs-events__titlebar__select {
  position: absolute;
  right: 0;
  top: -15px;
  opacity: 0;
  cursor: pointer;
}

.bs-events__posts-container {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  flex-wrap: nowrap;
}

/* Section */

.bs-events__posts-container__section {
  display: flex;
  box-sizing: border-box !important;
  row-gap: 1%;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-start;
  flex-shrink: 0;
  transition: 0.6s ease-in-out;
  padding-bottom: 3%;
}

/* Post */

.bs-events__posts-container__section__post--item {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: pre-line;
}

.bs-events__posts-container__section__post--5 {
  width: 19%;
}

.bs-events__posts-container__section__post {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  transition-duration: 0.4s;
  margin-right: 10px;
  background-color: #f1f7ff;
  color: #0c0c0c;
}

.bs-events__posts-container__section__post:hover {
  color: white;
  background-color: #004a9a;
}

p.bs-events__posts-container__section__post__date {
  font-family: Lato;
  text-align: left;
  padding: 5px 5px 5px 0;
  margin-bottom: 0;
  align-self: flex-start;
  margin-bottom: 0px !important;
}
.bs-events__posts-container__section__post__title {
  font-weight: 900;
}
.bs-events__posts-container__section__post__desc {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  letter-spacing: 0px;
  opacity: 1;
  white-space: pre-wrap;
  margin-bottom: 0;
  text-align: left;
  align-self: flex-start;
}

/* Navigation */

.bs-events__nav {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 20px;
}

.bs-events__nav__read-more {
  color: black;
  padding: 5px 20px;
  text-decoration: none;
  border: 2px solid var(--glowny-kolor-ciemny);
  border-radius: 23px;
  opacity: 1;
  font-weight: 900;
}

.bs-events__nav__read-more:hover {
  color: white;
  background-color: var(--glowny-kolor-ciemny);
  transition-duration: 0.4s;
}

.bs-events__nav__pagination {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.bs-events__nav__pagination__button {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 16px;
  height: 16px;
  border: none;
}

.bs-events__nav__pagination__button-prev {
  background-image: url("/wp-content/uploads/2021/05/prev.svg");
  width: 16px;
  height: 16px;
  background-color: transparent;
  background-position: left;
}

.bs-events__nav__pagination__button-next {
  background-image: url("/wp-content/uploads/2021/05/next.svg");
  width: 16px;
  height: 16px;
  background-color: transparent;
  background-position: right;
}

.bs-events__nav__pagination__button:hover,
.bs-events__nav__pagination__button-next:focus,
.bs-events__nav__pagination__button-prev:focus {
  background-color: transparent;
}

.bs-events__nav__pagination__radio-box {
  /* border-color: #6a4a42 !important; */
  display: flex;
  flex-direction: row;
  column-gap: 10px;
  align-items: center;
  height: 10px;
}

.bs-events__nav__pagination__radio-box__label {
  display: flex;
  flex-direction: row;
  margin: 0;
}

.bs-events__nav__pagination__radio-box__label:hover {
  cursor: pointer;
}

.bs-events__nav__pagination__radio-box__label__input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bs-events__nav__pagination__radio-box__label__control {
  display: block;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  border: 0.1em solid var(--glowny-kolor-ciemny);
}

.bs-events__nav__pagination__radio-box__label__control--checked {
  background-color: var(--glowny-kolor-ciemny);
}
