.ic-list-event {
  text-align: center;
  width: 31%;
  display: inline-block;
  background-color: #F7F6FA;
  padding: 16px;
  box-sizing: border-box;
  margin-bottom: 30px;
  vertical-align: top;
  position: relative;
  height: 259px;
  border-radius: 12px;

  &:not(:nth-child(3n)) {
    margin-left: 30px;
  }
}

.ic-list-event:nth-child(2n+1) {
  background-color: #F7F6FA;
}

.media-grid .ic-list-event{
  background-color: #e9eaeb !important;
  height: 230px !important;
}
.media-grid .ic-list-event .ic-event-card {
  height: 100%;
}
.img-video-wrapper {
  width: 100%;
  height: 135px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #E9EAEB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-video-wrapper img,
.img-video-wrapper video {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.ic-events-grid {
  width: 100%;
}

.ic-event-card {
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
}

.ic-event-card img {
  width: 100%;
  height: auto;
}

.ic-event-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  left: 28px;
  top: 175px;
  background-color: #BE1E2D;
  color: white;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.ic-event-tags .day {
  font-size: 16px;
}

.ic-tag {
  background-color: #eee;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.ic-date {
  font-size: 14px;
  color: #555;
}

.ic-event-title {
  font-size: 14px;
  color: #3d3d3d;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 100;
  margin-bottom: 0;
  line-height: 20px;
  text-align: right;
}

.ic-event-desc {
  font-size: 14px;
  color: #666;
  overflow: hidden;
}

.ic-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.6);
}

.ic-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 51px;
  border-radius: 32px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.ic-modal-close {
  font-size: 24px;
  cursor: pointer;
  color: #A4A7AE;
}

.close-container {
  background-color: white;
  position: absolute;
  left: -5px;
  top: -5px;
  padding: 3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.close-icon {
  border: 1px solid #A4A7AE;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 15px;
}

.modal-img-conatiner {
  width: 100%;
  /* height: auto; */
  height: 320px;
  border-radius: 38px;
  background-color: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-img-conatiner video{
  width: 100% !important;
}

.modal-img-conatiner img {
  border-radius: 38px;
}

.modal-title {
  font-size: 14px;
  margin-bottom: 10px;
  color: #3D3D3D;
  text-align: center;
  margin-top: 30px;
  font-weight: 100;
}

.ic-single-next {
  color: white;
}

.modal-date {
  background-color: #BE1E2D;
  color: white;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 16px;
  position: absolute;
  left: 73px;
  top: 355px;
}

.modal-date .day {
  font-size: 24px;
}

.modal-desc {
  font-size: 16px;
  color: #444;
}

.boxes-container {
  display: flex;
  margin-top: 50px;
  flex-wrap: wrap;
}

.clickable-box {
  text-align: center;
  background-color: #FAFAFA;
  box-shadow: 0px 4px 8px -2px #0A0D121A;
  border-radius: 16px;
  padding: 40px 64px 22px;
  margin-right: 0;
  margin-bottom: 30px;
  text-decoration: none;
  flex: 0 0 22%;
  max-width: 25%;
  box-sizing: border-box;
  &:not(:last-of-type) {
    margin-left: 30px;
  }
  &:hover {
    text-decoration: none;
  }
  &:hover h3{
    color: #BE1E2D;
  }
}
.clickable-box h3{
  color: #000000;
  font-weight: normal;
  font-size: 18px;
  margin-bottom: 0;
}

.digital-library-title {
  margin-top: 32px;
  font-size: 24px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 0;

  &:hover {
    color: #BE1E2D;
    text-decoration: none;
  }
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
}

.media-card:hover {
  transform: scale(1.02);
}

.media-card-body {
  padding: 10px;
  font-size: 14px;
  color: #555;
}

.media-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

@media(max-width:1200px){
  .clickable-box{ 
    flex: 0 0 46%;
    max-width: 50%;
  }
}

@media(max-width:850px){
  .clickable-box{
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media(max-width:1200px){
  .media-grid .ic-list-event{
    width: calc(50% - 15px);
    margin-left: 30px;
    &:nth-child(even){
      margin-left: 0;
    }
  }
}
@media(max-width:850px){
  .media-grid .ic-list-event{
    width: 100%;
    margin-left: 0;
  }
}

@media(max-width:600px){
  .ic-modal-content{
    padding: 5px;
  }
  .modal-img-conatiner {
    width: 100%;
    height: auto;
    border-radius:0px;
    padding-top: 59px;
  }
  .modal-img-conatiner video {
    width: 100% !important;
    border-radius: 5px;
  }
  .modal-title{
    min-height: 20px;
  }
}