/* 프로그램 리스트 영역 스타일 */
.top-bold {
	font-weight: bold;
}

.pin-icon {
	margin-left: 0.5vw;
	color: #f39c12;
	font-size: 0.9em;
}

.left-section h3{
	position: relative;
	left: 15px;
}

.order-col {
	display: none;
	width: 5vw;
	text-align: center;
}
.editing .order-col {
	display: table-cell;
}
.order-col input {
	width: 100%;
	box-sizing: border-box;
}
.admin-controls {
	position: absolute;
	top: 0;
	right: 0;
	margin: 1vh;
}

#notification-list {
	position: relative;
	flex: 1;
	margin-left: 5%;
	margin-top: 2vh;
	height: 50vh;
}


#notification-list table {
	position: relative;
	left: 5%;
	width: 80%;
	border-collapse: collapse;
}
#notification-list th,
#notification-list td {
	border-bottom: 1px solid #D6CCC2;
	padding: 1vh 0.5vw;
	text-align: left;
}
#notification-list th {
	background: #EDEDE9;
}
#notification-list a {
	text-decoration: none;
	color: inherit;
}

#top-section {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	flex-direction: row;
	margin: 3% 5%;
}

.right-section {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	flex: 1;
}

.left-section {
	flex: 0 0 25vw;
}
.datetime-full {
	display: inline;
}
.datetime-dateonly {
	display: none;
}
#slideshow-wrapper {
	flex: 0 0 25vw;
	width: 25vw;
	height: 25vw;
	margin: 2vh;
	padding: 1vh;
	box-sizing: border-box;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	background-color: #E3D5CA;
}

#slideshow-container {
	position: relative;
	flex: 1;
	overflow: hidden;
	background: #f8f8f8;
}

#slideshow {
	position: relative;
	width: 100%;
	height: 100%;
}
#slideshow img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	object-fit: contain;
	object-position: center;
	display: none;
	background-color: #E3D5CA;
}

#slideshow-controls {
	text-align: center;
	margin-top: 1vh;
}
#slideshow-controls button {
	font-size: 1.2em;
	margin: 0 1vw;
	padding: 0.5vh 1vw;
	cursor: pointer;
	background-color: #F1E6E1;
	border: 1px solid #D5BDAF;
}
   .gallery {
  margin-top:10%; 
  margin-left:  6%;
}
.gallery-wrapper {
  display: flex;
  align-items: center;
  margin-top: 3%;
}

/* 이전/다음 버튼 */
#gallery-prev,
#gallery-next {
  background: none;
  border: none;
  font-size: 1.5rem;
  width: 40px; height: 40px;
  cursor: pointer;
  transition: opacity .2s;
  background-color: #F1E6E1;
}
#gallery-prev:disabled,
#gallery-next:disabled {
  opacity: .3;
  cursor: default;
}

/* 보이는 영역: 딱 5개만 보여줄 너비 (150px × 5) */
.gallery-container {
  width: 150px * 5; /* CSS 계산 불가 → 아래처럼 직접 지정 */
  width: 80%;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 10px;
}

/* 트랙: 전체 너비 1000px (이미지 150px + 여유) */
.gallery-track {
  display: flex;
  width: 50vw;
  transition: transform .3s ease-in-out;
}



    .gallery-item img {
    		display: block;
    		width: 150px;
    		height: 150px;
    }

    /* 네비게이션 버튼 */
    #gallery-prev,
    #gallery-next {
    	background: none;
    	border: none;
    	font-size: 1.5rem;
    	padding: 0 10px;
    	cursor: pointer;
    }

    #gallery-prev:disabled,
    #gallery-next:disabled {
    	opacity: 0.3;
    	cursor: default;
    }
/* 아이템: 고정 150px 폭, 오른쪽 마진 10px */
.gallery-item {
  flex: 0 0 150px;
  margin-right: 10px;
  width: 150px;
  height: 150px;
  box-sizing: border-box;
}
.gallery-item:last-child {
  margin-right: 0;
}

.mobile-box{
	display: none;
}


.popup-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.popup-content {
	position: relative;
	background-color: #fff;
	padding: 10px;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.popup-image {
	width: 600px;
	height: 600px;
	
	border-radius: 6px;
	margin-bottom: 10px;
}

.popup-footer {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

.popup-footer button {
	background-color: #007bff;
	color: white;
	border: none;
	padding: 5px 10px;
	border-radius: 4px;
	cursor: pointer;
}
#close-popup-btn:hover {
	background-color: #0056b3;
}