/* eventGrid 스킨 - 3열 이미지 그리드 */

@media (max-width: 1200px) {
  .wrap {
    width: auto;
  }
}

/* 헤더 */
.event-list-header {
  padding: 72px 0 28px;
  margin-bottom: 36px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.event-list-sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #f1a28d;
  margin-bottom: 10px;
}

.event-list-title {
  font-family: "godo-bold", sans-serif;
  font-size: 32px !important;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.event-list-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: #f1a28d;
  margin: 14px auto 0;
  border-radius: 2px;
}

#bo_event_grid {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  padding: 0 20px;
}

.event-grid-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 40px;
  column-gap: 20px;
}

.event-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
}

.event-admin-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-admin-buttons li {
  margin: 0;
}

.event-check-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 35px;
  padding: 0 10px;
  border: 1px solid #d5d5d5;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 35px;
  color: #333;
  cursor: pointer;
}

.event-check-all input {
  margin: 0;
}

.event-admin-count {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #111;
}

.event-admin-count__summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-order-help {
  font-size: 13px;
  font-weight: 400;
  color: #777;
}

.event-admin-count .event-order-message {
  font-size: 13px;
}

.event-order-message--saved {
  color: #2f8f46;
}

.event-order-message--dirty {
  color: #d26c52;
}

.event-grid-item {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
}

.event-grid-list--sortable .event-grid-item {
  cursor: default;
}

.event-order-handle {
  position: absolute;
  top: 10px;
  right: 10px;
  display: block;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font-size: 16px;
  line-height: 34px;
  text-align: center;
  cursor: move;
  user-select: none;
}

.event-grid-list--sortable .ui-sortable-helper {
  opacity: 0.88;
}

.event-grid-placeholder {
  min-height: 260px;
  border: 2px dashed #f1a28d;
  background: #fff7f4;
}

.event-order-submit {
  background: #f1a28d !important;
  border-color: #f1a28d !important;
  color: #fff !important;
}

.event-order-submit:disabled {
  background: #ccc !important;
  border-color: #ccc !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.event-order-submit.is-active {
  opacity: 1;
  cursor: pointer;
}

.event-grid-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.event-img-wrap {
  width: 100%;
  aspect-ratio: 580 / 655;
  overflow: hidden;
  background: #f4f4f4;
}

.event-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.event-grid-item a:hover .event-img-wrap img {
  transform: scale(1.03);
}

.event-no-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #eeeeee;
}

.event-title {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.event-empty {
  padding: 60px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
  width: 100%;
}

/* 상세 페이지 브레드크럼 */
.ev-view-breadcrumb {
  margin-bottom: 20px;
}
.ev-view-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: #999;
  max-width: 1080px;
}
.ev-view-breadcrumb ol li + li::before {
  content: "›";
  margin-right: 4px;
}
.ev-view-breadcrumb ol a {
  color: #999;
  text-decoration: none;
}
.ev-view-breadcrumb ol a:hover {
  color: #333;
}
.ev-view-breadcrumb ol li[aria-current="page"] {
  color: #333;
}

/* 상세 페이지 헤더 */
#bo_v_title {
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
}
#bo_v_title h2 {
  font-size: 22px !important;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
  line-height: 1.4;
}
.ev-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #999;
}
.ev-view-meta i {
  margin-right: 4px;
}

.ev-view-img {
  text-align: center;
}
.ev-view-img img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 상세 페이지 레이아웃 */
#bo_v {
  width: 100% !important;
  max-width: 1080px;
  margin: 0 auto;
  box-sizing: border-box;
}
#bo_v_atc {
  margin-bottom: 28px;
}
#bo_v_top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#bo_v_top ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#bo_v_top .bo_v_left,
#bo_v_top .bo_v_com {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#bo_v_top .bo_v_left li,
#bo_v_top .bo_v_com li {
  margin: 0;
}
/* 글쓰기 폼 */
.event-write {
  max-width: 920px;
  margin: 40px auto 0;
  box-sizing: border-box;
}
.event-write #fwrite {
  width: 100% !important;
  margin: 0;
}
.event-write .tb {
  width: 100%;
  box-sizing: border-box;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.event-write .tb tr + tr th,
.event-write .tb tr + tr td {
  border-top: 1px solid #f1f1f1;
}
.event-write .tb th {
  width: 160px;
  padding: 18px 20px;
  background: #fafafa;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  vertical-align: middle;
}
.event-write .tb td {
  padding: 18px 20px;
  vertical-align: middle;
}
.event-write .frm_input,
.event-write .frm_file {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.event-write .frm_input {
  height: 44px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0 12px;
}
.event-write .frm_input:focus,
.event-write .frm_file:focus {
  border-color: #c7c7c7;
  outline: none;
}
.event-write .frm_file {
  padding: 10px 12px;
  border: 1px dashed #d9d9d9;
  background: #fcfcfc;
}
.event-write .file_del {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #666;
  font-size: 13px;
}
.event-write .write_div {
  margin-top: 18px;
}
.event-write .cf-turnstile {
  margin-top: 16px;
}
.event-write .btn_confirm {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.event-write .btn_confirm .btn {
  min-width: 118px;
  height: 44px;
  line-height: 44px;
  padding: 0 18px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  text-align: center;
  box-sizing: border-box;
}
.event-write .btn_confirm #btn_submit {
  border-color: #f1a28d;
  background: #f1a28d;
  color: #fff;
}
.event-write .btn_confirm #btn_submit:hover {
  filter: brightness(0.96);
}
.file-desc {
  display: block;
  margin-top: 8px;
  color: #888;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .event-write {
    margin-top: 28px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .event-write .tb th,
  .event-write .tb td {
    padding-left: 16px;
    padding-right: 16px;
  }
  .event-write .file_del label {
    display: inline-block;
    vertical-align: top;
    word-break: break-all;
  }
}

/* 체크박스 */
.event-grid-item__check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}
.event-grid-item__check input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* 1200px 이하: 2열 */
@media (max-width: 1200px) {
  #bo_event_grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .event-grid-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    row-gap: 32px;
  }
}

/* 상세 페이지 태블릿 구간 여백 */
@media (max-width: 1200px) and (min-width: 737px) {
  #bo_v,
  .ev-view-breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 모바일: 1열 */
@media (max-width: 480px) {
  .event-grid-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    row-gap: 32px;
  }
  .event-title {
    font-size: 14px;
  }
  .event-list-title {
    font-size: 28px !important;
  }
}

@media (max-width: 736px) {
  .event-write {
    margin-top: 24px;
    padding-top: 72px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .event-write .tb {
    border-radius: 10px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .event-write .tb colgroup {
    display: none;
  }
  .event-write .tb tr,
  .event-write .tb th,
  .event-write .tb td,
  .event-write .tb tbody {
    display: block;
    width: 100%;
  }
  .event-write .tb tr {
    border-top: 1px solid #f1f1f1;
  }
  .event-write .tb tr:first-child {
    border-top: 0;
  }
  .event-write .tb th {
    padding: 14px 14px 8px;
    border: 0 !important;
    background: #fff;
    font-size: 13px;
  }
  .event-write .tb td {
    padding: 0 14px 14px;
    border: 0 !important;
  }
  .event-write .tb tr + tr th {
    padding-top: 14px;
  }
  .event-write .frm_input {
    height: 42px;
    font-size: 14px;
  }
  .event-write .frm_file {
    font-size: 13px;
  }
  .event-write .btn_confirm {
    justify-content: stretch;
    gap: 8px;
  }
  .event-write .btn_confirm .btn {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14px;
  }
  .event-write .cf-turnstile {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .event-write .file_del {
    align-items: flex-start;
  }

  #bo_v {
    padding: 0 16px 60px;
  }

  /* 1열에서 목록 하단 버튼과 하단 요소 간격 */
  #bo_event_grid .bo_fx {
    margin-bottom: 80px;
  }

  .ev-view-breadcrumb {
    padding: 72px 16px 0;
    margin-bottom: 14px;
  }
  .ev-view-breadcrumb ol {
    font-size: 12px;
    gap: 3px;
  }
  #bo_v_title {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  #bo_v_title h2 {
    font-size: 18px !important;
    margin-bottom: 10px;
  }
  .ev-view-meta {
    gap: 10px;
    font-size: 12px;
  }
  #bo_v_atc {
    margin-bottom: 20px;
  }
  #bo_v_top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #bo_v_top .bo_v_left,
  #bo_v_top .bo_v_com {
    width: 100%;
  }
  #bo_v_top .bo_v_left li,
  #bo_v_top .bo_v_com li {
    flex: 1 1 calc(50% - 4px);
  }
  #bo_v_top .bo_v_left .btn,
  #bo_v_top .bo_v_com .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  #bo_v_top .bo_v_nb .nb_sbj {
    display: block;
    margin-top: 2px;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .event-write {
    padding-left: 10px;
    padding-right: 10px;
  }
  .event-write .tb th {
    padding: 12px 10px 6px;
  }
  .event-write .tb td {
    padding: 0 10px 12px;
  }
  .event-write .frm_input {
    height: 40px;
    padding: 0 10px;
  }
  .event-write .btn_confirm {
    flex-direction: column;
  }
  .event-write .btn_confirm .btn {
    width: 100%;
    height: 42px;
    line-height: 42px;
  }
  .event-write .file_del {
    display: flex;
    width: 100%;
  }

  #bo_v {
    max-width: 100%;
  }
  #bo_v_title h2 {
    font-size: 17px !important;
    line-height: 1.45;
  }
  #bo_v_top .bo_v_left li,
  #bo_v_top .bo_v_com li {
    flex-basis: 100%;
  }
}
