:root {
    --bg-color: #f8f8f8;
    --text-color: #111;
    --secondary-text: #777;
    --font-family: 'Montserrat', sans-serif;
    --grid-gap: 20px;
    --card-border-radius: 4px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll-view {
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

body.no-scroll-view .main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    min-height: 0;
}

body.no-scroll-view .view-section.active {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.no-scroll-view .footer {
    display: block;
    padding: 15px 60px 20px 60px;
    margin-top: auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Background and blur go here so child elements (dropdown) are not masked/blurred out */
.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px; 
    background: linear-gradient(to bottom, rgba(248,248,248,1) 50%, rgba(248,248,248,0.8) 80%, rgba(248,248,248,0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    z-index: -1; 
    pointer-events: none;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    color: var(--text-color);
    transform: scaleY(1.1);
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.logo-name::before,
.logo-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    color: var(--text-color);
    display: none;
    z-index: 1;
}

.logo-name::before {
    left: 1px;
    text-shadow: -1px 0 rgba(255, 0, 100, 0.8);
    animation: glitch-anim-1 1s infinite linear alternate-reverse;
}

.logo-name::after {
    left: -1px;
    text-shadow: -1px 0 rgba(0, 255, 200, 0.8);
    animation: glitch-anim-2 1.5s infinite linear alternate-reverse;
}

.logo:hover .logo-name::before,
.logo:hover .logo-name::after {
    display: block;
}

.logo:hover .logo-name {
    animation: glitch-skew 0.8s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); transform: translate(-1px, 0.5px); }
  20% { clip-path: inset(60% 0 10% 0); transform: translate(1px, -0.5px); }
  40% { clip-path: inset(40% 0 50% 0); transform: translate(1px, 0.5px); }
  60% { clip-path: inset(80% 0 5% 0); transform: translate(-1px, -0.5px); }
  80% { clip-path: inset(10% 0 70% 0); transform: translate(1px, -0.5px); }
  100% { clip-path: inset(30% 0 50% 0); transform: translate(-1px, 0.5px); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); transform: translate(1px, -0.5px); }
  20% { clip-path: inset(30% 0 20% 0); transform: translate(-1px, 0.5px); }
  40% { clip-path: inset(70% 0 10% 0); transform: translate(1px, -0.5px); }
  60% { clip-path: inset(20% 0 50% 0); transform: translate(1px, 0.5px); }
  80% { clip-path: inset(50% 0 30% 0); transform: translate(-1px, -0.5px); }
  100% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, 0.5px); }
}

@keyframes glitch-skew {
    0% { transform: scaleY(1.1) skew(0deg) }
    20% { transform: scaleY(1.1) skew(-1deg) }
    40% { transform: scaleY(1.1) skew(1deg) }
    60% { transform: scaleY(1.1) skew(-0.5deg) }
    80% { transform: scaleY(1.1) skew(0.5deg) }
    100% { transform: scaleY(1.1) skew(0deg) }
}

.logo-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin-top: 2px;
    margin-left: 2px;
}

.nav {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.nav a {
    text-decoration: none;
    color: var(--secondary-text);
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav a:hover, .nav a.active {
    color: var(--text-color);
}

.nav-link, .back-btn, .side-nav-btn {
    position: relative;
    display: inline-block;
}

.nav-link::before,
.nav-link::after,
.back-btn::before,
.back-btn::after,
.side-nav-btn::before,
.side-nav-btn::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    color: var(--text-color);
    display: none;
    z-index: 1;
}

.nav-link::before, .back-btn::before, .side-nav-btn::before {
    left: 1px;
    text-shadow: -1px 0 rgba(255, 0, 100, 0.8);
    animation: glitch-anim-1 1s infinite linear alternate-reverse;
}

.nav-link::after, .back-btn::after, .side-nav-btn::after {
    left: -1px;
    text-shadow: -1px 0 rgba(0, 255, 200, 0.8);
    animation: glitch-anim-2 1.5s infinite linear alternate-reverse;
}

.nav-link:hover::before,
.nav-link:hover::after,
.back-btn:hover::before,
.back-btn:hover::after,
.side-nav-btn:hover::before,
.side-nav-btn:hover::after {
    display: block;
}

.nav-link:hover, .back-btn:hover, .side-nav-btn:hover {
    animation: glitch-skew-nav 0.8s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch-skew-nav {
    0% { transform: skew(0deg) }
    20% { transform: skew(-1deg) }
    40% { transform: skew(1deg) }
    60% { transform: skew(-0.5deg) }
    80% { transform: skew(0.5deg) }
    100% { transform: skew(0deg) }
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 30px;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 10px 25px 0px rgba(0,0,0,0.08);
    z-index: 1;
    padding: 10px 0;
    border-radius: 4px;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-content a {
    color: var(--secondary-text);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    margin-left: 0;
    font-size: 0.8rem;
    position: relative;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--text-color);
}

.filter-btn::before,
.filter-btn::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f1f1f1;
    color: var(--text-color);
    display: none;
    z-index: 1;
    padding: inherit;
    box-sizing: border-box;
}

.filter-btn::before {
    left: 1px;
    text-shadow: -1px 0 rgba(255, 0, 100, 0.8);
    animation: glitch-anim-1 1s infinite linear alternate-reverse;
}

.filter-btn::after {
    left: -1px;
    text-shadow: -1px 0 rgba(0, 255, 200, 0.8);
    animation: glitch-anim-2 1.5s infinite linear alternate-reverse;
}

.filter-btn:hover::before,
.filter-btn:hover::after {
    display: block;
}

.filter-btn:hover {
    animation: glitch-skew-nav 0.8s cubic-bezier(.25, .46, .45, .94) both infinite;
}

.global-lang-toggle {
    margin-left: 40px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-weight: 500;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--secondary-text);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 4px;
    transition: color 0.3s;
}

.lang-btn:hover, .lang-btn.active {
    color: var(--text-color);
}


/* Views Toggle */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Grid */
.main-content {
    padding: 0 60px 100px;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Home Marquee */
.view-section.active.home-section {
    display: flex;
    align-items: center;
}

.home-section {
    padding: 0;
    max-width: none;
}

.marquee-container {
    width: 100vw;
    margin-left: -60px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 0 60px;
}

.marquee-track {
    display: flex;
    gap: 80px; 
    width: max-content;
}

.marquee-item {
    width: 940px; /* Increased by 20% (was 780px) */
    flex-shrink: 0;
    position: relative;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer; /* make it clickable */
}

.marquee-item:hover {
    transform: scale(1.02);
}

.carousel-video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.carousel-image-anim {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomPan 15s alternate infinite linear;
}

@keyframes zoomPan {
    0% { transform: scale(1) translateX(0); }
    100% { transform: scale(1.1) translateX(-2%); }
}

.carousel-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.carousel-info {
    margin-top: 25px;
    text-align: center;
    padding: 0 20px;
}

.carousel-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    position: relative;
    display: inline-block;
    width: fit-content;
}

.carousel-title::before,
.carousel-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    color: var(--text-color);
    display: none;
    z-index: 1;
    white-space: pre-wrap;
}

.carousel-title::before {
    left: 1px;
    text-shadow: -1px 0 rgba(255, 0, 100, 0.8);
    animation: glitch-anim-1 1s infinite linear alternate-reverse;
}

.carousel-title::after {
    left: -1px;
    text-shadow: -1px 0 rgba(0, 255, 200, 0.8);
    animation: glitch-anim-2 1.5s infinite linear alternate-reverse;
}

.marquee-item:hover .carousel-title::before,
.marquee-item:hover .carousel-title::after {
    display: block;
}

.marquee-item:hover .carousel-title {
    animation: glitch-skew-nav 0.8s cubic-bezier(.25, .46, .45, .94) both infinite;
}

.carousel-meta {
    font-size: 0.95rem;
    color: var(--secondary-text);
}

.carousel-role {
    font-weight: 600;
    color: var(--text-color);
    margin-top: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
}


/* Work Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: var(--grid-gap);
    margin-top: 40px;
}

.project-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.project-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #ebebeb;
    position: relative;
    margin-bottom: 8px;
    border-radius: 4px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.6s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.project-card:hover .project-image {
    transform: scale(1.03); 
}

.hover-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hover-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.project-card.is-hovering-iframe .project-image {
    opacity: 0; 
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: center;
    align-items: center;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    width: fit-content;
}

.project-title::before,
.project-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    color: var(--text-color);
    display: none;
    z-index: 1;
    white-space: pre-wrap;
}

.project-title::before {
    left: 1px;
    text-shadow: -1px 0 rgba(255, 0, 100, 0.8);
    animation: glitch-anim-1 1s infinite linear alternate-reverse;
}

.project-title::after {
    left: -1px;
    text-shadow: -1px 0 rgba(0, 255, 200, 0.8);
    animation: glitch-anim-2 1.5s infinite linear alternate-reverse;
}

.project-card:hover .project-title::before,
.project-card:hover .project-title::after {
    display: block;
}

.project-card:hover .project-title {
    animation: glitch-skew-nav 0.8s cubic-bezier(.25, .46, .45, .94) both infinite;
}

.project-meta {
    font-size: 0.85rem;
    color: var(--secondary-text);
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.project-role {
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0; /* Tightened spacing */
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Dedicated Project View Page */
.project-section {
    padding-top: 0px;
}

.back-btn {
    background: none;
    border: none;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-color);
    cursor: pointer;
    margin-bottom: 20px;
    transition: opacity 0.3s;
    align-self: flex-start;
    padding-left: 60px;
    margin-top: 0;
    position: relative;
    z-index: 101;
}

.back-btn:hover {
    opacity: 0.6;
}

.project-page-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-video-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.project-video-center-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    max-width: calc(100% - 300px); /* Leave room for side nav buttons */
}

.side-nav-btn {
    background: none;
    border: none;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-color);
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.side-nav-btn:hover {
    opacity: 0.6;
}

.project-video-wrapper {
    height: calc(100vh - 300px); /* 50px reduction from the original 250px */
    width: auto;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.external-link-btn {
    padding: 15px 30px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
    font-family: var(--font-family);
    letter-spacing: 1px;
}

.external-link-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.project-video-wrapper.instagram-video {
    aspect-ratio: auto;
    width: 100%;
    max-width: 500px;
    background: transparent;
    box-shadow: none;
}

.project-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.project-page-info {
    text-align: center;
    margin-bottom: 10px;
}

.project-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.project-page-meta {
    font-size: 0.95rem;
    color: var(--secondary-text);
    display: flex;
    justify-content: center; /* Center the text underneath */
    gap: 20px;
    text-transform: uppercase;
    font-weight: 500;
}


/* Page Sections (About / Contact) */
.page-section {
    padding-top: 40px;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
}

.view-section.active.contact-section {
    /* Styles handled by no-scroll-view */
}

#contact-view {
    /* Handled by flex layout now */
}

.contact-container {
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    width: 100%;
}

.bio-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.contact-info h2 {
    font-family: 'Anton', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 40px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-text);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

.submit-btn {
    background: var(--text-color);
    color: #fff;
    border: none;
    padding: 16px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

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

/* About Section Grid */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: flex-start; /* Subela un poco más */
}



.bio-content p {
    font-size: 0.95rem;
    font-style: italic;
    text-align: justify;
}

.profile-img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    padding: 60px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--secondary-text);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: row;
        align-items: flex-start;
        padding: 15px 20px;
        mask-image: none;
        -webkit-mask-image: none;
        margin-bottom: 0;
    }
    .header::before {
        height: 160px;
        background: linear-gradient(to bottom, rgba(248,248,248,1) 60%, rgba(248,248,248,0.8) 85%, rgba(248,248,248,0) 100%);
    }
    .logo-name {
        font-size: clamp(1.3rem, 5.5vw, 1.8rem);
        white-space: nowrap;
    }
    .logo-subtitle {
        font-size: 0.7rem;
    }
    .nav {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        margin-top: 0 !important; /* Align menu higher with the top of the logo text (point 1) */
    }
    .nav a {
        margin-left: 0;
        font-size: 0.8rem;
        line-height: 1.2;
    }
    .global-lang-toggle {
        margin-left: 0;
        justify-content: flex-end;
        width: auto;
        margin-top: 3px;
        font-size: 0.75rem;
    }
    .global-lang-toggle .lang-btn {
        font-size: 0.7rem;
        padding: 0 2px;
    }
    .nav-dropdown .dropdown-content {
        left: auto;
        right: 0;
        text-align: right;
    }
    .main-content {
        padding: 0 20px 60px;
    }
    .home-section {
        min-height: auto;
        padding-top: 40px;
    }
    .marquee-container {
        margin-left: -20px;
    }
    .marquee-item {
        width: 90vw;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .project-page-title {
        font-size: 1.5rem;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 5px;
    }

    /* Mobile Video Player Layout optimization */
    .back-btn {
        padding-left: 20px;
        margin-bottom: 15px;
    }
    .project-video-layout {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 15px !important;
        width: 100% !important;
    }
    .project-video-center-group {
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .project-video-wrapper {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        margin-bottom: 10px !important;
    }
    .project-page-info {
        width: 100% !important;
        margin-top: 5px !important;
        margin-bottom: 25px !important;
        text-align: center !important;
    }
    .side-nav-btn {
        order: 2 !important; /* Buttons sit side-by-side below the center group (Points 2 & 3) */
        width: 48% !important;
        font-size: 0.8rem !important;
        padding: 10px 5px !important;
    }
    .side-nav-btn.prev {
        text-align: left !important;
    }
    .side-nav-btn.next {
        text-align: right !important;
    }

    /* About Section Bio Compactness */
    .about-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .profile-img-wrapper {
        max-width: 220px !important; /* Shrink profile image slightly so bio gets emphasis */
        margin: 0 auto !important;
    }
    .bio-content p {
        font-size: 0.8rem !important; /* Smaller size as requested (Point 4) */
        line-height: 1.5 !important;
        text-align: left !important; /* Avoid ugly mobile justified gaps */
    }

    /* Reset no-scroll-view behavior on mobile so users can scroll long content */
    body.no-scroll-view {
        overflow: auto !important;
        height: auto !important;
        display: block !important;
    }
    body.no-scroll-view .main-content {
        display: block !important;
        padding-bottom: 60px !important;
        min-height: auto !important;
    }
    body.no-scroll-view .view-section.active {
        display: block !important;
        height: auto !important;
        width: 100% !important;
    }
    body.no-scroll-view .footer {
        padding: 30px 20px !important;
        margin-top: 40px !important;
    }
}

/* Unlocks scrolling in short screens (e.g. rotated landscape phones) */
@media (max-height: 600px) {
    body.no-scroll-view {
        overflow: auto !important;
        height: auto !important;
        display: block !important;
    }
    body.no-scroll-view .main-content {
        display: block !important;
        padding-bottom: 60px !important;
        min-height: auto !important;
    }
    body.no-scroll-view .view-section.active {
        display: block !important;
        height: auto !important;
        width: 100% !important;
    }
    body.no-scroll-view .footer {
        padding: 30px 20px !important;
        margin-top: 40px !important;
    }

    /* 2 columns in work grid on landscape phones */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}
