/**
 * Slide Layouts & Content Styles
 * 슬라이드 레이아웃 및 콘텐츠 스타일
 */

/* Slides Container */
.slides-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Base Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 8vh 10vw;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.slide-content {
    width: 100%;
    max-width: 900px;
}

.slide-1 h1 {
    font-size: 3.8rem;
}

.slide-1-text {
    position: relative;
    z-index: 2;
}

/* Content Grid */
.content-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 5em 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 2.5em 5em;
    margin-top: 1em;
}

.content-grid-3 {
    -ms-grid-columns: 1fr 3.5em 1fr 3.5em 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2em 3.5em;
}

.content-grid-3 .content-item {
    padding: 0.8em 0;
}

.content-grid-3 .content-title {
    font-size: 1.15rem;
}

.content-grid-3 .content-desc {
    font-size: 0.95rem;
}

.content-item {
    padding: 1em 0;
    border-bottom: 1px solid var(--light-gray);
    border-bottom: 1px solid #E0E0E0; /* Fallback */
}

.content-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: var(--charcoal);
    color: #1A1A1A; /* Fallback */
}

.content-desc {
    font-size: 1.05rem;
    color: var(--warm-gray);
    color: #4A4A4A; /* Fallback */
    line-height: 1.7;
}

/* Stats */
.stats {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 4em;
    margin-top: 1em;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--deep-orange);
    color: #D35400; /* Fallback */
}

.stat-label {
    font-size: 1.05rem;
    color: var(--warm-gray);
    color: #4A4A4A; /* Fallback */
    margin-top: 0.3em;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    margin-top: 1em;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    text-align: left;
    padding: 0.9em 0;
    border-bottom: 1px solid var(--light-gray);
    border-bottom: 1px solid #E0E0E0; /* Fallback */
    font-size: 1.1rem;
}

.comparison-table th {
    font-weight: 500;
    color: var(--warm-gray);
    color: #4A4A4A;
    font-size: 1rem;
}

.comparison-table td:first-child {
    width: 30%;
    color: var(--warm-gray);
    color: #4A4A4A;
}

.comparison-table td:nth-child(2) {
    width: 35%;
    color: var(--warm-gray);
    color: #4A4A4A;
}

.comparison-table td:nth-child(3) {
    width: 35%;
    color: var(--charcoal);
    color: #1A1A1A;
    font-weight: 500;
}

/* Conclusion */
.conclusion {
    margin-top: 2em;
    font-size: 1.2rem;
    color: var(--charcoal);
    color: #1A1A1A;
    font-weight: 500;
}

/* Keywords & Contact */
.keywords {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 2em;
    margin-top: 1em;
    color: var(--warm-gray);
    color: #4A4A4A;
    font-size: 0.95rem;
}

.contact {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--light-gray);
    border-top: 1px solid #E0E0E0;
    color: var(--warm-gray);
    color: #4A4A4A;
    font-size: 0.95rem;
}

/* Slide 6 - Dark Theme */
.slide-6 {
    background: #0a0a12;
}

.slide-6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-linear-gradient(left, #0a0a12 0%, transparent 30%, transparent 70%, #0a0a12 100%);
    background: linear-gradient(to right, #0a0a12 0%, transparent 30%, transparent 70%, #0a0a12 100%);
    z-index: 1;
    pointer-events: none;
}

.slide-6 .slide-content {
    position: relative;
    z-index: 2;
}

.slide-6 h2,
.slide-6 h3,
.slide-6 .content-title,
.slide-6 .content-desc,
.slide-6 .conclusion {
    color: rgba(255, 255, 255, 0.9);
}

.slide-6 .content-item {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.slide-6 .highlight {
    color: #FF9900;
}

/* Spec page within slide-6 layout */
.slide-spec-768 .slide-content {
    max-width: 1100px;
}

/* Photo content within slide-6 layout */
.slide-6-photo .slide-content {
    max-width: 1200px;
    text-align: center;
}

.slide-6-photo .slide-photo-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    font-weight: 500;
    margin-bottom: 0.2em;
}

.slide-6-photo .slide-photo-subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Cover Slide */
.slide-cover {
    background: transparent;
}

.slide-cover .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.slide-cover h3 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.5em;
}

.slide-cover h1 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

.slide-cover .tagline {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    white-space: nowrap;
}

.slide-cover .divider {
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    margin: 2.5em auto;
}

/* Product Images */
.product-image-a {
    position: absolute;
    right: 8vw;
    bottom: 10vh;
    width: 180px;
    opacity: 0.3;
    -webkit-filter: grayscale(30%);
    filter: grayscale(30%);
    pointer-events: none;
}

.product-image-b {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: bottom;
    object-position: bottom;
    opacity: 0.25;
    pointer-events: none;
}

.product-image-c {
    position: absolute;
    right: -60px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 280px;
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================
   Photo Slides - Product Gallery
   ============================================ */

/* Photo Gallery Base */
.photo-gallery {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 1.5em;
    margin-top: 1.2em;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.photo-frame {
    border-radius: 12px;
    overflow: hidden;
    -webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    background: #111;
    line-height: 0;
}

.photo-frame img {
    display: block;
    -o-object-fit: contain;
    object-fit: contain;
    width: auto;
}

/* Single landscape (software visualization - image 3) */
.photo-gallery-single {
    gap: 0;
}

.photo-gallery-single .photo-frame img {
    max-height: 72vh;
    max-width: 80vw;
}

/* Triple (sensor + encoder - images 1+2+7) */
.photo-gallery-triple {
    gap: 1.5em;
}

.photo-gallery-triple .photo-frame img {
    max-height: 55vh;
}

/* Photo Features Row */
.photo-features {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 2.5em;
    margin-top: 1.2em;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.photo-feature-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.3em;
}

.photo-feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.photo-feature-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

/* Landscape pair (AI monitoring screenshots - images 4+5) */
.photo-gallery-landscape {
    gap: 1.5em;
}

.photo-gallery-landscape .photo-frame img {
    max-height: 60vh;
    max-width: 45vw;
}

/* Paired images (heat distribution - images 3+10) */
.photo-gallery-paired {
    gap: 0;
}

.photo-gallery-paired .photo-frame {
    border-radius: 0;
    height: 65vh;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.photo-gallery-paired .photo-frame:first-child {
    border-radius: 12px 0 0 12px;
}

.photo-gallery-paired .photo-frame:last-child {
    border-radius: 0 12px 12px 0;
    -webkit-flex: 1.6;
    -ms-flex: 1.6;
    flex: 1.6;
}

.photo-gallery-paired .photo-frame img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

/* ============================================
   Application Slide with Background Image
   ============================================ */

.slide-app-bg .slide-app-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-filter: brightness(0.45) saturate(0.85);
    filter: brightness(0.45) saturate(0.85);
}

.slide-app-bg::before {
    background: -webkit-linear-gradient(bottom, rgba(10, 10, 18, 0.85) 0%, rgba(10, 10, 18, 0.3) 50%, rgba(10, 10, 18, 0.15) 100%);
    background: linear-gradient(to top, rgba(10, 10, 18, 0.85) 0%, rgba(10, 10, 18, 0.3) 50%, rgba(10, 10, 18, 0.15) 100%);
}

/* ============================================
   Application Slide - Split Layout (text + photo)
   ============================================ */

.slide-app-split .slide-content {
    max-width: 1200px;
}

.slide-app-split-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 4em;
    text-align: left;
}

.slide-app-split-left {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.slide-app-split-left h3 {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    font-weight: 500;
    margin-bottom: 0.4em;
}

.slide-app-split-left h2 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.2em;
}

.slide-app-split-sub {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.slide-app-split-items {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0;
}

.slide-app-split-item {
    padding: 0.8em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-app-split-item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.3em;
}

.slide-app-split-item-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.slide-app-split-concl {
    margin-top: 1.5em;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.slide-app-split-right {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.slide-app-split-right .photo-frame img {
    max-height: 65vh;
    max-width: 40vw;
    width: auto;
    display: block;
    -o-object-fit: contain;
    object-fit: contain;
}

/* ============================================
   Download Toolbar – Dropdown Style
   ============================================ */

.download-toolbar {
    position: fixed;
    top: 14px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 1000;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    opacity: 0.35;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.download-toolbar:hover {
    opacity: 1;
}

/* Single trigger button */
.download-trigger {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: rgba(30, 30, 40, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.download-trigger:hover,
.download-trigger.active {
    background: rgba(30, 30, 40, 0.85);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown panel */
.dl-panel {
    position: fixed;
    top: 48px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 1001;
    min-width: 200px;
    background: rgba(20, 20, 28, 0.94);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    -webkit-box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

/* Group within dropdown */
.dl-panel-group {
    padding: 0 6px;
}

.dl-panel-group + .dl-panel-group {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
    padding-top: 4px;
}

.dl-panel-group-title {
    padding: 6px 12px 4px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.3);
}

/* Individual download row */
.dl-panel-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: background 0.15s, color 0.15s;
    -o-transition: background 0.15s, color 0.15s;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    outline: none;
}

.dl-panel-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   Image Gallery Overlay
   ============================================ */

/* Full-screen backdrop */
.image-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1200;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Center panel – glass morphism */
.image-gallery-panel {
    width: 90vw;
    max-width: 960px;
    max-height: 85vh;
    background: rgba(20, 20, 28, 0.92);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
    -webkit-box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

/* Header */
.image-gallery-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.image-gallery-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
}

.image-gallery-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: color 0.2s, background 0.2s;
    -o-transition: color 0.2s, background 0.2s;
    transition: color 0.2s, background 0.2s;
}

.image-gallery-close:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

/* Thumbnail grid */
.image-gallery-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 24px;
    overflow-y: auto;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-height: 0;
}

/* Thumbnail card */
.image-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    -webkit-transition: border-color 0.2s, -webkit-transform 0.2s;
    transition: border-color 0.2s, -webkit-transform 0.2s;
    -o-transition: border-color 0.2s, transform 0.2s;
    transition: border-color 0.2s, transform 0.2s;
    transition: border-color 0.2s, transform 0.2s, -webkit-transform 0.2s;
}

.image-gallery-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.image-gallery-thumb {
    cursor: pointer;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111;
    line-height: 0;
}

.image-gallery-thumb img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
}

.image-gallery-thumb:hover img {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* Info row under thumbnail */
.image-gallery-item-info {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 8px 10px;
}

.image-gallery-item-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    min-width: 0;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.image-gallery-item-dl {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.35);
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-transition: color 0.2s, background 0.2s;
    -o-transition: color 0.2s, background 0.2s;
    transition: color 0.2s, background 0.2s;
}

.image-gallery-item-dl:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer – bulk download */
.image-gallery-footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.image-gallery-bulk-dl {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.image-gallery-bulk-dl:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Lightbox (on top of gallery)
   ============================================ */

.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1300;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.image-lightbox-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.image-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    -o-object-fit: contain;
    object-fit: contain;
    border-radius: 8px;
    -webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.image-lightbox-bar {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.image-lightbox-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.image-lightbox-download {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.78rem;
    text-decoration: none;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.image-lightbox-download:hover {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
}

.image-lightbox-close {
    position: absolute;
    top: -40px;
    right: -4px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: color 0.2s, background 0.2s;
    -o-transition: color 0.2s, background 0.2s;
    transition: color 0.2s, background 0.2s;
}

.image-lightbox-close:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive: 3 columns on narrower screens */
@media (max-width: 768px) {
    .image-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .image-gallery-panel {
        width: 95vw;
        max-height: 90vh;
    }
}

/* ============================================
   Large Screen Optimization (≥ 1440px)
   ============================================ */

@media (min-width: 1440px) {
    .slide-content {
        max-width: 1200px;
    }

    .slide-6-photo .slide-content,
    .slide-app-split .slide-content,
    .slide-spec-768 .slide-content {
        max-width: 1500px;
    }

    .content-grid {
        gap: 3em 6em;
    }

    .content-grid-3 {
        gap: 2.5em 4.5em;
    }

    .stats {
        gap: 5em;
    }

    .photo-gallery-triple {
        gap: 2em;
    }

    .photo-features {
        gap: 3.5em;
    }
}

/* ============================================
   Large Screen Optimization (≥ 1920px)
   ============================================ */

@media (min-width: 1920px) {
    .slide-content {
        max-width: 1500px;
    }

    .slide-6-photo .slide-content,
    .slide-app-split .slide-content,
    .slide-spec-768 .slide-content {
        max-width: 1800px;
    }

    .content-grid {
        gap: 3.5em 7em;
    }

    .content-grid-3 {
        gap: 3em 5em;
    }

    .stats {
        gap: 6em;
    }

    .photo-gallery-triple {
        gap: 2.5em;
    }

    .photo-features {
        gap: 4em;
    }

    .product-image-a {
        width: 260px;
    }

    .product-image-c {
        width: 400px;
    }

    .image-gallery-panel {
        max-width: 1200px;
    }

    .image-gallery-grid {
        gap: 20px;
        padding: 24px 32px;
    }
}

/* ============================================
   Large Screen Optimization (≥ 2560px)
   ============================================ */

@media (min-width: 2560px) {
    .slide-content {
        max-width: 2000px;
    }

    .slide-6-photo .slide-content,
    .slide-app-split .slide-content,
    .slide-spec-768 .slide-content {
        max-width: 2400px;
    }

    .content-grid {
        gap: 4em 8em;
    }

    .content-grid-3 {
        gap: 3.5em 6em;
    }

    .stats {
        gap: 7em;
    }

    .product-image-a {
        width: 340px;
    }

    .product-image-c {
        width: 520px;
    }

    .image-gallery-panel {
        max-width: 1500px;
    }

    .image-gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
        padding: 28px 36px;
    }
}

/* ============================================
   Large Screen Optimization (≥ 3840px / 4K)
   ============================================ */

@media (min-width: 3840px) {
    .slide-content {
        max-width: 3000px;
    }

    .slide-6-photo .slide-content,
    .slide-app-split .slide-content,
    .slide-spec-768 .slide-content {
        max-width: 3600px;
    }

    .content-grid {
        gap: 5em 10em;
    }

    .content-grid-3 {
        gap: 4em 7em;
    }

    .stats {
        gap: 9em;
    }

    .photo-gallery-triple {
        gap: 3em;
    }

    .photo-features {
        gap: 5em;
    }

    .product-image-a {
        width: 480px;
    }

    .product-image-c {
        width: 720px;
    }

    .photo-frame {
        border-radius: 20px;
    }

    .photo-gallery-paired .photo-frame:first-child {
        border-radius: 20px 0 0 20px;
    }

    .photo-gallery-paired .photo-frame:last-child {
        border-radius: 0 20px 20px 0;
    }

    .slide-cover .tagline {
        max-width: 1000px;
    }

    .download-trigger {
        padding: 10px 22px;
        font-size: 0.85rem;
        border-radius: 10px;
        gap: 10px;
    }

    .dl-panel {
        top: 60px;
        min-width: 280px;
        border-radius: 16px;
        padding: 12px 0;
    }

    .dl-panel-item {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .dl-panel-group-title {
        font-size: 0.72rem;
        padding: 8px 16px 6px;
    }

    .image-gallery-panel {
        max-width: 2200px;
        border-radius: 24px;
    }

    .image-gallery-header {
        padding: 24px 32px;
    }

    .image-gallery-title {
        font-size: 1.1rem;
    }

    .image-gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 28px;
        padding: 32px 40px;
    }

    .image-gallery-item {
        border-radius: 14px;
    }

    .image-gallery-thumb-actions {
        padding: 10px;
    }

    .image-gallery-footer {
        padding: 16px 32px;
    }
}

/* ============================================
   Large Screen Optimization (≥ 5120px / 5K)
   ============================================ */

@media (min-width: 5120px) {
    .slide-content {
        max-width: 4000px;
    }

    .slide-6-photo .slide-content,
    .slide-app-split .slide-content,
    .slide-spec-768 .slide-content {
        max-width: 4600px;
    }

    .content-grid {
        gap: 6em 12em;
    }

    .content-grid-3 {
        gap: 5em 9em;
    }

    .stats {
        gap: 11em;
    }

    .photo-gallery-triple {
        gap: 4em;
    }

    .photo-features {
        gap: 6em;
    }

    .product-image-a {
        width: 640px;
    }

    .product-image-c {
        width: 960px;
    }

    .photo-frame {
        border-radius: 28px;
    }

    .photo-gallery-paired .photo-frame:first-child {
        border-radius: 28px 0 0 28px;
    }

    .photo-gallery-paired .photo-frame:last-child {
        border-radius: 0 28px 28px 0;
    }

    .slide-cover .tagline {
        max-width: 1400px;
    }

    .download-trigger {
        padding: 14px 28px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .dl-panel {
        top: 72px;
        min-width: 340px;
        border-radius: 20px;
    }

    .dl-panel-item {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .image-gallery-panel {
        max-width: 3000px;
        border-radius: 32px;
    }

    .image-gallery-header {
        padding: 32px 44px;
    }

    .image-gallery-title {
        font-size: 1.2rem;
    }

    .image-gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 36px;
        padding: 40px 48px;
    }

    .image-gallery-item {
        border-radius: 18px;
    }

    .image-gallery-footer {
        padding: 20px 44px;
    }
}

/* ============================================
   Large Screen Optimization (≥ 7680px / 8K)
   ============================================ */

@media (min-width: 7680px) {
    .slide {
        padding: 8vh 8vw;
    }

    .slide-content {
        max-width: 5800px;
    }

    .slide-6-photo .slide-content,
    .slide-app-split .slide-content,
    .slide-spec-768 .slide-content {
        max-width: 7000px;
    }

    .content-grid {
        gap: 8em 16em;
    }

    .content-grid-3 {
        gap: 6em 12em;
    }

    .content-item {
        padding: 1.5em 0;
        border-bottom-width: 2px;
    }

    .stats {
        gap: 14em;
    }

    .photo-gallery-triple {
        gap: 5em;
    }

    .photo-features {
        gap: 8em;
    }

    .product-image-a {
        width: 900px;
    }

    .product-image-c {
        width: 1300px;
    }

    .photo-frame {
        border-radius: 36px;
    }

    .photo-gallery-paired .photo-frame:first-child {
        border-radius: 36px 0 0 36px;
    }

    .photo-gallery-paired .photo-frame:last-child {
        border-radius: 0 36px 36px 0;
    }

    .slide-cover .tagline {
        max-width: 2000px;
    }

    .download-toolbar {
        gap: 16px;
    }

    .download-trigger {
        padding: 18px 36px;
        font-size: 1rem;
        border-radius: 16px;
        gap: 14px;
    }

    .dl-panel {
        top: 90px;
        min-width: 420px;
        border-radius: 24px;
        padding: 16px 0;
    }

    .dl-panel-item {
        padding: 16px 24px;
        font-size: 1rem;
        gap: 12px;
    }

    .dl-panel-group-title {
        font-size: 0.8rem;
        padding: 10px 20px 8px;
    }

    .image-gallery-panel {
        max-width: 4500px;
        border-radius: 40px;
    }

    .image-gallery-header {
        padding: 40px 56px;
        border-bottom-width: 2px;
    }

    .image-gallery-title {
        font-size: 1.4rem;
    }

    .image-gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 48px;
        padding: 48px 60px;
    }

    .image-gallery-item {
        border-radius: 24px;
        border-width: 2px;
    }

    .image-gallery-footer {
        padding: 28px 56px;
        border-top-width: 2px;
    }
}
