.kitc-mm {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.kitc-mm__years {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 0 0 14px;
}

.kitc-mm__year {
  border: 0;
  border-bottom: 3px solid #c54856;
  background: transparent;
  color: #111;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 8px 9px;
  cursor: pointer;
}

.kitc-mm__year.is-active {
  color: #fff;
  background: #b40914;
  border: 2px solid #005bd1;
  border-bottom-color: #b40914;
  border-radius: 5px;
  padding: 5px 7px 7px;
}

.kitc-mm__panel {
  width: fit-content;
  min-width: 500px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.14);
  padding: 16px 18px;
  position: relative;
}

.kitc-mm__panel:after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -10px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid #fff;
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.18));
}

.kitc-mm__events {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.kitc-mm__event {
  flex: 1 1 0;
  min-width: 0;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kitc-mm__event-text {
  min-width: 0;
  flex: 1 1 auto;
}

.kitc-mm__events.has-many .kitc-mm__event + .kitc-mm__event {
  border-left: 2px solid #ce4e5a;
}

.kitc-mm__month {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.2;
  color: #b33f4a;
  font-weight: 700;
}

.kitc-mm__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #222;
  font-weight: 500;
}

.kitc-mm__desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: #444;
  font-weight: 400;
}

.kitc-mm__thumb-btn {
  margin: 8px 0 0;
  padding: 0;
  border: 1px solid #d8d8d8;
  background: #fff;
  border-radius: 8px;
  display: inline-flex;
  width: 100px;
  height: 100px;
  align-items: stretch;
  justify-content: stretch;
  cursor: pointer;
  overflow: hidden;
}

.kitc-mm__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kitc-mm-lightbox[hidden] {
  display: none;
}

.kitc-mm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.kitc-mm-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.kitc-mm-lightbox__dialog {
  position: relative;
  max-width: min(92vw, 720px);
  max-height: 86vh;
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

.kitc-mm-lightbox__close {
  position: absolute;
  top: 2px;
  right: 6px;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.kitc-mm-lightbox__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(86vh - 24px);
  object-fit: contain;
}

@media (max-width: 1024px) {
  .kitc-mm__year {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .kitc-mm__years {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 8px 10px;
    padding-bottom: 8px;
  }

  .kitc-mm__year {
    flex: 0 0 auto;
    font-size: 17px;
  }

  .kitc-mm__panel {
    padding: 14px;
    max-width: 100%;
  }

  .kitc-mm__events {
    flex-direction: column;
  }

  .kitc-mm__event {
    align-items: center;
  }

  .kitc-mm__events.has-many .kitc-mm__event + .kitc-mm__event {
    border-left: 0;
    border-top: 1px solid #ce4e5a;
    margin-top: 8px;
    padding-top: 10px;
  }

  .kitc-mm__month {
    font-size: 12px;
  }

  .kitc-mm__title,
  .kitc-mm__desc {
    font-size: 13px;
  }

  .kitc-mm__thumb-btn {
    width: 100px;
    height: 100px;
  }
}
