* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
    font-weight: normal;
}

body {

    font-size: 16px;
  font-family: "Noto Serif KR", serif;
    line-height: 1.8;
    word-break: keep-all;
    text-align: center;
    width: 100vw;
    height: 100vh;
    position: relative;
}


.back {
    position: absolute;
    top: 0;
    width: 100%;
    margin: 40px 0;
    z-index: 10; /* 슬라이드 위로 올림 */
    text-align: center; /* 링크 중앙 정렬 */
}

.back a {
    display: inline-block; /* 블록 요소로 변환하여 클릭 영역 확대 */
    text-decoration: none;
    color: black;
    background-color: white;
}

.back a:hover {
    color: blue;
}

.image-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

/* input 숨기기 */
input {
    display: none;
}

/*  개별 슬라이드 스타일 */
.slide {
    display: none;
    width: 100%; /* 화면 전체 너비 */
    height: 100%; /* 화면 전체 높이 */
    overflow: hidden;
    margin: 0 auto;
    position: absolute; /* figcaption 위치 조정을 위해 */
}

/*  현재 선택된 슬라이드만 표시 */
#slide1:checked ~ .slides .slide:nth-child(1),
#slide2:checked ~ .slides .slide:nth-child(2),
#slide3:checked ~ .slides .slide:nth-child(3),
#slide4:checked ~ .slides .slide:nth-child(4),
#slide5:checked ~ .slides .slide:nth-child(5),
#slide6:checked ~ .slides .slide:nth-child(6),
#slide7:checked ~ .slides .slide:nth-child(7),
#slide8:checked ~ .slides .slide:nth-child(8),
#slide9:checked ~ .slides .slide:nth-child(9),
#slide10:checked ~ .slides .slide:nth-child(10),
#slide11:checked ~ .slides .slide:nth-child(11) {
    display: flex;
    flex-direction: column; /* 이미지와 설명을 세로로 배치 */
    align-items: center;
    justify-content: center;
}

/*  이미지 스타일 */
.slide img {
    cursor: pointer;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain; 
}

/*  설명 (figcaption) 스타일 */
figcaption {

    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    background-color: white;
}