/*
Theme Name: ENstudio Lite
Theme URI: https://www.enstudio.cn
Author: Antigravity
Description: A lightweight, custom theme for ENstudio focusing on performance and ease of management.
Version: 1.0.0
Text Domain: enstudio-lite
*/

/* Reset & Basic Styles */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --bg-color: #fff;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--primary-color);
    background: var(--bg-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-item {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    opacity: 0.8;
}

.project-thumbnail {
    margin-bottom: 15px;
    aspect-ratio: 4/3;
    object-fit: cover;
    background-color: #f0f0f0;
    width: 100%;
}

.project-title {
    font-size: 1.2rem;
    margin: 0 0 5px;
    font-weight: 500;
}

.project-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Single Project Styles */
.single-project .entry-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.project-info-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.project-description {
    max-width: 800px;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Default to full width stack for impact */
    gap: 40px;
}

.project-gallery-grid img {
    width: 100%;
    height: auto;
}

/* Filters */
.project-filters {
    margin-bottom: 30px;
}

.filter-link {
    margin-right: 15px;
    text-decoration: none;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.filter-link:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (min-width: 768px) {
    .project-info-meta {
        flex-direction: row;
    }
}

/* Logo Size Variables */
.custom-logo {
    width: var(--logo-width-mobile, 150px);
    height: auto;
}

@media (min-width: 768px) {
    .custom-logo {
        width: var(--logo-width-desktop, 200px);
    }
}

/* Project Hover Effects (Archive) */
.project-media-wrapper {
    position: relative;
    overflow: hidden;
}

.project-hover-info {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Let clicks pass through to link */
}

.project-item:hover .project-hover-info {
    opacity: 1;
}

.project-hover-info .project-title {
    color: #000;
    /* Or white depending on design, user said "appear", assuming black on light or white on dark */
    background: rgba(255, 255, 255, 0.8);
    /* Optional background for readability */
    padding: 5px 10px;
    display: inline-block;
    margin-bottom: 5px;
}

.project-hover-info .project-meta {
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    display: inline-block;
}

/* Ensure video fits */
.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    /* Maintain aspect ratio */
}