/**
 * Obi Memorial Website - Retro Mac OS Style
 * Based on the Steve Jobs Memorial Design
 */

:root {
    --display-font: 'pixChicago', 'Chicago', 'Charcoal', monospace;
    --body-font: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-size: 1em;
    color: #000;
    background: #c0c0c0;
    background-image: repeating-linear-gradient(
        45deg,
        #c0c0c0 0px,
        #c0c0c0 2px,
        #d0d0d0 2px,
        #d0d0d0 4px
    );
    background-attachment: fixed;
    font-family: var(--body-font);
    line-height: 1.5;
    letter-spacing: 0.35px;
    -webkit-font-smoothing: none;
    font-smooth: never;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding-top: 50px;
}

* {
    outline: 0 !important;
    -webkit-font-smoothing: none;
    font-smooth: never;
}

.selectable {
    -webkit-touch-callout: text;
    -webkit-user-select: text !important;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* =====================================================
   TEXT SELECTION
   ===================================================== */

::-moz-selection {
    background: #000;
    color: #FFF;
}

::selection {
    background: #000;
    color: #FFF;
}

/* =====================================================
   SCROLLBARS
   ===================================================== */

::-webkit-scrollbar {
    width: 17px;
    background: #acacac;
}

::-webkit-scrollbar-track:vertical {
    border-left: solid 1px #000;
    border-right: solid 1px #000;
}

::-webkit-scrollbar-track:horizontal {
    border-top: solid 1px #000;
    border-bottom: solid 1px #000;
}

::-webkit-scrollbar-thumb {
    border: solid 1px #000;
    background: #FFF;
}

::-webkit-scrollbar-thumb:horizontal {
    border-right: solid 1px #000;
}

::-webkit-scrollbar-button {
    border: solid 1px #000;
}

::-webkit-scrollbar-corner {
    border: solid 1px #000;
    background: #FFF;
}

/* =====================================================
   TYPOGRAPHY & LINKS
   ===================================================== */

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: #000;
    text-decoration: none;
}

/* =====================================================
   LAYOUT CONTAINER
   ===================================================== */

.container,
.content {
    width: 940px;
    max-width: 100%;
    margin: auto;
    display: block;
    position: relative;
}

/* =====================================================
   SITE HEADER / NAVIGATION
   ===================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: solid 1px #000;
    background: #FFF;
    z-index: 9999;
}

.site-header .content {
    width: 940px;
    margin: auto;
    display: block;
    position: relative;
    padding-left: 19px;
    box-sizing: border-box;
}

.apple-logo {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
    line-height: 27px;
    padding: 0 10px;
    text-decoration: none;
}

.nav-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block;
}

.nav-menu li {
    float: left;
    padding: 6px 12px 5px 12px;
    font-size: 16px;
    font-weight: bold;
}

.nav-menu li:hover {
    background: #000;
    color: #FFF;
}

.nav-menu li:hover a {
    color: #FFF;
}

.nav-menu a {
    color: #000;
    text-decoration: none;
}

.social-share {
    float: right;
}

.social-share a.social {
    display: inline-block;
    font-size: 14px;
    padding: 8px 12px;
    margin-left: 3px;
    color: #FFF;
    text-decoration: none;
    border: 1px solid #000;
    background: #000;
}

.social-share a.social:hover {
    background: #000;
    color: #FFF;
}

.social-share a.facebook {
    /* Facebook styling */
}

.social-share a.twitter {
    /* Twitter styling */
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-block;
    font-size: 16px;
    line-height: 24px;
    font-family: var(--display-font);
    color: #000;
    background: #FFF;
    min-height: 24px;
    padding: 4px 16px;
    border: solid 1px #000;
    border-radius: 3px;
    cursor: pointer;
}

.btn:active {
    background: #000;
    color: #FFF;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* =====================================================
   HERO / HOME SECTION
   ===================================================== */

.home,
.hero-section {
    min-height: 683px;
    height: 683px;
    z-index: 10;
    position: relative;
    background: #EDEDED;
    overflow: visible;
}

.home .content,
.hero-content {
    height: 683px;
    width: 940px;
    margin: auto;
    position: relative;
    background: url('../images/owbi1_hero_bw.png') no-repeat bottom left;
    background-size: auto 683px;
}

.home-copy,
.hero-home-copy {
    display: block;
    margin-bottom: 20px;
    max-width: 100%;
}

.hero-image-wrapper {
    display: none;
}

/* =====================================================
   NOTEPAD STYLING
   ===================================================== */

.notepad,
.hero-info-box {
    position: relative;
    z-index: 10;
    background: #FFF;
    border: solid 1px #000;
    padding-bottom: 4px;
    width: 320px;
    display: inline-block;
    text-align: left;
}

.home .notepad,
.hero-info {
    position: absolute;
    top: 20px;
    right: 0;
    text-align: right;
}

.notepad:before,
.notepad:after,
.hero-info-box:before,
.hero-info-box:after {
    content: '';
    width: 100%;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 0;
    border-top: solid 1px #000;
}

.notepad:after,
.hero-info-box:after {
    bottom: 0px;
}

.notepad:before,
.hero-info-box:before {
    bottom: 2px;
}

.notepad h3,
.hero-info-box-title {
    margin: 0;
    font-weight: bold;
    font-size: 16px;
    line-height: 20px;
    height: auto;
    text-align: center;
    border-bottom: solid 1px #000;
    position: relative;
    background: #FFF;
    font-family: var(--display-font);
}

.home .notepad h3,
.hero-info-box-title {
    background: #FFF;
    height: auto;
}

.notepad span.close,
.hero-info-box-title span {
    display: block;
    width: 9px;
    height: 9px;
    position: absolute;
    top: 3px;
    left: 3px;
    background: #FFF;
    border: solid 1px #000;
    z-index: 2;
}

.notepad span.close:active,
.hero-info-box-title span:active {
    background: #FFF;
}

.notepad p,
.hero-tagline {
    margin: 0;
    padding: 20px 20px 0 20px;
    font-weight: normal;
    font-size: 15px;
    line-height: 1.6;
    font-family: var(--body-font);
    letter-spacing: 0.15px;
}

.notepad p:last-child,
.hero-tagline:last-child {
    padding-bottom: 20px;
}

/* =====================================================
   WINDOWS SECTION
   ===================================================== */

.windows,
main {
    position: relative;
    padding: 80px 0 250px 0;
}

.window {
    background: #FFF;
    border: solid 1px #000;
    box-shadow: 1px 1px 0 0 #000;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    max-width: 100%;
    box-sizing: border-box;
}

.window h2,
.window-titlebar {
    margin: 0;
    background: repeating-linear-gradient(
        0deg,
        #FFF 0px,
        #FFF 1px,
        #000 1px,
        #000 2px
    );
    font-size: 8px;
    line-height: 16px;
    height: 17px;
    overflow: hidden;
    text-align: center;
    font-weight: normal;
    border-bottom: solid 1px #000;
    position: relative;
    z-index: 1;
}

.window h2 .window-close,
.window-close {
    position: absolute;
    width: 9px;
    height: 9px;
    padding: 0;
    top: 3px;
    left: 8px;
    border: solid 1px #000;
    background: #FFF;
    display: block;
    z-index: 1;
}

.window h2 .window-close:active,
.window-close:active {
    background: #FFF;
}

.window h2:after,
.window-titlebar:after {
    position: absolute;
    content: '';
    width: 11px;
    height: 11px;
    top: 2px;
    left: 7px;
    border: solid 1px #FFF;
}

.window h2 span,
.window-title {
    display: inline-block;
    padding: 0 5px;
    background: #FFF;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    font-family: var(--display-font);
}

.window h2 span:before,
.window-title:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    height: 100%;
    width: 1px;
    border-left: solid 1px #FFF;
}

.window h2 span:after,
.window-title:after {
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    height: 100%;
    width: 1px;
    border-right: solid 1px #FFF;
}

/* Small windows solid gray titlebar */
.window-small .window-titlebar,
.window-small h2 {
    background: #d0d0d0;
    border-bottom: solid 1px #000;
}

.window-small .window-title,
.window-small h2 span {
    background: #d0d0d0;
    color: #000;
}

/* Information bar */
.window .information,
.information {
    position: relative;
    padding-bottom: 2px;
    border-bottom: solid 1px #000;
    padding: 6px 0;
    font-size: 11px;
    height: 14px;
    line-height: 12px;
    text-align: center;
    background: #FFF;
    z-index: 1;
}

.window .information .folder-items,
.information .folder-items {
    float: left;
    padding-left: 5px;
    display: block;
    width: 100px;
    text-align: left;
}

.window .information .disk-available,
.information .disk-available {
    float: right;
    padding-right: 5px;
    display: block;
    width: 100px;
    text-align: right;
}

.window .information:before,
.information:before {
    content: '';
    position: absolute;
    border-top: solid 1px #000;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
}

/* Window body */
.window-body {
    padding: 16px;
    background: #fff;
    overflow-x: hidden;
    overflow-y: visible;
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
    box-sizing: border-box;
}

.window-body p,
.window-body div,
.window-body span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* =====================================================
   FILES / ICONS GRID
   ===================================================== */

ul.files,
.passions-grid {
    display: block;
    padding: 0 20px;
    list-style: none;
    margin: 0;
}

ul.files:first-of-type,
.passions-section ul.files:first-of-type {
    padding-top: 35px;
}

ul.files:last-child,
.passions-section ul.files:last-child {
    padding-bottom: 40px;
}

ul.files li,
.passion-card {
    float: left;
    margin: 0 12px 25px 12px;
    min-width: 90px;
    max-width: 120px;
    text-align: center;
}

ul.files li img,
.passion-icon img {
    display: block;
    margin: auto;
    width: auto;
    height: 90px;
}

ul.files li.selected img.on {
    display: block;
}

ul.files li.selected img.off,
ul.files li img.on {
    display: none;
}

ul.files li a,
.passion-heading {
    color: #000;
    font-size: 11px;
    padding: 2px;
    display: inline;
    font-family: var(--body-font);
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: bold;
}

ul.files li.selected a,
.passion-card.selected .passion-heading {
    color: #FFF;
    background: #000;
}

/* =====================================================
   PASSIONS SECTION SPECIFIC
   ===================================================== */

.passions-section {
    background: transparent;
}

.passions-section .window-body {
    padding: 0;
}

/* =====================================================
   TIMELINE SECTION
   ===================================================== */

.timeline-section {
    background: transparent;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 16px auto 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
}

.timeline-content {
    background: #fff;
    border: 1px solid #000;
    box-shadow: 1px 1px 0 0 #000;
    padding: 16px;
    width: 100%;
}

.timeline-year {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    background: #FFF;
    padding: 3px 8px;
    border: 1px solid #000;
    margin-bottom: 8px;
    font-family: var(--body-font);
}

.timeline-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #000;
    font-family: var(--body-font);
}

.timeline-description {
    font-size: 14px;
    color: #000;
    line-height: 1.6;
    font-family: var(--body-font);
}

.timeline-image {
    margin-top: 8px;
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border: 1px solid #000;
}

/* =====================================================
   PLAYLIST SECTION
   ===================================================== */

.playlist-section {
    background: #EDEDED;
    padding: 32px 0;
}

.window-playlist {
    max-width: 700px;
    margin: 0 auto;
}

.window-playlist .window-body {
    padding: 24px;
}

.playlist-intro {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.playlist-embed {
    display: flex;
    justify-content: center;
}

.playlist-embed iframe {
    border-radius: 10px;
}

/* =====================================================
   GALLERY SECTION
   ===================================================== */

.gallery-section {
    background: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: #fff;
    border: 2px solid #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =====================================================
   MEMORIES SECTION
   ===================================================== */

.memories-section {
    background: transparent;
}

.memories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.memories-submit {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #ccc;
    text-align: center;
}

.memories-submit-text {
    margin-bottom: 12px;
    font-style: italic;
    color: #666;
}

.btn-submit-memory {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: 2px solid #000;
    font-weight: 600;
}

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

.memory-card {
    background: #fff;
    padding: 16px;
    border: 2px solid #000;
    display: flex;
    flex-direction: column;
}

.memory-card-full {
    grid-column: 1 / -1;
}

.memory-card-full .memory-text {
    margin-bottom: 16px;
}

.memory-card-full .memory-text:last-of-type {
    margin-bottom: 8px;
}

.memory-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #000;
}

/* =====================================================
   ODE SECTION
   ===================================================== */

.ode-section {
    background: #EDEDED;
    padding: 32px 0;
}

.window-ode {
    max-width: 800px;
    margin: 0 auto;
}

.window-ode .window-body {
    padding: 24px;
}

.ode-intro {
    font-style: italic;
    color: #666;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

.ode-content-wrapper {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-out;
}

.ode-content-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.ode-expandable.expanded .ode-content-wrapper {
    max-height: 5000px;
}

.ode-expandable.expanded .ode-content-wrapper::after {
    display: none;
}

.ode-content {
    line-height: 1.8;
}

.ode-content p {
    margin-bottom: 20px;
}

.ode-legacy {
    margin-top: 32px;
    margin-bottom: 12px;
}

.ode-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.ode-list li {
    padding: 8px 0 8px 24px;
    position: relative;
}

.ode-list li::before {
    content: '\2605';
    position: absolute;
    left: 0;
    color: #000;
}

.ode-quote {
    font-size: 20px;
    font-style: italic;
    text-align: center;
    padding: 24px;
    margin: 32px 0;
    background: #f5f5f5;
    border-left: 4px solid #000;
}

.ode-quote-attribution {
    display: block;
    font-size: 14px;
    margin-top: 12px;
    font-style: normal;
    color: #666;
}

.ode-closing {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    margin-top: 32px;
}

.ode-read-more {
    display: block;
    margin: 16px auto;
    padding: 8px 24px;
    cursor: pointer;
}

.ode-expandable.expanded .ode-read-more {
    margin-top: 24px;
}

.ode-attribution {
    text-align: right;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #ccc;
    font-style: italic;
}

/* Expandable memory card */
.memory-expandable .memory-content {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-out;
}

.memory-expandable .memory-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.memory-expandable.expanded .memory-content {
    max-height: 2000px;
}

.memory-expandable.expanded .memory-content::after {
    display: none;
}

.memory-read-more {
    display: block;
    margin: 12px auto;
    padding: 8px 24px;
    cursor: pointer;
}

.memory-expandable.expanded .memory-read-more {
    margin-top: 16px;
}

.memory-photo {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 12px;
    border: 1px solid #000;
}

.memory-text {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.memory-attribution {
    font-size: 12px;
    color: #000;
    text-align: right;
    margin-top: auto;
}

#load-more-memories {
    display: block;
    margin: 30px auto 0;
    min-width: 200px;
}

/* =====================================================
   DONATION SECTION
   ===================================================== */

.donate-section {
    background: transparent;
    padding: 32px 0;
}

.donate-content {
    text-align: center;
    padding: 24px;
}

.donate-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 20px;
}

.donate-button-wrapper {
    margin: 24px 0 16px;
}

.btn-donate {
    display: inline-block;
    font-size: 16px;
    line-height: 32px;
    font-family: var(--display-font);
    color: #000;
    background: #FFF;
    min-height: 32px;
    padding: 4px 28px;
    border: solid 2px #000;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: none;
    box-shadow: 2px 2px 0 #000;
}

.btn-donate:hover {
    background: #f0f0f0;
}

.btn-donate:active {
    background: #000;
    color: #FFF;
    box-shadow: 1px 1px 0 #000;
    transform: translate(1px, 1px);
}

.donate-note {
    font-size: 13px;
    color: #666;
    margin-top: 12px;
    font-style: italic;
}

/* =====================================================
   SOCIAL SHARING SECTION
   ===================================================== */

.social-section {
    background: transparent;
}

.social-subtitle {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: var(--display-font);
    color: #000;
    background: #fff;
    border: 2px solid #000;
    cursor: pointer;
    transition: none;
}

.social-btn:hover {
    background: #f0f0f0;
}

.social-btn:active {
    background: #000;
    color: #fff;
}

.social-btn:active svg {
    fill: #fff;
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* =====================================================
   SHARE MEMORY SECTION / FORMS
   ===================================================== */

.share-section {
    background: transparent;
}

.share-section .window {
    max-width: 100%;
    overflow: hidden;
}

.share-section .window-body {
    padding: 20px;
    box-sizing: border-box;
}

.memory-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: #000;
    margin-bottom: 6px;
    word-wrap: break-word;
    max-width: 100%;
}

.form-input,
.form-textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    font-size: 16px;
    font-family: var(--body-font);
    color: #000;
    background: #fff;
    border: 2px inset #d4d4d4;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: 2px solid #000;
    outline-offset: -2px;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
}

.share-subtitle {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.form-counter {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    text-align: right;
    word-wrap: break-word;
    max-width: 100%;
}

.file-input-wrapper,
.file-input-label {
    max-width: 100%;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* =====================================================
   MOBILE ADJUSTMENTS
   ===================================================== */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body {
        padding-top: 0;
    }

    /* Hide navigation header on mobile */
    .site-header {
        display: none;
    }

    /* Hero section - mobile first approach */
    .hero-section {
        height: auto;
        min-height: auto;
        overflow: hidden;
        background: #EDEDED;
        width: 100vw;
        margin: 0;
        padding: 0;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .hero-content {
        width: 100%;
        height: auto;
        min-height: auto;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
        /* Background image displays at top, full width */
        background: url('../images/owbi1_hero_bw.png') no-repeat top center;
        background-size: cover;
        position: relative;
    }

    /* Create space for background image at top */
    .hero-content::before {
        content: '';
        display: block;
        width: 100%;
        padding-top: 100%; /* 1:1 aspect ratio, adjust based on your image */
    }

    .hero-info {
        position: static;
        width: 100%;
        padding: 0;
        text-align: center;
        background: #EDEDED;
    }

    /* Heading image - appears after background photo */
    .home-copy {
        display: block;
        width: 80%;
        max-width: 280px;
        height: auto;
        margin: 24px auto 20px;
    }

    /* Notepad - appears last */
    .hero-info-box {
        position: static;
        width: calc(100% - 32px);
        max-width: 100%;
        margin: 0 auto 24px;
        box-sizing: border-box;
        text-align: left;
    }

    .hero-info-box-title {
        font-size: 16px;
        line-height: 22px;
    }

    .hero-tagline {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Container and Section Spacing */
    .section {
        padding: 0;
        margin: 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    /* Window Styling - Fit Mobile Viewport */
    .window {
        width: 100%;
        max-width: 100%;
        margin: 0 0 32px 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .window h2,
    .window-titlebar {
        width: 100%;
        box-sizing: border-box;
    }

    .information {
        width: 100%;
        box-sizing: border-box;
        padding: 5px 8px;
    }

    .information .folder-items,
    .information .disk-available {
        width: auto;
        max-width: 50%;
    }

    .window-body {
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .window-grid {
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .window-grid-item {
        width: 100%;
        box-sizing: border-box;
    }

    .share-section .window {
        margin: 0 0 32px 0;
    }

    .share-section .window-body {
        padding: 16px;
    }

    /* File Icon Lists */
    ul.files {
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    ul.files li {
        box-sizing: border-box;
    }

    /* Gallery and Memories Grids */
    .gallery-grid,
    .memories-grid {
        width: 100%;
        box-sizing: border-box;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Form Elements */
    .form-group {
        margin-bottom: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-label {
        font-size: 15px;
    }

    .form-input,
    .form-textarea {
        width: 100%;
        max-width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 8px 10px;
        box-sizing: border-box;
    }

    .form-textarea {
        min-height: 140px;
    }

    .share-subtitle,
    .donate-description {
        font-size: 15px;
        line-height: 1.6;
        width: 100%;
        box-sizing: border-box;
    }

    /* Buttons */
    .btn,
    .btn-donate {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Footer - ensure it doesn't overflow */
    .footer,
    footer {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
    }
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer,
footer {
    background: #EDEDED;
    /*position: fixed;*/
    bottom: 0;
    left: 0;
    z-index: 9;
    width: 100%;
    padding: 30px 0;
    font-family: var(--body-font);
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    font-size: 13px;
    margin: 0;
    position: relative;
    padding-left: 0;
    letter-spacing: 0;
}

footer h6 {
    font-weight: normal;
    font-size: 11px;
    margin: 0;
    letter-spacing: 0;
}

.footer-closing {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 14px;
    color: #000;
    margin-bottom: 4px;
}

.footer-badger {
    width: 40px;
    height: auto;
    opacity: 0.6;
    margin: 12px 0;
    display: block;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

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

.hidden {
    display: none !important;
}

.sr-only,
.visuallyhidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =====================================================
   GRID LAYOUTS
   ===================================================== */

.window-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.window-grid-item {
    min-height: 200px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 767px) {
    body {
        font-size: 16px;
        padding-top: 0;
    }

    /* Hide navigation on mobile - consolidated rule */
    .site-header {
        display: none;
    }

    .social-share {
        float: none;
        text-align: center;
        padding: 5px 0;
    }

    .social-share a.social {
        font-size: 6px;
        padding: 4px 8px;
    }

    .container,
    .content {
        width: 100%;
        padding: 0 12px;
    }

    .window-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    ul.files li,
    .passion-card {
        width: 80px;
        min-width: 80px;
        margin: 0 6px 20px 6px;
    }

    ul.files li img,
    .passion-icon img {
        height: 60px;
    }

    ul.files li a,
    .passion-heading {
        font-size: 6.5pt;
    }
}

@media (min-width: 769px) {
    /* Restore desktop hero layout */
    .hero-section {
        min-height: 683px;
        height: 683px;
        overflow: hidden;
    }

    .hero-content {
        height: 683px;
        width: 940px;
        margin: auto;
        background: url('../images/owbi1_hero_bw.png') no-repeat bottom left;
        background-size: auto 683px;
    }

    .hero-content::before {
        display: none;
    }

    .hero-info {
        position: absolute;
        bottom: 150px;
        right: 0;
        text-align: right;
        width: auto;
        background: transparent;
    }

    .home-copy {
        display: block;
        margin-bottom: 20px;
        max-width: 100%;
        width: auto;
    }

    .hero-info-box {
        width: 320px;
        display: inline-block;
        text-align: left;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .memories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .memories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
    .share-section,
    .social-section,
    .skip-link {
        display: none;
    }

    body {
        background: #fff;
    }

    .section {
        page-break-inside: avoid;
    }
}
