* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  color: #000;
  font-family: Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.4;

}

/* ✅ 전체 3컬럼 */
.layout {
  display: grid;
  grid-template-columns: 0.1fr 0.6fr 0.3fr;
  min-height: 100vh;

  gap: 1rem; /* 👈 이게 컬럼 사이 여백 */
  padding: 1rem; /* 전체 바깥 여백 */
}

.content {
  padding: 0 1rem;
}

/* 1번 영역 */
.sidebar {
  
  /*border-right: 1px solid #000;*/

  display: flex;
  flex-direction: column;
  gap: 2rem; /* 박스 사이 간격 */
  padding: 1rem;

.empty {
  /* border-left: 1px solid #000; ❌ 삭제 */
}

}
.side-box {

  /*border: 1px solid #000;*/
  display: flex;
  flex-direction: column;
  gap: 0.6rem
  /*padding: 1rem;*/

}
.side-box:first-child {
  background-color: #ffffff;
  border: none;
}

.side-box:last-child {
  background-color: #000000;

}
.side-box:last-child p,
.side-box:last-child h2 {
  color: #ffffff;
}

/* 텍스트 스타일 */

.side-box h2 {
  color: #000000;
  font-size: 12px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.side-box p {
  color: #000000;
  font-size: 11px;
  line-height: 0.3;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  cursor: pointer;
}

.category-box h2 {
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.category-box p {
  color: #ffffff;
  font-size: 10px;
  line-height: 0.3;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  cursor: pointer;
}

/* 2번 영역 */
.content {
  padding: 1rem;
}

/* 3번 영역 */
.empty {
  border-left: 1px solid #000;
}

/* ✅ 박스 5개 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  align-items: start;
  
}

.box {
  position: relative;
  display: inline-block;
  align-self: flex-start;

  /*overflow: hidden;*/

  /*width: 500px;
  height: 500px;*/

 /* flex: 1;  

  background-size: cover;     
  background-position: center; 
  background-repeat: no-repeat;*/
  
}

.box img {
  /*isplay: block;
  max-width: 100%;
  height: auto;*/

  /*position: absolute;*/
  top: 0;
  left: 0;

  /*width: 100%;
  height: 100%;*/

  object-fit: cover;
  transition: opacity 0.4s ease;
}

.box video {
  width: 100%;
  height: 100%;
  object-fit: cover;

  position: absolute;
  top: 0;
  left: 0;

  transition: opacity 0.4s ease;
}

/* 기본 이미지 */
.img-default {
  display: block;
  width: 100%;
  /*max-width: 100%;*/
  height: auto;
  opacity: 1;
}

.img-hover,
.video-hover{
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* 🔥 hover 시 교체 */
.box:hover .img-default {
  opacity: 0;
}

.box:hover .img-hover {
  opacity: 1;
}

.box:hover .video-hover {
  opacity: 1;
}

main {
  width: 100px;
  height: 100px;
  margin: 2rem auto;
  background: white;
}
.text-row {
  grid-column: 1 / -1;   /* 전체 열 차지 */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.text-box {
  background-color: #f5f5f5;  /* 원하는 색 */
  padding: 1rem;              /* 안쪽 여백 */
  font-size: 11px;
  line-height: 1.5;
  
  
  word-break: break-word;   /* 긴 단어 줄바꿈 */
  margin-bottom: 0.5rem;
}

.text-box h3 {
  font-size: 12px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  word-break: break-word;   /* 긴 단어 줄바꿈 */
}

.text-box p {
  line-height: 1.5;
  word-break: break-word;   /* 긴 단어 줄바꿈 */
}

.empty {
  border-left: 1px solid #000;
  padding: 1rem;

  display: grid;
  gap: 1rem;
}

.side3-box {
  font-size: 10px;
  line-height: 1.4;
}


