/* =========================================================
   view.css 최종 정리본
   기준폭: 전체 1100px / 내부 카드 1060px
   적용: view.php 안 <style> 제거 후 이 파일만 사용
========================================================= */

/* ===== 기본 ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
    background: #f2f2f3;
    color: #222;
}

/* ===== 전체 폭 ===== */
.view-page {
    width:100%;
    max-width:1100px;
    margin:20px auto;
    padding:0px;

    background:#f8f6ec;

    border-radius:14px;
    box-sizing:border-box;
}

.view-card{
    width:100%;
    max-width:1000px;
    margin:0 auto;
    padding:35px 35px 25px 35px;
    background:#f8f6ec;
    border:1px solid #a8c9e8;
    border-radius:14px;
    box-shadow:0 6px 20px rgba(0,0,0,0.25);
    overflow:hidden;
    box-sizing:border-box;
}

/* ===== 상단 기본정보 ===== */
.view-top-info {
    width: 100%;
    margin-bottom: 18px;
    border: 1px solid #cfded9;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.view-top-mint,
.view-top-info .top-line {
    height: 18px;
    background: #dee2e1;
    border-bottom: 1px solid #cfded9;
}

.view-meta {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    font-weight:400;
    color: #222;
}
.meta-date {
    text-align: center;
}

.meta-hit {
    text-align: right;
}

.view-top-info-table,
.top-info-table {

    width:100%;
    border-collapse:collapse;
table-layout:fixed;

}

.top-info-table .top-map {

width:70px;

min-width:70px;

text-align:center;

white-space:nowrap;

}

.top-info-table td:nth-child(2){

width:auto;

}


.view-top-info th,
.top-info-table th {

width:90px;
min-width:90px;

height:34px;
padding:6px 10px;

background:#ace2f3;
border:1px solid #cfd6df;

font-size:16px;
font-weight:700;

}


.view-top-info td,
.top-info-table td {
    height: 50px;
    padding: 6px 14px;
    border: 1px solid #1b65c5;
    font-size: 15px;
    font-weight: 600;
    color: #585757;
}

/* 상권요약 한 줄 처리 */
/* 상권요약 내용만 */

.top-info-table tr:last-child td.top-value{

font-size:18px;
font-weight:700;

white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;

}

.top-info-table .top-value .cate-normal{
    color:#555 !important;
    font-weight:700;
}

.top-info-table .top-value .cate-red{
    color:#d50000 !important;
    font-weight:700;
}


.info-line {
    display: grid;
    grid-template-columns: 160px 1fr;
    border-bottom: 1px solid #cfd6df;
}

.info-line.address-line {
    grid-template-columns: 160px 1fr 120px;
}

.info-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9ebe6;
    border-right: 1px solid #cfd6df;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.info-content {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #524f4f;
}

.info-right {
    padding: 10px 14px;
    text-align: right;
}

.premium-badge {
    display: inline-block;
    margin-right: 14px;
    border-radius:10px;
    padding: 0 13px;
    line-height: 24px;
    background: #ef4f70;
    color: #fff;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
}

.category-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-red,
.cate-sub {
    color: #d40000;
    font-size: 20px;
    font-weight: 800;
    text-decoration: underline;
}

.cate-main,
.cate-type,
.cate-deal {
    font-size: 16px;
    color: #222;
}

.summary-big,
.summary-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.map-link,
.top-map a {
    color: #111;
    font-weight: 800;
    text-decoration: underline;
}

/* ===== 중단: 개별정보 + 사진 ===== */
.top-visual-wrap {
    width: 100%;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 20px 0 18px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-sizing: border-box;
}

.side-area {
    width: 55%;
    min-width: 0;
    box-sizing: border-box;
}

.photo-area,
.main-photo-wrap,
.image-area {
    width: 45%;
    box-sizing: border-box;
}

.info-table-wrap {
    width: 100%;
}

.view-info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.view-info-table th,
.view-info-table td {
    height: 40px;
    padding: 7px 8px;
    border: 1px solid #ddd;
    vertical-align: middle;
    font-size: 15px;
    line-height: 1.4;
    color: #222;
    word-break: keep-all;
}

.view-info-table .section-title,
.section-title {
    height: 32px;
    padding: 6px 8px;
    background: #dff3ec;
    color: #355a55;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
}

.view-info-table .label {
    width: 18%;
    background: #fff;
    color: #333;
    font-weight: 400;
}

.view-info-table .value {
    width: 32%;
    background: #fff;
    color: #111;
    font-weight: 700;
}

.view-info-table .phone {
    font-size: 18px;
    font-weight: 700;
}

.price-red {
    color: #d40000 !important;
    font-weight: 800 !important;
}

/* ===== 사진 ===== */
.photo-main,
.main-photo {
    width:400px;
    height:400px;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
    background:#f5f5f5;
}

.photo-main img,
.main-photo img,
.main-photo-wrap img,
.photo-area img,
.image-area img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.photo-thumb-wrap {
    height: 70px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}

.photo-thumb-container {
    width: 304px;
    flex: 0 0 304px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.photo-thumb-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
    transition: transform 0.3s ease;
}

.photo-thumb {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f3f3;
    cursor: pointer;
}

.photo-thumb.active {
    border: 2px solid #f2c94c;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-arrow {
    width: 28px;
    height: 70px;
    border: 0;
    background: transparent;
    font-size: 26px;
    font-weight: 800;
    cursor: pointer;
}

/* ===== 상세설명 ===== */
.detail-box,
.detail-section,
.bottom-detail-box {
    width: 100%;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.detail-title,
.detail-desc-title {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #cfeee4;
    padding: 10px 20px;
    border-bottom: 1px solid #dcdcdc;
    font-size: 16px;
    font-weight: 800;
}

.detail-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-guide {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.detail-share {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.detail-share img {
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.detail-content,
.detail-desc-content {
    min-height: 220px;
    padding: 22px;
    background: #fff;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    box-sizing: border-box;
}

.detail-input {
    padding: 15px 20px;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

.detail-notice,
.notice-line {
    padding: 12px 15px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.detail-desc-content img {
    max-width:600px;
    height:auto;
    cursor:pointer;
    display:block;
    margin:15px auto;
}

.detail-desc-content iframe {
    max-width: 100%;
    width: 100%;
    height: 420px;
    display: block;
    margin: 15px auto;
}

.empty-desc {
    color: #999;
    font-size: 14px;
    padding: 20px 0;
}

/* ===== 등록자 + 상담 ===== */

/* ===== 등록자 + 상담 ===== */
.seller-consult-wrap {
    width: 800px;
    margin: 5px 0 5px 55px;
    background: #cfeee5;
    box-sizing: border-box;
}
.registrant-table {
    width: 800px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.registrant-table th,
.registrant-table td {
    border: 1px solid #c3cae0;
    padding: 5px 8px;
    height: 30px;
    font-size: 14px;
    line-height: 18px;
    font-weight: normal;
    background: #fff;
    box-sizing: border-box;
    white-space: nowrap;
}

.registrant-table .main-title,
.registrant-table .consult-title-cell {
    background: #cfeee5;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    height: 34px;
}

.registrant-table .side-title {
    background: #cfeee5;
    text-align: center;
    font-size: 15px;
}

.registrant-table .label {
    text-align: left;
}

.registrant-table .consult-cell {
    padding: 8px;
    vertical-align: top;
    background: #fff;
}

.consult-input-wrap {
    height: 100%;
}

.consult-textarea {
    width: 100%;
    height: 80px;
    margin: 0 0 6px;
    padding: 6px;
    border: 1px solid #ccc;
    resize: none;
    box-sizing: border-box;
}

.phone-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.phone-row input {
    width: 38px;
    height: 22px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 12px;
}

.phone-row button {
    height: 24px;
    padding: 0 8px;
    background: #333;
    color: #fff;
    border: 0;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}



.s
/* ===== 지도 ===== */
.map-open-row {
    width: 100%;
    max-width: 100%;
    margin: 10px auto 0;
    background: #a8e7d5;
    min-height: 48px;
    line-height: 48px;
    padding-left: 24px;
    box-sizing: border-box;
}

.map-open-link {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    text-decoration: underline;
    display:inline-flex;
    align-items:center;

    position:relative;
    left:-10px;
}




.map-section {
    width: 100%;
    margin: 18px 0 0;
    border: 1px solid #d7dfdc;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
}

.map-toggle-btn {
    width: 100%;
    height: 44px;
    border: 0;
    background: #cfeee4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    color: #46655b;
}

.map-toggle-arrow {
    display: inline-block;
    font-size: 14px;
    transition: transform 0.25s ease;
}

.map-section.open .map-toggle-arrow {
    transform: rotate(180deg);
}

.map-panel {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    background: #fff;
}

.map-section.open .map-panel {
    height: 360px;
}

.map-frame-wrap {
    width: 100%;
    height: 360px;
    padding: 12px;
    background: #fff;
    box-sizing: border-box;
}

.view-map-area {
    width: 100%;
    height: 100%;
    border: 1px solid #d9d9d9;
    background: #6d6969;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    box-sizing: border-box;
}

/* ===== 버튼 ===== */
.view-bottom-buttons,
.bottom-btn-row {
    width: 100%;
    max-width: 100%
    margin: 8px auto 30px;
    padding: 20px 0 0;
    text-align: center;
}


.view-bottom-buttons a,
.bottom-btn {
    display: inline-block;
    min-width: 70px !important;
    height: 30px !important;
    line-height: 30px !important;
    padding: 0 12px !important;
    margin: 0 3px !important;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 13px !important;
    font-weight: bold;
    text-align: center;
}


/* ===== 공유 버튼 ===== */
.share-box {
    padding: 10px 14px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border: 0;
    margin-right: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    vertical-align: middle;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.share-btn.kakao {
    background: #ffd800;
    color: #111;
}

.share-btn.facebook {
    background: #2f5ea8;
    font-size: 20px;
}

.share-btn.twitter {
    background: #39a9e0;
    font-size: 18px;
}

.share-btn.url {
    background: #999;
    font-size: 10px;
}

.share-img {
    width: 36px;
    height: 36px;
    margin-right: 6px;
    vertical-align: middle;
    cursor: pointer;
}

.image-modal.active {
    display: flex !important;
}

.req {
    color: red;
    font-weight: 700;
}

.normal-badge {
    display: inline-block;
    min-width: 72px;
    padding: 5px 13px;
    border-radius: 10px;
    background: #6bec4b;
    border: 1px solid #d7d7d7;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* ===== 모바일 ===== */
@media (max-width: 1100px) {
    .view-page {
        width: calc(100% - 20px);
        padding: 14px;
    }

    .view-card {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .view-page {
        width: 100%;
        margin: 0 auto;
        padding: 10px;
        border-radius: 0;
    }

    .view-card {
        width: 100%;
        border-radius: 10px;
        padding: 10px;
    }

    .top-visual-wrap {
        display: block;
        padding: 12px;
    }

    .side-area,
    .photo-area,
    .main-photo-wrap,
    .image-area {
        width: 100%;
        max-width: 100%;
    }

    .photo-area {
        margin-top: 14px;
    }
.photo-main,
.main-photo {
    width:420px;
    height:420px;
    max-width:420px;
    max-height:420px;
}

    .view-card table {
        font-size: 12px;
    }

    .view-card th,
    .view-card td {
        padding: 7px 6px;
    }

    .map-frame-wrap {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .view-page {
        padding: 6px;
    }

    .top-visual-wrap {
        padding: 8px;
    }

    .view-card table {
        font-size: 11px;
    }

    .map-frame-wrap {
        height: 260px;
    }

    .photo-thumb-container {
        width: 224px;
        flex-basis: 224px;
    }

    .photo-thumb {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
}


/* ===== 기본정보 상단 ===== */

/* 매물번호/수정일/조회수 */
.view-top-info th,
.view-top-info td{
    border-left:none !important;
    border-right:none !important;
}

.view-top-info .top-right{
    text-align:right;
    padding-right:15px;
}

/* 좌측 제목칸 폭 축소 */
.view-top-info .title-cell{
    width:120px !important;
}

/* 프리미엄 배지 */
.premium-badge{
    display:inline-block;
    border-radius:10px;
    padding:5px 14px;
    border-radius:20px;
    background:#f25d7d;
    color:#fff;
    font-size:12px;
    font-weight:700;
}

/* 업종/거래형태 배지 */

/* 업종 배지 */

.category-badge{

display:inline-block !important;

padding:6px 12px !important;

margin-right:6px !important;

margin-bottom:4px !important;

background:#f5f5f5 !important;

border:1px solid #ddd !important;

border-radius:20px !important;

font-size:12px !important;

font-weight:700 !important;

line-height:1.2 !important;

color:#333 !important;

}



.map-link-small:hover{

    background:#f5f5f5;

}


/* 업종 배지 */

/* 일반텍스트 */

.cate-normal{

font-size:16px;
font-weight:600;

margin-right:6px;

}


/* 감자탕집 빨강 */

.cate-red{

font-size:20px;

font-weight:700;

color:#d60000;

margin-right:6px;

}


/* 중개거래 배지 */

.trade-badge{

display:inline-block;

padding:5px 12px;

border-radius:10px;

background:#c4b7f1;

border:1px solid #ddd;

font-size:14px;

font-weight:700;

}



/* 내부 글자 */

.map-open-link .map-icon,
.map-open-link .map-text{

    color:#fff !important;

    display:inline !important;
}

/* 아이콘 + 글자 */

.map-open-link .map-icon,
.map-open-link .map-text{

    color:#fff !important;

    font-size:14px !important;

    font-weight:600 !important;
}

/* =========================
기본정보 레이아웃 수정
========================= */

/* 1. 매물번호 줄 세로선 제거 */
.top-info-table tr:first-child td{

border-left:none !important;
border-right:none !important;

}


/* 매물수정일 / 조회수 우측 붙이기 */

.meta-center{

text-align:right !important;

padding-right:20px !important;

}

.meta-right{

text-align:right !important;

padding-right:20px !important;

}



/* 지도칸 폭 */

.top-map{

width:130px !important;

text-align:center !important;

}



/* 지도보기 작은 사각배지 */

.map-open-link {
    display:inline-block !important;
    margin-left:15px !important;
    margin-top:6px !important;
    padding:8px 10px !important;
    border-radius:10px !important;
    border:1px solid #ad9e16 !important;
    background:#03a809 !important;
    color:#ffffff !important;
    font-size:13px !important;
    font-weight:600 !important;
    line-height:1.2 !important;
    min-width:auto !important;
    height:auto !important;
    text-decoration:none !important;
}


.map-open-link .map-icon,
.map-open-link .map-text{

    color:#fff !important;
}

.map-open-link:hover{

background:#0c1bf0 !important;

}

/* 개별정보 / 금액정보 항목 + 내용 폰트 2단계 확대 */

.view-detail-table th,
.view-detail-table td {
    font-size:16px !important;
    line-height:1.7 !important;
}

.view-detail-table .section-title,
.view-detail-table .info-title {
    font-size:17px !important;
    font-weight:600 !important;
}

/* 개별정보 / 금액정보 강제 확대 */

.view-table th,
.view-table td,
.info-table th,
.info-table td {
    font-size:18px !important;
    line-height:1.7 !important;
}

.view-table th[colspan],
.info-table th[colspan] {
    font-size:19px !important;
    font-weight:600 !important;
}

/* ===== 지도 타이틀 ===== */
/* ===== 지도 버튼바 ===== */

.map-title-bar{
    width:100%;
    height:38px;

    background:#12c290;

   display:flex;
align-items:center;

    padding-left:10px;

    box-sizing:border-box;
}

.top-value,
.cate-normal,
.cate-red,
.trade-badge {
    color:#444 !important;
}


.top-value.summary-value{
    font-size:20px !important;
    line-height:30px !important;
}


/* 중개사 + 상담 섹션 왼쪽 정렬 */


.view-card .seller-consult-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 20px 0 10px 0 !important;
    padding: 0 !important;
}

.view-card .seller-consult-wrap .registrant-table {
    width:100% !important;
    margin:0 !important;
    table-layout:fixed !important;
}

.view-card .seller-consult-wrap .registrant-table .side-title{
    width:70px !important;
    min-width:70px !important;
    max-width:70px !important;
}

.view-card .seller-consult-wrap .registrant-table .label{
    width:80px !important;
    min-width:80px !important;
    max-width:80px !important;
}



/* 지도보기 바 */
.map-title-bar{
    padding-left: 15px;
    padding-top: 8px;
    padding-bottom: 8px;
}


/* 지도보기 바 오른쪽 끝 */

.map-title-bar{
    width:100%;
    height:38px;
    background:#77c2ad;
    display:flex;
    align-items:center;
    padding-left:10px;
    box-sizing:border-box;
}

.view-card{
    width:100%;
    max-width:1000px;
    margin:0 auto;
    padding:35px 35px 25px 35px;

    background:#f8f6ec;
    border:1px solid #a8c9e8;

    border-radius:14px;
    box-shadow:0 6px 20px rgba(0,0,0,0.25);

    overflow:hidden;
    box-sizing:border-box;
}


.top-map{
    text-align:center;
    vertical-align:middle;
}

/* 버튼 공통 */
/* 버튼 공통 */
.btn-edit,
.btn-list{
    display:inline-block !important;

    width:110px !important;
    height:38px !important;
    line-height:38px !important;

    text-align:center !important;
    font-size:14px !important;
    font-weight:700 !important;
    color:#fff !important;

    border-radius:0 !important;
    text-decoration:none !important;

    transition:all 0.3s ease !important;

    box-shadow:0 4px 10px rgba(0,0,0,0.2) !important;
}

.btn-edit{
    background:#3478db !important;
}

.btn-list {
    background:#1f3f6d !important;
}

.btn-edit:hover{
    background:#00a8ff !important;
    transform:translateY(-4px);
}



.btn-list:hover{
    background:#222;
    transform:translateY(-4px);
    box-shadow:0 8px 20px rgba(0,0,0,0.4);
}

.view-bottom-buttons a.btn-edit,
.view-bottom-buttons a.btn-list {
    width: 110px !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 !important;
    font-size: 14px !important;
    margin: 0 3px !important;
    box-sizing: border-box !important;
}


/* 최종 테스트 */

.view-card{
    background:#e8f4f8 !important;
}


.view-info-table {
    table-layout: fixed;
}

.view-bottom-buttons a.btn-list {
     background:#4a8eee !important;
}

.view-bottom-buttons a.btn-list:hover {
      background:#4a8eee !important;
  
}

.view-bottom-buttons a.btn-edit {
      background:#4a8eee !important;
}

.view-bottom-buttons a.btn-list {
    background:#4a8eee !important;

}

.view-bottom-buttons a.btn-edit:hover {
   background:#4a8eee !important;
}

.view-bottom-buttons a.btn-list:hover {
     background:#4a8eee !important;
}


.partner-phone {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #111 !important;
}

.consult-success-message {
    height: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    padding: 12px 10px;
    box-sizing: border-box;

    font-size: 16px;
    font-weight: 700;
    color: #222;

    background: #fff;
}

.broker-consult-guide {
    font-size: 14px;
    font-weight: 700;
    color: #28745f;
    text-align: center;
    background: #f3fbf8;
}


.consult-cell form {
    width: 100%;
    box-sizing: border-box;
}

.consult-cell .consult-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.consult-cell .phone-row {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    white-space: nowrap;
}

.broker-consult-guide {
    font-size: 14px;
    font-weight: 700;
    color: #28745f;
}


/* 사진 썸네일 4개씩 2줄 표시 - 부모 높이 제한 해제 */
.top-visual-wrap {
    align-items: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.photo-area {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.photo-area .photo-main {
    width: 100% !important;
}

.photo-area .photo-thumb-wrap {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.photo-area .photo-thumb-container {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.photo-area .photo-thumb-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;
    transform: none !important;
}

.photo-area .photo-thumb {
    width: 100% !important;
    height: 68px !important;
    margin: 0 !important;
}