:root {
  color: #1a1a1a;
  background: #ffffff;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: hidden;
}

.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a { color: #0b57d0; }

img { max-width: 100%; height: auto; }

.photo {
  position: relative;
  margin: 16px 0;
}

.photo > img { display: block; width: 100%; }

.photo-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  padding: 64px 20px 20px;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open { overflow: hidden; }

.wrap {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

header {
  padding: 20px 0 8px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

nav a { text-decoration: none; }

h1 { font-size: 1.8rem; line-height: 1.3; margin: 12px 0; }

h2 { font-size: 1.25rem; margin: 28px 0 8px; }

.lead { font-size: 1.05rem; }

.crumbs { font-size: 0.95rem; margin: 8px 0 0; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  border-top: 1px solid #ddd;
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

th { width: 28%; }

.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .card-list { grid-template-columns: 1fr 1fr; }
}

.card-list a {
  display: block;
  padding: 12px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  text-decoration: none;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

.actions a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
}

footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  font-size: 0.95rem;
}
