section {
    width:100%;
    /* height: 100vh; */
    margin:0 auto;
}

.non-bg {
    height:50vh !important;
}
@media (max-width: 1920px) {
    #sub_content {
        padding-top:0 !important;
    }
    .non-bg {
        height:60vh !important;
    }
}

.history-nav-box {
    width:100%;
    max-width:1440px;
    margin:0 auto;
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding:0 20px;
    gap:10px;
    margin-bottom:60px;
}
.history-nav-item {
    width:100%;
    height:70px;
    border-bottom:4px solid #000;
    display:flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color:#000;
    font-family: "Godo B";
    font-size: 18px;
    font-weight: 400;
    line-height: 100%;
}
.history-nav-item.menu {
    border-bottom:4px solid #afafaf;
    color:#afafaf;
}
.history-nav-item.menu.active {
    border-bottom:4px solid #EF2E4F;
    color:#EF2E4F;
}
.history-content-box-youtube {
    width:100%;
    max-width:1440px;
    margin:0 auto;
    padding:0 20px;
    margin-bottom:60px;
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:20px;
}
.history-content-box-youtube-item {
    width:100%;
    height:100%;
    display:flex;
    align-items: center;
    flex-direction: column;
    padding:0 20px;
    gap:10px;
}
.history-content-box-youtube-item-img {
    width:100%;
    height:100%;
    min-height:270px;
    max-height:270px;
    display:flex;
    justify-content: center;
    align-items: center;
    padding:0 20px;
    gap:10px;
    border-top:2px solid #000;
    border-bottom:2px solid #000;
    padding:10px;
    position:relative;
    /* overflow:hidden; */
}
.history-content-box-youtube-item-img > img.thumbnail {
    width:100%;
    height:100%;
    /* min-height:240px; */
    object-fit:cover;
    padding: 10px;
    border:1px solid #C7C7C7;
    background-color:#f5f5f5;
}
.history-content-box-youtube-item-text {
    width:100%;
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap:10px;
}
.history-content-box-youtube-item-text > p {
    display:flex;
    align-items: center;
    gap:10px;
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    color:#8C8C8C;
    font-family: "Godo";
    text-align: center;
}
.list_l, .list_r {
    position:absolute;
    top:-5px;
    object-fit: cover;
    z-index:1;
}
.list_l {
    left:-5px;
}
.list_r {
    right:-5px;
}
.history-board {
    margin-bottom:250px;
}

@media screen and (max-width: 768px) {
    .history-content-box-youtube {
        grid-template-columns: 1fr;
    }
}

/* Review 카테고리 메뉴 */
.review-category-menu {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.review-category-item {
    padding: 14px 32px;
    border-radius: 999px;
    font-family: "Godo B";
    font-size: 18px;
    text-decoration: none;
    color: #8C8C8C;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.review-category-item:hover {
    color: #EF2E4F;
    background-color: #fff;
    border-color: #EF2E4F;
}

.review-category-item.active {
    color: #fff;
    background-color: #EF2E4F;
    border-color: #EF2E4F;
}

/* Review 게시판 형태 (r_type=1) */
.review-board-list {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-board-item {
    width: 100%;
    padding: 30px;
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.review-board-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-board-item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.review-board-item-title h3 {
    font-family: "Godo B";
    font-size: 24px;
    color: #000;
    margin: 0;
    flex: 1;
}

.review-board-item-date {
    font-family: "Godo";
    font-size: 14px;
    color: #8C8C8C;
}

.review-board-item-content {
    font-family: "Godo";
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Review 썸네일 그리드 (r_type=2) */
.review-thumbnail-grid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-thumbnail-item {
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    border: 2px solid #000;
    overflow: hidden;
}

.review-thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.review-thumbnail-item-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: #f5f5f5;
}

.review-thumbnail-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-thumbnail-item:hover .review-thumbnail-item-img img {
    transform: scale(1.05);
}

.review-thumbnail-item-title {
    padding: 20px;
}

.review-thumbnail-item-title h3 {
    font-family: "Godo B";
    font-size: 20px;
    color: #000;
    margin: 0;
    text-align: center;
}

/* Review 상세 팝업 (r_type=1) */
.review-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.review-popup-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.review-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.review-popup-close:hover {
    color: #EF2E4F;
}

.review-popup-body {
    margin-top: 20px;
}

.review-popup-title {
    font-family: "Godo B";
    font-size: 32px;
    color: #000;
    margin: 0 0 15px 0;
}

.review-popup-date {
    font-family: "Godo";
    font-size: 14px;
    color: #8C8C8C;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.review-popup-text {
    font-family: "Godo";
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Review 이미지 슬라이드 팝업 (r_type=2) */
.review-image-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.review-image-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-image-popup-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.review-image-popup-close:hover {
    color: #EF2E4F;
}

.review-image-popup-title {
    color: #fff;
    font-family: "Godo B";
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.review-image-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.review-image-slider-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.review-image-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.review-image-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-image-slide img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.review-image-prev,
.review-image-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.review-image-prev:hover,
.review-image-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #EF2E4F;
    color: #EF2E4F;
}

.review-image-counter {
    color: #fff;
    font-family: "Godo";
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
}

@media screen and (max-width: 1024px) {
    .review-thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .non-bg {
        height: 40vh !important;
    }
    .review-thumbnail-grid {
        grid-template-columns: 1fr;
    }

    .review-popup-content {
        padding: 30px 20px;
    }

    .review-popup-title {
        font-size: 24px;
    }

    .review-image-prev,
    .review-image-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .review-image-slider {
        gap: 10px;
    }
    .history-nav-item {
        font-size:14px;
    }
    .review-category-item {
        font-size:14px;
    }
}

@media screen and (max-width: 480px) {
    .non-bg {
        height: 35vh !important;
    }
}
