.sizing {
    margin: 20px auto;
    position: relative;
    width: 90%;
    height: calc(100vh - 200px);
    background-color: #000000;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sizing embed {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.sizing {
    position: relative;
}

@media (min-width: 1024px) {
    .sizing {
        width: 80%;
        max-width: 1200px;
        height: calc(100vh - 220px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .sizing {
        width: 85%;
        height: calc(100vh - 210px);
    }
}

@media (max-width: 767px) {
    .sizing {
        width: 95%;
        height: calc(100vh - 180px);
        border-radius: 8px;
    }
    
    .sizing embed {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .sizing {
        width: 98%;
        height: calc(100vh - 160px);
        border-radius: 6px;
    }
    
    .sizing embed {
        border-radius: 6px;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .sizing {
        height: calc(100vh - 160px);
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .sizing {
        border-width: 0.5px;
    }
}

[data-theme="dark"] .sizing {
    background-color: #000000;
    border-color: #333333;
}

[data-theme="light"] .sizing {
    background-color: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sizing:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sizing.loading {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 20;
}

.back-button:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.back-button:active {
    transform: translateY(0);
}

.back-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.fullscreen-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-gradient);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fullscreen-button:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-1px);
}

.fullscreen-button:active {
    transform: translateY(0);
}

.fullscreen-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.header-right {
    position: relative;
    z-index: 20;
}

.project-navigation {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 100;
    width: 90%;
    max-width: 300px;
    margin: 3rem auto 2rem auto;
    display: flex;
    justify-content: center;
}

.project-nav-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin: 0 auto;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.nav-arrow svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.project-display {
    flex: 1;
    overflow: hidden;
    border-radius: 6px;
}

.project-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-slide {
    padding: 0.5rem;
    text-align: center;
    opacity: 1;
    transform: none;
}

.project-slide h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

@media (max-width: 767px) {
    .project-navigation {
        width: 95%;
        max-width: 280px;
        margin: 2rem auto 1.5rem auto;
        display: flex;
        justify-content: center;
    }
    
    .project-nav-container {
        padding: 0.5rem;
        gap: 0.5rem;
        margin: 0 auto;
    }
    
    .nav-arrow {
        width: 28px;
        height: 28px;
    }
    
    .nav-arrow svg {
        width: 14px;
        height: 14px;
    }
    
    .project-slide h3 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .project-navigation {
        width: 98%;
        max-width: 260px;
        margin: 1.5rem auto 1rem auto;
        display: flex;
        justify-content: center;
    }
    
    .project-nav-container {
        padding: 0.375rem;
        gap: 0.375rem;
        margin: 0 auto;
    }
    
    .nav-arrow {
        width: 24px;
        height: 24px;
    }
    
    .nav-arrow svg {
        width: 12px;
        height: 12px;
    }
    
    .project-slide {
        padding: 0.375rem;
    }
    
    .project-slide h3 {
        font-size: 0.85rem;
    }
}
