/* layouts-preview.css */

/* 레이아웃 미리보기 모달 전용 스타일 */
#layout-preview-content h2 {
  text-align: center;
  width: 100%;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.layout-preview-item {
  border: 1px solid #ccc;
  padding: 10px;
  width: 220px; /* A4 비율에 맞게 조정 (210mm) */
  height: 310px; /* A4 비율에 맞게 조정 (297mm) */
  cursor: pointer;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  margin-bottom: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.layout-preview-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.layout-preview-item h3 {
  text-align: center;
  font-size: 1em;
  margin-top: 0;
  margin-bottom: 10px;
  flex-shrink: 0;
}
/* [수정] document-container를 직접 스케일링 */
.layout-preview-item .document-container {
  transform: scale(0.23); /* 220px 너비에 맞춘 스케일 값 */
  transform-origin: top left;
  width: 210mm;
  min-height: 297mm;
  height: 297mm;
  overflow: hidden;
  pointer-events: none;
  margin: 0;
  padding: 10mm;
  box-shadow: none;
  border: 1px solid #ddd;
}
