/**
 * 위젯 공통 스타일시트
 * WidgetRenderer에서 사용하는 모든 위젯 스타일을 통합 관리
 */

/* ============================================
   기본 위젯 스타일
   ============================================ */
.recent-widget {
    margin: 0px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.widget-title {
    margin: 0;
    font-size: 28px !important;
    color: #333;
}

.widget-link {
    color: #007bff;
    text-decoration: none;
    font-size: 15px;
}

/* ============================================
   갤러리형 위젯
   ============================================ */
.gallery-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-item {
    flex: 1;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
}

.gallery-layout {
    display: flex;
    flex-direction: column;
}

.gallery-thumbnail {
    width: 100%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    display: block;
}

.gallery-thumbnail .youtube-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,0,0,0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.gallery-content {
    flex: 1;
    padding: 0px 16px 28px 16px !important;
    margin-top: 10px;
}

.gallery-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.gallery-title a {
    text-decoration: none;
    color: inherit;
}

.gallery-title a:hover {
    color: #2563eb;
}

.gallery-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 12px;
    color: #999;
}

.gallery-meta span {
    font-size: 11px;
    color: #999;
    padding: 2px 6px;
    background: #f8f9fa;
    border-radius: 4px;
}

.gallery-author {
    color: #6c757d !important;
}

.gallery-date {
    color: #28a745 !important;
}

.gallery-views {
    color: #17a2b8 !important;
}

.gallery-comments {
    color: #fd7e14 !important;
}

.gallery-excerpt {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    height: auto !important;
}

/* ============================================
   매거진형 위젯 (gallery-layout과 분리)
   ============================================ */
.magazine-widget {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.magazine-layout {
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: center;
    width: 100%;
}

.magazine-thumbnail {
    flex-shrink: 0;
    background: #fff;
    border-radius: 6px;
    position: relative;
    width: auto;
    max-width: 100%;
}

.magazine-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    max-width: 100%;
}

.magazine-content {
    flex: 1;
    padding: 0;
    width: 100%;
    text-align: center;
}

.magazine-title {
    margin: 8px 0 12px 0;
    font-size: 17px;
    color: #333;
    line-height: 1.5;
    font-weight: 600;
}

.magazine-title a {
    text-decoration: none;
    color: inherit;
}

.magazine-title a:hover {
    color: #007bff;
}

.magazine-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.magazine-meta span {
    font-size: 12px;
    color: #999;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.magazine-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 매거진형 슬라이드 */
.magazine-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.magazine-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.magazine-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    gap: 0;
}

.magazine-slider-track .magazine-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magazine-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.magazine-slider-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.magazine-slider-arrow.magazine-prev {
    left: 10px;
}

.magazine-slider-arrow.magazine-next {
    right: 10px;
}

.magazine-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.magazine-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.magazine-slider-dot.active {
    background: #2563eb;
}

/* 매거진형 모바일 스타일 */
@media (max-width: 768px) {
    .magazine-layout {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }
    
    .magazine-thumbnail {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .magazine-content {
        text-align: center;
    }
    
    .magazine-title {
        font-size: 16px;
    }
    
    .magazine-excerpt {
        font-size: 13px;
    }
    
    .magazine-slider-container {
        width: 60% !important;
        margin: 0 auto !important;
        overflow: hidden;
    }
    
    .magazine-slider-wrapper {
        width: 100%;
        overflow: hidden;
    }
    
    .magazine-slider-track {
        display: flex;
        width: 100%;
    }
    
    .magazine-slider-track .magazine-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0;
        box-sizing: border-box;
    }
    
    .magazine-slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .magazine-slider-arrow.magazine-prev {
        left: 10px;
    }
    
    .magazine-slider-arrow.magazine-next {
        right: 10px;
    }
}

/* 갤러리형 슬라이드 */
.gallery-slider-container {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.gallery-slider-wrapper {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.gallery-slider-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.3s ease;
    width: 100%;
}

.gallery-slider-track .gallery-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 0px;
    box-sizing: border-box;
}

.gallery-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    border: none;
    font-size: 16px;
    transition: background 0.3s;
}

.gallery-slider-arrow.gallery-prev {
    left: 6px;
}

.gallery-slider-arrow.gallery-next {
    right: 6px;
}

.gallery-slider-arrow:hover {
    background: rgba(255,255,255,0.8);
}

.gallery-slider-arrow:disabled {
    color:#ccc;
    cursor: not-allowed;
}

.gallery-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.gallery-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.gallery-slider-dot.active {
    background: #2563eb;
}

/* ============================================
   웹진형 위젯
   ============================================ */
.webzine-item {
    margin-bottom: 10px;
}

.webzine-layout {
    display: flex;
    gap: 15px;
    padding: 0px;
}

.webzine-thumbnail {
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    width: 220px;
    margin-right:12px;
}

.webzine-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webzine-content {
    flex: 1;
}

.webzine-title {
    margin: 0px 0 7px 0;
    font-size: 19px !important;
    color: #333;
    line-height: 1.4;
}

.webzine-title a {
    text-decoration: none;
    color: inherit;
}

.webzine-title a:hover {
    color: #007bff;
}

.webzine-excerpt {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #888;
    line-height: 1.5;
}

.webzine-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.webzine-meta span {
    font-size: 12px;
    color: #999;
    padding: 2px 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.webzine-author {
    color: #6c757d !important;
}

.webzine-date {
    color: #28a745 !important;
}

.webzine-views {
    color: #17a2b8 !important;
}

.webzine-comments {
    color: #fd7e14 !important;
}

/* ============================================
   제품소개형 위젯 (main_product)
   ============================================ */
.widget-product {
    margin: 20px 0;
}

.widget-product.product-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(4, 1fr);
}

/* 제품소개 위젯 내부 product-grid */
.widget-product .product-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(4, 1fr);
    justify-items: start; /* 기본값: 왼쪽 정렬 */
}

/* 제품소개 위젯 1개일 때 가운데 정렬 - flex로 변경 */
.widget-product .product-grid:has(.product-item:only-child) {
    display: flex !important;
    justify-content: center !important;
    align-items: start;
}

/* 제품소개 위젯 1개일 때 아이템 크기 */
.widget-product .product-grid:has(.product-item:only-child) .product-item {
    width: 100%;
    max-width: calc((100% - 75px) / 4); /* 4개 중 1개 크기, gap 3개(75px) 고려 */
    flex-shrink: 0;
}

/* :has() 미지원 브라우저를 위한 대체 방법 */
.widget-product .product-grid .product-item:only-child {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: calc((100% - 75px) / 4) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-self: center !important;
}

/* 제품소개 위젯 1개일 때 product-image와 img의 max-width를 100%로 변경 (인라인 스타일 덮어쓰기) */
.widget-product .product-grid .product-item:only-child .product-image {
    max-width: 100% !important;
}

.widget-product .product-grid .product-item:only-child .product-image img {
    max-width: 100% !important;
    width: 100% !important;
}

/* JavaScript로 추가된 클래스에 대한 스타일 */
.product-image-single {
    max-width: 100% !important;
}

.product-img-single {
    max-width: 100% !important;
    width: 100% !important;
}

/* 제품소개 위젯 슬라이드 모드 */
.widget-product.gallery-slider {
    position: relative;
    overflow: hidden;
}

.widget-product.gallery-slider .gallery-slider-container {
    position: relative;
    width: 100%;
}

.widget-product.gallery-slider .gallery-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.widget-product.gallery-slider .gallery-slider-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
}

.widget-product.gallery-slider .gallery-item {
    flex: 0 0 auto;
    min-width: 0;
}

.widget-product .product-item {
    transition: transform 0.3s ease;
}

.widget-product .product-item:hover {
    transform: translateY(-5px);
}

.widget-product .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.widget-product .product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.widget-product .product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.widget-product .product-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 비율 */
    overflow: hidden;
    border: #ddd solid 1px;
    background: #f8f9fa;
}

.widget-product .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.widget-product .product-card:hover .product-image img {
    transform: scale(1.05);
}

.widget-product .no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    color: #9e9e9e;
    font-size: 48px;
}

.widget-product .product-info {
    padding: 20px;
}

.widget-product .product-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-product .product-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-product .product-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #495057;
    margin-bottom: 12px;
}

.widget-product .product-spec i {
    color: #777;
}

.widget-product .product-price-wrap {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.widget-product .product-price-original {
    font-size: 13px;
    color: #6c757d;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.widget-product .product-price-sale {
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-product .product-price-sale .price {
    font-size: 17px;
    font-weight: 600;
    color: #444;
}

.widget-product .product-price-sale .discount {
    display: inline-block;
    padding: 3px 8px;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

/* 제품소개 위젯 반응형 */
@media (max-width: 1024px) {
    .widget-product.product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .widget-product.product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .widget-product .product-image {
        position: relative;
        width: 100%;
        padding-top: 75%; /* 4:3 비율 */
        overflow: hidden;
        border: #ddd solid 1px;
        background: #f8f9fa;
    }
    
    .widget-product .product-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .widget-product .product-info {
        padding: 15px;
    }
    
    .widget-product .product-title {
        font-size: 16px;
        letter-spacing: -1px;
        line-height: 24px;
        height: 26px;
        overflow: hidden;
    }
    
    .widget-product .product-subtitle {
        font-size: 13px;
    }
    
    .widget-product .product-price-sale .price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .widget-product.product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .widget-product .product-image {
        position: relative;
        width: 100%;
        padding-top: 75%; /* 4:3 비율 */
        overflow: hidden;
        border: #ddd solid 1px;
        background: #f8f9fa;
    }
    
    .widget-product .product-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
}

/* ============================================
   리스트형 위젯
   ============================================ */
.list-container {
    width: 100%;
}

.list-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

.list-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-title {
    flex: 1;
    margin-right: 15px;
}

.list-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
}

.list-title a:hover {
    color: #007bff;
}

.list-meta {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.list-excerpt {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* ============================================
   갤러리 컨트롤
   ============================================ */
.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.gallery-arrow {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.gallery-arrow:hover {
    background: #0056b3;
}

.gallery-arrow:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gallery-dots {
    display: flex;
    gap: 8px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #007bff;
}

/* ============================================
   공통 스타일
   ============================================ */
.no-posts {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* ============================================
   태블릿 반응형 (1024px 이하)
   ============================================ */
@media (max-width: 1024px) {
    .widget-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        padding-bottom: 10px;
        border-bottom: 2px solid #ddd;
    }

    .widget-title {
        margin: 0;
        font-size: 20px;
        color: #333;
    }

    .widget-link {
        color: #007bff;
        text-decoration: none;
        font-size: 14px;
        margin-right: 8px;
    }

    .list-content {
        align-items: left;
    }

    .list-title {
        text-align: left;
    }

    .list-title a {
        color: #333;
        text-decoration: none;
        font-weight: 500;
        font-size: 15px;
    }

    .list-title a:hover {
        color: #007bff;
    }

    .list-meta {
        display: flex;
        gap: 8px;
        font-size: 14px;
        color: #666;
    }

    .responsive-widget .gallery-items {
        display: flex;
        flex-wrap: wrap;
        gap: 25px;
    }

    .responsive-widget .gallery-item {
        flex: 1 1 calc(50% - 7.5px);
        min-width: calc(50% - 7.5px);
    }

    .responsive-widget .webzine-layout {
        flex-direction: row;
    }

    .responsive-widget .webzine-thumbnail {
        width: 20% !important;
        max-width: 20%;
    }

    .responsive-widget .list-item {
        flex-wrap: wrap;
    }

    .gallery-slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* ============================================
   모바일 반응형 (768px 이하)
   ============================================ */
@media (max-width: 768px) {
    .recent-widget {
        margin: 15px 0;
    }

    .widget-header {
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .widget-title {
        font-size: 18px !important;
    }

    .widget-link {
        font-size: 13px;
    }

    /* 갤러리형 모바일 */
    .gallery-items {
        gap: 20px;
        display: flex;
        flex-direction: column;
    }

    .gallery-item {
        min-width: 100% !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 갤러리 슬라이더 모바일 */
    .gallery-slider-container {
        width: 100%;
        overflow: hidden;
    }

    .gallery-slider-wrapper {
        width: 100%;
        overflow: hidden;
    }

    .gallery-slider-track {
        display: flex;
        width: 100%;
    }

    .gallery-slider-track .gallery-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0;
        box-sizing: border-box;
    }

    .gallery-layout {
        flex-direction: column;
        gap: 8px;
        text-align: center !important;
        width: 100%;
    }

    .gallery-thumbnail {
        width: 100% !important;
    }

    .gallery-content {
        padding: 0px 12px 12px 12px !important;
        width: 100%;
    }

    .gallery-title {
        font-size: 15px !important;
    }

    .gallery-meta {
        display: none;
        text-align: center;
        gap: 6px;
    }

    .gallery-meta span {
        font-size: 10px;
        padding: 2px 4px;
    }

    .gallery-excerpt {
        font-size: 12spx;
    }

    /* 갤러리 슬라이드 모바일 */
    .gallery-slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-slider-dots {
        gap: 6px;
        margin-top: 10px;
    }

    .gallery-slider-dot {
        width: 10px;
        height: 10px;
    }

    /* 웹진형 모바일 */
    .webzine-item {
        width: 100%;
        margin-bottom: 15px;
    }

    .webzine-layout {
        flex-direction: column !important;
        gap: 10px;
        padding: 12px !important;
        width: 100%;
    }

    .webzine-thumbnail {
        width: 100% !important;
        max-width: 100% !important;
        height: 220px !important;
        flex-shrink: 0;
    }

    .webzine-content {
        width: 100%;
        flex: 1;
    }

    .webzine-title {
        margin: 0 0 8px 0 !important;
        font-size: 16px !important;
        letter-spacing: -1px;
        line-height: 1.4;
    }

    .webzine-excerpt {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .webzine-meta {
        gap: 8px;
        flex-wrap: wrap;
    }

    .webzine-meta span {
        font-size: 11px;
        padding: 1px 6px;
    }

    /* 리스트형 모바일 */
    .list-item {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .list-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .list-title {
        margin-right: 0;
        width: 100%;
    }

    .list-title a {
        font-size: 15px;
    }

    .list-meta {
        font-size: 11px;
        gap: 6px;
    }

    .list-excerpt {
        font-size: 11px;
        margin-top: 6px;
    }

    /* 갤러리 컨트롤 모바일 */
    .gallery-controls {
        gap: 25px;
        margin-top: 15px;
    }

    .gallery-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .gallery-dots {
        gap: 6px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

/* ============================================
   작은 모바일 (480px 이하)
   ============================================ */
@media (max-width: 480px) {
    .widget-header {
        margin-bottom: 12px;
    }

    .widget-title {
        font-size: 15px !important;
        letter-spacing: -1px;
    }

    .widget-link {
        font-size: 12px;
    }

    /* 갤러리형 작은 모바일 */
    .gallery-items {
        gap: 15px;
        display: flex;
        flex-direction: column;
    }

    .gallery-item {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .gallery-slider-track .gallery-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .gallery-content {
        padding: 0px 10px 16px 10px !important;
    }

    .gallery-title {
        font-size: 12px;
    }

    .gallery-meta span {
        font-size: 9px;
        padding: 1px 3px;
    }

    /* 웹진형 작은 모바일 */
    .webzine-item {
        width: 100%;
        margin-bottom: 12px;
    }

    .webzine-layout {
        flex-direction: column !important;
        padding: 10px 0px !important;
        width: 100%;
    }

    .webzine-thumbnail {
        width: 100% !important;
        max-width: 100% !important;
        height: 220px !important;
        flex-shrink: 0;
    }

    .webzine-content {
        width: 100%;
    }

    .webzine-title {
        font-size: 16px !important;
        letter-spacing: -1px;
        margin: 0 0 6px 0 !important;
    }

    .webzine-excerpt {
        font-size: 14px !important;
        margin-bottom: 6px;
    }

    .webzine-meta {
        gap: 6px;
    }

    .webzine-meta span {
        font-size: 10px;
        padding: 1px 4px;
    }

    .list-title a {
        font-size: 14px;
    }

    .list-meta {
        font-size: 10px;
    }
}

