/* Work & Credits - Desktop Version CSS */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: white;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.6;
}

/* Main work page container */
.work-page-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Hide default scrollbars globally */
html {
    overflow: hidden;
}

/* Header Section */
.work-page-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    height: 70px;
    box-sizing: border-box;
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.work-page-title {
    font-family: 'Georgia', serif;
    font-size: 2.8em;
    font-weight: bold;
    color: white;
    margin: 0;
    text-align: center;
    flex-grow: 1;
    letter-spacing: 4px;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8), 
        0 0 60px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(255, 255, 255, 0.2);
    line-height: 1.05;
    white-space: nowrap;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: subtleShine 4s ease-in-out infinite alternate;
}

/* Invisible spacer to balance the layout */
.header-spacer {
    width: 140px;
    flex-shrink: 0;
}

@keyframes subtleShine {
    0% {
        filter: brightness(1) contrast(1);
    }
    100% {
        filter: brightness(1.1) contrast(1.05);
    }
}

/* Main content container */
.work-main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.work-content-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Resume section - left side */
.resume-section {
    flex: 0 0 62%;
    padding: 30px;
    overflow-y: auto;
    border-right: none;
    display: flex;
    justify-content: center;
}

.resume-section::-webkit-scrollbar {
    width: 8px;
}

.resume-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    margin: 10px 0;
}

.resume-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 2px 0;
}

.resume-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.article-content {
    max-width: 600px;
    text-align: center;
    width: 100%;
}

/* Actor header section */
.actor-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.actor-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: #fff;
}

.contact-info p, .physical-stats p {
    margin: 5px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.physical-stats {
    margin-top: 10px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* Resume sections */
.resume-section-block {
    margin-bottom: 35px;
}

.resume-section-block h3 {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    position: relative;
}

.credit-item {
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
}

.credit-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Credit details styling */
.credit-details {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    display: block;
    margin-top: 3px;
    line-height: 1.5;
}

.credit-item strong {
    color: #fff;
    font-weight: 700;
    font-family: 'Georgia', serif;
}

.training-skills p, .skills-list p {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 12px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
}

/* Photo Gallery section - right side */
.photo-gallery-section {
    flex: 0 0 38%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 15px 15px 15px 0;
}

/* Cycling photos container - 3 rows */
.cycling-photos {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    justify-content: center;
}

/* Individual photo slot */
.photo-slot {
    position: relative;
    width: 100%;
    height: 200px;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.2);
}

/* Gallery photo styling */
.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}



/* All photo slots same size - stacked evenly */
.photo-slot-1,
.photo-slot-2,
.photo-slot-3 {
    height: 200px;
}

.poster-marquee {
    position: relative;
    width: min(410px, 100%);
    height: calc(100vh - 118px);
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding: 14px 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.poster-marquee::before,
.poster-marquee::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 82px;
    pointer-events: none;
    z-index: 2;
}

.poster-marquee::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(7, 6, 5, 0.92), rgba(7, 6, 5, 0));
}

.poster-marquee::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(7, 6, 5, 0.92), rgba(7, 6, 5, 0));
}

.poster-marquee-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    --poster-marquee-distance: 50%;
    animation: posterMarqueeRoll 34s linear infinite;
    will-change: transform;
}

.poster-card {
    flex: 0 0 auto;
    width: min(300px, 86%);
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(15, 13, 11, 0.72);
    border: 1px solid rgba(221, 202, 170, 0.22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.44), 0 0 22px rgba(212, 178, 112, 0.08);
}

.poster-card img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.38);
}

.poster-card figcaption {
    padding: 10px 12px 12px;
    font-family: Georgia, serif;
    font-size: 0.86rem;
    line-height: 1.22;
    color: rgba(246, 237, 217, 0.92);
    text-align: center;
    letter-spacing: 0.01em;
}

.poster-card figcaption span {
    display: block;
    margin-top: 2px;
    color: rgba(226, 207, 169, 0.68);
    font-size: 0.76rem;
}

@keyframes posterMarqueeRoll {
    0% {
        transform: translateY(0);
        opacity: 0.42;
    }
    3% {
        opacity: 1;
    }
    97% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(var(--poster-marquee-distance) * -1));
        opacity: 0.42;
    }
}

@media (prefers-reduced-motion: reduce) {
    .poster-marquee-track {
        animation: none;
    }
}

/* Responsive adjustments for smaller desktops */
@media (max-width: 1200px) {
    .work-page-title {
        font-family: 'Georgia', serif;
        font-size: 2.4em;
    }
    
    .resume-section {
        padding: 20px;
    }
    
    .photo-gallery-section {
        padding: 20px 15px 20px 0;
    }
    
    .cycling-photos {
        gap: 6px;
        max-width: 320px;
    }
    
    .photo-slot-1,
    .photo-slot-2,
    .photo-slot-3 {
        height: 165px;
    }
}

@media (max-width: 1000px) {
    .work-content-container {
        flex-direction: column;
    }
    
    .resume-section, .photo-gallery-section {
        flex: none;
    }
    
    .resume-section {
        height: 60vh;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .photo-gallery-section {
        height: 40vh;
        padding: 10px 20px;
        justify-content: center;
    }
    
    .cycling-photos {
        gap: 8px;
        max-width: 300px;
    }
    
    .photo-slot-1,
    .photo-slot-2,
    .photo-slot-3 {
        height: 140px;
    }
}

/* Fade transition animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-page-container {
    animation: fadeIn 0.6s ease-out;
}

/* ========== SAMUEL MEMORIAL THEME OVERRIDES ========== */
html {
    min-height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(122, 101, 70, 0.27) 0%, rgba(28, 23, 18, 0.8) 42%, #050505 100%),
        linear-gradient(180deg, #0d0b09 0%, #000 100%) !important;
}

body {
    background:
        radial-gradient(ellipse at center, rgba(122, 101, 70, 0.27) 0%, rgba(28, 23, 18, 0.8) 42%, #050505 100%),
        linear-gradient(180deg, #0d0b09 0%, #000 100%) !important;
    color: #f5ead6 !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.048) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.036) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
}

.about-page-container,
.work-page-container,
.photos-page-container,
.reel-page-container {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.about-page-header,
.work-page-header,
.photos-page-header,
.reel-page-header {
    background: rgba(8, 7, 6, 0.82) !important;
    border-bottom: 1px solid rgba(221, 202, 170, 0.22) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38) !important;
    backdrop-filter: blur(14px) !important;
}

.about-page-title,
.work-page-title,
.photos-page-title,
.reel-page-title,
.column-title,
.resume-section-block h3 {
    font-family: Georgia, serif !important;
    background:
        linear-gradient(180deg, #fffdf6 0%, #d9ccb2 28%, #f4e4bd 44%, #9d8153 72%, #5b4c34 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.82), 0 0 24px rgba(226, 196, 136, 0.17) !important;
}

.back-button {
    border-radius: 4px !important;
    background: rgba(19, 17, 15, 0.76) !important;
    border: 1px solid rgba(221, 202, 170, 0.28) !important;
    color: #f4ead7 !important;
    font-family: Georgia, serif !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

.back-button:hover {
    background: rgba(55, 43, 28, 0.9) !important;
    border-color: rgba(229, 205, 156, 0.56) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 42px rgba(0,0,0,0.45), 0 0 24px rgba(221, 190, 126, 0.16) !important;
}

.about-main-content,
.photos-main-content,
.reel-main-content,
.resume-section {
    color: #f3e9d5 !important;
}

.actor-measurements,
.about-article,
.resume-section-block,
.credit-item,
.photo-item,
.video-container,
.video-wrapper {
    background: rgba(15, 13, 11, 0.56) !important;
    border: 1px solid rgba(221, 202, 170, 0.18) !important;
    border-radius: 6px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.035) !important;
}

.about-article {
    padding: clamp(22px, 3vw, 36px) !important;
}

.article-content p,
.credit-item p,
.skills-list p,
.training-skills p,
.video-placeholder,
.physical-stats,
.age-stats {
    color: rgba(246, 237, 217, 0.88) !important;
}

.article-content em,
.credit-item strong {
    color: #fff4d9 !important;
}

.credit-details {
    color: rgba(226, 207, 169, 0.78) !important;
}

.featured-headshot-float,
.gallery-thumbnail,
.gallery-photo,
.modal-image {
    border-radius: 6px !important;
    border: 1px solid rgba(221, 202, 170, 0.2) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42) !important;
}

.photo-item:hover {
    border-color: rgba(229, 205, 156, 0.52) !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5), 0 0 24px rgba(221, 190, 126, 0.14) !important;
}

.modal {
    background: rgba(5, 4, 3, 0.94) !important;
}

body::-webkit-scrollbar,
.resume-section::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track,
.resume-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04) !important;
}

body::-webkit-scrollbar-thumb,
.resume-section::-webkit-scrollbar-thumb {
    background: rgba(221, 202, 170, 0.28) !important;
    border-radius: 4px !important;
}

img.image-load-failed {
    display: none !important;
}


/* ========== MEMORIAL HEADER RESPONSIVE POLISH ========== */
@media (max-width: 760px) {
    .about-page-header,
    .work-page-header,
    .photos-page-header,
    .reel-page-header {
        height: auto !important;
        min-height: 92px !important;
        padding: 14px 18px 18px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .about-page-title,
    .work-page-title,
    .photos-page-title,
    .reel-page-title {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        text-align: center !important;
        font-size: clamp(2rem, 10vw, 3.4rem) !important;
        letter-spacing: 0.08em !important;
        white-space: normal !important;
        line-height: 0.98 !important;
    }

    .back-button {
        align-self: flex-start !important;
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
    }
}

@media (min-width: 761px) {
    .about-page-title,
    .work-page-title,
    .photos-page-title,
    .reel-page-title {
        max-width: calc(100vw - 280px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}


/* Samuel credits page uses the right rail for a single poster marquee. */
.photo-gallery-section {
    display: flex !important;
    flex: 0 0 42% !important;
    padding: 16px 42px 16px 8px !important;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(15, 13, 11, 0.34)) !important;
}

.work-content-container {
    justify-content: stretch !important;
}

.resume-section {
    flex: 0 0 58% !important;
    border-right: 1px solid rgba(221, 202, 170, 0.12) !important;
}

.article-content {
    max-width: 760px !important;
}

@keyframes memorialPageEnter {
    0% {
        opacity: 0;
        transform: translateY(36px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.work-page-container {
    animation: memorialPageEnter 640ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

/* Samuel credits navigation polish */
.resume-section-block {
    position: relative !important;
    padding-top: 8px !important;
}

.resume-section-block h3 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 58px !important;
    margin: 0 0 20px !important;
    padding: 12px 18px 13px !important;
    border: 1px solid rgba(226, 201, 143, 0.32) !important;
    border-bottom: 1px solid rgba(255, 241, 210, 0.48) !important;
    border-radius: 6px 6px 0 0 !important;
    background:
        linear-gradient(180deg, rgba(74, 58, 36, 0.5), rgba(16, 13, 10, 0.9)) padding-box,
        linear-gradient(90deg, rgba(226, 201, 143, 0.08), rgba(255, 244, 217, 0.36), rgba(226, 201, 143, 0.08)) border-box !important;
    -webkit-background-clip: padding-box, border-box !important;
    background-clip: padding-box, border-box !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 246, 224, 0.16),
        0 16px 32px rgba(0, 0, 0, 0.26) !important;
    color: #f7ead1 !important;
    -webkit-text-fill-color: #f7ead1 !important;
    text-shadow: 0 0 18px rgba(226, 201, 143, 0.22) !important;
}

.resume-section-block h3::before,
.resume-section-block h3::after {
    content: "" !important;
    flex: 1 1 auto !important;
    height: 1px !important;
    max-width: 150px !important;
    background: linear-gradient(90deg, transparent, rgba(226, 201, 143, 0.42)) !important;
}

.resume-section-block h3::before {
    margin-right: 18px !important;
}

.resume-section-block h3::after {
    margin-left: 18px !important;
    transform: scaleX(-1) !important;
}

/* Final real-phone header sizing, including when desktop pages are opened on mobile Safari. */
@media (max-width: 760px) {
    .work-page-header {
        min-height: 70px !important;
        padding: 15px 20px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }

    .work-page-title {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        max-width: calc(100% - 116px) !important;
        margin: 0 !important;
        font-size: 1.4em !important;
        line-height: 1.05 !important;
        letter-spacing: 1.8px !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}
