/* --- EDITORIAL DIRECTORY LAYOUT ENGINE --- */

/* --- OVERRIDE GLOBAL SNAP DEFAULTS (No Snapping on Directory) --- */
html:has(.projects-page-wrapper) {
    scroll-snap-type: none !important;
}

.projects-page-wrapper {
    overflow-y: auto !important;
}

/* --- EDITORIAL DIRECTORY LAYOUT ENGINE --- */
.projects-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projects-container.editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 60px 50px;
}

footer {
    display: flex;
    justify-content: space-between;
    /* Pushes lang left, brand right */
    align-items: center;
    z-index: 100;
    height: 100px;
    padding: 0 50px;
    background-color: #1E1E1E;
    flex-shrink: 0;
    scroll-snap-align: end;
}

/* Stripping out absolute positioning so it flows naturally on the left */
.footer-lang-switch {
    display: flex;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    position: static;
    /* Changed from absolute */
    transform: none;
    /* Removed centering translation */
}

/* Add styling for your brand name string */
.brand-name {
    font-size: 0.8rem;
    font-weight: 300;
    font-style: italic;
    opacity: 0.8;
}

/* Inherits structural core values from your layout, managing content box zones */
.projects-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projects-container.editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    /* Generous vertical gap to breathe between project rows */
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 60px 50px;
}

/* Card Element Configurations */
.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Clean uniform cinematic aspect-ratio cropping */
    overflow: hidden;
    background-color: #151515;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle image reveal scaling on hover */
.project-card:hover .project-thumbnail {
    transform: scale(1.02);
    opacity: 1;
}

/* Minimal translucent categorization tag inside frames */
.project-category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #A8C3D0;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: lowercase;
    padding: 4px 10px;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Text Element Layout Fields */
.project-meta-details {
    padding-top: 15px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.4;
    margin-bottom: 6px;
    font-weight: 500;
}

.project-headline {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    transition: color 0.3s ease;
}

/* Color transition highlights when interacting with cards */
.project-card:hover .project-headline {
    color: #A8C3D0;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .projects-container.editorial {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

@media (max-width: 768px) {
    .projects-container.editorial {
        grid-template-columns: 1fr;
        /* Stack neatly on tablet and mobile viewports */
        gap: 45px;
        padding: 40px 20px;
    }
}