html, body {
  height: 100%;
  overflow: hidden; /* 페이지 전체 스크롤 잠금: 오른쪽 영역만 스크롤 */
}
.floor4_wrap{
  width: 100%;
  max-width: 1280px;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden; /* 내부에서만 스크롤 */
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  padding-top: calc(100px + 4%);
  padding-bottom: 100px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  justify-content: space-between;
}

.floor4_leftMenu{
  width: 18%;
  height: 100%;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(100px + 4%);
  align-self: flex-start;
  max-height: calc(100vh - (100px + 4%) - 24px);
  overflow: hidden;
}

.floor4_leftMenu h2{
  font-weight: 600;
  color: #fff;
  padding: 20px 20px;
  font-size: 1.4rem;
  backdrop-filter: blur(30px);
  border-bottom: 1px solid #fff;
  margin-bottom: 24px;
}

.index_category{
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.index_category li {
  box-sizing: border-box;
  font-size: 1rem;
  font-weight: 400;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.index_category li a {
  color: #fff;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.index_category li:hover {
  background-color: rgba(255, 62, 0, 0.3);
}

.index_category li.active {
  background-color: #ff3e00;
}


button.goback{
  position: fixed;
  display: block;
  height: 32px;
  cursor: pointer;
  z-index: 3;
  bottom: 4%;
 
}
.goback_icon{
  display: block;
  float:left;
  width: 24px;
  height: 24px;
  background-image: url('/static/assets/images/common/arrows/arrow-prev-wt.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
}

.goback_text{
  display: block;
  line-height: 24px;
  margin-left: 12px;
  float:left;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
}
.goback:hover{
  color: #ff3e00;
}

.goback:hover .goback_icon{
  background-image: url('/static/assets/images/common/arrows/arrow-prev-or.svg');
}

.goback:hover .goback_text{
  color: #ff3e00;
}


.floor4_rightContent{
  width: 78%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  float: right;
  z-index: 1002;
  box-sizing: border-box;
  padding-left: 24px;
  flex: 1 1 auto;
  min-height: 0; /* 자식의 overflow 스크롤이 동작하게 */
}

.index_filterbar{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}


.index_year{
  display: block;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  border:none;
  outline:none;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
}

.index_year:hover{
  background-color: rgba(255, 62, 0, 0.3);
}

.index_year:focus{
  background-color: rgba(255, 62, 0, 0.3);
}

.index_year:active{
  background-color: rgba(255, 62, 0, 0.3);
}

.index_year:focus-visible{
  background-color: rgba(255, 62, 0, 0.3);
}

.index_year option{
  background-color: rgba(0, 0, 0, 0.3);
} 

select:not(:-internal-list-box) {
  background-color: rgba(0, 0, 0, 0.3)!important;
}

.index_postNo{
  display: block;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
}

.index_postNo span{

  font-size: 0.8rem;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
}

.contents{
  width: 100%;
  max-width: 100%;
  height: auto;
  display: flex;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory; /* 카드 행 단위로 스크롤 스냅 */
  scroll-behavior: smooth;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 6px; /* 스크롤바가 컨텐츠를 가리지 않도록 여유 */
}


.index_list {
  --index-row-min-height: 380px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3개의 열을 생성 */
  grid-template-rows: repeat(3, minmax(var(--index-row-min-height), 1fr)); /* 항상 3행 높이를 유지 */
  grid-auto-rows: minmax(var(--index-row-min-height), 1fr);
  gap: 20px; /* 아이템 사이의 간격 */
  height: 100%;
  align-content: start;
  box-sizing: border-box;
  padding-bottom: 40px;
}

.index_item {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: var(--index-row-min-height);
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px 20px 24px 20px;
  margin-bottom: 0;
  backdrop-filter: blur(30px);
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  scroll-snap-align: start;
}
.index_item:hover{
  background-color: rgba(255, 62, 0, 0.3);
}

.index_item:nth-child(3n) {
  margin-right: 0;
}

.index_img {
  aspect-ratio: 16/9 !important;
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 56.25% !important;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  background-color: rgba(0, 0, 0, 0.2);
  min-height: 0;
}

.index_img img,
.index_img video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  min-width: 100%;
  min-height: 100%;
}

.index_text{
  color: #fff;
  padding-top: 20px;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.index_catetxt{
  width: fit-content;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 5px;
}

.index_title{
  font-size: 1.2rem;
  font-weight: 600;
  padding:4px 0;
  line-height: 1.4;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index_period{
  font-size: 0.8rem;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index_client{
  font-size: 0.8rem;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index_tags{
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  max-height: 2.9em;
  overflow: hidden;
}

.index_tag{
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 3px 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  white-space: pre;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.index_tag:hover{
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

.index_tag.active{
  color: #ffb199;
  border-color: #ffb199;
  background-color: rgba(255, 177, 153, 0.12);
}

.no-posts{
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  margin-top: 20px;

}

.index_pagination{
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.index_pagination .pagination{
  width: 100%;
  height: auto;
  display: flex;
  gap: 10px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.index_pagination .pagination button{
  color: #fff;
  font-size: 1rem;
  font-weight: 300;
  padding: 10px 10px;
  cursor: pointer;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.index_pagination .pagination button.active{
  color: #fff;
  border:none;
  font-weight: 400;
  padding: 10px 10px;
  border-radius: 50px;
  background-color: #ff3e00;
}

.index_pagination .pagination button:hover{
  color: #ff3e00;
}

.index_pagination .pagination button:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 1400px) {
  .floor4_wrap {
    padding-left: 64px;
    padding-right: 64px;
  }
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .floor4_wrap {
    padding-left: 64px;
    padding-right: 64px;
  }

  .floor4_leftMenu {
    width: 22%;
  }

  .floor4_rightContent {
    width: 74%;
    padding-left: 16px;
  }

  .contents {
    scroll-snap-type: none;
  }
  
  .index_list {
    --index-row-min-height: 400px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, minmax(var(--index-row-min-height), 1fr));
    grid-auto-rows: minmax(var(--index-row-min-height), 1fr);
    height: 100%;
    align-content: start;
    gap: 15px;
  }

  .index_item {
    height: 100%;
    min-height: var(--index-row-min-height);
  }
}

@media (max-width: 768px) {
  .floor4_wrap {
    flex-direction: column;
    padding-left: 64px;
    padding-right: 64px;
  }
  
  .floor4_leftMenu {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .floor4_rightContent {
    width: 100%;
    float: none;
    padding-left: 0;
  }
  
  .index_list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    height: auto;
    align-content: stretch;
    gap: 10px;
  }
  
  .index_item {
    height: auto;
    min-height: 0;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .index_list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    height: auto;
    align-content: stretch;
    gap: 15px;
  }
  
  .index_item {
    padding: 12px;
  }
}