/**
 * 모던그레이 템플릿 - 흰색 배경, 검정 글씨, 모바일 가독성 위주
 * 테두리 미사용, 좌우여백 15px, 폰트 최소 15px
 */

/* 게시판 리스트 - 테두리/라운드 제거 (전체 화면) */
.board-list {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.board-list__header,
.board-list__row {
  border: none !important;
  border-bottom: none !important;
}

.board-list__header {
  background: transparent !important;
}

.board-list__row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.board-list__row:last-child {
  border-bottom: none !important;
}

@media (max-width: 768px) {

  .board-list__header,
  .board-list__row {
    padding-left: var(--spacing-mobile);
    padding-right: var(--spacing-mobile);
  }

  .board-list__row {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

/* 템플릿 기본 폰트 */
body.site {
  font-size: var(--font-size-base);
}

.site-shell {
  background: #fff;
  border: #ddd solid 1px;
}


/* 폰트 최소 15px - 가독성 위주 */
@media (max-width: 768px) {

  .board-list__title,
  .board-list__cell--date,
  .news-item__date,
  .news-item__title,
  .board-gallery__title,
  .board-gallery__excerpt,
  .board-gallery__meta,
  .board-webzine__title,
  .board-webzine__excerpt,
  .guestbook-card__title,
  .guestbook-card__content,
  .section-title {
    font-size: max(var(--font-size-min), 15px);
  }
}

.site-main {
  padding-bottom: 3rem;
}

.site-footer {
  border-top: #27375b solid 1px;
  padding: 0.5rem 0 2rem 0;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.85rem;
  text-align: center;
}

/* Header/Nav - Darken */
.site-header {
  padding: 0;
  border-bottom: #27375b solid 1px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
}

body.has-hero .site-header {
  position: absolute;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Hero Section */
.site-hero {
  position: relative;
  /* min-height: 120px; Removed to fit content */
  margin-bottom: 2rem;
  padding: 3rem 0;
  /* Add top/bottom padding for the video */
}

body.has-hero .site-hero {
  width: 100%;
}

.site-hero--with-bg {
  padding: 0;
}

/* Overlay for Hero Background */
.site-hero__overlay {
  position: absolute;
  inset: 0;
  background: #e1e1e1;
}

.site-hero__content {
  position: relative;
  z-index: 1;
}

.site-hero--with-bg .site-hero__content {
  position: relative;
  /* Changed to relative so content drives height */
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem;
  /* Increased bottom padding */
  z-index: 2;
}

.site-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.site-hero__title {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  opacity: 0.9;
  text-align: center;
}

.site-hero__title {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  opacity: 0.9;
}

/* Main Video */
/* .site-main-video ruleset removed as it is now merged into hero */

.site-main-video__frame {
  background: transparent;
  border-radius: 0.5rem;
  overflow: hidden;
  /* box-shadow removed for transparency focus */
  width: 100%;
  margin: 0 auto;
}

.site-main-video__frame iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  /* Vertical Video focus */
  border: none;
  display: block;
  background: transparent;
}

.site-main-video__frame.is-horizontal iframe {
  aspect-ratio: 16 / 9;
}

.site-main-video__frame.is-vertical {
  width: 70%;
  max-width: 420px;
}

.site-main-video__frame.is-horizontal {
  max-width: 100%;
}


/* Contact Name Box */
.contact-box {
  margin-bottom: 3rem;
  text-align: center;
}

.contact-card {
  background: var(--color-box);
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

body.site[data-theme="light"] .contact-card {
  background: var(--color-box);
  border: 1px solid #ddd;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 6px 6px -4px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.contact-card__name {
  font-size: 1.4rem;
  color: #e2e8f0;
  margin: 0;
}

.contact-card__phone {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
  letter-spacing: 0.5px;
}

.contact-card__actions {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn-contact:hover {
  opacity: 0.9;
}

.btn-contact--call {
  background: var(--color-gray);
  /* Dark Blue */
  color: #fff;
}

.btn-contact--save {
  background: var(--color-accent);
  /* Slightly lighter blue */
  color: #fff;
}

.btn-contact--sms {
  background: #777;
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.site-logo {
  font-weight: 700;
  color: var(--color-text);
}

.site[data-theme="light"] .site-logo a {
  color: #333;
}

.site-logo i {
  margin-right: 6px;
  color: var(--color-gray);
}

.site-menu-button {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
}

.site-menu-button i {
  font-size: 30px;
  color: var(--color-gray);
}

body.site[data-theme="light"] .site-logo,
body.site[data-theme="light"] .site-menu-button {
  color: #333;
}


/* .site-menu-button__icon::after { transform: translateY(7px); } */
/* Simplified for now */

.site-header__menu-wrap {
  position: relative;
}

.site-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  width: 14rem;
  background: #333 !important;
  padding: 1rem;
  z-index: 100;
}

.site-menu[hidden] {
  display: none;
}

.site-menu__group {
  display: grid;
  gap: 0.5rem;
}

.site-menu__group a {
  color: #fff !important;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.site-menu__group a:hover {
  color: #ccc !important;
}

.site-menu__group i {
  color: #ccc;
  margin-right: 4px;
}

.site-menu__divider {
  height: 1px;
  background: var(--color-gray) !important;
  margin: 0.75rem 0;
}

/* 라이트 테마 - 게시판 갤러리/카드 테두리 제거 */
@media (max-width: 768px) {
  .board-gallery__item {
    border: none;
    background: transparent;
  }

  .guestbook-card {
    border: none;
    background: var(--color-box);
    border-radius: 0.5rem;
  }
}

/* Profile Card (Center Box) */
.profile-box {
  margin-bottom: 2rem;
  /* margin-top: -3rem; Optional: if overlap effect is desired later */
}

body.has-hero .profile-box {
  margin-top: -1.5rem;
}

body.site[data-theme="light"] .profile-card {
  background: var(--color-box);
  margin-top: 25px;
  padding: 0px;
  position: relative;
}

.profile-card__header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.profile-card__title {
  display: inline-block;
  color: var(--color-accent);
  font-size: 2rem;
  font-weight: 600;
}

.profile-card__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #999;
  margin: 12px auto 0;
  border-radius: 2px;
}

.profile-card .e_btn {
  width: fit-content;
  text-align: center;
  border: #ccc solid 1px;
  padding: 4px 12px;
  border-radius: 6px;
  float: right;
}

.profile-card .e_btn i {
  color: #999;
  margin-right: 4px;
}

.profile-card .e_btn:hover {
  border: #333 solid 1px;
}

.profile-info-group {
  margin-bottom: 1.25rem;
}

.profile-info-group:last-child {
  margin-bottom: 0;
}

.profile-info-group__title {
  color: var(--color-point);
  /* Slate 400 */
  font-size: 20px;
  margin: 30px 0 20px 0;
  font-weight: 600;
}

.profile-info-group__content {
  color: #444;
  font-size: 16px !important;
  font-weight: 400;
  line-height: 26px;
}

.profile-card--collapsible .profile-card__body {
  max-height: 15rem;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.profile-card--collapsible.is-expanded .profile-card__body {
  max-height: 2000px;
}

.profile-card__toggle {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--color-accent);
  margin-top: 1rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.profile-card__toggle i {
  padding: 6px 20px;
  background: #777;
  border-radius: 4px;
  color: #fff;
  transition: transform 0.2s ease;
}

.profile-card--collapsible.is-expanded .profile-card__toggle i {
  transform: rotate(180deg);
}

/* Section Titles */
.section-title {
  font-size: 22px;
  color: #333 !important;
  margin: 0 0 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid #999;
  line-height: 1.2;
}

.board-section {
  margin-bottom: 3rem;
}

.board__header {
  text-align: center;
  margin: 25px 0 30px 0;
}

.board-view__header {
  text-align: center;
  margin: 25px 0 30px 0;
}

.board__title {
  display: inline-block;
  color: var(--color-accent);
  font-size: 2rem;
  font-weight: 700;
}

.board__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #999;
  margin: 12px auto 0;
  border-radius: 2px;
}

.board__title .e_btn {
  width: fit-content;
  text-align: center;
  border: #ccc solid 1px;
  padding: 4px 12px;
  border-radius: 6px;
  float: right;
}

.board-list {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--color-box);
}

.board-list__header,
.board-list__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.board-list__header {
  background: var(--color-bg) !important;
  font-weight: 600;
  font-size: 15px;
}

.board-list__row {
  border-bottom: 1px solid #ddd;
  font-size: 15px;
}

.board-list__row:last-child {
  border-bottom: none;
}

.board-list__cell {
  flex: 0 0 auto;
  text-align: center;
  color: var(--color-text);
}

.board-list__cell--title {
  flex: 1 1 auto;
  text-align: left;
  min-width: 0;
}

.board-list__cell--author {
  width: 120px;
}

.board-list__cell--date {
  width: 120px;
}

.board-list__cell--views {
  width: 80px;
}

.board-list__title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guestbook-grid {
  column-count: 2;
  column-gap: 1rem;
}

.guestbook-card {
  break-inside: avoid;
  background: var(--color-box);
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1rem;
  margin: 0 0 1rem;
}

.guestbook-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--color-gray);
  font-weight: 600;
}

.guestbook-card__meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.guestbook-card__content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .guestbook-grid {
    column-count: 1;
  }

  .site-menu-button__icon {
    font-size: 28px !important;
  }

  .board-list__header,
  .board-list__row {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }

  .board-list__cell--author,
  .board-list__cell--views {
    display: none;
  }

  .board-list__cell--date {
    width: 88px;
    font-size: 0.75rem;
  }

  .board-list__title {
    font-size: 15px !important;
    font-weight: 500;
  }
}

.board-view {
  padding: 20px !important;
}

.board-view__title {
  font-size: 24px;
  margin: 0rem 0 0.5rem;
  color: var(--color-accent);
  text-align: left !important;
}

.board-view__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-wrap: wrap;
  padding-bottom: 8px;
  margin-bottom: 20px;
  border-bottom: #ddd solid 1px;
}

.board-view__content {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.board-view__content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.6rem;
}

.board-share {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}

.kakao-share-btn {
  background: #fee500;
  color: #3c1e1e;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.board-comments {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.board-comments h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--color-accent);
}

.board-comment__form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.board-comment__form input,
.board-comment__form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--color-box);
  color: var(--color-text);
}

.board-comment__form button {
  align-self: flex-start;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
}

.board-comment__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.board-comment__item {
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.6);
}

.board-comment__item.is-reply {
  margin-left: 1rem;
}

.board-comment__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.board-comment__reply {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.board-comment__reply input,
.board-comment__reply textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--color-box);
  color: var(--color-text);
}

.board-comment__reply button {
  align-self: flex-start;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  border: none;
  background: rgba(77, 145, 255, 0.15);
  color: #cbd5e1;
}

.board-view__actions {
  display: flex;
  text-align: right;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  justify-content: flex-end !important;
}

.e_btn {
  text-align: right;
  margin-bottom: 20px;
}

.g_btn {
  text-align: right;
}

.board-view__button {
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.7);
  font-size: 0.85rem;
}

.board-view__button--danger {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
}

.board-view__youtube {
  margin: 1.25rem 0;
  display: flex;
  justify-content: center;
}

.board-view__youtube iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("../fonts/NotoSansKR-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("../fonts/NotoSansKR-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("../fonts/NotoSansKR-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body.admin {
  margin: 0;
  font-family: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #e5e7eb;
  background: #0b1220;
}

body.admin a {
  text-decoration: none;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.admin-header {
  background: #0f172a;
  border-bottom: 1px solid #1f2937;
}

.admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-logo {
  font-weight: 700;
  font-size: 1.25rem;
}

.admin-logo i {
  margin-right: 6px;
  color: #aaa;
}

.admin-menu-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.4rem;
  border: 1px solid #1f2937;
  background: #0b1220;
  color: #e5e7eb;
  place-items: center;
  cursor: pointer;
}

.admin-menu-button__icon,
.admin-menu-button__icon::before,
.admin-menu-button__icon::after {
  content: "";
  display: block;
  width: 1.2rem;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

.admin-menu-button__icon::before {
  transform: translateY(-6px);
}

.admin-menu-button__icon::after {
  transform: translateY(4px);
}

.admin-menu {
  position: fixed;
  top: 4.2rem;
  right: auto;
  width: min(18rem, calc(100% - 2.5rem));
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  padding: 1rem;
  z-index: 10;
}

.admin-menu__content {
  display: grid;
  gap: 0.75rem;
}

.admin-menu__group {
  display: grid;
  gap: 0.5rem;
}

.admin-menu__group a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
}

.admin-menu__divider {
  height: 1px;
  background: #1f2937;
}

.admin-main {
  min-height: calc(100vh - 180px);
}

.admin-card {
  background: #fff;
  border-radius: 0.75rem;
  max-width: 32rem;
  margin: 0px auto;
  padding: 1.5rem;
}

.admin-card__title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.admin-card__subtitle {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.95rem;
  color: #666;
}

.admin-card--narrow {
  max-width: 32rem;
  margin: 50px auto;
}

.admin-card--wide {
  max-width: 56rem;
  margin: 40px auto;
}

.admin-form {
  display: grid;
  gap: 0.75rem;
}

.admin-form--two {
  grid-template-columns: 1fr;
}

.admin-form__full {
  grid-column: 1 / -1;
}

.admin-form__label {
  line-height: 38px;
  font-size: 0.95rem;
  color: #444;
}

.admin-form__input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc !important;
  border-radius: 0.5rem;
  background: #fff !important;
  color: #333 !important;
}

.admin-form__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.admin-color-swatch {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  border: 1px solid #1f2937;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.admin-form__button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  background: #666;
  color: #fff;
}

.admin-form__button--ghost {
  margin-top: 0;
  background: transparent;
  border: 1px solid #3b82f6;
  color: #333;
  padding: 0.5rem 1rem;
}

.admin-form__button--danger {
  margin-top: 0;
  background: transparent;
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 0.4rem 1rem;
  cursor: pointer;
}

.admin-logo-preview {
  margin-top: 0.75rem;
  width: 6rem;
  height: 6rem;
  border-radius: 0.75rem;
  border: 1px solid #1f2937;
  background: #0b1220;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.admin-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-tabs {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.4rem;
  border-radius: 0.75rem;
  background: #f1f1f1;
  border: 1px solid #ccc;
  margin-bottom: 1.25rem;
}

.admin-tab {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.6rem;
  background: transparent;
  color: #333;
}

.admin-tab.is-active {
  background: #555;
  color: #fff;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

.admin-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ccc;
}

.admin-section__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.admin-info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.admin-info__label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.35rem;
}

.admin-info__value {
  color: #333;
}

.admin-form__hint {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.admin-form__hint a {
  color: #60a5fa;
  text-decoration: none;
}

.admin-form__error {
  margin: 0;
  font-size: 0.85rem;
  color: #fca5a5;
}

.admin-form__status {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.admin-form__status[data-state="success"] {
  color: #34d399;
}

.admin-form__status[data-state="error"] {
  color: #fca5a5;
}

.admin-upload {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  background: #0b1220;
}

.admin-upload__label {
  font-size: 0.95rem;
  color: #cbd5f5;
}

.admin-upload__preview {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 1px solid #243047;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #94a3b8;
  overflow: hidden;
}

.admin-upload__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-upload__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #243047;
  color: #e5e7eb;
  background: #0f172a;
  cursor: pointer;
}

.admin-upload__input {
  display: none;
}

.admin-upload__hint {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.admin-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panel {
  background: #f1f1f1;
  padding: 1rem;
  border-radius: 0.6rem;
  border: 1px solid #ccc;
}

.admin-panel__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.admin-panel__desc {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

.admin-board__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-board__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-post__header {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.admin-post__header .admin-board__actions {
  justify-content: flex-end;
}

.admin-post__meta {
  display: inline-flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.admin-post__youtube iframe {
  width: 100%;
  border: none;
  border-radius: 0.8rem;
  aspect-ratio: 16 / 9;
}

.admin-post__youtube.is-vertical {
  max-width: 50%;
  margin: 1.5rem auto;
}

.admin-post__content {
  margin-top: 1.5rem;
  line-height: 1.7;
}

.admin-post__content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.admin-post__attachments {
  margin-top: 1.5rem;
}

.admin-post__attachments ul {
  padding-left: 1.2rem;
}

@media (max-width: 768px) {
  .admin-post__youtube.is-vertical {
    max-width: 100%;
  }
}

.admin-board__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  background: #0b1220;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  text-decoration: none;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #0b1220;
  border-radius: 0.8rem;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #1f2937;
  text-align: left;
  font-size: 0.95rem;
}

.admin-table th {
  background: #0f172a;
  color: #cbd5f5;
}

.admin-table a {
  color: #93c5fd;
  text-decoration: none;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .admin-grid--two {
    grid-template-columns: 1fr;
  }

  .admin-board__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.admin-form__actions {
  margin-top: 1.5rem;
}

.admin-sns {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.admin-sns-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr auto 1.2fr auto;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #ccc;
  background: #f1f1f1;
}

.admin-sns-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-sns-icon {
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 0.5rem;
  border: 1px solid #1f2937;
  background: #0f172a;
  object-fit: contain;
}

@media (max-width: 768px) {
  .admin-sns-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.admin-form__alert {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
}

.admin-form__alert--success {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.admin-form__alert--error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.admin-profile__sections {
  display: grid;
  gap: 1.25rem;
}

.admin-profile__section {
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
  display: grid;
  gap: 0.75rem;
}

.admin-profile__section-head {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.admin-profile__actions {
  margin-top: 0.5rem;
}

.admin-profile__images {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.admin-profile__image-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-profile__image-item {
  position: relative;
  display: grid;
  gap: 0.5rem;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #0f172a;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.admin-profile__image-item.is-removed {
  pointer-events: none;
}

.admin-profile__image-item.is-removed::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.75rem;
}

.admin-profile__image-item.is-removed::after {
  content: '삭제 예정';
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.admin-profile__image-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.admin-profile__image-remove:hover {
  background: #dc2626;
}

.admin-profile__image-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid #1f2937;
}

@media (max-width: 640px) {
  .admin-profile__section-head {
    grid-template-columns: 1fr;
  }
}

.admin-footer {
  background: #0f172a;
  border-top: 1px solid #1f2937;
}

.admin-footer__inner {
  font-size: 0.9rem;
  color: #94a3b8;
  padding: 0;
}

.admin-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #1f2937;
  flex-wrap: wrap;
}

.admin-footer__links {
  display: inline-flex;
  gap: 1rem;
}

.admin-footer__links a {
  color: #94a3b8;
  text-decoration: none;
}

.admin-footer__bottom {
  text-align: center;
  font-size: 0.75rem;
  padding: 0.75rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
  width: 100%;
  border: 1px solid #243047;
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  background: #0b1220;
  color: #e5e7eb;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #3b82f6;
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .admin-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-form--two {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sns-floating {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.sns-floating__inner {
  position: relative;
  width: min(540px, calc(100% - 2rem));
  padding: 0.4rem 3.2rem;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.sns-floating__slider {
  overflow: hidden;
}

.sns-floating__track {
  display: flex;
  align-items: center;
  transition: transform 0.6s ease;
  will-change: transform;
}

.sns-floating__item {
  flex: 0 0 calc(100% / var(--per-view, 5));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.sns-floating__item img,
.sns-floating__center img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.sns-floating__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #0b1220;
  border: 1px solid #1f2937;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

body.site[data-theme="light"] .sns-floating__inner {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e2e8f0;
}

body.site[data-theme="light"] .sns-floating__center {
  background: #fff;
  border-color: #e2e8f0;
}

/* SNS Share Bar - 프로필/게시물 하단 공유 바 */
.sns-share-bar {
  display: block;
  text-align: center;
  gap: 8px;
  padding: 1rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}

.sns-share-bar__kakao {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.4rem;
  border-radius: 0.5rem;
  background: #fee500;
  color: #191919;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sns-share-bar__kakao:hover {
  opacity: 0.9;
}

.sns-share-bar__kakao img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sns-share-bar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.2s;
}

.sns-share-bar__link:hover {
  background: rgba(0, 0, 0, 0.1);
}

.sns-share-bar__link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.board-view__sns {
  margin-top: 1rem;
}

/* News List */
.news-list {
  display: grid;
  gap: 0.75rem;
}

.news-item {
  display: flex;
  align-items: center;
  /* Check vertically aligned */
  gap: 0.5rem;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
}

.news-item__date {
  color: #64748b;
  /* Slate 500 */
  font-size: 1rem;
  flex-shrink: 0;
}

.news-item__title {
  color: #333;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* Board Gallery */
.board-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 32px;
}

.board-gallery__item {
  background: var(--color-box);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.board-gallery__link {
  display: block;
  color: inherit;
}

.board-gallery__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.board-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.board-gallery__thumb--empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #475569;
  font-size: 0.85rem;
}

.board-gallery__youtube {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.board-gallery__youtube svg {
  width: 80px;
  height: 80px;
}

.board-gallery__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.75rem 0.9rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-gallery__excerpt {
  margin: 0.4rem 0.9rem 0;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.85);
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
}

.board-gallery__meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0.5rem 0.9rem 0.85rem;
}

/* Board Webzine - 좌측 썸네일, 우측 제목+내용 */
.board-webzine {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
}

.board-webzine__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
}

.board-webzine__item:last-child {
  border-bottom: none;
}

.board-webzine__link {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  color: inherit;
  text-decoration: none;
  min-height: 0;
}

.board-webzine__thumb {
  flex-shrink: 0;
  width: 200px;
  min-width: 140px;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
  position: relative;
  border-radius: 0.5rem;
}

.board-webzine__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.board-webzine__thumb--empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 0.75rem;
}

.board-webzine__youtube {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.3);
}

.board-webzine__youtube svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.board-webzine__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.board-webzine__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  letter-spacing: -1px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text);
}

.board-webzine__excerpt {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 0.4rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-webzine__meta {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  gap: 0.6rem;
}

.board-webzine__meta .is-hidden-desktop {
  display: none;
}

.board-webzine__meta .is-hidden-mobile {
  display: inline;
}

@media (min-width: 769px) {
  .board-webzine__meta .is-hidden-desktop {
    display: inline;
  }

  .board-webzine__meta .is-hidden-mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .board-webzine__link {
    gap: 0.75rem;
  }

  .board-webzine__thumb {
    width: 100px;
    min-width: 100px;
  }

  .board-webzine__youtube svg {
    width: 36px;
    height: 36px;
  }

  .board-webzine__title,
  .board-webzine__excerpt {
    font-size: max(var(--font-size-min), 15px);
  }
}

.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item__placeholder {
  width: 100%;
  height: 100%;
  background: #1e293b;
  display: grid;
  place-items: center;
  color: #475569;
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem 0.75rem 0.75rem;
  display: grid;
  gap: 0.25rem;
}

.gallery-item__tag {
  /*color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;*/
  display: none;
}

.gallery-item__text {
  font-size: 0.9rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.video-item {
  background: #0f172a;
  border-radius: 0.75rem;
  overflow: hidden;
}

.video-item__frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-item__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-item__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-item__play {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
}

.video-item__play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid #ffffff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}

.video-item__caption {
  padding: 0.75rem;
}

.gallery-item__text {
  display: block;
}