.gallery-detail {
  padding: 78px 0 0;
  background: #ffffff;
}

.gallery-detail__inner {
  max-width: 980px;
}

.gallery-detail__header {
  padding-bottom: 30px;
  border-bottom: 1px solid #dce9e3;
}

.gallery-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.gallery-detail__meta span,
.gallery-detail__meta time {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #e9f8f3;
  color: #04735f;
  font-size: 13.12px;
  font-weight: 800;
}

.gallery-detail__header h1 {
  margin: 0;
  color: #111827;
  font-size: 39.2px;
  font-weight: 950;
  line-height: 1.22;
  word-break: keep-all;
}

.gallery-detail__header p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #52616f;
  font-size: 16.8px;
  font-weight: 620;
  line-height: 1.7;
  word-break: keep-all;
}

.gallery-detail__hero-image {
  margin: 34px 0 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e5f5f8;
}

.gallery-detail__hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-detail__content {
  margin-top: 38px;
  color: #344b43;
  font-size: 16.48px;
  font-weight: 560;
  line-height: 1.85;
  word-break: keep-all;
}

.gallery-detail__content h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 24.8px;
  font-weight: 950;
  line-height: 1.36;
}

.gallery-detail__content p {
  margin: 0 0 18px;
}

.gallery-detail__checklist {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

.gallery-detail__check-group {
  padding: 26px 28px;
  border: 1px solid #dce9e3;
  border-radius: 8px;
  background: #f8fcfa;
}

.gallery-detail__check-group h3 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 16px;
  font-weight: 950;
}

.gallery-detail__check-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-detail__check-group li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #344b43;
  font-size: 15.36px;
  font-weight: 650;
  line-height: 1.65;
}

.gallery-detail__check-group li span {
  flex: 0 0 auto;
  min-width: 28px;
  color: #04735f;
  font-size: 12.16px;
  font-weight: 950;
}

.gallery-detail__compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 44px;
}

.gallery-detail__compare-set {
  display: grid;
  gap: 12px;
}

.gallery-detail__compare-set > strong {
  color: #0f2f27;
  font-size: 16px;
  font-weight: 800;
}

.gallery-detail__compare-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-detail__compare figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #e5f5f8;
}

.gallery-detail__compare img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-detail__compare figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  font-size: 12.48px;
  font-weight: 800;
}

.gallery-detail__cta {
  margin-top: 48px;
  padding: 30px;
  border-radius: 8px;
  background: #063f35;
  color: #ffffff;
}

.gallery-detail__cta strong {
  display: block;
  font-size: 19.2px;
  font-weight: 950;
}

.gallery-detail__cta p {
  margin: 10px 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 620;
  line-height: 1.7;
}

.gallery-detail__cta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #ffffff;
  color: #04735f;
  font-weight: 950;
  text-decoration: none;
}

.gallery-detail__nav {
  padding: 20px 0 40px; /* 상하 여백 대폭 축소 */
  background: #ffffff;
}

.gallery-detail__nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.nav-btn {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: row; /* 가로 배치 */
  align-items: center; /* 수직 정앙 정렬 */
  justify-content: center;
  padding: 10px 16px; /* 패딩 최소화 */
  min-height: 44px; /* 납작하게 조율 */
  border: 1px solid #dce9e3;
  border-radius: 8px;
  background: #f8fcfa;
  color: inherit;
  font-size: 14.72px;
  font-weight: 850;
  text-decoration: none;
}

.nav-btn:hover {
  border-color: #04735f;
}

.nav-btn span {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 13.12px;
  font-weight: 850;
}

.nav-btn em {
  overflow: hidden;
  color: #111827;
  font-size: 15.68px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-btn--next {
  text-align: right;
}

.nav-btn--list {
  flex: 0 0 132px;
  align-items: center;
  background: #04735f;
  color: #ffffff;
  font-weight: 950;
}

.nav-btn--list:hover {
  background: #025a4a;
  color: #ffffff;
}

.nav-btn.is-disabled {
  opacity: 0.55;
}

@media (max-width: 760px) {
  .gallery-detail {
    padding-top: 58px;
  }

  .gallery-detail__header h1 {
    font-size: 29.6px;
  }

  .gallery-detail__compare,
  .gallery-detail__compare-pair,
  .gallery-detail__nav-inner {
    grid-template-columns: 1fr;
  }

  .gallery-detail__compare {
    display: grid;
  }

  .gallery-detail__nav-inner {
    flex-direction: column;
  }

  .nav-btn--list {
    order: -1;
    flex-basis: auto;
    width: 100%;
  }
}

/* Gallery detail refinement: shared rhythm with board list pages. */
.gallery-detail {
  padding: 90px 0 18px;
  background: var(--board-bg, #f3fafc);
}

.gallery-detail__inner {
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: var(--container, 1280px);
  margin-inline: auto;
}

.gallery-detail__header,
.gallery-detail__hero-image,
.gallery-detail__checklist,
.gallery-detail__compare,
.gallery-detail__cta {
  width: 100%;
  max-width: none;
}

.gallery-detail__header {
  padding-bottom: 34px;
  border-bottom-color: var(--board-line, #e2e8e9);
}

.gallery-detail__meta {
  gap: 8px;
  margin-bottom: 18px;
}

.gallery-detail__meta span,
.gallery-detail__meta time {
  min-height: 32px;
  padding: 0 12px;
  background: var(--color-primary-soft, #e5fafe);
  color: var(--board-primary-dark, #00a2b3);
  font-size: 13.12px;
  font-weight: var(--font-bold, 750);
  line-height: 1.2;
}

.gallery-detail__header h1 {
  max-width: 820px;
  color: var(--board-ink, #181818);
  font-size: clamp(32px, 3.4vw, 40.8px);
  font-weight: var(--font-heavy, 850);
  line-height: 1.22;
  letter-spacing: 0;
}

.gallery-detail__header p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--board-muted, #373838);
  font-size: 16.64px;
  font-weight: var(--font-medium, 500);
  line-height: 1.72;
}

.gallery-detail__hero-image {
  margin-top: 36px;
  border-radius: var(--board-radius, 12px);
  background: var(--board-surface-soft, #f5fbfc);
  box-shadow: var(--board-shadow, 0 12px 30px rgba(8, 34, 62, 0.08));
}

.gallery-detail__hero-image img {
  aspect-ratio: 21 / 10;
}

.gallery-detail__content {
  max-width: 860px;
  margin-top: 40px;
  color: var(--board-muted, #373838);
  font-size: 16.32px;
  font-weight: var(--font-medium, 500);
  line-height: 1.82;
}

.gallery-detail__content h2 {
  margin-bottom: 18px;
  color: var(--board-ink, #181818);
  font-size: 23.2px;
  font-weight: var(--font-bold, 750);
  line-height: 1.36;
  letter-spacing: 0;
}

.gallery-detail__checklist {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.gallery-detail__check-group {
  padding: 26px;
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: var(--board-radius, 12px);
  background: var(--board-surface, #ffffff);
  box-shadow: 0 10px 26px rgba(12, 42, 62, 0.045);
}

.gallery-detail__check-group h3,
.gallery-detail__compare-set > strong,
.gallery-detail__cta strong {
  color: var(--board-ink, #181818);
  font-weight: var(--font-bold, 750);
  line-height: 1.38;
  letter-spacing: 0;
}

.gallery-detail__check-group h3 {
  margin-bottom: 16px;
  font-size: 16.32px;
}

.gallery-detail__check-group li {
  color: var(--board-muted, #373838);
  font-size: 14.88px;
  font-weight: var(--font-medium, 500);
  line-height: 1.64;
}

.gallery-detail__check-group li span {
  color: var(--board-primary-dark, #00a2b3);
  font-weight: var(--font-bold, 750);
}

.gallery-detail__compare {
  gap: 26px;
  margin-top: 46px;
}

.gallery-detail__compare-set {
  gap: 14px;
}

.gallery-detail__compare-set > strong {
  font-size: 16.32px;
}

.gallery-detail__compare-pair {
  gap: 18px;
}

.gallery-detail__compare figure {
  border-radius: var(--board-radius, 12px);
  background: var(--board-surface-soft, #f5fbfc);
  box-shadow: 0 10px 26px rgba(12, 42, 62, 0.045);
}

.gallery-detail__compare figcaption {
  left: 16px;
  bottom: 16px;
  background: rgba(17, 24, 39, 0.76);
  font-size: 12.48px;
  font-weight: var(--font-bold, 750);
}

.gallery-detail__cta {
  margin-top: 50px;
  padding: 32px;
  border-radius: var(--board-radius, 12px);
  background: linear-gradient(135deg, var(--board-primary-deep, #007b87), var(--board-primary-dark, #00a2b3));
}

.gallery-detail__cta strong {
  color: var(--color-white, #ffffff);
  font-size: 18.88px;
}

.gallery-detail__cta p {
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--type-small, 14.4px);
  font-weight: var(--font-medium, 500);
}

.gallery-detail__cta a {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm, 8px);
  color: var(--board-primary-dark, #00a2b3);
  font-weight: var(--font-bold, 750);
}

.gallery-detail__nav {
  padding: 28px 0 64px;
  background: var(--board-bg, #f3fafc);
}

.gallery-detail__nav-inner {
  max-width: var(--container, 1280px);
  gap: 12px;
}

.nav-btn {
  min-height: 48px;
  padding: 0 18px;
  border-color: var(--board-line, #e2e8e9);
  border-radius: var(--radius-sm, 8px);
  background: var(--board-surface, #ffffff);
  color: var(--board-muted, #373838);
  font-size: 14.72px;
  font-weight: var(--font-bold, 750);
  line-height: 1.2;
  transition: border-color var(--ease, 180ms ease), background var(--ease, 180ms ease), color var(--ease, 180ms ease), transform var(--ease, 180ms ease);
}

.nav-btn:hover {
  border-color: var(--board-primary, #00cce0);
  color: var(--board-primary-dark, #00a2b3);
  transform: translateY(-2px);
}

.nav-btn--list {
  flex-basis: 132px;
  background: var(--board-primary, #00cce0);
  color: var(--color-white, #ffffff);
}

.nav-btn--list:hover {
  background: var(--board-primary-dark, #00a2b3);
  color: var(--color-white, #ffffff);
}

@media (max-width: 980px) {
  .gallery-detail__checklist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .gallery-detail {
    padding: 56px 0 0;
  }

  .gallery-detail__header {
    padding-bottom: 28px;
  }

  .gallery-detail__header h1 {
    font-size: 28.48px;
    line-height: 1.28;
  }

  .gallery-detail__header p,
  .gallery-detail__content {
    font-size: 15.04px;
    line-height: 1.68;
  }

  .gallery-detail__hero-image {
    margin-top: 28px;
  }

  .gallery-detail__hero-image img {
    aspect-ratio: 4 / 3;
  }

  .gallery-detail__content,
  .gallery-detail__checklist,
  .gallery-detail__compare {
    margin-top: 34px;
  }

  .gallery-detail__check-group,
  .gallery-detail__cta {
    padding: 22px;
  }

  .gallery-detail__compare-pair {
    grid-template-columns: 1fr;
  }

  .gallery-detail__nav {
    padding-bottom: 52px;
  }

  .nav-btn--list {
    flex-basis: auto;
  }
}
