/* 교회소개 pages. These build on sub.css. Desktop first; tablet and phone rules are at the end. */

/* For pages whose content has no heading of its own */
.page-title {
	margin-bottom: 24px;
	color: #222;
	font-size: 32px;
	font-weight: 600;
	line-height: 46px;
	text-align: center;
}

/* 담임목사 인사말: a signed letter floating on the rolling waves, with the verse in the sea below it */
.greeting-page {
	margin-top: 150px;
	font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
	word-break: keep-all;
}

.greeting-sky {
	position: relative;
	padding: 64px 30px 170px;
	overflow: hidden;
	background: linear-gradient(to bottom, #e6f1fb, #fff);
}

.greeting-sky > .moving-waves {
	position: absolute;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 420px;
}

.greeting-letter {
	position: relative;
	display: grid;
	grid-template-columns: 420px minmax(0, 1fr);
	max-width: 1080px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(18, 61, 99, 0.18);
}

/* The photo fills the card's height however long the letter gets. */
.greeting-photo {
	position: relative;
	min-height: 540px;
}

.greeting-photo img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

.greeting-copy {
	align-self: center;
	padding: 52px 60px;
}

.greeting-eyebrow {
	color: #1d69a9;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 22px;
}

.greeting-copy h1 {
	margin-top: 6px;
	color: #123d63;
	font-size: 34px;
	font-weight: 700;
	line-height: 46px;
}

.greeting-hello {
	margin-top: 28px;
	color: #1d69a9;
	font-family: 'Nanum Pen Script', 'Noto Sans KR', sans-serif;
	font-size: 42px;
	line-height: 52px;
}

.greeting-message {
	margin-top: 18px;
	color: #333;
	font-size: 19px;
	line-height: 34px;
}

.greeting-sign {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
	justify-content: flex-end;
	margin-top: 26px;
}

.greeting-sign p {
	color: #222;
	font-size: 18px;
	font-weight: 500;
	line-height: 30px;
}

.greeting-sign b {
	margin-left: 4px;
	color: #123d63;
	font-size: 23px;
	font-weight: 700;
}

.greeting-sign img {
	display: block;
	width: 150px;
	height: auto;
}

.greeting-sea {
	margin: 0;
	padding: 36px 30px 84px;
	background: #1d69a9;
	color: #fff;
	text-align: center;
}

.greeting-sea p {
	font-family: 'Noto Serif KR', serif;
	font-size: 28px;
	line-height: 44px;
	text-wrap: balance;
}

.greeting-sea cite {
	display: block;
	margin-top: 8px;
	color: #d6e6f5;
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 24px;
}

.greeting-sea .greeting-sea-en {
	margin-top: 28px;
	color: #d6e6f5;
	font-size: 17px;
	line-height: 28px;
}

/* 교회사명: a short title, then one full height colour panel for each mission */
.mission-page {
	margin-top: 150px;
	font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
	word-break: keep-all;
}

.mission-title {
	padding: 60px 30px 52px;
	text-align: center;
}

.mission-title h1 {
	color: #111;
	font-size: 50px;
	font-weight: 700;
	line-height: 66px;
}

.mission-keywords {
	margin-top: 10px;
	color: #9aa7b3;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 34px;
}

/* One colour per mission, for its word at the top and its panel.
   These shades keep the white text on the panels readable. */
.mission-keywords span:nth-of-type(1),
.mission-panel:nth-child(1) {
	--mission-color: #111;
}

.mission-keywords span:nth-of-type(2),
.mission-panel:nth-child(2) {
	--mission-color: #1e8439;
}

.mission-keywords span:nth-of-type(3),
.mission-panel:nth-child(3) {
	--mission-color: #c95000;
}

.mission-keywords span:nth-of-type(4),
.mission-panel:nth-child(4) {
	--mission-color: #c8102e;
}

.mission-keywords span {
	color: var(--mission-color);
}

.mission-panels {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.mission-panel {
	position: relative;
	min-height: 620px;
	padding: 52px 34px 56px;
	overflow: hidden;
	background: var(--mission-color);
	color: #fff;
}

.mission-panel > div {
	position: relative;
	z-index: 1;
}

.mission-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: #fff;
	color: var(--mission-color);
}

.mission-badge span {
	font-size: 15px;
	font-weight: 700;
	line-height: 22px;
}

.mission-badge h2 {
	font-size: 36px;
	font-weight: 700;
	line-height: 46px;
}

.mission-copy {
	margin-top: 40px;
}

.mission-lead {
	font-size: 22px;
	font-weight: 700;
	line-height: 34px;
}

.mission-detail {
	margin-top: 16px;
	font-size: 17px;
	line-height: 30px;
}

/* A large faint number in the corner, so the shorter panels don't look empty */
.mission-number {
	position: absolute;
	right: 22px;
	bottom: -14px;
	color: rgba(255, 255, 255, 0.12);
	font-size: 170px;
	font-weight: 700;
	line-height: 1;
}

/* On hover a panel's circle pops up with ripples around it, and water rises up the panel.
   Touch screens skip this, because a hover effect would stick after a tap. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.mission-badge {
		transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	}

	.mission-panel::before {
		content: '';
		position: absolute;
		top: 105%;
		left: -80%;
		width: 260%;
		aspect-ratio: 1;
		border-radius: 42%;
		background: rgba(255, 255, 255, 0.1);
		transition: top 0.9s ease-out;
		animation: mission-water 7s linear infinite paused;
	}

	.mission-panel:hover::before {
		top: 45%;
		animation-play-state: running;
	}

	.mission-panel:hover .mission-badge {
		animation: mission-ripple 1.4s ease-out infinite;
		transform: scale(1.08);
	}
}

@keyframes mission-water {
	to {
		transform: rotate(360deg);
	}
}

@keyframes mission-ripple {
	from {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
	}

	to {
		box-shadow: 0 0 0 28px rgba(255, 255, 255, 0);
	}
}

/* 담임목사 소개: full width bands in navy and sand, with its own look apart from the other 교회소개 pages */
.pastor-page {
	margin-top: 150px;
	color: #222;
	font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
	word-break: keep-all;
}

.pastor-hero {
	padding: 70px 30px 0;
	background: #123d63;
	color: #fff;
}

.pastor-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	column-gap: 90px;
	align-items: end;
	max-width: 1200px;
	margin: 0 auto;
}

.pastor-hero-copy {
	padding-bottom: 80px;
}

.pastor-role {
	color: #d8bd8a;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 24px;
}

.pastor-hero h1 {
	margin-top: 10px;
	font-family: 'Noto Serif KR', serif;
	font-size: 60px;
	font-weight: 400;
	line-height: 78px;
}

.pastor-statement {
	margin-top: 34px;
	font-family: 'Noto Serif KR', serif;
	font-size: 23px;
	line-height: 40px;
}

.pastor-invite {
	margin-top: 20px;
	color: #c9d6e3;
	font-size: 21px;
	line-height: 36px;
}

/* White ink on a clear background, so it only suits a dark band like this one. */
.pastor-signature {
	display: block;
	width: 220px;
	height: auto;
	margin-top: 26px;
}

/* An arched photo that hangs over the bottom of the navy band, with a thin gold arch behind it */
.pastor-photo-frame {
	--arch: 220px;
	position: relative;
	margin-bottom: -70px;
}

.pastor-photo-frame::before {
	content: '';
	position: absolute;
	inset: -16px 16px 16px -16px;
	border: 1px solid #d8bd8a;
	border-bottom: 0;
	border-radius: var(--arch) var(--arch) 0 0;
}

.pastor-photo-frame img {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: var(--arch) var(--arch) 0 0;
	object-fit: cover;
	object-position: 50% 25%;
}

.pastor-verse {
	margin: 0;
	padding: 130px 30px 90px;
	background: #f7f2e9;
	text-align: center;
}

.pastor-verse::before {
	content: '\201C';
	display: block;
	color: #b08d57;
	font-family: 'Noto Serif KR', serif;
	font-size: 90px;
	line-height: 60px;
}

.pastor-verse p {
	max-width: 820px;
	margin: 0 auto;
	color: #123d63;
	font-family: 'Noto Serif KR', serif;
	font-size: 28px;
	line-height: 46px;
	text-wrap: balance;
}

.pastor-verse cite {
	display: block;
	margin-top: 18px;
	color: #7d5f2e;
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 24px;
}

.pastor-career {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 80px;
	align-items: start;
	max-width: 1260px;
	margin: 0 auto;
	padding: 90px 30px 100px;
}

.pastor-career h2 {
	padding-bottom: 16px;
	border-bottom: 2px solid #123d63;
	color: #123d63;
	font-family: 'Noto Serif KR', serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 42px;
}

.career-list li {
	display: flex;
	padding: 15px 0;
	border-bottom: 1px solid #e8e2d6;
	color: #333;
	font-size: 18px;
	line-height: 28px;
}

.career-year {
	flex: none;
	width: 86px;
	color: #7d5f2e;
	font-weight: 700;
}

.career-list .is-current {
	margin-top: 14px;
	padding: 14px 18px;
	border-bottom: 0;
	background: #123d63;
	color: #fff;
	font-weight: 700;
}

/* List pages: the board and the search box above it */
.sub-content--board {
	padding-bottom: 73px;
	font-family: 'Noto Sans KR', sans-serif;
}

.board-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.sub-content .board-count {
	color: #666;
	font-size: 12px;
	line-height: 19px;
}

.list-search {
	display: flex;
	align-items: center;
	gap: 4px;
}

.list-search select,
.list-search input {
	height: 31px;
	padding: 0 6px;
	border: 1px solid #d2d2d2;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font-family: inherit;
	font-size: 13px;
}

.list-search select {
	width: 78px;
}

.list-search input {
	width: 162px;
	height: 35px;
}

.list-search button {
	width: 69px;
	height: 31px;
	border: 1px solid #333;
	border-radius: 3px;
	background: #666;
	color: #fff;
	font-size: 15px;
}

.board-table {
	width: 100%;
	margin-top: 20px;
	border-collapse: collapse;
	border-top: 2px solid #666;
	color: #666;
	font-size: 13px;
	line-height: 21px;
	text-align: center;
}

.board-table th {
	height: 46px;
	border-bottom: 1px solid #e5e5e5;
	background: #fafafa;
	font-size: 15px;
	font-weight: 700;
}

.board-table td {
	height: 42px;
	border-bottom: 1px solid #e5e5e5;
}

.board-number,
.board-views {
	width: 70px;
}

.board-date {
	width: 100px;
}

.board-table .board-title {
	padding-left: 10px;
	color: #000;
	text-align: left;
}

.board-table a:hover {
	color: #1d69a9;
}

.board-preacher {
	width: 110px;
}

.board-table .board-message {
	height: 120px;
	color: #888;
	font-size: 14px;
}

.pager-box {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 3px;
	margin-top: 49px;
}

.pager-box a {
	width: 22px;
	height: 22px;
	border: 1px solid #d2d2d2;
	color: #666;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
}

.pager-box a[aria-current='page'] {
	border-color: #333;
	background: #666;
	color: #fff;
}

/* One post, on post.html */
.post-head {
	padding: 18px 12px;
	border-top: 2px solid #666;
	border-bottom: 1px solid #e5e5e5;
	background: #fafafa;
}

.sub-content .post-title {
	color: #222;
	font-size: 22px;
	font-weight: 600;
	line-height: 32px;
}

.sub-content .post-meta {
	margin-top: 4px;
	color: #888;
	font-size: 13px;
	line-height: 21px;
}

.post-divider {
	margin: 0 8px;
	color: #d2d2d2;
}

/* The text is shown exactly as written, so its line breaks stay. */
.post-body {
	min-height: 180px;
	padding: 30px 12px;
	color: #333;
	font-size: 17px;
	line-height: 30px;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

.post-photos {
	display: grid;
	justify-items: center;
	gap: 16px;
	padding: 0 12px;
}

.post-photos img {
	display: block;
}

.sub-content .post-message {
	padding: 70px 0;
	color: #888;
	font-size: 15px;
	text-align: center;
}

.post-back {
	display: block;
	width: 110px;
	height: 38px;
	margin: 40px auto 0;
	border: 1px solid #333;
	border-radius: 3px;
	background: #666;
	color: #fff;
	font-size: 15px;
	line-height: 36px;
	text-align: center;
}

/* 추천도서 */
.books-banner {
	position: relative;
	height: 356px;
	color: #fff;
	text-align: center;
}

.books-banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.books-banner-copy {
	position: absolute;
	inset: 0;
	padding-top: 44px;
	background: rgba(0, 0, 0, 0.25);
}

.books-banner-copy .material-symbols-outlined {
	display: block;
	font-size: 92px;
	font-weight: 200;
	line-height: 106px;
}

.books-banner-copy h1 {
	font-size: 50px;
	font-weight: 700;
	line-height: 80px;
}

.sub-content .books-banner-copy p {
	color: #d8cdda;
	font-size: 18px;
	line-height: 29px;
}

.book-feature {
	display: grid;
	grid-template-columns: 223px 639px;
	grid-template-rows: auto 1fr;
	column-gap: 49px;
	min-height: 457px;
	padding: 91px 0 0 165px;
}

.book-cover {
	grid-row: 1 / 3;
	display: block;
	width: 223px;
	height: 313px;
	object-fit: cover;
}

.sub-content .book-number {
	margin-top: -17px;
	color: #fc6;
	font-size: 60px;
	font-weight: 700;
	line-height: 96px;
}

.sub-content .book-head h2 {
	margin-top: -11px;
	color: #5c9995;
	font-size: 22px;
	font-weight: 600;
	line-height: 35px;
}

.sub-content .book-meta {
	margin-top: 9px;
	color: #000;
	font-size: 14px;
	font-weight: 300;
	line-height: 21px;
}

.sub-content .book-desc {
	margin-top: 6px;
	color: #000;
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
}

.book-feature--flip {
	grid-template-columns: 630px 216px;
	column-gap: 61px;
	min-height: 390px;
	padding: 34px 0 0 143px;
}

.book-feature--flip .book-cover {
	grid-column: 2;
	grid-row: 1 / 3;
	width: 216px;
	height: 303px;
}

.book-feature--flip .book-head,
.book-feature--flip .book-desc {
	grid-column: 1;
}

.books-past {
	height: 468px;
	margin-top: 27px;
	padding-top: 15px;
	background: #f4f0e8;
}

.books-past + .books-past {
	margin-top: 0;
	padding-top: 90px;
	background: none;
}

.books-past + .books-past + .books-past {
	padding-top: 88px;
	background: #f4f0e8;
}

.sub-content .books-past h2 {
	font-size: 28px;
	font-weight: 600;
	line-height: 45px;
	text-align: center;
}

.books-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 30px 0 0;
	padding: 0 56px;
	list-style: none;
}

.books-past + .books-past .books-grid {
	margin-top: 0;
}

.books-grid li {
	text-align: center;
}

.books-grid img {
	display: block;
	width: 160px;
	height: 242px;
	margin: 0 auto 18px;
	object-fit: cover;
}

.sub-content .books-grid p {
	color: #333;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}

.sub-content .books-grid .book-publisher {
	color: #666;
	font-weight: 400;
}

/* 섬기는사람들 */
.sub-content--staff {
	padding-bottom: 50px;
	font-family: 'Noto Sans KR', sans-serif;
}

/* As many columns as fit, so the three groups sit in a row on desktop and stack on phones. */
.staff-groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 40px 20px;
	margin-top: 36px;
}

.sub-content .staff-group h2 {
	font-size: 20px;
	font-weight: 600;
	line-height: 29px;
}

.staff-list {
	display: grid;
	gap: 20px;
	margin-top: 16px;
}

/* Names line up at the same height whether or not there is a line of text under them. */
.staff-card {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	height: 257px;
	border: 2px solid #f3f3f3;
}

.staff-card div {
	margin-top: 76px;
}

.staff-card img {
	flex: none;
	width: 190px;
	height: 253px;
	object-fit: cover;
}

/* This portrait has a lot of room above the head, so the crop starts part way down to bring the face up. */
.staff-card .staff-photo-raised {
	object-position: 50% 35%;
}

.sub-content .staff-name {
	color: #000;
	font-size: 20px;
	font-weight: 600;
	line-height: 29px;
}

.staff-name span {
	margin-left: 8px;
	color: #909090;
	font-size: 14px;
}

.sub-content .staff-duty {
	margin-top: 12px;
	color: #909090;
	font-size: 14px;
	line-height: 20px;
}

/* 예배시간: the whole of Sunday as one deep blue card, with the weekday gatherings in lighter cards under it.
   Each item is a dot on a line. Services get a filled dot and bigger text, so they stand out from the breaks. */
.sub-content--worship {
	--worship-dot: #1d69a9;
	--worship-line: #c9dbea;
	--worship-time: #5f7486;
	padding-bottom: 70px;
	font-family: 'Noto Sans KR', sans-serif;
	word-break: keep-all;
}

.worship-sunday {
	--worship-dot: #fff;
	--worship-line: rgba(255, 255, 255, 0.35);
	--worship-time: #cfe4f5;
	padding: 40px 48px 46px;
	border-radius: 20px;
	background: linear-gradient(115deg, #123d63, #1d69a9 75%, #3f8fd2);
	box-shadow: 0 12px 30px rgba(18, 61, 99, 0.22);
	color: #fff;
}

.worship-head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.worship-head .material-symbols-outlined {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #e4f0fb;
	color: #1d69a9;
	font-size: 30px;
}

.worship-sunday .worship-head .material-symbols-outlined {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.sub-content .worship-head p {
	color: var(--worship-time);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 18px;
}

.sub-content .worship-head h2 {
	font-size: 28px;
	font-weight: 700;
	line-height: 38px;
}

.worship-flow {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.worship-flow li {
	position: relative;
	padding: 0 0 26px 34px;
}

.worship-flow li:last-child {
	padding-bottom: 0;
}

.worship-flow li::before {
	content: '';
	position: absolute;
	top: 5px;
	left: 2px;
	width: 14px;
	height: 14px;
	border: 2px solid var(--worship-dot);
	border-radius: 50%;
}

.worship-flow .worship-main::before {
	background: var(--worship-dot);
	box-shadow: 0 0 0 4px var(--worship-line);
}

.worship-flow li:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 25px;
	bottom: -1px;
	left: 8px;
	width: 2px;
	background: var(--worship-line);
}

.worship-flow time {
	display: block;
	color: var(--worship-time);
	font-size: 15px;
	line-height: 24px;
}

.sub-content .worship-flow p {
	font-size: 17px;
	line-height: 27px;
}

.sub-content .worship-main p {
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
}

/* Wide enough for Sunday to run across the card, as a line from left to right. */
@media (min-width: 701px) {
	.worship-sunday .worship-flow {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		margin-top: 34px;
	}

	.worship-sunday .worship-flow li {
		padding: 30px 16px 0 0;
	}

	.worship-sunday .worship-flow li::before {
		top: 0;
		left: 2px;
	}

	.worship-sunday .worship-flow li:not(:last-child)::after {
		top: 8px;
		right: -1px;
		bottom: auto;
		left: 24px;
		width: auto;
		height: 2px;
	}
}

.worship-week {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 24px;
}

@media (max-width: 700px) {
	.worship-week {
		grid-template-columns: minmax(0, 1fr);
	}
}

.worship-card {
	padding: 34px 40px 38px;
	border: 1px solid #dfe8f1;
	border-radius: 20px;
	background: #f6f9fc;
	color: #1f2d3a;
}

/* 오시는길 */
.sub-content--directions {
	padding: 0 0 70px;
	font-family: 'Noto Sans KR', sans-serif;
}

.map-slot {
	height: 482px;
}

.map-slot img,
.map-slot iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.copy-bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 32px;
	margin-top: 10px;
	padding-right: 12px;
	border-top: 1px solid #bcbcbc;
	border-bottom: 1px solid #bcbcbc;
}

.copy-bar button {
	padding: 0 4px;
	border: 1px solid #d2d2d2;
	border-radius: 3px;
	font-size: 12px;
	line-height: 18px;
}

.directions {
	margin: 10px 0 0;
}

.directions > div {
	display: flex;
	align-items: center;
	min-height: 56px;
	border-bottom: 1px solid #d2d2d2;
}

.directions dt {
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
	width: 250px;
	color: #666;
	font-size: 20px;
	font-weight: 600;
}

.directions dt .material-symbols-outlined {
	width: 40px;
	color: #1d69a9;
	font-size: 34px;
	font-weight: 300;
	text-align: center;
}

.directions dd {
	flex: 1;
	margin: 0;
	padding: 8px 2px;
	color: #666;
	font-size: 14px;
	line-height: 21px;
}

.directions .directions-long {
	min-height: 75px;
}

.directions .directions-longer {
	min-height: 225px;
}

/* 환영합니다 */
.sub-content--welcome {
	padding-bottom: 50px;
}

.welcome-word {
	font-size: 50px;
	font-weight: 700;
	line-height: 65px;
}

.sub-content .welcome-copy p.welcome-word {
	margin: 0;
	font-size: 50px;
	line-height: 65px;
}

.welcome-copy {
	padding-top: 0;
}

.welcome-copy h1 {
	font-size: 26px;
	font-weight: 700;
	line-height: 42px;
}

.welcome-story {
	margin-top: 46px;
	text-align: center;
}

.sub-content .welcome-story h2 {
	font-size: 38px;
	line-height: 61px;
}

.sub-content .welcome-story p {
	margin-top: -6px;
	font-size: 20px;
	line-height: 32px;
}

.sub-content .welcome-lead {
	min-height: 86px;
	margin-top: 73px;
	padding: 0 2px;
}

.welcome-banner {
	display: block;
	width: 100%;
	height: 330px;
	margin-top: 51px;
	object-fit: cover;
}

.sub-content .welcome-points {
	margin-top: 43px;
	padding: 0 1px;
}

.sub-content .welcome-points p {
	max-width: 998px;
	margin-top: 29px;
}

.sub-content .welcome-points p:first-child {
	margin-top: 0;
}

/* Below the full column width, the fixed-width desktop blocks start to shrink. */
@media (max-width: 1230px) {
	.mission-panels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mission-panel {
		min-height: 440px;
	}

	.book-feature,
	.book-feature--flip {
		grid-template-columns: 223px 1fr;
		column-gap: 32px;
		padding: 91px 20px 0;
	}

	.book-feature--flip {
		grid-template-columns: 1fr 216px;
		padding-top: 34px;
	}

	.books-grid {
		padding: 0 12px;
	}
}

@media (max-width: 1020px) {
	.greeting-page {
		margin-top: 0;
	}

	.greeting-sky {
		padding: 36px 24px 130px;
	}

	.greeting-sky > .moving-waves {
		height: 340px;
	}

	.greeting-letter {
		grid-template-columns: 300px minmax(0, 1fr);
	}

	.greeting-photo {
		min-height: 460px;
	}

	.greeting-copy {
		padding: 36px 38px;
	}

	.greeting-copy h1 {
		font-size: 28px;
		line-height: 40px;
	}

	.greeting-hello {
		margin-top: 20px;
		font-size: 34px;
		line-height: 44px;
	}

	.greeting-message {
		font-size: 18px;
		line-height: 31px;
	}

	.greeting-sea {
		padding: 28px 24px 64px;
	}

	.greeting-sea p {
		font-size: 23px;
		line-height: 37px;
	}

	.mission-page {
		margin-top: 0;
	}

	.mission-title {
		padding: 40px 29px 36px;
	}

	.mission-title h1 {
		font-size: 42px;
		line-height: 56px;
	}

	.pastor-page {
		margin-top: 0;
	}

	.pastor-hero {
		padding: 44px 29px 0;
	}

	.pastor-hero-inner {
		grid-template-columns: minmax(0, 1fr) 300px;
		column-gap: 44px;
	}

	.pastor-hero-copy {
		padding-bottom: 56px;
	}

	.pastor-hero h1 {
		font-size: 46px;
		line-height: 60px;
	}

	.pastor-statement {
		margin-top: 22px;
		font-size: 19px;
		line-height: 33px;
	}

	.pastor-invite {
		font-size: 19px;
		line-height: 32px;
	}

	.pastor-signature {
		width: 180px;
		margin-top: 20px;
	}

	.pastor-photo-frame {
		--arch: 150px;
		margin-bottom: -50px;
	}

	.pastor-verse {
		padding: 100px 29px 70px;
	}

	.pastor-verse p {
		font-size: 24px;
		line-height: 40px;
	}

	.pastor-career {
		column-gap: 40px;
		padding: 64px 29px 72px;
	}

	.book-cover,
	.book-feature--flip .book-cover {
		width: 100%;
		height: auto;
		aspect-ratio: 223 / 313;
	}

	.book-feature,
	.book-feature--flip {
		grid-template-columns: 200px 1fr;
		column-gap: 24px;
	}

	.book-feature--flip {
		grid-template-columns: 1fr 200px;
	}

	.books-banner {
		height: auto;
		aspect-ratio: 1200 / 356;
	}

	.books-banner-copy {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 0;
	}

	.books-banner-copy .material-symbols-outlined {
		display: none;
	}

	.books-banner-copy h1 {
		font-size: 36px;
		line-height: 50px;
	}

	.books-grid {
		padding: 0;
	}

	.books-past + .books-past {
		padding-top: 60px;
	}

	.books-past + .books-past + .books-past {
		padding-top: 60px;
	}

	.worship-sunday {
		padding: 34px 32px 38px;
	}

	.worship-flow time {
		font-size: 14px;
	}

	.worship-card {
		padding: 30px 28px 32px;
	}

	.directions dt {
		width: 190px;
		font-size: 18px;
	}

	.sub-content .welcome-lead {
		margin-top: 40px;
	}

	.welcome-story {
		margin-top: 40px;
	}

	.welcome-banner {
		height: auto;
		aspect-ratio: 739 / 203;
		margin-top: 32px;
	}
}

/* Too narrow for blocks side by side */
@media (max-width: 700px) {
	.greeting-letter {
		grid-template-columns: minmax(0, 1fr);
	}

	.greeting-photo {
		min-height: 0;
		aspect-ratio: 1;
	}

	.mission-panels {
		grid-template-columns: minmax(0, 1fr);
	}

	.mission-panel {
		min-height: 0;
		padding: 36px 24px 44px;
	}

	.mission-badge {
		width: 116px;
		height: 116px;
	}

	.mission-badge span {
		font-size: 13px;
		line-height: 18px;
	}

	.mission-badge h2 {
		font-size: 28px;
		line-height: 36px;
	}

	.mission-copy {
		margin-top: 24px;
	}

	.mission-number {
		top: 14px;
		right: 18px;
		bottom: auto;
		font-size: 120px;
	}

	.pastor-hero-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.pastor-hero-copy {
		padding-bottom: 44px;
	}

	.pastor-photo-frame {
		--arch: 170px;
		justify-self: center;
		width: min(340px, 78%);
	}

	.pastor-career {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 48px;
	}

}

@media (max-width: 480px) {
	.greeting-sky {
		padding: 20px 15px 100px;
	}

	.greeting-sky > .moving-waves {
		height: 260px;
	}

	.greeting-copy {
		padding: 28px 22px 30px;
	}

	.greeting-copy h1 {
		font-size: 26px;
		line-height: 36px;
	}

	.greeting-hello {
		font-size: 31px;
		line-height: 40px;
	}

	.greeting-message {
		font-size: 17px;
		line-height: 29px;
	}

	.greeting-sign img {
		width: 130px;
	}

	.greeting-sea {
		padding: 20px 18px 52px;
	}

	.greeting-sea p {
		font-size: 20px;
		line-height: 33px;
	}

	.greeting-sea .greeting-sea-en {
		margin-top: 22px;
		font-size: 15px;
		line-height: 24px;
	}

	.mission-title {
		padding: 32px 15px 28px;
	}

	.mission-title h1 {
		font-size: 34px;
		line-height: 46px;
	}

	.mission-keywords {
		margin-top: 6px;
		font-size: 18px;
		line-height: 28px;
	}

	.mission-lead {
		font-size: 20px;
		line-height: 31px;
	}

	.page-title {
		margin-bottom: 14px;
		font-size: 26px;
		line-height: 38px;
	}

	/* The photo cards are taller on phones, like the reference. */
	.sub-content--about .intro-card {
		height: 220px;
		aspect-ratio: auto;
	}

	.pastor-hero {
		padding: 32px 15px 0;
	}

	.pastor-hero h1 {
		font-size: 38px;
		line-height: 50px;
	}

	.pastor-statement {
		font-size: 18px;
		line-height: 31px;
	}

	.pastor-invite {
		font-size: 18px;
		line-height: 30px;
	}

	.pastor-verse {
		padding: 86px 18px 56px;
	}

	.pastor-verse p {
		font-size: 21px;
		line-height: 35px;
	}

	.pastor-career {
		padding: 48px 15px 56px;
	}

	.pastor-career h2 {
		padding-bottom: 12px;
		font-size: 26px;
		line-height: 36px;
	}

	.career-list li {
		padding: 13px 0;
		font-size: 17px;
		line-height: 27px;
	}

	.career-year {
		width: 76px;
	}

	.sub-content--board {
		padding-bottom: 20px;
	}

	.board-top {
		flex-wrap: wrap;
		gap: 16px 6px;
	}

	.board-top .list-search {
		width: 100%;
	}

	.board-top .list-search select {
		width: 60px;
	}

	.board-top .list-search input {
		width: 102px;
		height: 31px;
	}

	.board-top .list-search button {
		width: 50px;
	}

	/* The table turns into stacked rows: number on the left, title over date and views. */
	.board-table {
		display: block;
		margin-top: 35px;
		border-collapse: separate;
	}

	.board-table thead {
		display: none;
	}

	.board-table tbody {
		display: block;
	}

	.board-table tr {
		display: grid;
		grid-template-columns: 50px 1fr auto;
		align-items: center;
		min-height: 66px;
		padding: 10px 10px 10px 0;
		border-bottom: 1px solid #ddd;
	}

	.board-table td {
		height: auto;
		padding: 0;
		border: 0;
	}

	.board-number {
		grid-row: 1 / 3;
		width: auto;
	}

	.board-table .board-title {
		grid-column: 2 / 4;
		padding: 0;
		font-size: 15px;
		font-weight: 600;
		line-height: 24px;
	}

	.board-date {
		grid-column: 2;
		width: auto;
		color: #888;
		text-align: left;
	}

	.board-views {
		width: auto;
		color: #888;
	}

	.board-views::before {
		content: '조회 ';
	}

	.board-preacher {
		grid-column: 3;
		grid-row: 2;
		width: auto;
		color: #888;
	}

	.board-table .board-message {
		grid-column: 1 / 4;
		height: auto;
		padding: 40px 0;
	}

	.pager-box {
		margin-top: 30px;
	}

	.post-body {
		padding: 22px 12px;
		font-size: 16px;
		line-height: 28px;
	}

	.sub-content .post-title {
		font-size: 19px;
		line-height: 28px;
	}

	.books-banner {
		aspect-ratio: 370 / 109;
	}

	.books-banner-copy h1 {
		font-size: 20px;
		line-height: 28px;
	}

	.sub-content .books-banner-copy p {
		font-size: 11px;
		line-height: 16px;
	}

	.book-feature,
	.book-feature--flip {
		grid-template-columns: 148px 1fr;
		grid-template-rows: auto auto;
		column-gap: 14px;
		min-height: 0;
		padding: 21px 9px 0 32px;
	}

	.book-feature--flip {
		grid-template-columns: 1fr 148px;
		column-gap: 6px;
		padding: 26px 29px 0 28px;
	}

	.book-cover,
	.book-feature--flip .book-cover {
		grid-row: 1;
		width: 148px;
		margin-top: 0;
	}

	.book-feature--flip .book-cover {
		grid-column: 2;
	}

	.sub-content .book-number {
		margin-top: 19px;
		font-size: 36px;
		line-height: 58px;
	}

	.sub-content .book-head h2 {
		margin-top: -13px;
		font-size: 18px;
		line-height: 28px;
	}

	/* The box lines up with the page text, not with the cover and title above it. */
	.sub-content .book-desc {
		grid-column: 1 / 3;
		min-height: 194px;
		margin: 17px 18px 0 -4px;
		padding: 10px 9px;
		border-radius: 10px;
		background: #f4f0e8;
		font-size: 14px;
		font-weight: 400;
		line-height: 21px;
	}

	.sub-content .book-feature--flip .book-desc {
		margin: 18px -2px 0 0;
	}

	.books-past,
	.books-past + .books-past,
	.books-past + .books-past + .books-past {
		height: auto;
		margin-top: 0;
		padding: 26px 0 4px;
	}

	.book-feature + .books-past {
		margin-top: 15px;
		padding-top: 19px;
	}

	.sub-content .books-past h2 {
		font-size: 20px;
		line-height: 32px;
	}

	.books-grid {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 20px;
		margin-top: 14px;
	}

	.books-grid img {
		width: 149px;
		height: 224px;
		margin-bottom: 17px;
	}

	.sub-content .books-grid p {
		font-size: 16px;
		line-height: 22px;
	}

	.sub-content--staff {
		padding-bottom: 20px;
	}

	.sub-content .staff-group h2 {
		line-height: 23px;
	}

	.staff-card {
		height: 190px;
	}

	.staff-card div {
		margin-top: 50px;
	}

	.staff-card img {
		width: 140px;
		height: 186px;
	}

	.sub-content--worship {
		padding-bottom: 30px;
	}

	.worship-sunday {
		padding: 28px 22px 30px;
		border-radius: 16px;
	}

	.worship-card {
		padding: 26px 22px 28px;
		border-radius: 16px;
	}

	.worship-week {
		gap: 16px;
		margin-top: 16px;
	}

	.sub-content--directions {
		padding: 0 0 20px;
	}

	.copy-bar {
		padding-right: 10px;
	}

	.directions > div,
	.directions .directions-long,
	.directions .directions-longer {
		display: block;
		min-height: 0;
		margin-top: 9px;
		padding: 10px 11px;
		border: 1px solid #e5e5e5;
		background: #fbfbfb;
	}

	.directions dt {
		width: auto;
		font-size: 18px;
	}

	.directions dd {
		margin-top: 6px;
		padding: 8px;
		border: 1px solid #d2d2d2;
		border-radius: 5px;
		background: #fff;
		font-size: 13px;
		line-height: 21px;
	}

	.welcome-copy {
		padding-bottom: 34px;
	}

	.sub-content .welcome-copy p.welcome-word {
		font-size: 38px;
		line-height: 49px;
	}

	.welcome-copy h1 {
		font-size: 20px;
		line-height: 26px;
	}

	.welcome-story {
		margin-top: 22px;
	}

	.sub-content .welcome-story h2 {
		font-size: 32px;
		line-height: 51px;
	}

	.sub-content .welcome-lead {
		min-height: 150px;
		margin-top: 32px;
	}

	.welcome-banner {
		aspect-ratio: 370 / 220;
		margin-top: 16px;
	}

	.sub-content .welcome-points {
		margin-top: 32px;
	}

	.sub-content--welcome {
		padding-bottom: 20px;
	}
}
