.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: 0.82rem;
  font-weight: 900;
}

.gallery-detail__header h1 {
  margin: 0;
  color: #111827;
  font-size: 2.45rem;
  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: 1.05rem;
  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: #e8f3ef;
}

.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: 1.03rem;
  font-weight: 560;
  line-height: 1.85;
  word-break: keep-all;
}

.gallery-detail__content h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 1.55rem;
  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: 1rem;
  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: 0.96rem;
  font-weight: 650;
  line-height: 1.65;
}

.gallery-detail__check-group li span {
  flex: 0 0 auto;
  min-width: 28px;
  color: #04735f;
  font-size: 0.76rem;
  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: 1rem;
  font-weight: 900;
}

.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: #e8f3ef;
}

.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: 0.78rem;
  font-weight: 900;
}

.gallery-detail__photos {
  margin-top: 44px;
}

.gallery-detail__photos h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 950;
}

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

.gallery-detail__photo-grid figure {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #e8f3ef;
}

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

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

.gallery-detail__cta strong {
  display: block;
  font-size: 1.2rem;
  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: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

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

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

.nav-btn em {
  overflow: hidden;
  color: #111827;
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 900;
  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: 1.85rem;
  }

  .gallery-detail__compare,
  .gallery-detail__compare-pair,
  .gallery-detail__photo-grid,
  .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%;
  }
}
