.roomlist-wrap { display: flex; width: 100%; }

.roomlist-wrap .room-item {
  display: flex;
  width: 50%;
  height: 830px;
  background: transparent;
  color: var(--main-brown);
  transition: background .4s, color .4s;
}
.roomlist-wrap .room-item.on {
  background: var(--main-brown);
  color: #fff;
}

/* 이미지 영역 */
.roomlist-wrap .room-img {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 47%; 
}
.roomlist-wrap .imgbox {
  overflow: hidden;
  position: relative;
}
.roomlist-wrap .room-img img {
  display: block;
  width: 100%;
  aspect-ratio: 335 / 390;
  object-fit: cover;
  transition: all 0.7s ease;
}

/* 오른쪽 아래 종이접기 */
.roomlist-wrap .imgbox::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  /* 우하단 절반 = 배경색(잘린 부분), 좌상단 절반 = 접힌 종이면 */
  background: linear-gradient(to top left, var(--main-brown) 50%, #cdbdab 50%, #fff7ee 100%);
  box-shadow: -3px -3px 6px rgba(0, 0, 0, 0.15);
  transition: width 0.4s ease, height 0.4s ease;
}

/* 왼쪽 아래 종이접기 */
.roomlist-wrap .imgbox.second::after {
  right: auto;
  left: 0;
  background: linear-gradient(to top right, var(--main-brown) 50%, #cdbdab 50%, #fff7ee 100%);
  box-shadow: 3px -3px 6px rgba(0, 0, 0, 0.15);
}

.roomlist-wrap .room-img img:hover {
  transform: scale(1.1);
}
.roomlist-wrap .imgbox:hover::after {
  width: 55px;
  height: 55px;
}

.roomlist-wrap .room-img .eng {
  font-size: 25px;
  letter-spacing: .05em;
  line-height: 1;
}

/* 좌측: 이미지 하단 정렬, 라벨은 이미지 위 */
.roomlist-wrap .item01 .room-img { justify-content: flex-end; padding-bottom: 38px; }
.roomlist-wrap .item01 .room-img .eng { margin: 0 0 22px 7px; }

/* 우측: 이미지 상단 정렬, 라벨은 이미지 아래 */
.roomlist-wrap .item02 .room-img { justify-content: flex-start; padding-top: 38px; }
.roomlist-wrap .item02 .room-img .eng { margin: 25px 10px 0 0; text-align: right; }

/* 텍스트 영역 */
.roomlist-wrap .room-txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.roomlist-wrap .room-txt h3 {
  font-size: 50px;
  line-height: 1.7;
  color: var(--main-brown);
}
.roomlist-wrap .room-txt h4 {
  font-size: 1.8em;
  line-height: 1.5;
  word-break: keep-all;
  font-family: 'pret-l';
}
.roomlist-wrap .room-item.on .room-txt h3, .roomlist-wrap .room-item.on .room-txt h4 {
  color: #fff;
}
.roomlist-wrap .room-txt .line {
  display: block;
  width: 100px;
  height: 1px;
  margin: 35px 0 45px;
  background: currentColor;
  opacity: .5;
}
.roomlist-wrap .room-txt .desc {
  font-size: 17px;
}
.roomlist-wrap .more-btn {
  margin-top: 90px;
  color: inherit;
}


/* 모바일 : 영역은 위아래로, 각 영역 안은 좌우 배치 유지 */
@media (max-width: 1024px) {
  .roomlist-wrap { flex-direction: column; }

  .roomlist-wrap .room-item {
    width: 100%;
    height: auto;
    flex-direction: row;
    min-height: 430px;
    box-sizing: border-box;
  }
  .roomlist-wrap .item02 {
   
    
  }

  /* 이미지 : 영역 하단에 붙이고, 라벨은 항상 이미지 위 */
  .roomlist-wrap .room-img {
    order: 0;
    width: 46%;
    padding: 0 !important;
    justify-content: flex-end !important;
  }
  .roomlist-wrap .room-img img { aspect-ratio: 190 / 222; }

  /* 마우스오버 종이접기 사이즈 */
  .roomlist-wrap .imgbox:hover::after {
    width: 30px;
    height: 30px;
  }

  .roomlist-wrap .room-img .eng {
    order: -1;
    font-size: 14px;
  }
  .roomlist-wrap .item01 .room-img .eng { margin: 0 0 11px 5px; text-align: left; }
  .roomlist-wrap .item02 .room-img .eng { margin: 0 5px 11px 0; text-align: right; }

  /* 텍스트 : 상단 정렬 */
  .roomlist-wrap .room-txt {
    order: 0;
    justify-content: flex-start;
    padding: 80px 5vw 0;
  }
  .roomlist-wrap .room-txt h3 { font-size: 26px; line-height: 1.5; word-break: keep-all; }
  .roomlist-wrap .room-txt .line { width: 65px; margin: 30px 0; }
  .roomlist-wrap .room-txt .desc { font-size: 13px; line-height: 1.9; padding: 0 10px; }
  .roomlist-wrap .room-txt .more-btn { margin-top: 30px;}
}

@media (max-width:500px) {
  .roomlist-wrap .room-item {
    min-height: 400px;
  }
}