/*Ogólne*/

#calendar-post .fc-scroller {
  /* overflow: hidden !important; */
  overflow: unset !important;
}
.mini-calendar .fc-scroller-harness {
  overflow: unset !important;
}

.carousel-control-prev {
  width: 4vw;
  top: 12vw;
  background: transparent no-repeat center center;
  background-image: url("/wp-content/uploads/2021/10/Arrow-left-short.svg");
}

.carousel-control-next {
  width: 4vw;
  top: 12vw;
  background: transparent no-repeat center center;
  background-image: url("/wp-content/uploads/2021/10/Arrow-right-short-2.svg");
}

.carousel-control-next,
.carousel-control-prev {
  position: absolute !important;
  height: 4vw;
}

/*Ogólne*/

.content {
  display: flex;
  justify-content: center;
}

.row.calendar-front .col-3 {
  height: 24vw;
  border-radius: 4px;
}

.calendar-event-remnant-date {
  display: flex;
  flex-direction: column;
  font-size: 1vw;
  align-self: center;
  margin-left: 8%;
}

.fc-event-title {
  word-break: break-word;
  white-space: pre-wrap;
}

.calendar-event-date {
  display: flex;
  flex-direction: inherit;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 2vw 1.5vw 8vw 0;
}

.calendar-event-date::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 2vw 1.5vw 0;
  border-color: transparent #005335 transparent transparent;
  margin-top: 5.5vw;
  margin-left: -2vw;
}

.calendar-event-date .calendar-img-content {
  display: flex;
  background-color: #005335;
  background-image: url(/wp-content/uploads/2021/10/Warstwa-1.svg);
  background-size: 35vw;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.calendar-event-day {
  font-size: 3vw;
  font-weight: 600;
  width: 4vw;
}

.row.calendar-front {
  column-gap: 3.2vw;
  position: relative;
}

.section-event {
  margin-bottom: 75px;
}

.section-event .wp-block-column {
  margin-top: 50px;
}

#page .row.calendar-front .calendar-event-title h3 {
  font-size: 1.2vw;
  font-weight: 550;
  color: #1d1d1b;
  padding: 1vw 0.5vw;
  margin-bottom: 0;
}

.hour-and-place {
  bottom: 0;
  margin-left: 0.5vw;
}

.hour-and-place p {
  font-size: 1vw;
  font-family: Roboto, sans-serif;
  font-style: normal;
  margin-bottom: 0.8vw;
  color: #1d1d1b;
}

.hour-and-place .dashicons,
.dashicons-before:before {
  vertical-align: sub;
  color: #005335;
}

.calendar-event-hour,
.calendar-event-place {
  font-size: 0.9vw;
}

.calendar-event-hour::before {
  margin-right: 3%;
}

.calendar-event-place::before {
  margin-right: 3%;
}

.row.calendar-front a {
  text-decoration: none !important;
}

.row.calendar-front .calendar-event-date .calendar-img-content {
  color: #fff;
  padding-left: 5px;
  margin-left: -2.03vw;
  padding: 1.25vw;
}

.row.calendar-front .calendar-event-col .calendar-event-content {
  /* border: 2px solid #5fb198; */
  border-top: none;
  height: auto;
}

.calendar-event-day-of-week-show {
  font-size: 0.9vw;
}

.bs-wcag-focus-within.col-4.calendar-event-col {
  width: 25%;
  margin-right: 32px;
  margin-left: 32px;
  border: 2px solid #5fb198;
}



#page .carousel-item{
  margin-bottom: 50px;
}

@media (min-width: 781px) and (max-width: 1200px) {

  .calendar-event-date::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 2vw 1.5vw 0;
    border-color: transparent #005335 transparent transparent;
    margin-top: 5.5vw;
    margin-left: -2vw;
  }


  .calendar-event-date {
    padding: 50px 0 150px 0;
  }

  .bs-wcag-focus-within.col-4.calendar-event-col{
    width: 35%;
  }

  .tablet-events .carousel-item .content{
    justify-content: space-evenly;
  }

  #page .row.calendar-front .calendar-event-title h3{
    font-size: 18px!important;
    padding: 15px 8px!important;
  }

  .hour-and-place{
    width: 96%;
  }

  .section-event .calendar-event-remnant-date {
    font-size: 20px;
    padding-bottom: 0;
    line-height: 1.2;
  }

  .section-event .calendar-event-day {
    font-size: 50px;
    width: 75px;
  }

  .calendar-event-content .hour-and-place {
    position: inherit;
    margin-left: 5px;
  }

  .hour-and-place p {
    font-size: 2.5vw;
  }

  .hour-and-place .dashicons,
  .dashicons-before:before {
    font-size: 20px;
    margin-right: 5px;
  }

  .section-event .carousel-control-next,
  .section-event .carousel-control-prev {
    height: 200px;
    width: 60px;
  }

  .calendar-event-date .calendar-img-content{
    background-size: 800px;
  }

  .row.calendar-front .calendar-event-date .calendar-img-content{
    margin-left: -40px;
    padding-left: 15px;
  }

  .calendar-event-hour {
    margin-bottom: 0.5vw !important;
  }

}

@media (max-width: 781px) {

  #page .section-event{
    height: auto;
    margin-bottom: 20px;
  }

  #page .section-events{
    margin-bottom: 30px;
  }

  #page .row.calendar-front .calendar-event-title h3{
    font-size: 18px!important;
    padding: 15px!important;
  }

  .calendar-event-date .calendar-img-content{
    background-size: 800px;
  }

  .row.calendar-front .calendar-event-date .calendar-img-content{
    margin-left: -30px;
    padding: 12px;
  }

  #page .hour-and-place p{
    margin-bottom: 15px;
    width: 60vw;
  }

  .row.calendar-front .calendar-event-col .calendar-event-content{
    height: auto;
  }

  .bs-wcag-focus-within.col-4.calendar-event-col{
    width: 75%;
    margin-right: 40px;
    margin-left: 40px;
  }

  .carousel-control-next, .carousel-control-prev{
    width: 50px;
    height: 330px;
  }


  .row.calendar-front .col-3 {
    width: 100%;
    height: 100vw;
    margin-bottom: 10%;
    padding: 8vw 6vw;
    border-radius: 4px;
    position: relative;
  }
  .calendar-event-remnant-date {
    display: flex;
    flex-direction: column;
    font-size: 18px;
    align-self: center;
    margin-left: 1%;
    line-height: 1.2;
  }
  .calendar-event-date {
    display: flex;
    flex-direction: inherit;
    padding: 25px 0 150px 0;
  }
  .calendar-event-day {
    font-size: 45px;
    font-weight: 600;
    width: 60px;
  }
  .col-3 .calendar-event-title h3 {
    font-size: 5vw;
    font-weight: 550;
    margin-top: 1vw;
  }
  .hour-and-place {
    margin-left: 15px;
  }

  /* .carousel-control-next, .carousel-control-prev{
    top: 200px;
  } */


  .calendar-event-hour {
    font-size: 4.5vw;
    margin-bottom: 5px;
  }
  .calendar-event-hour::before {
    /* content: url(/wp-content/uploads/2021/06/Icon-awesome-clock-1.svg); */
    margin-right: 3%;
  }
  .calendar-event-place {
    font-size: 4.5vw;
    margin-bottom: 12vw;
  }
  .calendar-event-place::before {
    /* content: url(/wp-content/uploads/2021/06/Icon-material-location-on-1.svg); */
    margin-right: 3%;
  }
  .calendar-event-day-of-week-show {
    font-size: 4.5vw;
    margin-bottom: 5vw;
  }
  .row.calendar-front .col-3 .calendar-event-date {
    margin-bottom: 5vw;
  }
}

@media (min-width: 787px) and (max-width: 1133px) {
  .row.calendar-front .col-3 {
    width: 20vw;
    height: 32vw;
    margin-right: 2%;
    padding: 2vw 1vw;
  }
  .calendar-event-place,
  .calendar-event-hour {
    font-size: 1.8vw;
    margin-bottom: 0.5vw !important;
  }
  .calendar-event-hour {
    margin-bottom: 0.5vw !important;
  }
  .calendar-event-place {
    margin-bottom: 1vw !important;
  }
  .col-3 .calendar-event-title h3 {
    font-size: 1.6vw;
  }
  .calendar-event-remnant-date {
    font-size: 1.8vw;
    padding-bottom: 20px;
  }
  .calendar-event-day-of-week-show {
    font-size: 1.8vw;
  }
  .calendar-event-day {
    font-size: 3.5vw;
  }
  .hour-and-place {
    position: absolute;
    bottom: 0;
    width: 18vw;
  }
}

/* Calendar */
#calendar-post .fc-daygrid-day-events {
  display: none;
}

#calendar-post .bs__day-with-events a {
  text-align: center;
}

#calendar-post .bs__day-with-events a::after {
  content: " ";
  display: block;
  background: #005335;
  height: 3px;
  width: 24px;
}

.bs__day-with-events a:hover + .tooltip,
.bs__day-with-events a:focus + .tooltip,
.bs__day-with-events a.hover + .tooltip {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1) rotate(0deg);
  pointer-events: inherit;
}

.tooltip {
  display: block;
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.75) rotate(5deg);
  transform-origin: bottom center;
  padding: 10px 30px;
  border-radius: 5px;
  background: rgba(0, 97, 61, 0.9);
  text-align: center;
  color: white;
  transition: 0.15s ease-in-out;
  opacity: 0;
  width: 100%;
  width: 20vw;
  pointer-events: none;
  z-index: 5;
}
.tooltip:hover {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1) rotate(0deg);
  pointer-events: inherit;
}
.tooltip:after {
  content: "";
  display: block;
  margin: 0 auto;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top: 5px solid rgba(0, 97, 61, 0.9);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
}

.fc-day-mon .tooltip {
  left: 160% !important;
}
.fc-day-mon .tooltip:after {
  left: 25%;
  transform: translate(-160%, 100%);
}
@media (max-width: 781px) {
  .tooltip {
    display: none;
  }
  .fc-day-mon .tooltip {
    left: 100% !important;
  }
}
.bs-wcag-focus-within.col-4.calendar-event-col:focus-within {
  outline: var(--focus-outline) !important;
  outline-offset: -6px !important;
}