@font-face {
    font-family: "PPSupplyMono";
    src: url("https://assets.codepen.io/7558/PPSupplyMono-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* MOBILE-FIRST OPTIMIZED STYLES */
/* Removed heavy animations and Three.js dependencies */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fafafa;
    font-family: "PPSupplyMono", "Courier New", monospace;
    min-height: 100vh;
    overflow-x: hidden;
    text-transform: uppercase;
    font-size: 12px;
    color: #1a1a1a;
}

/* RESPONSIVE CONTAINER */
.container {
    width: 100%;
    max-width: 100vw;
    padding: 0 16px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* Sessions SVG */
.sessions-svg {
    text-align: center;
    margin: 32px 0;
}

.sessions-svg img {
    min-width: 100%;
    height: auto;
    width: auto;
    filter: invert(1);
}

@media (min-width: 768px) {
    .sessions-svg {
        margin: 48px 0;
    }
    
    .sessions-svg img {
        width: 300px;
    }
}

@media (min-width: 1024px) {
    .sessions-svg img {
        width: 400px;
    }
}

/* RESPONSIVE HEADER */
.header {
    padding: 16px 0;
    margin-bottom: 16px;
    font-size: 10px;
    color: #1a1a1a;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

@media (min-width: 768px) {
    .header {
        padding: 24px 0;
        margin-bottom: 24px;
        font-size: 12px;
    }
    
    .header-content {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1rem;
        text-align: left;
    }
    
    .header-content > div:nth-child(1) { grid-column: 1 / 4; }
    .header-content > div:nth-child(2) { grid-column: 4 / 6; }
    .header-content > div:nth-child(3) { grid-column: 6 / 9; }
    .header-content > div:nth-child(4) { grid-column: 9 / 13; }
}

.header-content p { margin: 0; }
.header-content span { display: inline; }

/* SIMPLIFIED EMAIL HOVER EFFECT */
a {
    position: relative;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0;
    display: inline-block;
    z-index: 1;
    text-decoration: none;
    font-size: 12px;
    opacity: 1;
    transition: color 0.2s ease;
    font-weight: 700;
}

a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #1a1a1a;
    z-index: -1;
    transition: width 0.2s ease;
}

a:hover::after { width: 100%; }
a:hover {
    color: #fafafa;
    mix-blend-mode: difference;
}

/* RESPONSIVE SUBMISSION BAR */
.submission-bar {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.submission-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.submission-text {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.submission-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 250px;
}

.submission-btn,
.folder-btn {
    background: none;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    padding: 8px 12px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
    touch-action: manipulation;
    min-height: 44px;
}

.submission-btn:hover,
.folder-btn:hover {
    background: #1a1a1a;
    color: #fafafa;
}

@media (min-width: 768px) {
    .submission-bar {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .submission-content {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1rem;
        align-items: center;
    }
    
    .submission-text {
        grid-column: 1 / 8;
        font-size: 10px;
        text-align: left;
    }
    
    .submission-actions {
        grid-column: 8 / 13;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-end;
        width: auto;
        max-width: none;
    }
    
    .submission-btn,
    .folder-btn {
        width: auto;
        min-width: 120px;
        min-height: auto;
        padding: 0.5rem 1rem;
        font-size: 10px;
    }
}

/* RESPONSIVE PORTFOLIO GRID */
.portfolio-grid {
    display: grid;
    gap: 16px;
    margin: 32px 0;
    position: relative;
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 28px;
    }
}

/* RESPONSIVE GRID ITEMS */
.grid-item {
    position: relative;
    margin-bottom: 10vh;
    cursor: pointer;
    width: 100%;
    transition: transform 0.1s ease;
}

/* Mobile: Stack all items */
@media (max-width: 479px) {
    .grid-item {
        grid-column: 1 / -1 !important;
        margin-bottom: 8vh;
    }
}

/* Small mobile: 2 columns */
@media (min-width: 480px) and (max-width: 767px) {
    .grid-item {
        grid-column: span 1 !important;
        margin-bottom: 10vh;
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-item {
        grid-column: span 1 !important;
        margin-bottom: 15vh;
    }
}

/* Desktop: Original grid positioning */
@media (min-width: 1024px) {
    .grid-item {
        margin-bottom: 20vh;
    }
    
    .grid-item-01 { grid-column: 1 / 3; }
    .grid-item-03 { grid-column: 5 / 7; }
    .grid-item-05 { grid-column: 11 / 13; }
    .grid-item-06 { grid-column: 1 / 3; }
    .grid-item-09 { grid-column: 7 / 12; }
    .grid-item-11 { grid-column: 1 / 3; }
    .grid-item-13 { grid-column: 5 / 7; }
    .grid-item-17 { grid-column: 1 / 3; }
    .grid-item-20 { grid-column: 9 / 12; grid-row: 3 / 5; }
    
    /* Dynamic grid positioning for uploaded sessions */
    .grid-item-21 { grid-column: 3 / 5; }
    .grid-item-22 { grid-column: 7 / 9; }
    .grid-item-23 { grid-column: 10 / 12; }
    .grid-item-24 { grid-column: 2 / 4; }
    .grid-item-25 { grid-column: 6 / 8; }
    .grid-item-26 { grid-column: 9 / 11; }
    .grid-item-27 { grid-column: 1 / 3; }
    .grid-item-28 { grid-column: 4 / 6; }
    .grid-item-29 { grid-column: 8 / 10; }
    .grid-item-30 { grid-column: 5 / 7; }
}

/* SIMPLIFIED IMAGE BOX WITH LIGHT OVERLAY */
.image-box {
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

@media (min-width: 768px) {
    .image-box {
        aspect-ratio: 4 / 5;
    }
}

.image-box:hover {
    transform: scale(1.02);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.2s ease, opacity 0.3s ease;
}

.image-box:hover img {
    opacity: 0.8;
    filter: grayscale(50%) contrast(1.1);
}

/* SIMPLE OVERLAY EFFECT - REPLACES HEAVY THREE.JS */
.simple-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(0,0,0,0.1) 50%, 
        rgba(255,255,255,0.05) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
}

.image-box:hover .simple-overlay {
    opacity: 1;
}

/* Removed threejs-canvas styles completely */

.image-number {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    color: #fff;
    z-index: 5;
    transition: color 0.2s ease;
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .image-number {
        top: 12px;
        left: 12px;
        font-size: 10px;
        background: none;
        padding: 0;
    }
}

.image-title {
    margin-top: 8px;
    font-size: 10px;
    color: #1a1a1a;
    text-align: center;
    transform: translateX(0px);
    position: relative;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
    .image-title {
        text-align: left;
    }
}

.image-title::before {
    content: "•";
    position: absolute;
    left: -12px;
    top: 0;
    opacity: 0;
    transform: translateX(-8px);
    color: #666;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
    .grid-item:hover .image-title {
        color: #666;
        transform: translateX(12px);
    }
    
    .grid-item:hover .image-title::before {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* RESPONSIVE MODALS */
.submission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(20px);
}

.modal-container {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    
    /* Perfect centering using transform */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
    .submission-modal {
        padding: 40px;
    }
    
    .modal-container {
        max-width: 600px;
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    .submission-modal {
        padding: 16px;
        align-items: flex-start;
        padding-top: 60px;
    }
    
    .modal-container {
        width: 100%;
        max-width: none;
        border-radius: 12px;
        max-height: 85vh;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: normal;
    color: #1a1a1a;
    margin: 0;
}

@media (min-width: 768px) {
    .modal-header h3 {
        font-size: 12px;
    }
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
}

.modal-close:hover {
    color: #1a1a1a;
}

/* Form Styles */
.session-form {
    padding: 24px;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-field label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .form-field input,
    .form-field textarea {
        font-size: 11px;
        border-radius: 0;
    }
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    position: relative;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #1a1a1a;
    background: #f5f5f5;
}

.upload-content {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.7;
}

.upload-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
    text-transform: none;
}

.upload-subtext {
    font-size: 12px;
    color: #666;
    text-transform: none;
}

.upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Image Preview */
.image-preview {
    margin-top: 16px;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    filter: grayscale(100%);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-direction: column;
}

@media (min-width: 768px) {
    .form-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

.btn-cancel,
.btn-submit {
    padding: 12px 24px;
    border: 1px solid #1a1a1a;
    background: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    border-radius: 4px;
    touch-action: manipulation;
    min-height: 44px;
}

@media (min-width: 768px) {
    .btn-cancel,
    .btn-submit {
        font-size: 10px;
        min-height: auto;
        border-radius: 0;
    }
}

.btn-submit {
    background: #1a1a1a;
    color: #fafafa;
}

.btn-submit:hover {
    background: #333;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-cancel {
    color: #666;
}

.btn-cancel:hover {
    color: #1a1a1a;
    border-color: #666;
}

/* Image Modal - Fixed Centering */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 4000;
    padding: 16px;
}

.image-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(20px);
}

.image-modal-container {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    
    /* Perfect centering using transform */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Desktop optimization */
@media (min-width: 768px) {
    .image-modal {
        padding: 40px;
    }
    
    .image-modal-container {
        width: 80%;
        max-width: 1000px;
        border-radius: 0;
    }
}

@media (min-width: 768px) {
    .image-modal-container {
        border-radius: 0;
    }
}

.image-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(250, 250, 250, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.image-modal-close:hover {
    background: rgba(26, 26, 26, 0.1);
    color: #1a1a1a;
}

.image-modal-content {
    display: flex;
    flex-direction: column;
    min-height: 60vh;
}

@media (min-width: 768px) {
    .image-modal-content {
        flex-direction: row;
        min-height: 70vh;
    }
}

.image-modal-left {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

@media (min-width: 768px) {
    .image-modal-left {
        flex: 2;
        min-height: 70vh;
    }
}

.image-modal-left img {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    filter: grayscale(100%);
}

@media (min-width: 768px) {
    .image-modal-left img {
        max-height: 70vh;
    }
}

.image-modal-right {
    flex: none;
    padding: 20px;
    background: #fafafa;
}

@media (min-width: 768px) {
    .image-modal-right {
        flex: 1;
        padding: 32px;
        min-width: 300px;
    }
}

.modal-number {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.image-modal-right h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: normal;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.modal-student {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

.modal-description {
    font-size: 11px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
    text-transform: none;
}

.modal-meta {
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.meta-label {
    color: #666;
}

.meta-value {
    color: #1a1a1a;
}

.modal-actions {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-actions {
        flex-direction: row;
        gap: 8px;
    }
}

.modal-btn {
    padding: 8px 16px;
    border: 1px solid #1a1a1a;
    background: none;
    color: #1a1a1a;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    touch-action: manipulation;
    min-height: 44px;
}

@media (min-width: 768px) {
    .modal-btn {
        min-height: auto;
    }
}

.modal-btn:hover {
    background: #1a1a1a;
    color: #fafafa;
}

.modal-btn-delete {
    padding: 8px 16px;
    border: 1px solid #ff4444;
    background: none;
    color: #ff4444;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    touch-action: manipulation;
    min-height: 44px;
}

@media (min-width: 768px) {
    .modal-btn-delete {
        min-height: auto;
    }
}

.modal-btn-delete:hover {
    background: #ff4444;
    color: #fafafa;
}

/* FOLDER PANEL */
.folder-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid #e0e0e0;
    z-index: 3500;
    transition: right 0.2s ease;
    overflow-y: auto;
}

.folder-panel.show {
    right: 0;
}

@media (min-width: 768px) {
    .folder-panel {
        width: 400px;
        right: -400px;
    }
}

.folder-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.folder-header h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: normal;
    color: #1a1a1a;
    margin: 0;
}

.folder-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
}

.folder-close:hover {
    color: #1a1a1a;
}

.folder-stats {
    padding: 16px 24px;
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e0e0e0;
    justify-content: center;
}

@media (min-width: 768px) {
    .folder-stats {
        justify-content: flex-start;
    }
}

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

.stat-number {
    display: block;
    font-size: 16px;
    font-weight: normal;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #666;
}

.folder-actions {
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
}

.folder-action-btn {
    padding: 8px 16px;
    border: 1px solid #1a1a1a;
    background: none;
    color: #1a1a1a;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    touch-action: manipulation;
    min-height: 44px;
}

.folder-action-btn:hover {
    background: #1a1a1a;
    color: #fafafa;
}

.folder-btn-danger {
    border-color: #ff4444;
    color: #ff4444;
}

.folder-btn-danger:hover {
    background: #ff4444;
    color: #fafafa;
}

.folder-list {
    padding: 16px 24px;
}

/* Folder Items */
.folder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.folder-item:hover {
    background: rgba(26, 26, 26, 0.05);
}

.folder-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}

.folder-item-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    filter: grayscale(100%);
    border: 1px solid #e0e0e0;
    border-radius: 2px;
}

.folder-item-thumb-placeholder {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.folder-item-info {
    flex: 1;
    min-width: 0;
}

.folder-item-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #1a1a1a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-item-student {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
}

.folder-item-date {
    font-size: 8px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.folder-item-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.folder-item:hover .folder-item-actions {
    opacity: 1;
}

.folder-item-view,
.folder-item-delete {
    background: none;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    padding: 4px 8px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    border-radius: 2px;
    touch-action: manipulation;
}

.folder-item-view:hover {
    background: #1a1a1a;
    color: #fafafa;
}

.folder-item-delete {
    border-color: #ff4444;
    color: #ff4444;
}

.folder-item-delete:hover {
    background: #ff4444;
    color: #fafafa;
}

/* Delete confirmation */
.delete-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 16px;
}

.delete-confirmation-dialog {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .delete-confirmation-dialog {
        border-radius: 0;
    }
}

.delete-confirmation h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: normal;
}

.delete-confirmation p {
    font-size: 11px;
    color: #666;
    margin-bottom: 24px;
    text-transform: none;
    line-height: 1.5;
}

.delete-confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-direction: column;
}

@media (min-width: 768px) {
    .delete-confirmation-actions {
        flex-direction: row;
    }
}

.delete-confirm-btn,
.delete-cancel-btn {
    padding: 12px 24px;
    border: 1px solid #1a1a1a;
    background: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    border-radius: 4px;
    touch-action: manipulation;
    min-height: 44px;
}

@media (min-width: 768px) {
    .delete-confirm-btn,
    .delete-cancel-btn {
        border-radius: 0;
        min-height: auto;
    }
}

.delete-confirm-btn {
    border-color: #ff4444;
    color: #ff4444;
}

.delete-confirm-btn:hover {
    background: #ff4444;
    color: #fafafa;
}

.delete-cancel-btn {
    color: #666;
}

.delete-cancel-btn:hover {
    color: #1a1a1a;
    border-color: #666;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 16px;
    right: 16px;
    font-size: 8px;
    color: #666;
    z-index: 1000;
    text-align: center;
}

@media (min-width: 768px) {
    .footer {
        bottom: 32px;
        right: 32px;
        font-size: 10px;
        text-align: right;
    }
}

/* DYNAMIC GRID ITEMS (UPLOADED SESSIONS) */
.grid-item-dynamic {
    position: relative;
    margin-bottom: 10vh;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@media (min-width: 768px) {
    .grid-item-dynamic {
        margin-bottom: 15vh;
    }
}

@media (min-width: 1024px) {
    .grid-item-dynamic {
        margin-bottom: 20vh;
    }
}

/* Simplified animation for dynamic items */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.grid-item-dynamic:nth-child(10) { animation-delay: 0.1s; }
.grid-item-dynamic:nth-child(11) { animation-delay: 0.2s; }
.grid-item-dynamic:nth-child(12) { animation-delay: 0.3s; }
.grid-item-dynamic:nth-child(13) { animation-delay: 0.4s; }
.grid-item-dynamic:nth-child(14) { animation-delay: 0.5s; }
.grid-item-dynamic:nth-child(15) { animation-delay: 0.6s; }

/* Student session identifier */
.grid-item-dynamic .image-title::after {
    content: " [student]";
    font-size: 8px;
    color: #999;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* TOUCH DEVICE OPTIMIZATIONS */
@media (hover: none) and (pointer: coarse) {
    .grid-item:hover {
        transform: none;
    }
    
    .grid-item:active {
        transform: scale(0.98);
    }
    
    /* Always show folder item actions on touch devices */
    .folder-item-actions {
        opacity: 1;
    }
    
    /* Ensure minimum touch targets */
    .submission-btn,
    .folder-btn,
    .modal-close,
    .image-modal-close,
    .folder-close {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ACCESSIBILITY AND PERFORMANCE */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .submission-bar,
    .footer,
    .modal-backdrop,
    .folder-panel {
        display: none !important;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .header {
        font-size: 8px;
        padding: 8px 0;
    }
    
    .portfolio-grid {
        gap: 12px;
    }
    
    .submission-btn,
    .folder-btn {
        font-size: 8px;
        padding: 6px 10px;
    }
}