/* 템플릿 전용 Main Layout Grid (default_right) */
/* 원본: /assets/css/main-layout-grid.css */

/* Main Layout Grid System */
.main-layout-container {
    width: 100%;
}

.main-layout-section {
    width: 100%;
    position: relative;
}

/* 12-Column Grid */
.main-layout-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: var(--site-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Full Width Layout */
.main-layout-full {
    width: 100%;
    max-width: 100%;
}

/* Grid Elements */
.main-layout-element {
    position: relative;
    min-height: 50px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* main-layout-grid 내부 갤러리 슬라이더 컨테이너 너비 제한 */
.main-layout-grid .gallery-slider-container,
.main-layout-grid .gallery-slider-wrapper,
.main-layout-grid .widget-gallery,
.main-layout-grid .widget-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Full Width Element */
.main-layout-element-full {
    width: 100%;
    max-width: 100%;
}

/* Placeholder Styles */
.placeholder,
.empty-layout,
.error {
    padding: 40px 20px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
}

.error {
    background: #fee;
    color: #c00;
}

/* 위젯 스타일 */
.widget-wrapper {
    padding: 20px 0;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 2px solid #4eb5fe;
    padding-bottom: 12px;
}

.widget-header .widget-title {
    font-size: 24px !important;
    font-weight: bold;
    margin: 0;
}

.widget-more {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.widget-more:hover {
    color: #333;
}

/* Slider Styles (MainSlideRenderer) */
.main-slide-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.main-slide-container.main-slide-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.main-slider {
    position: relative;
    width: 100%;
    height: 400px;
}

.slide-item {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item.active {
    display: block;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* (이 파일은 템플릿용으로 최소 유지 — 필요 시 원본 전체를 이쪽으로 통합) */

