/* ============================================================
   August Houston — Portfolio Landing Page
   ============================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('assets/_ASSETS/POINTER/Cursor.svg?v=4') 5 5, auto;
}

/* --- Custom Pointer for Interactive Elements --- */
a,
button,
[role="button"],
input[type="submit"],
label[for],
select,
.footer-nav a,
.info-contact a {
    cursor: url('assets/_ASSETS/POINTER/Pointer.svg?v=4') 8 8, pointer;
}

/* --- White cursors on images ---*/
img {
    cursor: url('assets/_ASSETS/POINTER/Cursor-white.svg?v=3') 5 5, auto;
}

.info-gallery img,
.gallery-img,
a.photo-tile,
a.photo-tile *,
a.design-tile,
a.design-tile * {
    cursor: url('assets/_ASSETS/POINTER/Pointer-white.svg?v=4') 8 8, pointer;
}

.is-dragging,
.is-dragging * {
    cursor: url('assets/_ASSETS/POINTER/Pointer-white.svg?v=4') 8 8, grabbing !important;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #ebebeb;
    color: #3c3c3c;
    font-family: Helvetica, Arial, sans-serif;
    position: relative;
}

/* --- Background Watermark --- */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.78;
    filter: blur(3px);
    opacity: 0;
    animation: fadeScaleIn 2s ease forwards;
    animation-delay: 1.5s;
    max-width: 100vw; /* Prevent horizontal overflow */
    overflow: hidden;
}

.watermark-line {
    font-family: 'Baskerville', 'Libre Baskerville', 'Times New Roman', serif;
    font-size: 9.5vw;
    font-weight: 400;
    color: #3c3c3c;
    opacity: 0.04;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* --- Sigil Stage (diamond arrangement) --- */
.sigil-stage {
    position: relative;
    z-index: 1;
    width: 30vw;
    height: 33vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
}

.sigil-global-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #3c3c3c;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Individual sigil positioning */
.sigil {
    position: absolute;
    opacity: 0;
    animation: fadeIn85 2s ease forwards;
    will-change: opacity, transform;
}

.sigil-center {
    position: absolute;
}

/* Top — Fauns */
.sigil-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6.2vw;
    height: auto;
    animation: fadeIn85 2s ease forwards, floatTopBottom 6s ease-in-out infinite;
    animation-delay: 0s, 3.5s;
}

/* Upper-left — Borromean rings */
.sigil-rings {
    top: 20%;
    left: 19%;
    width: 2.9vw;
    height: auto;
    animation: fadeIn85 2s ease forwards, floatNormal 7s ease-in-out infinite;
    animation-delay: 0.8s, 3.9s;
}

/* Left — Saturn */
.sigil-left {
    top: 48%;
    left: -6%;
    transform: translateY(-50%);
    width: 6.2vw;
    height: auto;
    animation: fadeIn85 2s ease forwards, floatLeftRight 8s ease-in-out infinite;
    animation-delay: 0.4s, 4.3s;
    mix-blend-mode: darken;
}

/* Right — Ouroboros */
.sigil-right {
    top: 46%;
    right: -4%;
    transform: translateY(-50%);
    width: 5.5vw;
    height: auto;
    animation: fadeIn85 2s ease forwards, floatRotateRight 12s ease-in-out infinite;
    animation-delay: 0.6s, 3.7s;
}

/* Bottom — Hand */
.sigil-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4vw;
    height: auto;
    animation: fadeIn85 2s ease forwards, floatTopBottom 7.5s ease-in-out infinite;
    animation-delay: 0.2s, 4.7s;
    mix-blend-mode: multiply;
}

/* Center — enttäuscht + ankh */
.sigil-center {
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sigil-enttauscht {
    width: 8.4vw;
    height: auto;
    opacity: 0;
    will-change: opacity, transform;
    animation: fadeIn85 2s ease forwards, floatNormal 9s ease-in-out infinite;
    animation-delay: 1.0s, 4.0s;
}

.sigil-ankh {
    width: 1.8vw;
    height: auto;
    margin-top: 20px;
    opacity: 0;
    will-change: opacity, transform;
    animation: fadeIn85 2s ease forwards, floatNormal 7.5s ease-in-out infinite;
    animation-delay: 1.0s, 4.5s;
}

/* --- Footer --- */
.footer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
}

.footer-name {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px; /* Matched to nav size */
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #3c3c3c;
    text-decoration: none;
    text-transform: uppercase;
}

body.initial-load .footer-name {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 1.5s;
}

.footer-nav {
    display: flex;
    gap: 36px;
}

body.initial-load .footer-nav {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 1.5s;
}

.footer-nav a {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #3c3c3c;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn85 {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.85;
    }
}

@keyframes fadeScaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes floatNormal {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatTopBottom {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes floatLeftRight {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(calc(-50% - 10px));
    }
}

@keyframes floatRotateRight {

    0%,
    100% {
        transform: translateY(-50%) rotate(0deg);
    }

    50% {
        transform: translateY(calc(-50% - 10px)) rotate(10deg);
    }
}

@keyframes floatCenter {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, calc(-50% - 10px));
    }
}

/* --- Footer active/inactive states --- */
.footer-name.inactive {
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.footer-name.inactive:hover {
    opacity: 1;
}

.footer-nav a.active {
    opacity: 1;
}

/* ============================================================
   Info Page
   ============================================================ */

.info-bio {
    position: sticky;
    top: 0;
    left: 0;
    width: 42vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 32px 20vh;
    flex-shrink: 0;
}

.info-name {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #3c3c3c;
    opacity: 0.3;
    margin-bottom: 40px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.info-text {
    max-width: 340px;
}

.info-text p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.05em;
    color: #3c3c3c;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

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

.info-contact {
    display: flex;
    gap: 32px;
    margin-top: 48px;
}

.info-contact a {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #3c3c3c;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.3;
    transition: color 0.3s ease, opacity 0.2s ease;
}

.info-contact a:hover {
    opacity: 1;
}

.info-gallery {
    display: flex;
    gap: 24px;
    align-items: center;
    height: 100vh;
    width: max-content;
    padding-left: 8vw;
    padding-right: 32px;
}

.info-gallery img {
    height: 60vh;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
}

.info-gallery img:last-child {
    margin-right: 0;
}

/* ============================================================
   Photo & Design Landing Pages — 4-square grid
   ============================================================ */

.photo-grid,
.design-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100vw;
    height: 100vh;
    padding: 0 32px;
    box-sizing: border-box;
}

.photo-tile,
.design-tile {
    width: calc((100vw - 160px) / 4);
    height: auto;
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.photo-tile-placeholder,
.design-tile-placeholder {
    position: absolute;
    inset: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.photo-tile:hover .photo-tile-placeholder,
.design-tile:hover .design-tile-placeholder {
    opacity: 0.85;
    transform: scale(1.02);
}

.photo-tile-title,
.design-tile-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #3c3c3c;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-tile:hover .photo-tile-title,
.design-tile:hover .design-tile-title {
    opacity: 1;
}

/* ============================================================
   Design Project Split View
   ============================================================ */

.split-project-view {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.split-project-view::-webkit-scrollbar {
    display: none;
}

.project-bio {
    position: sticky;
    top: 0;
    left: 0;
    width: 25vw;
    min-width: 400px;
    /* Prevent it from squishing too small and forcing text to scale/wrap drastically on resize */
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20vh 32px 40px;
    flex-shrink: 0;
    overflow-y: auto;
    -ms-overflow-style: none;
    /* Hide scrollbar in IE/Edge */
    scrollbar-width: none;
    /* Hide scrollbar in Firefox */
    box-sizing: border-box;
    background: #ebebeb;
}

.project-title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #3c3c3c;
    margin-bottom: 40px;
}

.project-bio::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar in Chrome/Safari */
}

.project-text {
    width: 340px;
}

.project-text p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.05em;
    color: #3c3c3c;
    margin-bottom: 20px;
}

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

.project-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 48px;
}

.project-role {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #3c3c3c;
    opacity: 0.5;
    text-transform: uppercase;
    margin: 0;
}

.project-details a {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #3c3c3c;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.3;
    transition: color 0.3s ease, opacity 0.2s ease;
}

.project-details a:hover {
    opacity: 1;
}

.design-split-gallery {
    display: flex;
    align-items: center;
    height: 100vh;
    width: max-content;
    padding-left: 8vw;
    /* With 42vw from text column, aligns to exact 50vw center */
    padding-right: 32px;
    /* Keep end padding bounded flush with 32px nav gap */
    box-sizing: border-box;
}

.design-split-gallery-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75vw;
    /* 100vw - 25vw */
    padding-top: 20vh;
    padding-bottom: 0;
    gap: 10vh;
    box-sizing: border-box;
}

.design-split-gallery-vertical::after {
    content: '';
    display: block;
    min-height: 20vh;
    width: 100%;
    flex-shrink: 0;
}

.design-split-gallery-vertical::-webkit-scrollbar {
    display: none;
}

.design-split-gallery-vertical .vertical-stage:first-child {
    /* Align bottom of first image with bottom of copy text */
    align-items: flex-end;
    padding-bottom: clamp(120px, 20vh, 200px);
    box-sizing: border-box;
}



.design-split-gallery-vertical .vertical-stage {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}



.design-placeholder-img {
    height: 60vh;
    width: 45vh;
    background-color: #c8c8c8;
    flex-shrink: 0;
    margin-right: 25vw;
}

.design-scrollable-box {
    height: 60vh;
    aspect-ratio: 4 / 5;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    margin-right: 25vw;
    background-color: #c8c8c8;
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.design-split-gallery .gallery-img {
    margin-right: 25vw;
}

.design-scrollable-box::-webkit-scrollbar {
    display: none;
}

.design-scrollable-img {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.design-placeholder-img:last-child,
.design-split-gallery .gallery-img:last-child,
.design-scrollable-box:last-child {
    margin-right: 0;
}

/* ============================================================
   Photo & Design Project Gallery — horizontal scroll
   ============================================================ */



.photo-project-gallery,
.design-project-gallery {
    display: flex;
    align-items: center;
    height: 100vh;
    width: 100%;
    padding-left: 50vw;
    padding-right: 50vw;
    box-sizing: border-box;
}

.vertical-project-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    gap: min(20vh, 15vw);
}

.vertical-stage {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vertical-stage .gallery-img {
    margin-right: 0;
    max-width: 90vw;
}

.design-split-gallery-vertical .vertical-stage .gallery-img {
    margin-right: 0 !important;
    max-width: calc(75vw - 40px) !important;
    max-height: none;
    width: auto;
    height: auto;
    flex-shrink: 1;
    object-fit: contain;
}

.gallery-title-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 11;
}

.gallery-title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #3c3c3c;
}

.gallery-img {
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 50vw;
}

.gallery-img:last-child {
    margin-right: 0;
}

.gallery-img.h-40 {
    height: 40vh;
}

.gallery-img.h-50 {
    height: 50vh;
}

.gallery-img.h-60 {
    height: 60vh;
}

.gallery-img.h-75 {
    height: 75vh;
}

.design-split-gallery-vertical .vertical-stage .gallery-img.w-80 {
    max-width: calc((75vw - 40px) * 0.8) !important;
}

.design-split-gallery-vertical .vertical-stage .gallery-img.w-90 {
    max-width: calc((75vw - 40px) * 0.9) !important;
}

.photo-project-placeholder,
.design-project-placeholder {
    height: 60vh;
    width: 40vh;
    background-color: #c8c8c8;
    flex-shrink: 0;
    margin-right: 50vw;
}

.photo-project-placeholder:last-child,
.design-project-placeholder:last-child {
    margin-right: 0;
}

/* --- Mobile menu (hidden on desktop) --- */
.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .sigil-stage {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        height: auto;
        position: relative;
        left: 0;
        top: 100px; /* Reduced from 120px to stay tight with header */
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 40px; /* Increased from 30px to create more breathing room */
        padding-bottom: 120px; /* Space above footer */
    }

    /* Disable floating animations on mobile */
    .sigil[class*="sigil-"], 
    .sigil-top, .sigil-rings, .sigil-left, .sigil-right, .sigil-bottom, .sigil-enttauscht, .sigil-ankh {
        animation-name: fadeIn85 !important; /* Override the float animations, keeping only fade-in */
        transform: none !important; /* Reset transforms that might cause issues without the animation */
    }

    /* Specific transform resets for positioned elements so they stay in place without animation transforms */
    /* Stack them vertically */
    .sigil[class*="sigil-"],
    .sigil-center,
    .sigil-enttauscht,
    .sigil-ankh {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 auto !important;
    }

    /* Hide desktop nav, show hamburger */
    .footer-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        margin-top: -2px; /* Slight visual nudge so top bar aligns with cap-height */
        font-size: 28px; /* Increased hamburger size */
        color: #3c3c3c;
        line-height: 0.7; /* Tighten line height to slice off bounding box padding */
        opacity: 0.6;
        cursor: pointer;
        position: fixed;
        top: 16px;
        right: 20px;
        z-index: 110; /* Keeps hamburger clickable when full-width menu is open */
    }

    /* Mobile nav dropdown */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        background-color: #ebebeb; /* Seamless page-colored overlay */
        padding: 16px 20px 40px; /* Pads slightly extra on bottom to clear images beneath */
        border: none; /* No border */
        box-shadow: none; /* No shadow */
        z-index: 100; /* Stacks over original header footer */
        flex-direction: column;
        align-items: flex-start; /* Left-aligned */
        gap: 24px; /* Matches line spacing */
    }

    .mobile-menu.open {
        display: flex;
    }

    .mobile-menu-item {
        font-family: Helvetica, Arial, sans-serif;
        font-size: 18px; /* Matched to title size */
        font-weight: 500; /* Slightly bolder typography logic */
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: #3c3c3c;
        text-decoration: none;
        opacity: 1;
    }

    .mobile-menu-item.active {
        opacity: 1;
    }

    /* Stack order logic and sizing */
    .sigil-layer-1 { order: 1; width: 55px; margin-bottom: 0; } /* fauns */
    .sigil-layer-2 { order: 2; width: 40px; margin-bottom: 0; } /* rings */
    
    /* Order 3 is center (enttauscht + ankh) which is a container */
    .sigil-layer-3,
    .sigil-center { 
        order: 3 !important; 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        justify-content: center !important;
        width: 100% !important;
        gap: 40px !important;  /* Space between word and Ankh (matches outer gap now) */
        margin-bottom: 0 !important;
    }
    
    .sigil-layer-3 .sigil-enttauscht,
    .sigil-center .sigil-enttauscht { 
        width: 105px !important; 
    }
    
    .sigil-layer-3 .sigil-ankh,
    .sigil-center .sigil-ankh { 
        width: 22px !important; 
    }
    
    .sigil-layer-4 { order: 4; width: 60px; margin-bottom: 0; } /* saturn */
    .sigil-layer-5 { order: 5; width: 50px; margin-bottom: 0; } /* ouroboros */
    .sigil-layer-6 { order: 6; width: 40px; margin-bottom: 0; } /* hand */

    /* Hide the old structural classes since we are ordering them manually (by not applying styles to the base classes) */

    .watermark,
    .watermark-line {
        display: none !important;
    }

    .footer {
        padding: 16px 20px 24px; /* Ensure sufficient breathing room around header content */
        align-items: flex-start; /* Top align title and hamburger */
        background-color: #ebebeb; /* Make header opaque on mobile */
    }

    .footer-nav {
        gap: 20px;
    }

    .scroll-section {
        height: auto !important;
        min-height: 100vh;
    }

    .photo-grid,
    .design-grid {
        padding: 140px 20px 140px; /* Big top and bottom padding for clearance */
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        min-height: 100vh;
        gap: 100px; /* Massive breathing room */
    }

    .photo-grid::-webkit-scrollbar,
    .design-grid::-webkit-scrollbar {
        display: none;
    }

    .photo-tile,
    .design-tile {
        width: 100%;
        aspect-ratio: auto;
        flex-direction: column;
        overflow: visible;
    }

    .photo-tile-placeholder,
    .design-tile-placeholder {
        position: relative;
        width: 100%;
        padding-top: 100%; /* 1:1 Aspect Ratio hack */
        opacity: 1 !important;
        transform: none !important;
    }

    .photo-tile:hover .photo-tile-placeholder,
    .design-tile:hover .design-tile-placeholder {
        transform: none !important;
    }

    .photo-tile-title,
    .design-tile-title {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        transform: none;
        margin-top: 12px;
        opacity: 1; /* Always visible on mobile, no hover needed */
        font-size: 14px;
        font-weight: 500;
        text-align: left;
        width: 100%;
    }

    .gallery-title-wrapper {
        top: 60px; /* Just below header */
        bottom: auto;
    }

    .photo-project-gallery,
    .design-project-gallery {
        padding-left: 20px;
        padding-right: 20px;
    }

    .photo-back,
    .design-back {
        left: 20px;
        bottom: 16px;
    }

    /* Hide sigil hover titles since hover doesn't work well on mobile */
    .sigil-global-title {
        display: none !important;
    }

    /* Info page responsive */
    #section-info {
        display: flex;
        flex-direction: column;
        padding-top: 80px; /* clear header */
        overflow-x: hidden;
        overflow-y: visible;
        align-items: flex-start;
    }

    .info-bio {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 20px 80px;
        order: 2; /* Stack below gallery */
        pointer-events: auto; /* Enable interaction */
        transform: none; /* Remove desktop vertical centering */
    }

    .info-gallery {
        position: relative;
        width: calc(100vw - 20px); /* Leave 20px left margin */
        height: 55vh; /* Very prominent gallery scale like screenshot */
        margin-left: 20px; /* Force scroll clipping container to align exactly with text padding */
        padding: 0 20px 0 0; /* Only right padding for the terminal image */
        display: flex;
        flex-direction: row;
        gap: 16px;
        overflow-x: auto; /* Allow horizontal image scrolling */
        scroll-snap-type: x mandatory;
        order: 1; /* Stack above bio text */
        -ms-overflow-style: none;
        scrollbar-width: none;
        align-items: stretch; /* let images fill the specified height */
    }

    .info-gallery::-webkit-scrollbar {
        display: none;
    }

    .info-gallery img {
        height: 100%;
        width: auto;
        max-width: 85vw; /* Prevents extremely wide images from filling the entire screen horizontally */
        scroll-snap-align: start;
        object-fit: cover;
    }
}