.calendar-wrapper {
  background-color: white;
  border-radius: 2px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.03);
  padding: 20px;
  margin-bottom: 10px;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.calendar-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}
.calendar-header h2 {
  font-size: 18px;
  font-weight: normal;
  color: #333;
  margin: 0;
}
.day-names,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}
.day-names div {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  position: relative;
}
.calendar-day:hover {
  background-color: #f0f0f0;
  border-radius: 50%;
}
.calendar-day.active {
  background-color: #e0e0e0;
  border-radius: 50%;
}
.calendar-day.other-month {
  color: #ccc;
}
.calendar-day.has-event::after {
  content: '';
  position: absolute;
  top: 75%;
  width: 6px;
  height: 6px;
  background-color: #ff4081;
  border-radius: 50%;
}
.calendar-day.has-event.multiple-events::after {
  box-shadow: -4px 0 0 #ff4081, 4px 0 0 #ff4081;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.modal.show {
  opacity: 1;
}
.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}
.head-section {
  justify-content: space-between;
  display: flex;
  padding: 0 18px;
}
.close-button {
  font-size: 54px;
  cursor: pointer;
}
.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 5px;
  border: 1px solid #888;
  width: 800px;
  max-width: 98%;
  position: relative;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}
.modal-w {
  max-height: 600px;
  overflow-y: auto;
}
.modal-w h1 {
  font-size: 25px;
  color: #203E7A;
  padding-left: 20px;
}
.modal-w .content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-activity {
  width: 100%;
  padding: 12px 18px;
  background-color: white;
  border-radius: 2px;
  display: flex;
  flex-wrap: nowrap;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.03);
}
.modal-activity a {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}
.modal-activity span {
  background-color: #402397;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 14px;
  width: fit-content;
  color: #fff;
}
.modal-activity img {
  width: 200px;
  object-fit: cover;
  object-position: center;
}
.modal-activity-info {
  padding: 0 20px;
  width: 920px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-activity-info h2 {
  font-size: 18px;
  color: #A21D12;
  margin: 0;
}
.modal-activity-info p {
  font-size: 16px;
  color: #666666;
  margin: 3px 0;
}
.modal-activity-info a {
  text-decoration: none;
  color: #A21D12;
  font-size: 16px;
}
@media screen and (max-width: 1000px) {
  .calendar-day.has-event::after {
    top: 70%;
  }
  .modal-activity {
    justify-content: start;
    width: 100%;
    margin: 5px 0;
  }
  .modal-activity span {
    font-size: 12px;
  }
  .modal-activity img {
    width: 120px !important;
    object-fit: cover;
  }
  .modal-activity-info {
    padding: 0;
  }
  .modal-activity-info h2 {
    font-size: 16px !important;
    width: 100%;
    padding: 0;
    margin: 5px 0;
  }
  .modal-activity-info p {
    font-size: 14px;
  }
}
