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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    background: #f8f8f8;
    color: #000;
}

.name {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    z-index: 100;
}

.scroll-hint {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    opacity: 0;
    animation: fadeInOut 4s ease-in-out;
    pointer-events: none;
    z-index: 100;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { opacity: 0; }
}

.container {
    display: flex;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.container::-webkit-scrollbar {
    display: none;
}

.panel {
    min-width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.meta {
    position: absolute;
    top: 2rem;
    right: 2rem;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.meta .title {
    display: block;
    margin-bottom: 0.25rem;
}

.meta .date,
.meta .location {
    display: block;
    font-size: 0.7rem;
}

.video-panel {
    background: #f8f8f8;
}

.video-panel video {
    height: 90vh;
    object-fit: contain;
}

/* Width control classes - must come after base styles */
.panel.width-small video,
.panel.width-small img,
.panel.width-small .content {
    width: 50vw;
}

.panel.width-medium video,
.panel.width-medium img,
.panel.width-medium .content {
    width: 70vw;
}

.panel.width-large video,
.panel.width-large img,
.panel.width-large .content {
    width: 90vw;
}

.panel.width-full video,
.panel.width-full img,
.panel.width-full .content {
    width: 100vw;
}

/* Default width if no class specified */
.video-panel:not([class*="width-"]) video,
.image-panel:not([class*="width-"]) img {
    width: 90vw;
}

.text-panel {
    background: #f8f8f8;
}

.text-panel .content {
    max-width: 600px;
    padding: 2rem;
    position: relative;
}

.image-panel {
    background: #f8f8f8;
}

.image-panel img {
    height: 90vh;
    object-fit: contain;
}

.text-panel .poem-title {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.text-content {
    max-height: 20rem;
    overflow: hidden;
    position: relative;
}

.text-content.truncated {
    max-height: 20rem;
}

.text-content.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(to bottom, transparent, #f8f8f8);
}

.text-panel p {
    font-size: 1.25rem;
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.show-more {
    margin-top: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.show-more:hover {
    opacity: 1;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f8f8;
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    padding: 6rem 2rem 4rem 2rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 600px;
    width: 100%;
    position: relative;
}

.modal-content .poem-title {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.modal-content .text-content {
    max-height: none;
    overflow: visible;
}

.modal-content .text-content::after {
    display: none;
}

.modal-content p {
    font-size: 1.25rem;
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 1001;
}

.modal-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .name {
        top: 1rem;
        left: 1rem;
        font-size: 0.875rem;
    }
    
    .meta {
        top: 1rem;
        right: 1rem;
        font-size: 0.65rem;
    }
    
    .video-panel video {
        width: 95vw;
        height: 95vh;
    }
    
    /* Mobile width adjustments */
    .width-small video,
    .width-small img,
    .width-small .content {
        max-width: 85vw;
    }
    
    .width-medium video,
    .width-medium img,
    .width-medium .content {
        max-width: 90vw;
    }
    
    .width-large video,
    .width-large img,
    .width-large .content {
        max-width: 95vw;
    }
    
    .text-panel .content {
        padding: 1.5rem;
    }
    
    .text-panel p {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .text-content {
        max-height: 15rem;
    }
    
    .text-content.truncated {
        max-height: 15rem;
    }
    
    .modal {
        padding: 4rem 1rem 2rem 1rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
    }
    
    .modal-content p {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .scroll-hint {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.7rem;
    }
}
