/**
 * The following styles get applied both on the front of your site
 * and in the editor.
 *
 * Replace them with your own styles or remove the file completely.
 */
@import "styles/add-to-calendar";
@import "styles/mixins";
@import "styles/info-popup";
@import "styles/calendar";
@import "styles/date-selector";
@import "styles/nav";
@import "styles/cards";
@import "styles/list";
@import "styles/buttons";

.fsdpe-calendar-wrapper {
  padding-top: 40px;
  padding-bottom: 40px;

  &.fsdpe-calendar-wrapper--no-radius {
    .fsdpe-calendar-wrapper__date-selector__button,
    .fsdpe-calendar-wrapper__navigation__row--background,
    .fsdpe-calendar-wrapper__buttons button,
    .react-calendar,
    .react-calendar__month-view__weekdays__weekday,
    .react-calendar__tile {
      border-radius: 0;
    }
  }

  abbr[title] {
    border:none;
  }
  a {
    color: black;
    text-decoration: none;
  }
  h2 {
    margin: 0;
    text-transform: uppercase;
    font-size: 40px;
    color: $base-color;
  }
  p {
    margin: 0;
  }
  .image-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 100%;
    border-radius: 10px;
    overflow: hidden;
    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  &__views {
    position: relative;

    &__loader {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translateX(-50%) translateY(50%);
      width: 48px;
      height: 48px;
      border: 5px solid $base-color;
      border-bottom-color: transparent;
      border-radius: 50%;
      display: inline-block;
      box-sizing: border-box;
      animation: rotation 1s linear infinite;
      z-index: 30;
    }
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fsdpe-image-wrapper {
  width: 100%;
  max-width: 500px !important;
  border-radius: 10px;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  img {
    object-fit: cover;
    border-radius: 10px;
    width: 100%;
  }
}
