/* archive_img_type03 게시판 전용 보강 스타일
   리스트/카드/페이저/상세 본문 기본 스타일은 퍼블 정본 img01-03.css 가 담당.
   여기서는 (1) 리스트 출처 말줄임, (2) 모바일 상세 액션 버튼 배치만 정의한다. */

/* ===== 리스트 카드 출처 말줄임(한 줄 고정) =====
   출처(b-source)가 길어도 줄바꿈/카드 높이 변동 없이 ... 으로 잘리고,
   발행일자(b-date)는 줄어들지 않도록 고정한다. (반응형 공통) */
.bn-list-img01.type03 .b-info-box {
	flex-wrap: nowrap;
	min-width: 0;
}
.bn-list-img01.type03 .b-info-box .b-source {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bn-list-img01.type03 .b-info-box .b-date {
	flex-shrink: 0;
	white-space: nowrap;
}

/* ===== 리스트 카드 호버: 약간 확대 + 그림자 =====
   transform:scale 은 레이아웃 박스를 바꾸지 않으므로 다른 카드를 밀어내지 않는다.
   z-index 로 확대된 카드를 위로 올리고, 터치(모바일)에서는 미적용(가로 오버플로 방지). */
.bn-list-img01.type03 > ul > li {
	border-radius: 16px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
	.bn-list-img01.type03 > ul > li:hover {
		transform: scale(1.03);
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
		z-index: 2;
	}
}

/* ===== 확장필드(대상/보관위치) select 박스 — 폼 입력과 통일된 모양 ===== */
.bn-write-common01 .b-con-box.customfield select {
	width: 100%;
	max-width: 360px;
	height: 42px;
	padding: 0 42px 0 14px;
	border: 1px solid #dedede;
	border-radius: 6px;
	background: #fff url(/_res/nsu-dam/archive/img/board/btn-sel-open01.png) no-repeat right 14px center;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font-family: 'Pretendard GOV', inherit;
	font-weight: 500;
	font-size: 15px;
	line-height: 40px;
	color: #333f54;
	cursor: pointer;
	outline: 0;
}
.bn-write-common01 .b-con-box.customfield select:focus {
	border-color: #184892;
}

@media screen and (max-width: 768px) {

	.bn-view-common01.type03 .b-action {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px;
		margin-top: 16px;
	}

	.bn-view-common01.type03 .b-action .b-btn01 {
		margin: 0;
	}

	.bn-view-common01.type03 .b-action .b-btn-wrap {
		display: flex;
		gap: 12px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.bn-view-common01.type03 .b-action .b-btn-wrap > li {
		margin: 0;
	}

	/* ===== 비로그인(일반 사용자): 이전/다음(좌측) ←→ 목록(우측) — 한 줄 ===== */
	.bn-view-common01.type03 .b-action:not(.is-admin) {
		justify-content: space-between;
	}

	/* ===== 관리자: 1행 이전/다음(양끝), 2행 영구삭제/삭제/수정/목록(균등 분할) ===== */
	/* 1행 — 이전/다음 */
	.bn-view-common01.type03 .b-action.is-admin > .b-btn01:first-child {
		flex: 0 0 100%;
		width: 100%;
	}
	.bn-view-common01.type03 .b-action.is-admin > .b-btn01:first-child .b-btn-wrap {
		justify-content: space-between;
		width: 100%;
	}

	/* 2행 — 영구삭제/삭제/수정/목록 (가로 균등) */
	.bn-view-common01.type03 .b-action.is-admin > .b-btn01:last-child {
		flex: 0 0 100%;
		width: 100%;
	}
	.bn-view-common01.type03 .b-action.is-admin > .b-btn01:last-child .b-btn-wrap {
		width: 100%;
	}
	.bn-view-common01.type03 .b-action.is-admin > .b-btn01:last-child .b-btn-wrap > li {
		flex: 1 1 0;
	}
	.bn-view-common01.type03 .b-action.is-admin > .b-btn01:last-child .b-btn-wrap > li > a {
		display: block;
		width: 100%;
		text-align: center;
		padding-left: 0;
		padding-right: 0;
	}
}
