.card {
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	background: transparent;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	min-width: 0;
	word-wrap: break-word;
	background-clip: border-box;
	color: #fff;
	text-decoration: none;
	transition: all 0.5s ease-in-out;
}

.card > hr {
	margin-right: 0;
	margin-left: 0;
}

.card img {
	object-fit: cover;
	z-index: 20;
	height: 240px;
	border-top-left-radius: 1.2rem;
	border-top-right-radius: 1.2rem;
	background-color: #fff;
}
.hogakstory {
	background-color: #fff;
}
.thumbnail-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9; /* ✅ 자동 비율 유지 */
	overflow: hidden;
	border-radius: 1rem;
	background: #000;
}
.story-card {
	color: #fff;
	text-decoration: none;
	background: transparent;
}
.youtube_thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover !important;
	z-index: 20;
	border-top-left-radius: 1.2rem;
	border-top-right-radius: 1.2rem;
	background-color: white;
	cursor: pointer;
	transition: all 0.5s ease-in-out;
}
.youtube_thumbnail:hover {
	transform: scale(1.1);
	z-index: 100;
}
.card > .list-group:first-child .list-group-item:first-child {
	border-top-left-radius: 0.25rem;
	border-top-right-radius: 0.25rem;
}

.card > .list-group:last-child .list-group-item:last-child {
	border-bottom-right-radius: 0.25rem;
	border-bottom-left-radius: 0.25rem;
}

.card-body {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	height: 110px;
	flex: 1 1 auto;
	padding: 1.25rem;
	text-decoration: none;
	background-color: #fff;
	color: #000;
	border-bottom-right-radius: 1.2rem;
	border-bottom-left-radius: 1.2rem;
	border-top: #ccc solid 1px;
}
.card:hover {
	transform: scale(1.1);
	z-index: 100;
}
.card-body p {
	font-style: normal;
	font-size: 1rem;
}
.card-comment,
.card-comment > p {
	color: #5e5e5e;
	margin-top: 0.75rem;
	text-decoration: none;
}

.card-title {
	display: -webkit-box;
	-webkit-line-clamp: 3; /* 최대 2줄까지 표시 */
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 0.75rem;
}

.card-subtitle {
	margin-top: -0.375rem;
	margin-bottom: 0;
}

.card-text:last-child {
	margin-bottom: 0;
}

.card-link:hover {
	text-decoration: none;
}

.card-link + .card-link {
	margin-left: 1.25rem;
}

.card-header {
	padding: 0.75rem 1.25rem;
	margin-bottom: 0;
	background-color: rgba(0, 0, 0, 0.03);
	border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header:first-child {
	border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}

.card-header + .list-group .list-group-item:first-child {
	border-top: 0;
}

.card-footer {
	padding: 0.75rem 1.25rem;
	background-color: rgba(0, 0, 0, 0.03);
	border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.card-footer:last-child {
	border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
}

.card-header-tabs {
	margin-right: -0.625rem;
	margin-bottom: -0.75rem;
	margin-left: -0.625rem;
	border-bottom: 0;
}

.card-header-pills {
	margin-right: -0.625rem;
	margin-left: -0.625rem;
}

.card-img-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 1.25rem;
}

.card-img {
	width: 100%;
	border-radius: calc(0.25rem - 1px);
}

.card-img-top {
	width: 100%;
	border-top-left-radius: calc(0.25rem - 1px);
	border-top-right-radius: calc(0.25rem - 1px);
}

.card-img-bottom {
	width: 100%;
	border-bottom-right-radius: calc(0.25rem - 1px);
	border-bottom-left-radius: calc(0.25rem - 1px);
}

.card-deck {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

.card-deck .card {
	margin-bottom: 15px;
}
.fixed-preview-box {
	height: 300px;
	width: 400px;
}

@media (min-width: 576px) {
	.card-deck {
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		-ms-flex-flow: row wrap;
		flex-flow: row wrap;
		margin-right: -15px;
		margin-left: -15px;
	}

	.card-deck .card {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-flex: 1;
		-ms-flex: 1 0 0%;
		flex: 1 0 0%;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		margin-right: 15px;
		margin-bottom: 0;
		margin-left: 15px;
	}
}
.section-subtitle {
	font-size: 20px;
	color: #1c3465;
	background: #fff;
	margin-bottom: 15px;
	padding-left: 6px;
	border-left: 5px solid;
	line-height: 1;
	text-align: start;
}

.card-group {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

.card-group > .card {
	margin-bottom: 15px;
}
.ci-card {
	width: 30%;
	max-width: 410px;
	min-height: 217px;
	margin-top: 0.8rem;
	margin: 1rem;
	background-color: #fff;
	padding: 2% 2%;
}
.ci-card:hover {
	padding: calc(2% + 1px) calc(2% + 1px);
}

.ci-card-img-wrap {
	justify-self: center;
	height: 60px;
	word-break: break-all;
}
.ci-card-img-wrap > img {
	padding: 2% 1rem;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ci-card-img-top {
	max-width: 100%;
	min-height: 6rem;
	overflow: hidden;
	object-fit: contain;
}

.ci-card-img-top:hover {
	padding: 1px;
}
.ci-card-group {
	min-height: 80px;
}

.ci-card-img-top > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	overflow: hidden;
}
.ci-card > p {
	display: block;
	color: #808080;
	font-size: 0.8rem;
	line-height: 180%;
	margin: 0;
	padding: 3% 3%;
	text-align: start;
}

@media (min-width: 576px) {
	.card-group {
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		-ms-flex-flow: row wrap;
		flex-flow: row wrap;
	}

	.card-group > .card {
		-webkit-box-flex: 1;
		-ms-flex: 1 0 0%;
		flex: 1 0 0%;
		margin-bottom: 0;
	}

	.card-group > .card + .card {
		margin-left: 0;
		border-left: 0;
	}

	.card-group > .card:not(:last-child) {
		border-top-right-radius: 0;
		border-bottom-right-radius: 0;
	}

	.card-group > .card:not(:last-child) .card-img-top,
	.card-group > .card:not(:last-child) .card-header {
		border-top-right-radius: 0;
	}

	.card-group > .card:not(:last-child) .card-img-bottom,
	.card-group > .card:not(:last-child) .card-footer {
		border-bottom-right-radius: 0;
	}

	.card-group > .card:not(:first-child) {
		border-top-left-radius: 0;
		border-bottom-left-radius: 0;
	}

	.card-group > .card:not(:first-child) .card-img-top,
	.card-group > .card:not(:first-child) .card-header {
		border-top-left-radius: 0;
	}

	.card-group > .card:not(:first-child) .card-img-bottom,
	.card-group > .card:not(:first-child) .card-footer {
		border-bottom-left-radius: 0;
	}
}

.card-columns .card {
	margin-bottom: 0.75rem;
}

@media (min-width: 576px) {
	.card-columns {
		-webkit-column-count: 3;
		column-count: 3;
		-webkit-column-gap: 1.25rem;
		column-gap: 1.25rem;
		orphans: 1;
		widows: 1;
	}

	.card-columns .card {
		display: inline-block;
		width: 100%;
	}
}
