.calendar-widget {
  padding: 34px;
  border-radius: 34px;
  background: rgba(244, 241, 234, 0.96);
  border: 1px solid rgba(36, 53, 29, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.calendar-widget__header {
  margin-bottom: 18px;
}

.calendar-widget__title {
  margin: 0;
  color: #24351d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.35rem, 3vw, 3.6rem);
  font-weight: 700;
  line-height: 0.98;
}

.calendar-widget .home-calendar-subscribe {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  width: 100%;
}

.calendar-widget .home-calendar-subscribe__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0.56rem 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  border: 1px solid rgba(36, 53, 29, 0.12);
  text-decoration: none;
  text-align: center;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.calendar-widget .home-calendar-subscribe__btn--google {
  background: rgba(255, 255, 255, 0.95);
  color: #24351d;
  border-color: rgba(36, 53, 29, 0.12);
  box-shadow: 0 8px 18px rgba(20, 20, 20, 0.06);
}

.calendar-widget .home-calendar-subscribe__btn--outlook {
  background: #24351d;
  color: #f4f1ea;
  border-color: #24351d;
  box-shadow: 0 10px 20px rgba(20, 20, 20, 0.12);
}

.calendar-widget .home-calendar-subscribe__btn:hover,
.calendar-widget .home-calendar-subscribe__btn:focus-visible {
  transform: translateY(-1px);
}

.calendar-widget .home-calendar-subscribe__btn--google:hover,
.calendar-widget .home-calendar-subscribe__btn--google:focus-visible {
  background: #ffffff;
  color: #24351d;
  border-color: rgba(36, 53, 29, 0.2);
  box-shadow: 0 12px 22px rgba(20, 20, 20, 0.1);
}

.calendar-widget .home-calendar-subscribe__btn--outlook:hover,
.calendar-widget .home-calendar-subscribe__btn--outlook:focus-visible {
  background: #1d2b18;
  color: #f4f1ea;
  border-color: #1d2b18;
  box-shadow: 0 12px 22px rgba(20, 20, 20, 0.16);
}

.calendar-widget__scroll {
  max-height: 880px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 53, 29, 0.3) rgba(36, 53, 29, 0.08);
}

.calendar-widget__scroll::-webkit-scrollbar {
  width: 10px;
}

.calendar-widget__scroll::-webkit-scrollbar-track {
  background: rgba(36, 53, 29, 0.08);
  border-radius: 999px;
}

.calendar-widget__scroll::-webkit-scrollbar-thumb {
  background: rgba(36, 53, 29, 0.3);
  border-radius: 999px;
}

.calendar-widget__scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(36, 53, 29, 0.46);
}

.calendar-widget__empty {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #24351d;
  border: 1px solid rgba(36, 53, 29, 0.08);
}

.calendar-item {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 53, 29, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

.calendar-item + .calendar-item {
  margin-top: 16px;
}

.calendar-item__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  cursor: pointer;
  list-style: none;
}

.calendar-item__summary::-webkit-details-marker {
  display: none !important;
}

.calendar-item__summary::marker {
  content: "" !important;
  font-size: 0 !important;
}

.calendar-item__summary::before,
.calendar-item__summary::after {
  content: none !important;
  display: none !important;
}

.calendar-item__meta {
  min-width: 0;
}

.calendar-item__meta h3 {
  margin: 0 0 8px;
  color: #24351d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 2.2vw, 2.7rem);
  font-weight: 700;
  line-height: 0.98;
}

.calendar-item__meta p {
  margin: 0;
  color: #2d372f;
  font-size: 1rem;
  line-height: 1.6;
}

.calendar-item__location {
  margin-top: 8px;
  color: #59645d;
}

.calendar-item__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(36, 53, 29, 0.08);
  color: #24351d;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-item__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 8px;
  color: #24351d;
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.calendar-item__chevron::before,
.calendar-item__chevron::after,
.calendar-item__chevron svg,
.calendar-item__chevron path {
  content: none !important;
  display: none !important;
}

.calendar-item[open] .calendar-item__chevron {
  transform: rotate(180deg);
}

.calendar-item__content {
  padding: 0 30px 28px;
}

.calendar-item__description {
  margin: 0 0 18px;
  color: #2d372f;
  font-size: 1rem;
  line-height: 1.75;
}

.calendar-item__calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.calendar-item__calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.56rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(36, 53, 29, 0.12);
  text-decoration: none;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.calendar-item__calendar-btn--google {
  background: rgba(255, 255, 255, 0.95);
  color: #24351d;
  border-color: rgba(36, 53, 29, 0.12);
}

.calendar-item__calendar-btn--outlook {
  background: #24351d;
  color: #f4f1ea;
  border-color: #24351d;
}

.calendar-item__calendar-btn:hover,
.calendar-item__calendar-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(20, 20, 20, 0.1);
}

.calendar-item__flyer {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(36, 53, 29, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.calendar-item__flyer img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.calendar-item__flyer-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(18, 24, 20, 0.72);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
  color: #f4f1ea;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.calendar-item__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 42px;
  padding: 0.62rem 1rem;
  border-radius: 10px;
  background: #24351d;
  color: #f4f1ea;
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-item__link:hover,
.calendar-item__link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(20, 20, 20, 0.1);
}

.calendar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.calendar-lightbox.is-open {
  display: block;
}

.calendar-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 14, 12, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.calendar-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  margin: 4vh auto;
  padding: 18px;
  border-radius: 24px;
  background: rgba(244, 241, 234, 0.98);
  border: 1px solid rgba(36, 53, 29, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.calendar-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #24351d;
  color: #f4f1ea;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-lightbox__image {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 16px;
  background: #e8e3da;
}

.calendar-lightbox__title {
  margin: 14px 0 4px;
  color: #24351d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.05;
}

@media (max-width: 768px) {
  .calendar-widget {
    padding: 24px 18px;
    border-radius: 28px;
  }

  .calendar-widget__title {
    font-size: 2.2rem;
  }

  .calendar-widget .home-calendar-subscribe {
    gap: 8px;
  }

  .calendar-widget .home-calendar-subscribe__btn {
    min-height: 36px;
    padding: 0.5rem 0.58rem;
    font-size: 0.7rem;
  }

  .calendar-item__summary {
    padding: 22px 20px;
  }

  .calendar-item__content {
    padding: 0 20px 22px;
  }

  .calendar-item__meta h3 {
    font-size: 2rem;
  }

  .calendar-item__calendar-actions {
    gap: 8px;
  }

  .calendar-item__calendar-btn {
    min-height: 36px;
    padding: 0.5rem 0.76rem;
    font-size: 0.76rem;
  }

  .calendar-item__flyer img {
    max-height: 240px;
  }

  .calendar-item__flyer-hint {
    right: 10px;
    bottom: 10px;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    font-size: 0.88rem;
  }

  .calendar-lightbox__dialog {
    width: min(94vw, 1100px);
    margin: 3vh auto;
    padding: 14px;
  }
}