@import url("/css/reset.css");

#dayNightEvent-wrap {
  position: relative;
  /* padding-top: 15rem; */
  padding-bottom: 10rem;
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 15rem;
  justify-content: center;
  align-items: center;
}

.subpage-banner {
  position: relative;
  width: 100%;
  height: 400px;

  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.subpage-banner .subpage-benner-btn-bg {
  position: absolute;
  z-index: -1;
  top: 0;
  width: 100%;
  height: inherit;
  background: rgba(0, 0, 0, 0.3) url('../img/00_page-banner-btn-bg.png') no-repeat bottom;
  background-size: cover;
}
.subpage-banner .subpage-benner-btn-bg::before {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}
.subpage-banner .subpage-benner-btn-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subpage-banner-title {
  position: absolute;
  z-index: 1;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
}
.subpage-banner-title h4 {
  margin-bottom: 1rem;
  font-size: 5rem;
}
.subpage-banner-title p {
  font-size: 2rem;
  opacity: 0.8;
}

/* button */
.dayNight-btns {
  width: 100%;
  max-width: 1200px;
  height: 8rem;
  background-color: #fff;
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dayNight-btns input {
  display: none;
}
.dayNight-btns input:checked + .btns {
  /* background-color: var(--main-color-yellow);
  background-image: url('/imgaes/00_nav_pattern.png'); */
  background: url(../img/00_banner_btn_pattern.png) var(--main-color-yellow);
  color: #fff;
  font-weight: bold;
}
.dayNight-btns .btns {
  width: 50%;
  height: 100%;
  text-align: center;
  line-height: 8rem;
  color: #ccc;
  font-size: 2.4rem;
  /* font-weight: bold; */
  font-weight: normal;
  border: 1px solid #ccc;
}
.dayNight-btns .btns.day {
  border-right: none;
}
.dayNight-btns .btns.day {
  border-radius: 18px 0 0 0 ;
  cursor: pointer;
}
.dayNight-btns .btns.night {
  border-radius: 0 18px 0 0 ;
  cursor: pointer;
}


/* banner */
.event-banner {
  width: 100%;
  max-width: 1200px;
}
.event-banner img {
  width: 100%;
  /* border-radius: 10px; */
}


/* Event Card */
.event-cards {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.event-cards .event-card {
  width: 100%;
  height: 450px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
}
.event-cards .event-card .card-img {
  /* width: 50%; */
  width: 55%;
  height: 100%;
}
.event-cards .event-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-cards .event-card .card-desc {
  /* flex: 1; */
  /* width: 50%; */
  width: 45%;
  height: inherit;
  /* padding: 8rem; */
  padding: 0 5rem;
  display:  flex;
  flex-direction:  column;
  justify-content: center;
  gap: 2rem;
}

.event-cards .event-card .card-desc h2 {
  width: 100%;
  height: 4.2rem;
  font-size: 2.4rem;
  padding: 0 0 1rem 0;
  border-bottom: 1px solid #ccc;
  word-break: keep-all;

  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1; 
  -webkit-box-orient: vertical;
}
.event-cards .event-card .card-desc .time-wrap p {
  margin-bottom: 1rem;
  font-size: var(--font-size-mainText);
  color: var(--sub-color-blue);
  font-weight: bold;
}
.event-cards .event-card .card-desc .time-wrap p span {
  font-weight: normal;
  color: var(--font-color-mainText);
}
.event-cards .event-card .card-desc .time-wrap p i  {
  margin-right: 0.5rem;
  width: 2.8rem;
  height: 2.8rem;
  text-align: center;
  line-height: 2.8rem;
  font-size: 1.5rem;
  color: #fff;
  background-color: var(--sub-color-blue);
  border-radius: 50%;
}
.event-cards .event-card .card-desc .time-wrap p span::before {
  content: '|';
  display: inline-block;
  font-size: 1rem;
  /* border-left: 2px solid #ccc; */
  padding: 0 0 0 1rem;
  margin-right: 1rem;
  transform: translateY(-3px);
}
.event-cards .event-card .card-desc .desc h3 {
  color: var(--sub-color-blue);
  font-size: 2rem;
}
.event-cards .event-card .card-desc .desc p {
  margin: 0.5rem 0 1rem;
  /* white-space: nowrap; */
  line-height: 1.6;
  color: var(--font-color-mainText);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4; 
  -webkit-box-orient: vertical;
}
.event-cards .event-card .view-wrap .view-more {
  /* display: block; */
  width: 15rem;
  height: 4rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  background-color: var(--sub-color-blue);
  border: none;
  /* border-radius: 50px; */
  border-radius: 3px;

  cursor: pointer;
}
.event-cards .event-card .view-wrap .view-more i  {
  transition: transform 0.3s;
}
.event-cards .event-card .view-wrap .view-more:hover i {
  transform: translateX(5px);
}
.page-number {
  text-align: center;
  margin-bottom: 5rem;
}
.page-number a {
  display: inline-block; 
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
}
.page-number a.on {
  background-color: var(--main-color-yellow);
  color: #fff;
}
/* 모달 */
/* .modal-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4)
} */
.modal {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hidden {
  display: none;
}
.modal-overlay{
  position: absolute;
  background-color: rgba(0,0,0,0.7);
  width: 100%;
  height: 100vh;
}
.modal-content {
  position: relative;
  width: 50%;
  text-align: center;
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.2);
  background-color: white;
  padding: 30px 0;
  height: 80vh;
  /* overflow-y: auto; */
}
.modal-top {
  position: absolute;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: var(--sub-color-blue);
}
.modal-top .close-btn {
  position: absolute;
  z-index: 999;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;

  cursor: pointer;
}
.modal-content-inner {
  margin-top: 30px;
  width: 100%;
  height: 100%;
  font-size: 0;
  overflow-y: scroll;
}

.modal-content-inner img {
  width: 100%;
}

@media all and (max-width:1024px) {
  #dayNightEvent-wrap {
    /* width: calc(100% - 5rem); */
  }
  .dayNight-btns {
    width: calc(100% - 5rem);
  }
  .event-banner {
    width: calc(100% - 5rem);
  }
  .event-cards {
    width: calc(100% - 5rem);
  }

  /* modal */
  .modal-content {
    width: 80%;
  }
  .modal-content img {
      width: 100%;
  }
}

@media all and (max-width:768px) {
  #dayNightEvent-wrap {
    width: 100%;
    gap: 5rem;
    justify-content: center;
    align-items: center;
  }
  .subpage-banner {
    height: 340px;
  }
  .subpage-banner-title {
    top: 15%;
    width: 100%;
  }
  .subpage-banner-title h4 {
    font-size: 4rem;
  }
  .subpage-banner-title p {
    font-size: 1.8rem;
    word-break: keep-all;
  }
  .dayNight-btns {
    /* width: calc(100% - 3rem); */
    flex-direction: column;
    height: 12rem;
    border-radius: 0;
  }
  .dayNight-btns input:checked + .btns {
    height: 50%;
  }
  .dayNight-btns .btns {
    width: 100%;
    height: auto;
    line-height: 6rem;
    font-size: 2.2rem;
    border-radius: 0;
  }
  .dayNight-btns .btns.day, .dayNight-btns .btns.night {
    border-radius: 0;
    height: 50%;
  }

  .event-cards {
    /* width: calc(100% - 3rem); */
    align-items: center;
    justify-content: center;
  }
  .event-cards .event-card {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 660px;
    width: 100%;
  }
  .event-cards .event-card .card-img {
    width: 100%;
    height: 45%;
  }
  .event-cards .event-card .card-desc {
    width: 100%;
    height: auto;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    /* gap: 1rem; */
  }
}

@media all and (max-width:414px) {
  .event-cards .event-card {
    /* height: 550px; */
    height: auto;
  }
  .event-cards .event-card .card-img {
    height: auto;
  }
  .event-cards .event-card .card-desc .time-wrap p i {
    display: none;
  }
  .event-cards .event-card .card-desc .desc p {
    -webkit-line-clamp: 8;
  }
}