@charset "utf-8";

:root{
  --event-primary:#111111;
  --event-primary-hover:#222222;
  --event-gray-50:#f9f9f9;
  --event-gray-100:#f3f4f6;
  --event-gray-200:#e5e7eb;
  --event-gray-300:#d1d5db;
  --event-gray-400:#9ca3af;
  --event-gray-500:#6b7280;
  --event-gray-600:#111;
  --event-gray-700:#374151;
  --event-gray-800:#1f2937;
  --event-gray-900:#111827;
  --event-border:#e7e7e7;
  --event-radius:18px;
  --event-shadow:0 10px 30px rgba(0,0,0,.06);
}

*{
  box-sizing:border-box;
}

/* ix_view.css 파일이나 사용자 CSS에 추가 */
.event-article img,
.event-article a {
    display: block;  /* a 태그의 inline 여백도 제거 */
}

/* 또는 더 확실하게 */
.event-article a img {
    display: block;
    vertical-align: bottom;
}

.event-view{
  max-width:1280px;
  margin:0 auto;
  padding:0 24px 40px;
  color:var(--event-gray-800);
  word-break:break-word;
  overflow-wrap:anywhere;
}

.sb-view-icon{
  width:24px;
  height:24px;
  display:block;
}

/* hero */
.event-hero{
  position:relative;
  overflow:hidden;
  border-radius:32px;
  min-height:320px;
  margin-bottom:18px;
  background-color:#ddd;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
}

.event-hero.no-bg{
  background:linear-gradient(135deg, #d9d9d9 0%, #bdbdbd 100%);
}

.event-hero-dim{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0, 0, 0, .46) 0%, rgb(0 0 0 / 48%) 38%, rgb(0 0 0 / 42%) 100%);
}

.event-hero-inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:320px;
  padding:28px 28px 34px;
}

.event-hero-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.event-hero-badge-wrap{
  width:100%;
  display:flex;
  justify-content:flex-start;
  pointer-events:none;
}

.event-hero-actions{
  display:flex;
  gap:8px;
  margin-left:auto;
}

.event-hero-actions a{
  width: 38px;
  height: 38px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  transition: .2s ease;
}

.event-hero-actions a:hover{
  transform:translateY(-1px);
  background:#fff;
}

.event-hero-content{
  justify-items: center;
}

.event-title{
  margin:0;
  color:#fff;
  font-size:50px;
  line-height:1.18;
  font-weight:600;
  letter-spacing:-0.04em;
  word-break:keep-all;
  text-shadow:0 4px 16px rgba(0,0,0,.16);
}

.event-hero-content.is-always .event-title{
  margin-bottom:30px;
}

.event-period-hero{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:22px;
  color:rgba(255,255,255,.92);
  font-size:18px;
  font-weight:500;
}

.event-period-hero-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  backdrop-filter:blur(8px);
  font-size:14px;
  font-weight:700;
}

/* badge */
.event-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 18px;
  border-radius:999px;
  font-size:15px;
  font-weight:700;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  white-space:nowrap;
}

.event-badge--active{
  background:#111;
  color:#fff;
}

.event-badge--always{
  background:#1367ff;
  color:#fff;
}

.event-badge--ended{
  background:#f3f4f6;
  color:#6b7280;
}

.event-badge--upcoming{
  background:#eff6ff;
  color:#1d4ed8;
}

/* meta */
.event-meta-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:10px 20px;
  margin-bottom:24px;
  border-radius:22px;
  background:#f3f3f3;
}

.event-meta-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.event-author-avatar{
  width:46px;
  height:46px;
  border-radius:50%;
  overflow:hidden;
  flex:0 0 46px;
  background:#d9d9d9;
  display:flex;
  align-items:center;
  justify-content:center;
}

.event-author-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.event-author-avatar-fallback{
  font-size:24px;
  line-height:1;
}

.event-author-name{
  font-size:20px;
  font-weight:600;
  color:#111;
}

.event-meta-right{
  display:flex;
  align-items:center;
  gap:12px;
  color:#7b7b7b;
  font-size:15px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.event-meta-item{
  white-space:nowrap;
}

.event-meta-dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:#b7b7b7;
}

/* attach */
.event-attach{
  margin-bottom:24px;
  padding:20px 24px;
  border:1px solid var(--event-border);
  border-radius:20px;
  background:#fafafa;
}

.event-attach-title{
  margin-bottom:12px;
  font-size:18px;
  font-weight:600;
  color:#111;
}

.event-attach-list{
  list-style:none;
  margin:0;
  padding:0;
}

.event-attach-item + .event-attach-item{
  margin-top:10px;
}

.event-attach-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--event-border);
  text-decoration:none;
  color:#222;
}

.event-attach-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.event-attach-meta{
  flex-shrink:0;
  font-size:13px;
  color:#777;
}

/* body */
/* 글씨체 고정 */
.event-body-wrap .event-article span{
 font-family: "Apple SD Gothic Neo" !important;
}

.event-body-wrap{
  margin-bottom:24px;
}

.event-image-list{
  margin-bottom:20px;
  text-align:center;
}

.event-image-list:after{
  display:block;
  visibility:hidden;
  clear:both;
  content:"";
}

.event-image-list a.view_image{
  pointer-events:none;
}

.event-image-list img{
  max-width:50%;
  height:auto;
  border-radius:12px;
  pointer-events:none;
}

.event-video-wrap{
  margin-bottom:20px;
}

.event-video-box iframe{
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
  border:0;
  border-radius:22px;
  display:block;
}

.event-article{
  /* font-size:16px; */
  /* background:#fff; */
  /* border:1px solid var(--event-border); */
  /* border-radius:24px; */
  padding:0 140px;
  /* box-shadow:var(--event-shadow); */
}

.event-article h1,
.event-article h2,
.event-article h3,
.event-article h4{
  color:#111;
  line-height:1.35;
}

.event-article h2{
  margin:28px 0 16px;
  font-size:28px;
  font-weight:600;
}

.event-article h3{
  margin:24px 0 12px;
  font-size:22px;
  font-weight:600;
}

.event-article p{
  margin-bottom:18px;
  font-size:17px;
  line-height:1.8;
  color:#333;
}

.event-article ul,
.event-article ol{
  margin:18px 0;
  padding-left:24px;
}

.event-article li{
  margin-bottom:8px;
  line-height:1.75;
}

.event-article blockquote{
  margin:24px 0;
  padding:16px 18px;
  border-left:4px solid #111;
  background:#f8f8f8;
  color:#555;
}

.event-article img,
.event-article iframe,
.event-article video{
  max-width:100%;
  height:auto;
}

.event-article a{
  color:#1f4f9b;
  text-decoration:underline;
}

/* recommend */
.event-recommend{
  position:relative;
  margin-bottom:24px;
}

.event-recommend-on,
.event-recommend-off{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.event-recommend-on span,
.event-recommend-off span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  font-size:15px;
  border:1px solid var(--event-border);
  background:#fafafa;
}

.event-recommend-on a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#111;
}

.event-recommend-on i,
.event-recommend-off i{
  color:#111;
}

.event-rec-msg{
  position:absolute;
  bottom:-34px;
  right:0;
  background:#111827;
  border-radius:8px;
  display:none;
}

.event-rec-msg span{
  display:inline-block;
  padding:8px 10px;
  color:#fff;
  font-size:13px;
}

/* sign */
.event-sign{
  margin-bottom:24px;
}

.event-sign-box{
  padding:18px 20px;
  border:1px solid var(--event-border);
  background:#f6f8fa;
  border-radius:16px;
  border-left:4px solid #111;
  font-size:15px;
}

/* post nav */
.event-postnav{
  margin:24px 0;
  border-top:1px solid #dadada;
}

.event-postnav ul{
  list-style:none;
  margin:0;
  padding:0;
}

.event-postnav a{
  font-size:16px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px 0;
  text-decoration:none;
  color:#111;
}

.event-postnav a:hover{
  background:#fafafa;
}

.event-postnav-move{
  width:15px;
  flex:0 0 15px;
}

.event-postnav-title{
  flex:1;
  font-weight:500;
}

.event-postnav-date{
  font-size:14px;
  color:#667085;
}

/* bottom buttons */
.event-actions-bottom{
  margin-top:20px;
}

.event-actions-bottom-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.event-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 18px;
  border-radius:14px;
  background:#111;
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:600;
  transition:.2s ease;
}

.event-btn:hover{
  transform:translateY(-1px);
  background:#111;
  color:#fff;
}

.event-btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.event-btn-text{
  display:inline-block;
}

@media (max-width: 768px){
  .event-view{
    padding: 0 14px 28px;
  }

  .event-hero{
    min-height: 170px;
    border-radius: 18px;
    margin-bottom: 10px;
  }

  .event-hero-inner{
    min-height: 170px;
    padding: 16px 14px 18px;
  }

  .event-hero-top{
    flex-direction: row;
    align-items: center;
  }
  .event-hero-actions a {
    width: 30px;
    height: 25px;
    font-size: 12px;
  }
  .event-badge{
    min-height:34px;
    padding:0 14px;
    font-size:13px;
  }

  .event-title{
    text-align: center;
    font-size: 22px;
    line-height: 1.35;
  }

  .event-hero-content.is-always .event-title{
     margin-bottom:16px;
   }

  .event-period-hero{
    font-size: 12px;
    gap: 6px;
    margin-top: 10px;
  }

  .event-period-hero-label{
    min-height:32px;
    padding:0 12px;
    font-size:12px;
  }

  .event-meta-bar{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .event-author-name{
    font-size:16px;
  }
  .event-meta-left{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .event-meta-right{
    justify-content: flex-start;
    font-size: 12px;
  }

  .event-attach{
    padding:16px;
    border-radius:18px;
  }

  .event-attach-link{
    flex-direction:column;
    align-items:flex-start;
  }

  .event-image-list img{
    width:100%;
    max-width:100% !important;
    height:auto;
    border-radius:10px;
  }
  .event-body-wrap{
    margin-bottom: 10px;
  }
  .event-article{
    padding: 0;
    border-radius: 16px;
  }

  .event-article h2{
    font-size:22px;
    margin:22px 0 12px;
  }

  .event-article h3{
    font-size:18px;
    margin:18px 0 10px;
  }

  .event-article p{
    font-size:15px;
    line-height:1.75;
  }
  .event-postnav{
    margin: 10px 0;
  }

  .event-postnav a{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0;
  }

  .event-postnav-title{
    font-size:13px;
  }

  .event-postnav-date{
    font-size:11px;
  }

  .event-actions-bottom-inner{
    gap: 8px;
  }

  .event-btn{
    color: #fff !important;
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }

  .sb-view-icon{
    width:22px;
    height:22px;
  }
}
