@import url("./normalize.css");
@import url("./theme.css");
@import url("./base.css");



/* 전체 컨테이너 크기 */
.post-container {
    display: flex;
    /*justify-content: center;*/
    flex-wrap: nowrap;
    margin :var(--spacing-base) auto;
    padding : var(--spacing-base) var(--spacing-base);
    width: 100%;
    max-width: var(--container-width);

}

/*공통 좌측 메인 콘텐츠  List Gonggu에서 사용*/
.main-contents.sale-list-container{
    width : calc(100% - 300px);
}

/* 공통 커뮤니티 메인 컨텐츠 크기(List Community에서 사용)*/
.community-main-contents, .notice-main-contents{
    width: calc(100% - 300px);
    max-width: 64rem;
}

/* 오른쪽 광고*/
.side-column{
    position : sticky;
    top : 0; /* 요소를 고정할 위치(상단) */
    width : 300px;
    height : 900px;
    padding : var(--spacing-sm);
}

/* 게시물 상세 보기 등에서 사용 */
.side-column-ads-container{
    position : sticky;
    top : 20px; /* 요소를 고정할 위치(상단) */
}


/*공통 그리드 형태*/
.post-list {
    display: grid;
}


.post-list-wrap {
    display: flex;
    justify-content: center;
}

/*일반 게시판 형태*/
.post-simple-list{
    width:100%;
    margin-top : var(--spacing-sm);
    display: block;
    position: relative;
    background: white;
    box-shadow: 0 0 7px 0 rgba(0,0,0,.14);
    /*border-radius : 6px;*/
}

/* 테이블 상단 공통 */
.post-list-table thead th{
    border-top: 1px solid var(--main-item-border-color);
    padding: 0 8px;
    border-bottom: 1px solid var(--main-item-border-color);
    background: var(--secondary-color);
    color: white;
    text-align: center;
    font-weight: bold;
    height : 40px;
    vertical-align: middle; /* 수직 정렬을 중앙으로 설정합니다. */
    white-space : nowrap;
    overflow: hidden; /* 텍스트 잘라내기 */
}




/* 테이블 상단 중 제목과 작성자 컬럼 제외*/
.post-list-table th:not(.title, .profile){
    text-align: center;
    width: 65px;
}

/* 작성자 컬럼은 아래와 같이 별도로 */
.post-list-table th.profile{
    text-align: center;
    width: 120px;
}


.post-list-table tbody td {
    text-align: left;
    font-size: 16px;
    height : 50px;
    vertical-align: middle; /* 수직 정렬을 중앙으로 설정합니다. */
  /*  border-bottom : 1px solid var(--main-item-border-color);*/
}



/* 테이블 내용, 제목 컬럼 제외*/
.post-list-table tbody td:not(.title) {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--primary-color);
}




.post-list-table{
    margin: 0;
    width: 100%;
    border-top: thin solid var(--main-item-border-color);
    border-left: thin solid var(--main-item-border-color);
    border-right: thin solid var(--main-item-border-color);
    font-size: var(--text-base);
}

/*부모가 post-list-table이고 그 자식 중에 title인 것*/



.post-row{
    border-bottom: 1px solid var(--main-item-border-color);

}

.post-list-table .post-id{

}


.post-list-table .category{
    white-space: nowrap;
    font-weight: 500;
}

.post-list-table td.title{
    display: flex;
    align-items: center;
    padding-left : var(--spacing-base);
   /* min-width :
    max-width :*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*데스크탑 열에서 제목 링크 부분*/
.title-link{
    display : inline-block;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width : 400px;
    font-size: var(--text-md);
}

.title-link:hover{
    text-decoration: underline; /* 마우스 오버 시 밑줄 추가 */
    color: var(--text-hover-pink-color); /* 마우스 오버 시 텍스트 색상 변경 (예: 빨간색) */
}

.profile .profile-image{
    width : 25px;
    height : 25px;
    border: 1px solid var(--skinThumbBorder);
    border-radius: 50%;
    margin-right : var(--spacing-xs);
    vertical-align: middle; /* 수직 정렬을 중앙으로 설정합니다. */
}

.profile .nickName{
    color : var(--secondary-color);
    vertical-align: middle; /* 수직 정렬을 중앙으로 설정합니다. */
    white-space: nowrap;
}



.post-list-table .comments::before{
    content: "[";
    font-weight : 600;
    margin-left : var(--spacing-xs);
    color : red;
}

.post-list-table .comments{
    display : block; /*23.10.10 추가 */
    font-weight : 600;
    vertical-align: middle;
    color : red;
}

.post-list-table .comments::after{
    content: "]";
    font-weight : 600;
    color : red;
}

.new-post-tag {
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: var(--spacing-2xs) var(--spacing-xs);
  margin-left: var(--spacing-2xs);
  font-size : var(--text-xs);
  opacity: 0.8; /* 투명도 값을 원하는 값으로 조정 (0.0 ~ 1.0) */
}

.contents-has-picture{
    width : 20px;
    height : 20px;
    margin-left : var(--spacing-2xs);
    vertical-align: middle;
}

.dropdown-select{
    font-size : var(--text-base);
    padding : var(--spacing-sm) var(--spacing-base);   /*세로, 가로*/
}


.dropdown-select option{
    font-size : var(--text-base);
    /*height : 20px;*/
    /*margin-bottom : var(--spacing-2xs); */  /*세로, 가로*/
 /*   padding-bottom : var(--spacing-2xs); */  /*세로, 가로*/
}

/*데스크탑 검색 폼*/
.search-form{
    display: flex;
    align-items : center; /*수직 중앙 정렬*/
    justify-content: flex-end;
    margin-left: auto;
    flex-flow: row nowrap;
    text-align : right; /*오른쪽 정렬*/
    width : 25rem;
    max-width : 100%;
    margin-bottom : var(--spacing-base);
}

.search-box{
    display: flex;
    align-items : center; /*수직 중앙 정렬*/
    border: 1px solid var(--silver);
    border-radius: 0.25rem;
    background : white;
    height : 45px;
}

.search-input{
    width: 100%;
    max-width: 50vw;
    height: 2rem;
  /*  border: 1px solid var(--silver);*/
    border : none;
    background: var(--white);
  /*  border-radius: 0.25rem;*/
    padding: 0.125rem 0.75rem;
    outline : none; /*포커스 됐을 때, 테두리 제거*/
}

.search-button{
    border : none;
    background: var(--white);
}


.glass-icon{
    font-size: var(--icon-sm);
    color : var(--secondary-color);
}

/* 공통 4x4 배열 형태*/
.post-list {
    grid-template-columns: repeat(4, 1fr);
   /* grid-template-rows: repeat(4, 1fr);*/
   /* grid-template-rows: repeat(auto-fit, minmax(25%, 1fr));*/
    column-gap: var(--spacing-base); /* 수평 간격 크기 */
    row-gap: var(--spacing-lg); /* 수직 간격 크기 */
    background : var(--main-background-color);
   /* margin-bottom : var(--spacing-xl);*/
    height : 100%;
    max-width: 100%;
}

.post-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height : fit-content;
    background : white;
    border-radius : 12px;
    box-shadow : 0 2px 3px rgba(0, 0, 0, 0.1);
    border : thin solid var(--main-item-border-color);
    cursor : pointer;
    position : relative;
    padding : var(--spacing-sm);
    overflow: hidden; /* 내부 내용이 넘칠 경우 숨기기 */
}

/* 카드에 a 태그 이용할 때, 카드의 전체 범위로 하기 위해서 23.6.30 */
/* post-card 클래스 하위의 a 태그 */
.post-card > a{
    width : 100%;
    max-width : 100%;
    height : 100%;
    position : absolute;   /*부모에는 relative를 줘야함*/
    top : 0;
    left : 0;
    z-index : 10;
}

/*포스트 카드의 헤더 부분*/
.header-container{
    display: grid;
    padding-bottom: 4px;
    gap: 4px 4px;
    grid-template:
        "image note" 16px
        "image timestamp" 16px/auto 1fr;
}

.header-profile-img-container{
    width : 30px;
    height : 30px;
}

.header-profile-img{
    grid-area: image;
    width : 100%;
    height : 100%;
    border-radius: 50%;
}

.header-writer-container{
    grid-area: note;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display : flex;
    align-items: center;
}


.header-profile-img-caption{
    color : var(--silver-text-color);
    font-size : var(--text-sm);
}


.header-profile-nickName{
    margin-left : var(--spacing-xs);
    font-weight : 500;
}


.header-timestamp{
    grid-area : timestamp;
    font-size : var(--spacing-sm);
    color : var(--silver-text-color);
}


.thumbnail-container {
    width: 100%;
    aspect-ratio: 1/1; /* 가로-세로 비율 1:1 */
    background: var(--img-background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 6px;
    position: relative;   /*자녀의 위치를 상대적으로 정하기 위해서 필요*/
}

.thumbnail {
    width : 100%;
    height : 100%;
    background : transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
   /* border-radius: 6px 6px 6px 6px;*/
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
 /* border-radius: 15%;*/
}

.like-icon-container{
    /*부모의 요소에 따라 위치 결정*/
    position: absolute;
    bottom: var(--spacing-2xs);
    right: var(--spacing-2xs);
    z-index: 20; /* 추가: 아이콘을 이미지 위로 올리기 */
}

.like-icon {
    /*position: absolute;
    top : 210px;
    right: 10px;*/
    font-size: var(--icon-sm);
    color: red;

    transition: transform 0.3s ease-in-out;
}

/*unfiilled를 넣었다 뺐다 하면됨*/
.like-icon.unfilled {
    font-weight: lighter;
}

/*
.like-icon.unfilled:hover{
    transform : scale(1.5);
}
*/
.meta-wrap{
    display : flex;
    flex-direction : column;
    height: auto;
    max-width: 100%;
    padding: var(--spacing-xs) 0 0 0;
}



.meta-top {

   /* margin-top : var(--spacing-base);*/
    margin-bottom : var(--spacing-base);

}

/*각 아이템들은 오른쪽 끝에 붙인다
 post-card 가장 하단에 위치 */
.meta-footer {
    display: flex;
    max-width: 100%;
    align-items: center;   /*수직 중앙정렬*/
    justify-content: space-between;
    /*margin-top: auto;*/
    padding-top : var(--spacing-xs);
    color : var(--silver-text-color);
    border-top : 0.5px solid var(--metaFooterBorderColor);
    white-space: nowrap;
}



/* meta top 자녀의 category class */
.meta-top > .category {
    overflow : hidden;
    text-overflow : ellipsis;  /*(...) 표시*/
    white-space : nowrap;      /*공백문자 있어도 줄바꿈 안함*/
    font-weight : bold;
}

.meta-top > .category::before {
  content: "[";
}

.meta-top > .category::after {
  content: "]    ";
}


.meta-top > .post-date {
    overflow : hidden;
    text-overflow : ellipsis;  /*(...) 표시*/
    white-space : nowrap;      /*공백문자 있어도 줄바꿈 안함*/
    font-weight : 300;  /* 기본보다는 약간 흐리게 */
}

.meta-icon{
    margin-left: var(--spacing-2xs);
    margin-right : var(--spacing-2xs);
}

.meta-wrap > .subject {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;  /*최대 세줄*/
    overflow: hidden;
    text-overflow : ellipsis;  /*(...) 표시*/
    word-break : break-all;
  /*  white-space : nowrap;*/      /*공백문자 있어도 줄바꿈 안함*/
    font-weight : 500;    /*기본보다는 약간 진하게*/
    height : 72px;
    font-size : var(--text-lg);
    line-height : 1.2;
}

/*가격 컨테이너*/
.meta-wrap > .deal-price-container{
    height : 20px;
    max-width: 100%;
    text-overflow: ellipsis;  /* 줄바꿈 되지 않도록 */
    word-break: break-all;
    white-space: nowrap;
    display: flex;
    align-items: center;
    /*overflow: hidden;*/
    flex-shrink: 1; /* Allow flex items to shrink */
    -webkit-flex-shrink: 1;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    box-sizing: border-box;
}

.deal-price-container > .sale-price{
    padding-right : var(--spacing-xs);
    font-size : var(--text-lg);
    color : var(--sale-price-color);
    font-weight : 700;
    min-width: 0;
}

.deal-price-container > .original-price{
    font-size : var(--text-sm);
    color : var(--original-price-color);
    text-decoration: line-through;
    font-weight : 300;
    min-width: 0;
}

.deal-price-container > .popular-icon{
    margin-left : var(--spacing-2xs);
}


.meta-wrap > .deal-price-container > * {
     /* Prevent flex items from overflowing */
    flex-shrink: 1; /* Allow child elements to shrink */
    -webkit-flex-shrink: 1; /* Allow child elements to shrink */
}

/* 프로필 */
.small-profile{
    padding-left : var(--spacing-2xs);
    padding-top : var(--spacing-sm);
    display: flex;
    align-items: center; /* 수직 정 중앙에 배치 */
}

.small-profile-image{
    width : 25px;
    height : 25px;
    border-radius: 50%;
    margin-right : var(--spacing-xs);
}

.small-profile .nickName{
    color : var(--secondary-color);
}

/* 카드 하단 부쪽의 store 이름 영역 */
.storeInfo-container{
    width : 100%;
    padding : var(--spacing-xs);
    height : 40px;
    display: flex;
    align-items: center;
}

.storeInfo-container .storeName{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    color: var(--silver-text-color);
    font-size : var(--text-sm);
}

.meta-footer > .social-wrap{
    display : flex;
    align-items: center;
    flex-direction: row; /* 이 부분은 기본값이므로 명시적으로 설정하지 않아도 됩니다. */
    flex-wrap: nowrap;
    letter-spacing: 0px;
    max-width: calc(100% - 30px);
    gap : var(--spacing-sm);
}



.likes-count,
.social-wrap > .likes
.social-wrap > .views,
.social-wrap > .comments,
.social-wrap > .meta-icon{
    font-size : var(--text-base);
}



.shop-now-wrap{
    z-index : 99;
}

/* 24.1.26추가 */
.shop-now-icon{
    transition: transform 0.3s ease-in-out;
}

/* 미디어 쿼리 부분으로 옮김
.shop-now-icon:hover{
    transform : scale(2.0);
    color : var(--green-button-color);
}
*/

/*필터, 쓰기, 검색 버튼*/
.button-container{
    display: flex;
    align-items : center;
    flex-wrap : wrap;   /* 화면 작아 졌을 때, 넘치면 아래칸으로 밀기 */
    padding-bottom : var(--spacing-base);
    justify-content : space-between;
}

/* 일렬 오른쪽 끝 */
.button-wrap{
    display: flex;
    flex-wrap : wrap;   /* 화면 작아 졌을 때, 넘치면 아래칸으로 밀기 */
    justify-content: flex-end;
}


/*공통 - 모바일만 보여주는 항목인 경우 숨기기*/
.mobile-show{
    display : none;
}


/* 23.10.23 게시물 리스트의 공지사항 시작 */

.post-list-notice-wrap {
    border-top: thin solid var(--main-item-border-color);
    border-left: thin solid var(--main-item-border-color);
    border-right: thin solid var(--main-item-border-color);
    margin-bottom : var(--spacing-2xl);
    box-shadow: 0 0 7px 0 rgba(0,0,0,.14);
}

.post-list-notice-table{
    background-color : white;
    width : 100%;
}

.post-list-notice-tbody tr{
    height : 40px;
    line-height : 40px;
    text-align : center;
    font-size: var(--text-xs);
    border-bottom: thin solid var(--main-item-border-color);
    white-space: nowrap;
}

.post-list-notice-tbody .notice-division{
    width : 42px;
    background-color : black;
    color : white;
    border-radius: 3px;
    padding : 2px;
    display : inline;
    text-align : center;
    font-weight : 800;
}

/* 세일목록의 공지사항 중에서 인기글 스타일 */
.post-list-notice-tbody .notice-division.popular{
    background-color : var(--text-hover-pink-color);
}
/* 세일목록의 공지사항 중에서 광고글 스타일 */
.post-list-notice-tbody .notice-division.advertisement{
    background-color : #2C73D2;
}

.post-list-notice-tbody .notice-category{
    color : var(--silver-text-color);
    width : 60px;
}

.post-list-notice-tbody .notice-author{
    font-size: var(--text-xs);
    width : 65px;
}

.post-list-notice-tbody .notice-date{
    font-size: var(--text-xs);
    width : 40px;
}

.post-list-notice-tbody .notice-viewCount{
    font-size: var(--text-xs);
    max-width : 60px;
}

.post-list-notice-tbody .notice-title{
    vertical-align : middle;
    font-weight : bold;
    text-align : left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width : calc(100% - 265px);
    padding-left : var(--spacing-sm);
    cursor : pointer;
}

.post-list-notice-tbody .notice-title:hover{
    color: var(--text-hover-pink-color); /* 마우스를 올릴 때 텍스트 색상 변경 */
    text-decoration: underline; /* 마우스를 올릴 때 밑줄 추가 */

}

.post-list-notice-tbody .notice-title-link{
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*width : 100%;*/
    max-width : calc(100vw - 265px);
}


.notice-viewCount::before{
    font-family: "Font Awesome 6 Free";
    content : "\f06e";
    margin-right : var(--spacing-xs);

}

/* 23.10.23 게시물 리스트의 공지사항 끝 */





/* 두번째 큰 크기*/

@media (min-width: 960px) and (max-width: 1200px){


    /* 공통 좌측 메인 콘텐츠  List Gonggu에서 사용*/
    .main-contents.sale-list-container{
        width : calc(100% - 250px);
    }

    /* 공통 커뮤니티 메인 컨텐츠 크기(List Community에서 사용)*/
    .community-main-contents, .notice-main-contents{
        width : calc(100% - 250px);
    }

    /*오른쪽 광고*/
    .sale-list-side-column{
        position : sticky;
        width : 250px;
        height : 900px;
        padding : var(--spacing-sm);
    }

    .post-card {
        width: 100% - var(--spacing-base)/2;
       /* height: 100% - var(--spacing-lg)/2;*/
        height : fit-content;
    }


    /* 중간크기 post card 한 행에 3개로 조절 */
    .post-list{
        grid-template-columns: repeat(3, 1fr);
      /*  grid-template-rows: repeat(8, 1fr);*/
        /*grid-template-rows: repeat(auto-fit, minmax(18.75%, 1fr));*/
    }


    .meta-wrap > .subject{
        font-size: var(--text-lg);
    }

    .meta-footer > .social-wrap{
        gap : var(--spacing-sm);
    }

    /* 중간크기 가격 크기 조절 */
    .deal-price-container > .sale-price{
        font-size : var(--text-sm);
    }

    .deal-price-container > .original-price{
        font-size : var(--text-xs);
    }


    /* 중간크기 하단 아이콘/숫자 크기 조절 */
    .likes-count,
    .social-wrap > .likes,
    .social-wrap > .views,
    .social-wrap > .comments,
    .social-wrap > .meta-icon{
        font-size : var(--text-sm);
    }

    /* 중간 크기 커뮤니티/공지사항 타이틀 길이 조절 */
    .title-link{
        max-width : 300px;
    }



}



/* 세번째 크기*/
@media (min-width: 768px) and (max-width: 960px){

    /*공통 좌측 메인 콘텐츠 List Gonggu에서 사용*/
    .main-contents.sale-list-container{
        width : calc(100% - 200px);
    }

    /* 공통 커뮤니티 메인 컨텐츠 크기(List Community에서 사용)*/
    .community-main-contents, .notice-main-contents{
        width : calc(100% - 200px);
    }

    /*오른쪽 광고*/
    .side-column{
        position : sticky;
        width : 200px;
        height : 900px;
        padding : var(--spacing-sm);
    }

    .post-card {
        width: 100% - var(--spacing-base)/2;
       /* height: 100% - var(--spacing-lg)/2;*/
        height : fit-content;
    }


    /* 중간크기 post card 한 행에 2개로 조절 */
    .post-list{
        grid-template-columns: repeat(2, 1fr);
      /*  grid-template-rows: repeat(8, 1fr);*/
      /*  grid-template-rows: repeat(auto-fit, minmax(12.5%, 1fr));*/
    }

    /* 중간크기 오른쪽 광고 크기 조절*/
   /* .side-column {
        float: left;
        width: 150px;
    }*/

    .meta-footer > .social-wrap{
        gap : var(--spacing-xs);
    }

    /* 세번째 크기 커뮤니티/공지사항 타이틀 길이 조절 */
    .title-link{
        max-width : 245px;
    }

}


/* 모바일 모드 */
@media (max-width: 767px){

    /*모바일 공통 좌측 메인 콘텐츠 List Gonggu에서 사용 */
    .main-contents.sale-list-container{
        width : calc(100% - 0px);
    }

    /* 공통 커뮤니티 메인 컨텐츠 크기(List Community에서 사용)*/
    .community-main-contents, .notice-main-contents{
        width : calc(100% - 0px);
    }

    /* 모바일 오른쪽 광고*/
    .side-column{
        display : none;
      /*  width : 100%;
        height : 200px;*/
    }

    /* 모바일 카드에서 상단 프로필 이미지 및 작성자 부분 */
    .header-container {
        display: grid;
        padding-bottom: 4px;
        gap: 4px 4px;
        grid-template:
            "image note" 12px
            "image timestamp" 12px/auto 1fr;
    }


    .header-profile-img-caption {
        font-size: var(--text-xs);
    }


    .header-profile-nickName {
        margin-left: var(--spacing-2xs);
        font-size: var(--text-sm);
    }


    /* 모바일 카드 형태에서 카테고리와 날짜 */
    .meta-top > .category {
        font-size : var(--text-sm);
    }

    .meta-top > .post-date {
        font-size : var(--text-sm);
    }

    /* 모바일 카드 형태에서 제목 */
    .meta-wrap > .subject{
        font-size : var(--text-base);
        height : 44px;
    }

    .meta-footer > .social-wrap{
        letter-spacing : -2px;
        gap : var(--spacing-2xs);
    }

    /* 모바일 가격 크기 조절 */
    .deal-price-container > .sale-price{
        font-size : var(--text-sm);
    }

    .deal-price-container > .original-price{
        font-size : var(--text-xs);
    }

    .deal-price-container > .popular-icon {
        font-size : var(--text-sm);
    }

    /* 모바일 카드에서 메타 아이콘 작게 */
    .likes-count,
    .social-wrap > .views,
    .social-wrap > .comments,
    .meta-icon{
        font-size : var(--text-sm);
    }

    .meta-icon{
        margin-left : var(--spacing-3xs);
        margin-right : var(--spacing-3xs);
    }


    .post-list-table tbody td{
        border-bottom :  none;
    }

    /* 모바일 */
    .post-list{
        grid-template-columns: repeat(2, 1fr);
      /*  grid-template-rows: repeat(8, 1fr);*/
       /* grid-template-rows: repeat(auto-fit, minmax(12.5%, 1fr));*/
    }

    /* 모바일 버젼, 드랍다운 버튼 크기 조절 */
    .dropdown-select{
        margin : var(--spacing-2xs);
    }


    /*모바일 테이블 첫행 숨기기 이름*/
    th[scope="col"]{
        display : none;
    }

    .post-list-table tbody td {
        height : 65px;
    }



    /*모바일에서는 숨기는 것들에 적용*/
    .only-desktop{
        display : none;
    }

    /* 모바일 - 모바일만 보여주는 항목*/
    .mobile-show{
        display : block;
    }

    .image-thumbnail-box{
        width : 55px;
        height : 55px;
        overflow: hidden; /* 추가 */
    }

    .image-thumbnail{
        width : 55px;
        height : 55px;
        border-radius: 6px;
        object-fit: cover;
    }


    /* 모바일 커뮤니티 기본 로우 */
    tr.post-row{
        padding-left: var(--spacing-xs);
        cursor: pointer; /* 마우스 커서를 포인터로 변경하여 클릭 가능한 것임을 나타냅니다. */
        display : flex;
        height : 75px;
        width : 100%;
        align-items : center;
        position : relative;
        border-bottom :  1px solid var(--main-item-border-color);
    }

    /*모바일에서는 행 전체에 링크를 줘야하므로 */
    .link-mobile{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1; /* 다른 요소 위로 레이어를 설정합니다. */
    }


    /* 모바일 카테고리 */
    td.category.custom-td {
      font-weight: 700;
      white-space: normal;
      margin-left: var(--spacing-2xs);
      margin-right: var(--spacing-sm);
      /*padding-left : var(--spacing-sm);*/
      width : 25px;
      justify-content : center;
      order: 1; /* 카테고리 첫 번째로 표시합니다. */
      display : flex;
      align-items : center;
    }


    /*모바일, 제목 기본*/
    td.title.custom-td {
      order: 2;
      height : auto;
      display : flex;
      align-items : center;
      position: relative;
      top: -15px;
      padding-left : 0;
      padding-top: 12px;
      width : calc(100% - 120px);
    }

    /*모바일, 제목 이미지 있는 경우*/
    td.title.custom-td.has-image {
      width : calc(100% - 110px);
    }


    /* 모바일 제목 2줄 표시 */
    .title-link{
       /* min-width : calc(300px - 30px);*/
       /* width :*/
        max-width : 560px;
        word-break: break-all;   /* 띄어쓰기 안하는 문제 때문에 추가함 */
        white-space: pre-line;
        word-wrap: break-word;
        max-width: 560px;
        display: -webkit-inline-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }


    .profile-div{
        display: flex;
        align-items: center;
    }

    /* 모바일 글쓴이 프로필 이미지 크기 25에서 20으로 줄임 */
    .profile .profile-image{
        width : 20px;
        height : 20px;
    }

    /* profile 요소의 스타일을 조정합니다. */
    td.profile.custom-td {
        order: 3;
        height : auto;
        display : flex;
        align-items : center;
        position: absolute;
        bottom: 7px;
        left: 60px;
    }

    .profile .nickName {
        color: var(--silver-text-color);
    }

    /* post-date 요소의 스타일을 조정합니다. */
    .post-date.mobile-show{
        padding-left : var(--spacing-xs);
        color: var(--silver-text-color);
    }



    td.image-thumbnail-box {
        order: 4;
        display : flex;
        align-items : center;
        position : absolute;
        right : 10px;
    }

/*
    td.view-count {
        order: 5;
        display : flex;
        align-items : center;
        position : absolute;
        right : 45px;
    }

    td.likes-count {
        order: 6;
        display : flex;
        align-items : center;
        position : absolute;
        right : 0;
    }
*/
    td.custom-td {
        border-bottom : none;
    }


    .view-count.mobile-show::before{
        font-family: "Font Awesome 6 Free";
        content : "\f06e";
        margin-left : var(--spacing-xs);
        margin-right : var(--spacing-xs);
        color: var(--silver-text-color);
        font-weight : 900;
    }


    .likes-count.mobile-show::before{
        font-family: "Font Awesome 6 Free";
        content : "\f004";
        margin-left : var(--spacing-xs);
        margin-right : var(--spacing-xs);
        color: var(--silver-text-color);
        font-weight : 900;
    }


    /* 마지막 td 요소에 padding-right를 적용합니다. */
    tr td:last-child {
      margin-right: 10px; /* 원하는 값으로 설정하세요. */
    }
}


/***************************************************/

/* 모든 요소에 대해 모바일 기기에서 hover 효과 비활성화 */
/* 24.5.28 반영 */
@media (hover: hover) and (pointer: fine)  {

    /* 좋아요 아이콘에 마우스 올렸을 때 크기 설정 */
    .like-icon.unfilled:hover{
        transform : scale(1.5);
    }

    /* 쇼핑카트 아이콘 마우스 올렸을 때 변화주기 */
    .shop-now-icon:hover{
        transform : scale(2.0);
        color : var(--green-button-color);
    }

}

