
/* Photos Page - Desktop CSS */

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

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: white;
    overflow-x: hidden;
}

/* Photos Page Container */
.photos-page-container {
    background: #000;
    color: white;
    padding: 0;
    font-family: 'Arial', sans-serif;
    
    /* Fade in animation */
    animation: fadeInPage 0.6s ease-out forwards;
}

@keyframes fadeInPage {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.photos-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;
}

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

/* Back Button - Desktop (Cylindrical) */
.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.3);
    transform: translateY(-1px);
}

/* Main Content */
.photos-main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.photo-tribute {
    max-width: 980px;
    margin: 38px auto 0;
    padding: 0 22px 26px;
    text-align: center;
    position: relative;
}

.photo-tribute p {
    margin: 0;
    color: rgba(246, 237, 217, 0.88);
    font-family: Georgia, serif;
    font-size: clamp(1.05rem, 1.55vw, 1.34rem);
    line-height: 1.55;
    text-wrap: balance;
    text-shadow: 0 14px 36px rgba(0, 0, 0, 0.64), 0 0 24px rgba(226, 196, 136, 0.18);
}

.photo-tribute::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(420px, 54vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(229, 205, 156, 0.72), transparent);
    box-shadow: 0 0 18px rgba(226, 196, 136, 0.28);
}

/* Photo Gallery Columns */
.photo-gallery-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    padding: 40px 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Individual Photo Column */
.photo-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Column Order - Drama, Action, Commercial */
.drama-column {
    order: 1;
}

.action-column {
    order: 2;
}

.commercial-column {
    order: 3;
}

/* Column Titles */
.column-title {
    font-family: 'Georgia', serif;
    font-size: 1.8em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6), 
        0 0 40px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Individual Photo Item */
.photo-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.photo-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Gallery Thumbnail Images */
.gallery-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item:hover .gallery-thumbnail {
    transform: scale(1.05);
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}



/* Close Button */
.close-button {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.close-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Responsive Design for Smaller Desktops */
@media (max-width: 1200px) {
    .photos-page-title {
        font-size: 2.4em;
    }
    
    .photo-gallery-columns {
        gap: 30px;
        max-width: 1200px;
    }
    
    .column-title {
        font-size: 1.6em;
    }
    
    .gallery-thumbnail {
        height: 180px;
    }
}

@media (max-width: 900px) {
    .photos-main-content {
        padding: 20px 15px;
    }
    
    .photo-gallery-columns {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
    }
    
    .column-title {
        font-size: 1.4em;
        letter-spacing: 1px;
    }
    
    .gallery-thumbnail {
        height: 160px;
    }
    
    .photos-page-title {
        font-size: 2.2em;
    }
}

@media (max-width: 600px) {
    .photos-page-header {
        padding: 12px 20px;
    }
    
    .photos-page-title {
        font-size: 1.8em;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
    
    .gallery-thumbnail {
        height: 140px;
    }
    

    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-image {
        max-height: 95vh;
    }
    

    
    .close-button {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: -12px;
        right: -12px;
    }
}

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

/* ========== 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;
}

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

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

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

@media (min-width: 761px) {
    body {
        overflow-y: auto;
        scrollbar-gutter: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

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;
    }
}


.memorial-headshot-gallery {
    grid-template-columns: repeat(2, minmax(220px, 420px)) !important;
    justify-content: center !important;
    align-items: start !important;
    gap: clamp(18px, 4vw, 44px) !important;
    max-width: 960px !important;
}

.memorial-headshot-gallery .photo-item {
    cursor: pointer !important;
}

.memorial-headshot-gallery .gallery-thumbnail {
    height: clamp(340px, 58vh, 560px) !important;
    object-fit: cover !important;
}

.memorial-headshot-gallery .photo-item:first-child .gallery-thumbnail {
    object-position: center top !important;
}

@media (max-width: 700px) {
    .memorial-headshot-gallery {
        grid-template-columns: 1fr !important;
        max-width: 420px !important;
    }

    .memorial-headshot-gallery .gallery-thumbnail {
        height: 360px !important;
    }
}

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

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

.memorial-photo-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(240px, 1fr)) !important;
    grid-auto-rows: 4px !important;
    max-width: 1180px !important;
    gap: 18px clamp(18px, 2.4vw, 30px) !important;
    align-items: start !important;
}

.memorial-photo-gallery .photo-item {
    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 6px !important;
    background: rgba(18, 15, 12, 0.72) !important;
    overflow: hidden !important;
}

.memorial-photo-gallery .gallery-thumbnail {
    width: 100% !important;
    height: 285px !important;
    object-fit: cover !important;
    background: rgba(0, 0, 0, 0.28) !important;
}

.memorial-photo-gallery .wide-card .gallery-thumbnail {
    height: 230px !important;
}

.memorial-photo-gallery .portrait-card .gallery-thumbnail {
    height: 380px !important;
}

.memorial-photo-gallery .photo-item:first-child .gallery-thumbnail {
    object-position: center top !important;
}

.memorial-photo-gallery .gallery-thumbnail.top-focus {
    object-position: center top !important;
}

.memorial-photo-gallery figcaption {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 16px 16px 18px !important;
    border-top: 1px solid rgba(221, 202, 170, 0.16) !important;
    color: rgba(244, 232, 207, 0.78) !important;
    font-family: Georgia, serif !important;
    line-height: 1.45 !important;
}

.memorial-photo-gallery figcaption strong {
    color: #f7ead1 !important;
    font-family: Arial, sans-serif !important;
    font-size: 0.86rem !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
}

.memorial-photo-gallery figcaption span {
    font-size: 0.98rem !important;
}

.memorial-photo-gallery figcaption a {
    color: #e2c98f !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(226, 201, 143, 0.38) !important;
}

.memorial-photo-gallery figcaption a:hover {
    color: #fff2cf !important;
}

@media (max-width: 1050px) {
    .memorial-photo-gallery {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
        gap: clamp(18px, 2.4vw, 30px) !important;
        max-width: 820px !important;
    }
}

@media (max-width: 700px) {
    .memorial-photo-gallery {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: clamp(18px, 2.4vw, 30px) !important;
        max-width: 440px !important;
    }

    .memorial-photo-gallery .gallery-thumbnail,
    .memorial-photo-gallery .wide-card .gallery-thumbnail,
    .memorial-photo-gallery .portrait-card .gallery-thumbnail {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
    }

    .memorial-photo-gallery .portrait-card .gallery-thumbnail {
        aspect-ratio: 3 / 4 !important;
    }

    .memorial-photo-gallery figcaption {
        min-height: 0 !important;
    }
}

/* Final real-phone header sizing, including when desktop pages are opened on mobile Safari. */
@media (max-width: 760px) {
    .photos-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;
    }

    .photos-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.35em !important;
        line-height: 1.05 !important;
        letter-spacing: 1.6px !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}
