body{display:flex;justify-content:center;align-items:center;min-height:100vh;margin:0;position:relative;background:#333;background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.3) 1px,transparent 0);background-size:20px 20px;background-position:0 0;font-family:"MS Sans Serif","Microsoft Sans Serif",sans-serif;padding:10px;box-sizing:border-box}.main-window-container{position:relative;width:100%;max-width:1400px;margin:0 auto;min-height:100vh}.glitch-window-bottomright{position:fixed;bottom:20px;right:20px;z-index:1;transform:scale();transform-origin:bottom right;pointer-events:auto;min-width:auto!important}.glitch-window-bottomright .window-pane{background:#fff;padding:2px!important;overflow:hidden}.glitch-image-bottomright{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}@media (max-width: 768px){.glitch-window-bottomright{display:none!important}}.main-window-container{position:relative;z-index:2}.glitch-window-bottomright{z-index:1}@media (min-width: 769px){.projects-window{position:fixed;top:20px;left:20px;width:30rem;max-width:calc(50vw - 30px);max-height:calc(100vh - 40px);z-index:1}.preview-window{position:fixed;top:50%;left:50%;transform:translate(-40%,20%);transform-origin:center right;width:800px;height:600px;max-width:70vw;max-height:80vh;z-index:2;display:flex;flex-direction:column;overflow:hidden;resize:none}.preview-window .window-pane{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.image-display{flex:1;background:silver;position:relative;overflow:hidden;min-height:0;display:flex;align-items:center;justify-content:center;padding:10px;width:100%;height:100%;max-height:490px;background:#fff;background-image:radial-gradient(circle at 1px 1px,rgba(19,18,18,.3) 1px,transparent 0);background-size:20px 20px;background-position:0 0}.gallery-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;image-rendering:auto;display:block}#galleryPreview{max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important}.projects-window .scroll-area{max-height:calc(100vh - 150px);overflow-y:auto}}@media screen and (max-width: 768px){.image-expanded-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000f2;z-index:10000;display:none;justify-content:center;align-items:center;padding:10px;box-sizing:border-box;overflow:hidden}.expanded-image-container{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.expanded-image{max-width:90%;max-height:70%;object-fit:contain;pointer-events:auto}.close-expanded{position:absolute;top:20px;right:20px;background:#000;color:#fff;border:2px outset #c0c0c0;padding:10px 15px;font-family:"MS Sans Serif","Microsoft Sans Serif",sans-serif;font-size:14px;cursor:pointer;z-index:10002;pointer-events:auto;min-width:80px}.close-expanded:active{border:2px inset #c0c0c0;background:#404040}.close-expanded:hover{background:#202020}.expanded-nav{position:absolute;bottom:30px;left:0;width:100%;display:flex;justify-content:center;gap:20px;z-index:10002;pointer-events:auto}.expanded-nav-button{background:#000;color:#fff;border:2px outset #c0c0c0;padding:12px 24px;font-family:"MS Sans Serif","Microsoft Sans Serif",sans-serif;font-size:16px;cursor:pointer;min-width:140px;pointer-events:auto}.expanded-nav-button:active{border:2px inset #c0c0c0;background:#404040}.expanded-nav-button:hover{background:#202020}.expanded-nav-button:disabled{background:gray;color:#a0a0a0;cursor:not-allowed;border:2px outset #a0a0a0}.expanded-info{position:absolute;top:20px;left:20px;background:#000c;color:#fff;padding:10px 15px;font-family:"MS Sans Serif","Microsoft Sans Serif",sans-serif;font-size:14px;z-index:10002;border:1px solid #c0c0c0;pointer-events:auto;display:flex;flex-direction:column;gap:5px;min-width:150px}.gallery-image{cursor:pointer}.gallery-image:hover{opacity:.9}body.image-expanded-open{overflow:hidden}}@media screen and (max-width: 480px){.close-expanded{top:10px;right:10px;padding:8px 12px;font-size:12px;min-width:70px}.expanded-nav-button{padding:10px 16px;font-size:14px;min-width:120px}.expanded-info{top:10px;left:10px;padding:8px 12px;font-size:12px;min-width:120px}.expanded-nav{bottom:20px;gap:10px}.expanded-image{max-width:95%;max-height:75%}}@media screen and (max-width: 768px){body{align-items:flex-start;padding:10px 5px;min-height:auto;display:block;overflow-x:hidden}.main-window-container{max-width:100%;display:flex;flex-direction:column;align-items:center;gap:20px;width:100%}.projects-window{width:100%!important;max-width:100%!important;margin:0 auto;position:relative!important;top:auto!important;left:auto!important;z-index:1}.preview-window{position:relative!important;top:auto!important;left:auto!important;transform:scale(.9)!important;width:100%!important;height:460px!important;max-width:100%!important;max-height:460px!important;margin:0 auto 20px!important;z-index:2;box-sizing:border-box;overflow:hidden;resize:none;background-color:#fff}.image-display{min-height:250px;max-height:350px;width:100%;background:silver;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:10px;box-sizing:border-box;height:350px;background:#fff;background-image:radial-gradient(circle at 1px 1px,rgba(19,18,18,.3) 1px,transparent 0);background-size:20px 20px;background-position:0 0}.gallery-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;image-rendering:auto;display:block}#galleryPreview{max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important}.event-folder{padding:4px 8px}.event-name{font-size:12px}.date-item{padding:4px 8px 4px 16px;width:100%!important}.date-name{font-size:10px}.nav-buttons{padding:8px;gap:10px;flex-shrink:0}.nav-button{padding:8px 12px;min-width:80px;font-size:11px}.image-info{padding:4px 8px;font-size:10px;flex-shrink:0}.projects-window .scroll-area{max-height:50vh}}@media screen and (max-width: 480px){body{padding:5px 3px;overflow:hidden;position:relative;height:100vh;align-items:flex-start!important;justify-content:flex-end!important}.main-window-container{height:100vh;width:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:5px;max-width:100%;margin:0 auto;bottom:5px}.preview-window{position:relative!important;top:auto!important;bottom:60px;right:0!important;left:auto!important;width:100%!important;max-width:400px!important;flex-shrink:0;height:auto!important;min-height:200px!important;margin:0 auto -140px!important;z-index:0!important;transform:scale(.5)!important;background-color:#fff!important;background:#fff!important;background-image:radial-gradient(circle at 1px 1px,rgba(19,18,18,.3) 1px,transparent 0)!important;background-size:20px 20px!important;background-position:0 0!important}.image-display{min-height:200px!important;max-height:225px!important;height:225px!important;background:#fff!important}.gallery-image,#galleryPreview{max-height:225px!important}.projects-window{width:100%!important;max-width:100%!important;margin:0 auto!important;flex:1!important;display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;max-height:calc(100vh - 180px)!important;z-index:1!important;position:relative!important}.projects-window .tabs{flex:1!important;display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important}.projects-window .tab-content{flex:1!important;display:flex!important;flex-direction:column!important;min-height:0!important;padding:0!important}.projects-window .scroll-area{max-height:none!important;flex:1!important;min-height:0!important;overflow-y:auto!important;display:flex!important;flex-direction:column!important;background:#fff!important;border:2px inset #c0c0c0!important}.projects-window .window-pane{flex:1!important;display:flex!important;flex-direction:column!important;min-height:0!important}.event-folder{padding:4px 6px!important}.event-name{font-size:11px!important}.date-item{padding:4px 6px 4px 12px!important}.date-name{font-size:9px!important}.image-count{font-size:9px!important;margin-left:30px!important}.nav-buttons{padding:6px!important;gap:8px!important}.nav-button{padding:6px 10px!important;min-width:70px!important;font-size:10px!important}.image-info{padding:4px 6px!important;font-size:9px!important}.stats-bar{font-size:9px!important;padding:3px 6px!important}.stat-item{margin-right:8px!important}}.menu-bar{display:flex;list-style:none;padding:0;margin:0;background:silver;border-top:1px solid #dfdfdf;border-bottom:1px solid #808080}.menu-bar [role=menu-item]{padding:4px 12px;cursor:pointer;font-size:10px;font-family:"MS Sans Serif","Microsoft Sans Serif",sans-serif;border:1px solid transparent;white-space:nowrap}.menu-bar [role=menu-item]:hover{background-color:#000;color:#fff}.nav-buttons{display:flex;justify-content:center;gap:30px;padding:4px;background:#fff;border-top:2px inset #c0c0c0;flex-shrink:0}.nav-button{background:#fff;border:2px solid #000000;padding:6px 16px;font-family:"MS Sans Serif","Microsoft Sans Serif",sans-serif;font-size:12px;cursor:pointer;color:#000;min-width:100px;text-align:center}.nav-button:hover{background:#d0d0d0}.nav-button:active{border:2px inset #c0c0c0}.nav-button:disabled{background:gray;color:#a0a0a0;cursor:not-allowed;border:2px outset #a0a0a0}.scroll-area{max-height:400px;overflow-y:auto;border:2px inset #c0c0c0;background:#fff}.event-folder{background:#fff;border:2px outset #c0c0c0;padding:6px 12px;margin:4px 0;font-weight:700;display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:#000}.event-folder:hover{background:#e0e0e0}.event-folder.open{background:#d0d0d0;border:2px inset #c0c0c0}.event-name{font-size:13px;color:#000}.event-count{background:#000;color:#fff;padding:1px 6px;border-radius:3px;font-size:10px;width:60%}.date-item{display:flex;align-items:center;max-width:90%;padding:6px 12px 6px 24px;border-bottom:1px solid #c0c0c0;cursor:pointer;background-color:#fff;color:#000}.date-item:hover{background-color:#e0e0e0;color:#000}.date-item.selected{background-color:#000;color:#fff}.date-item.selected .date-name,.date-item.selected .image-count{color:#fff}.date-icon{width:16px;height:16px;margin-right:8px;flex-shrink:0}.date-details{display:flex;align-items:center;width:100%;font-size:11px}.date-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.image-count{color:#000;font-size:10px;flex-shrink:0;margin-left:50px;white-space:nowrap}.date-item.selected .image-count{color:#fff}.no-image{color:gray;font-size:11px;font-style:italic;text-align:center;padding:40px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%}.image-info{background:#000;color:#fff;padding:6px 12px;font-size:11px;border-top:2px inset #c0c0c0;display:flex;justify-content:space-between;flex-shrink:0}.image-position{font-weight:700;color:#ff0}.loading{color:gray;font-size:11px;font-style:italic;text-align:center;padding:40px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%}.error{color:red;font-size:11px;text-align:center;padding:40px}.stats-bar{background:#000;color:#fff;padding:4px 8px;font-size:11px;border-top:2px inset #c0c0c0;display:flex;justify-content:space-between;flex-shrink:0}.stat-item{margin-right:15px}.stat-value{font-weight:700;color:#ff0}.deselect-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:3;display:none;background:transparent}.preview-window.maximized{position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;transform-origin:center right!important;width:95vw!important;height:95vh!important;max-width:none!important;max-height:none!important;z-index:1000!important}.projects-window.maximized{position:fixed!important;top:2.5vh!important;left:2.5vw!important;right:auto!important;width:95vw!important;height:95vh!important;z-index:1000!important}.preview-window{transition:transform .3s ease,width .3s ease,height .3s ease,max-width .3s ease,max-height .3s ease}img#galleryPreview{max-width:100%;max-height:100%;object-fit:contain!important}.image-display,.preview-window .window-pane{overflow:hidden!important}.gallery-image,#galleryPreview{object-fit:contain!important;object-position:center!important}
