/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Windows XP Tahoma font */
@font-face {
    font-family: 'Windows XP Tahoma';
    src: url('windows-xp-tahoma.otf/windows-xp-tahoma.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Windows XP Tahoma', 'Tahoma', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow: hidden;
    background: transparent;
    height: 100vh;
    width: 100vw;
}

/* Background image container */
.background-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.background-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
    overflow: hidden;
}

/* Desktop container */
.desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: transparent;
    overflow: hidden;
    z-index: 5;
}

/* Folders View Container */
.folders-view {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Windows XP Style Folders */
.folder {
    position: absolute;
    width: 100px;
    height: 100px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 4px;
    z-index: 10; /* Ensure folders are above everything */
}

/* Subfolder styles */
.subfolder {
    position: absolute;
    width: 80px;
    height: 100px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
    z-index: 10;
}

.subfolder:hover {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.subfolder:hover .folder-icon {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.subfolder:active {
    background: rgba(0, 123, 255, 0.2);
    border: 1px solid #007bff;
    transform: scale(0.95);
}

.folder:hover {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.folder:hover .folder-icon {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.folder:active {
    background: rgba(0, 123, 255, 0.2);
    border: 1px solid #007bff;
    transform: scale(0.95);
}

/* Remove folder and subfolder opening animation rules */
.folder.opening, .subfolder.opening,
#about-me-folder.opening,
#newspaper-folder.opening,
#videos-folder.opening,
#cover-arts-folder.opening,
#resume-folder.opening,
#newspapers-subfolder.opening,
#magazines-subfolder.opening,
#social-media-subfolder.opening,
#cover-arts-subfolder.opening {
    /* No animation */
    animation: none !important;
}
.folder.opening .folder-icon,
.subfolder.opening .folder-icon,
.folder.opening .folder-label,
.subfolder.opening .folder-label {
    animation: none !important;
}
.folder.opening::after,
.subfolder.opening::after,
.folder.opening::before,
.subfolder.opening::before {
    animation: none !important;
    content: none !important;
}

.folder-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.folder-label {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    color: #333;
    line-height: 1.1;
    word-wrap: normal;
    white-space: nowrap;
    max-width: 100%;
    margin-top: 2px;
}

.folder-label div {
    line-height: 1.0;
    white-space: nowrap;
}

/* Folder positions - centered array across the desktop */
#about-me-folder {
    top: 5%;
    left: 49%;
    transform: translateX(-200px);
}

#newspaper-folder {
    top: 5%;
    left: 49%;
    transform: translateX(-100px);
}

#videos-folder {
    top: 5%;
    left: 49%;
    transform: translateX(0px);
}

#cover-arts-folder {
    top: 5%;
    left: 49%;
    transform: translateX(100px);
}

#resume-folder {
    top: 5%;
    left: 49%;
    transform: translateX(200px);
}

/* Subfolder positioning - align icons horizontally */
#newspapers-subfolder {
    top: 5%;
    left: 49%;
    transform: translateX(-120px);
}

#magazines-subfolder {
    top: 5%;
    left: 49%;
    transform: translateX(-40px);
}

#social-media-subfolder {
    top: 5%;
    left: 49%;
    transform: translateX(40px);
}

#cover-arts-subfolder {
    top: 5%;
    left: 49%;
    transform: translateX(120px);
}

/* Ensure subfolder icons align horizontally regardless of text length */
.subfolder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.subfolder .folder-icon {
    flex-shrink: 0;
    margin-bottom: 4px;
}

.subfolder .folder-label {
    text-align: center;
    width: 100%;
}

/* Context menu */
.context-menu {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    z-index: 1001;
    min-width: 150px;
    display: none;
}

.context-menu.show {
    display: block;
}

.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

.context-menu-item:active {
    background-color: #e0e0e0;
}

/* Responsive folder positioning to avoid image overlap */
@media (max-width: 1200px) {
    #about-me-folder {
        top: 5%;
        left: 47%;
        transform: translateX(-160px);
    }
    
    #newspaper-folder {
        top: 5%;
        left: 47%;
        transform: translateX(-80px);
    }
    
    #videos-folder {
        top: 5%;
        left: 47%;
        transform: translateX(0px);
    }
    
    #cover-arts-folder {
        top: 5%;
        left: 47%;
        transform: translateX(80px);
    }
    
    #resume-folder {
        top: 5%;
        left: 47%;
        transform: translateX(160px);
    }
    
    /* Subfolder positioning for medium screens */
    #newspapers-subfolder {
        top: 5%;
        left: 47%;
        transform: translateX(-120px);
    }
    
    #magazines-subfolder {
        top: 5%;
        left: 47%;
        transform: translateX(-40px);
    }
    
    #social-media-subfolder {
        top: 5%;
        left: 47%;
        transform: translateX(40px);
    }
    
    #cover-arts-subfolder {
        top: 5%;
        left: 47%;
        transform: translateX(120px);
    }
    
    /* Ensure subfolder icons align horizontally on medium screens */
    .subfolder .folder-icon {
        margin-bottom: 3px;
    }
}

/* Mobile-specific styles for iPhone and small screens */
@media (max-width: 500px) {
    #about-me-folder {
        top: 8%;
        left: 50%;
        transform: translateX(-50%);
    }
    #newspaper-folder {
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
    }
    #videos-folder {
        top: 32%;
        left: 50%;
        transform: translateX(-50%);
    }
    #cover-arts-folder {
        top: 44%;
        left: 50%;
        transform: translateX(-50%);
    }
    #resume-folder {
        top: 56%;
        left: 50%;
        transform: translateX(-50%);
    }
    .folder {
        width: 80px;
        height: 75px;
        padding: 8px;
        z-index: 10;
    }
    .folder-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 3px;
    }
    .folder-label {
        font-size: 16px;
        line-height: 1.0;
    }
    .folder-label div {
        line-height: 0.9;
        font-size: 14px;
    }
    .background-image > video {
        bottom: 5% !important;
        width: 110% !important;
        height: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 480px) {
    .folder {
        width: 80px;
        height: 80px;
    }
    
    .folder-icon {
        width: 36px;
        height: 36px;
    }
    
    .folder-label {
        font-size: 10px;
    }
    
    .folder-label div {
        line-height: 0.8;
        font-size: 9px;
    }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .folder {
        width: 70px;
        height: 65px;
        padding: 6px;
        z-index: 10;
    }
    
    .folder-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 2px;
    }
    
    .folder-label {
        font-size: 14px;
        line-height: 0.9;
    }
    
    .folder-label div {
        line-height: 0.8;
        font-size: 12px;
    }
    
    /* Adjust spacing for very small screens */
    #about-me-folder {
        top: 5%;
    }
    
    #newspaper-folder {
        top: 22%;
    }
    
    #videos-folder {
        top: 39%;
    }
    
    #cover-arts-folder {
        top: 56%;
    }
    
    #resume-folder {
        top: 73%;
    }
    
    /* Make image even larger on very small screens */
    .background-image {
        background-size: 110% auto !important;
    }
}

/* Windows XP style scrollbar */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border: 1px solid #c1c1c1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border: 1px solid #a1a1a1;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Focus styles for accessibility */
.folder:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #333;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main content */
main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

/* About section */
.about {
    background: white;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
}

/* Projects section */
.projects {
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-content p {
    margin-bottom: 1rem;
    color: #666;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Contact section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for sections */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Newspapers Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}
.gallery-modal.show {
    display: flex;
}
.gallery-modal-content {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: 1200px;
    width: 90vw;
    max-height: 90vh;
    overflow: visible;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.gallery-modal-close {
    display: none;
}
/* Ensure modal is above desktop */
body .gallery-modal {
    z-index: 2000;
}

.gallery-container {
    max-width: calc(1200px - 50px);
    margin: 0 auto;
    padding: 25px 20px 20px 20px;
    min-height: unset;
    box-sizing: border-box;
    height: auto;
    overflow-y: auto;
    max-height: calc(90vh - 36px);
    overflow-x: visible;
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}
.gallery-container::-webkit-scrollbar {
    width: 8px;
}
.gallery-container::-webkit-scrollbar-track {
    background: transparent;
}
.gallery-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.gallery-container:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    overflow: visible;
    justify-content: center;
    justify-items: center;
    grid-auto-flow: dense;
    padding: 0 8px 0 0;
}
.image-grid-item {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    transition: transform 0.22s cubic-bezier(0.4,0.2,0.2,1);
}
.image-grid-item:hover {
    z-index: 999999;
    transform: scale(1.08);
    position: relative;
}
.image-grid-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background: none;
    border: none;
    box-shadow: none;
    transition: box-shadow 0.22s, filter 0.22s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}
#photographyGrid .image-grid-item img {
    height: 180px;
    object-fit: cover;
}
.image-grid-item:hover img {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    filter: brightness(1.05) saturate(1.1);
}
.image-grid-item.double-wide {
    grid-column: span 2;
}
@media (max-width: 600px) {
    .gallery-modal-content {
        padding: 12px 2px 2px 2px;
    }
    .gallery-container {
        padding: 0 2px 2px 2px;
    }
    .image-grid {
        gap: 8px;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .win98-titlebar {
        width: 100%;
        margin: 0 0 2px 0;
    }
    .newspaper-detail-titlebar {
        width: 100%;
        margin: 0 0 2px 0;
    }
}

/* Windows 98 Style Title Bar for Newspapers Modal */
.win98-titlebar {
    display: flex;
    flex-flow: row nowrap;
    font-weight: bold;
    justify-content: space-between;
    width: calc(100% - 40px);
    height: 28px;
    color: white;
    background: #00a;
    padding: 3px 4px 4px;
    margin: 0 auto 2px auto;
    border-radius: 0;
    box-sizing: border-box;
    z-index: 1;
}
.win98-titlebar p {
    margin: 0;
    font-family: 'Windows XP Tahoma', 'Tahoma', 'Inter', sans-serif;
    font-size: 18px;
    line-height: 24px;
}
.win98-close-btn {
    width: 18px;
    height: 16px;
    background: #c2c6ca;
    border: none;
    padding: 0;
    border-radius: 0;
    outline: none;
    box-shadow: 0.5px 0.5px 0 0.5px black, inset 1px 1px white, inset -1px -1px #85898d;
    cursor: pointer;
}
.win98-close-btn:active {
    box-shadow: 0.5px 0.5px 0 0.5px white, inset 1px 1px black, inset -1px -1px #c2c6ca, inset 2px 2px #85898d;
}
.win98-close-btn:active svg {
    transform: translateX(1px) translateY(1px);
}
.win98-close-btn svg {
    margin: 4px 4px 4px 5px;
    fill: #000;
    width: 9px;
    height: 8px;
}

/* Adjust lightbox to show full size images */
.lightbox-modal img {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Remove lightbox close button and alt text */
.lightbox-close {
    display: none;
}

/* Newspaper Detail Modal */
.newspaper-detail-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}
.newspaper-detail-modal.show {
    display: flex;
}
.newspaper-detail-content {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.newspaper-detail-titlebar {
    display: flex;
    flex-flow: row nowrap;
    font-weight: bold;
    justify-content: space-between;
    width: 100%;
    height: 28px;
    color: white;
    background: #00a;
    padding: 3px 4px 4px;
    margin: 0 0 8px 0;
    border-radius: 0;
    box-sizing: border-box;
    z-index: 1;
}
.newspaper-detail-titlebar p {
    margin: 0;
    font-family: 'Windows XP Tahoma', 'Tahoma', 'Inter', sans-serif;
    font-size: 18px;
    line-height: 24px;
}
.newspaper-detail-close-btn {
    width: 18px;
    height: 16px;
    background: #c2c6ca;
    border: none;
    padding: 0;
    border-radius: 0;
    outline: none;
    box-shadow: 0.5px 0.5px 0 0.5px black, inset 1px 1px white, inset -1px -1px #85898d;
    cursor: pointer;
}
.newspaper-detail-close-btn:active {
    box-shadow: 0.5px 0.5px 0 0.5px white, inset 1px 1px black, inset -1px -1px #c2c6ca, inset 2px 2px #85898d;
}
.newspaper-detail-close-btn:active svg {
    transform: translateX(1px) translateY(1px);
}
.newspaper-detail-close-btn svg {
    margin: 4px 4px 4px 5px;
    fill: #000;
    width: 9px;
    height: 8px;
}
.newspaper-detail-image {
    max-width: 100%;
    max-height: calc(95vh - 36px);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Magazines Grid Styles */
.magazines-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 8px 0 0;
}

/* Specific styling for magazines modal container */
#magazines-modal .gallery-container {
    padding: 25px 20px 20px 20px;
    overflow: hidden;
}

/* Specific styling for magazines modal title bar */
#magazines-modal .win98-titlebar {
    width: calc(900px - 40px);
}

.magazine-item {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazine-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.magazine-preview {
    width: 100%;
    height: 400px;
    background: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.magazine-preview:hover {
    transform: translateY(-5px);
}

.preview-icon {
    width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.magazine-preview:hover .preview-icon {
    transform: scale(1.05);
}

/* Magazine Detail Modal */
.magazine-detail-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.magazine-detail-modal.show {
    display: flex;
}

.magazine-detail-content {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.magazine-detail-titlebar {
    display: flex;
    flex-flow: row nowrap;
    font-weight: bold;
    justify-content: space-between;
    width: 100%;
    height: 28px;
    color: white;
    background: #00a;
    padding: 3px 4px 4px;
    margin: 0 0 8px 0;
    border-radius: 0;
    box-sizing: border-box;
    z-index: 1;
}

.magazine-detail-titlebar p {
    margin: 0;
    font-family: 'Windows XP Tahoma', 'Tahoma', 'Inter', sans-serif;
    font-size: 18px;
    line-height: 24px;
}

.magazine-detail-close-btn {
    width: 18px;
    height: 16px;
    background: #c2c6ca;
    border: none;
    padding: 0;
    border-radius: 0;
    outline: none;
    box-shadow: 0.5px 0.5px 0 0.5px black, inset 1px 1px white, inset -1px -1px #85898d;
    cursor: pointer;
}

.magazine-detail-close-btn:active {
    box-shadow: 0.5px 0.5px 0 0.5px white, inset 1px 1px black, inset -1px -1px #c2c6ca, inset 2px 2px #85898d;
}

.magazine-detail-close-btn:active svg {
    transform: translateX(1px) translateY(1px);
}

.magazine-detail-close-btn svg {
    margin: 4px 4px 4px 5px;
    fill: #000;
    width: 9px;
    height: 8px;
}

.magazine-detail-iframe {
    max-width: 100%;
    max-height: calc(95vh - 36px);
    width: 100%;
    height: calc(95vh - 36px);
    border: none;
    aspect-ratio: 16/9;
    object-fit: contain;
}

@media (max-width: 768px) {
    .magazines-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }
    
    .magazine-preview {
        height: 450px;
    }
    
    .preview-icon {
        width: 300px;
    }
    
    .win98-titlebar {
        width: calc(100% - 40px);
    }
}

/* Social Media Assets Modal Styles */
.social-media-content {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.placeholder-content {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.placeholder-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.placeholder-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Specific styling for social media modal container */
#social-media-modal .gallery-container {
    padding: 25px 20px 20px 20px;
    overflow-y: auto;
    max-height: calc(90vh - 36px);
}

/* Social media grid specific styling */
#social-media-modal .image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    overflow: visible;
    justify-content: center;
    justify-items: center;
    grid-auto-flow: dense;
    padding: 0 8px 0 0;
}

/* About Me Modal Styles */
.about-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.about-modal.show {
    display: flex !important;
}

#about-me-modal .white-content-area {
    width: calc(100% - 40px);
    height: auto;
    background: white;
    margin: -15px 20px 20px 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    overflow: visible;
    box-sizing: border-box;
}

#about-me-modal .win98popup {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: stretch;
    font-family: "Microsoft Sans Serif", sans-serif;
    background: #c2c6ca;
    font-size: 12px;
    -webkit-font-smoothing: none;
    width: 400px;
    height: auto;
    min-height: 500px;
    padding-bottom: 50px;
    box-shadow: 0.5px 0.5px 0 0.5px black, inset 1px 1px #C2C6CA, inset -1px -1px #85898d, inset 2px 2px white;
    overflow: hidden;
}

#about-me-modal .win98popup button {
    background: #c2c6ca;
    border: none;
    padding: 0;
    border-radius: 0;
    outline: none;
}

#about-me-modal .win98popup .shadow {
    box-shadow: 0.5px 0.5px 0 0.5px black, inset 1px 1px white, inset -1px -1px #85898d;
}

#about-me-modal .win98popup .bar {
    display: flex;
    flex-flow: row nowrap;
    font-weight: bold;
    justify-content: space-between;
    width: calc(100% - 11px);
    height: 28px;
    color: white;
    background: #00a;
    padding: 3px 4px 4px;
    margin: 3px 2px 1px 3px;
}

#about-me-modal .win98popup .bar p {
    margin: 0;
    font-family: 'Windows XP Tahoma', 'Tahoma', 'Inter', sans-serif;
    font-size: 14px;
    line-height: 24px;
}

#about-me-modal .win98popup .bar button {
    width: 18px;
    height: 16px;
}

#about-me-modal .win98popup .bar button:active {
    box-shadow: 0.5px 0.5px 0 0.5px white, inset 1px 1px black, inset -1px -1px #c2c6ca, inset 2px 2px #85898d;
}

#about-me-modal .win98popup .bar button:active svg {
    transform: translateX(1px) translateY(1px);
}

#about-me-modal .win98popup .bar button svg {
    margin: 4px 4px 4px 5px;
    fill: #000;
    width: 9px;
    height: 8px;
}

#about-me-modal .win98popup section {
    flex: 1;
    position: relative;
    padding: 0;
    /* Force visibility */
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

.about-me-photo {
    flex-shrink: 0;
    width: 300px;
    height: auto;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Force visibility */
    visibility: visible !important;
    opacity: 1 !important;
}

.profile-photo {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.about-me-text {
    width: 300px;
    font-family: 'Windows XP Tahoma', 'Tahoma', sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    min-height: 200px;
    overflow-y: auto;
    /* Force visibility */
    visibility: visible !important;
    opacity: 1 !important;
}

.about-me-text p {
    margin-bottom: 20px;
    font-size: 16px;
}

.about-me-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .win98popup {
        width: 95vw;
        min-height: 500px;
    }
    
    .about-me-content {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
        margin: 10px;
    }
    
    .about-me-photo {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-me-text p {
        font-size: 14px;
    }
}

#videosRow {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#videosRow > div {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
#videosRow > div:last-child {
  margin-bottom: 0;
}

#videosRow iframe {
  height: 480px !important;
  width: 100% !important;
  display: block;
  margin: 0 auto 24px auto;
}

.video-lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.video-lightbox-content {
  position: relative;
  background: #111;
  border-radius: 12px;
  padding: 24px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-lightbox-close {
  position: absolute;
  top: 12px;
  right: 20px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10000;
}
#video-lightbox-embed iframe {
  width: 80vw !important;
  height: 45vw !important;
  max-width: 1200px;
  max-height: 70vh;
  border-radius: 8px;
  background: #000;
}

.videos-row {
  padding: 0 !important;
  margin: 0 !important;
  align-items: flex-start !important;
  line-height: 0 !important;
  row-gap: 2px !important;
  gap: 2px !important;
}
.videos-row > * {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}
.videos-row video,
.videos-row img {
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  line-height: 0 !important;
}

#videos-modal .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    overflow: visible;
    justify-content: center;
    justify-items: center;
    grid-auto-flow: dense;
    padding: 0 8px 0 0;
}
@media (max-width: 600px) {
    #videos-modal .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
}

.video-embed-content {
    max-width: 1200px;
    width: 90vw;
    max-height: 90vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
}
.video-embed-container {
    width: 100%;
    height: 70vh;
    max-width: 1100px;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    margin: 0;
    padding: 0;
}
.video-embed-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 80vh;
    border-radius: 0;
    background: #000;
}
.magazine-detail-titlebar {
    margin-bottom: 0;
}

.vertical-video-modal {
    display: block !important;
    width: auto !important;
    max-width: 100vw;
    min-width: 340px;
    padding: 0;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
}
.vertical-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-width: 340px;
    margin: 0 auto;
    padding-top: 177.78%; /* 9:16 aspect ratio for vertical video */
    background: #000;
    min-height: 500px;
}
.vertical-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.aesthetic-back {
    font-family: 'Windows XP Tahoma', 'Tahoma', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    background: #f4f4f8;
    border: 1.5px solid #bfc4d1;
    border-radius: 8px;
    padding: 8px 28px 8px 18px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, border 0.18s;
    display: flex;
    align-items: center;
    gap: 8px;
    outline: none;
}
.aesthetic-back:hover, .aesthetic-back:focus {
    background: #e6eaff;
    border-color: #7a8bb7;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

#still-visuals-subfolders #back-to-main-subfolder {
    top: 40px;
    left: 0px;
}

#coverArtsGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    justify-items: center;
    width: 100%;
}

#mobile-warning {
    background: #fff !important;
    color: #222 !important;
    font-family: 'Windows XP Tahoma', 'Tahoma', 'Inter', sans-serif !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-align: center;
    padding: 2rem;
    z-index: 9999;
}
#mobile-warning img {
    margin-top: 2rem;
    max-width: 180px;
    width: 60vw;
    height: auto;
    display: block;
}

 