/*
Theme Name: WitchLight Studio
Author: Ary Pratiwi
Description: A multi-page, React-powered photography portfolio theme.
Version: 3.7
*/

/* Global Reset & Base Styles */
body {
    background-color: #050505;
    color: #f0f0f0;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
    margin: 0;
    padding: 0;
}

::selection {
    background: #FF3300;
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF3300;
}

/* Typography Utilities */
.font-syne {
    font-family: 'Syne', sans-serif;
}

.font-manrope {
    font-family: 'Manrope', sans-serif;
}

.stroke-text {
    -webkit-text-stroke: 2px #f0f0f0;
    color: transparent;
}

/* Film Grain Effect */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- NEW: SINGLE POST TYPOGRAPHY ENGINE --- */
/* This forces WordPress post content to look like the theme */
.wp-content {
    color: #cccccc;
    /* Light gray for better reading */
    font-family: 'Manrope', sans-serif;
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.8;
}

.wp-content p {
    margin-bottom: 2rem;
}

.wp-content h1,
.wp-content h2,
.wp-content h3 {
    font-family: 'Syne', sans-serif;
    color: #f0f0f0;
    /* Pure white headers */
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.wp-content h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.wp-content h3 {
    font-size: 1.75rem;
}

.wp-content img {
    border-radius: 0;
    /* Keep sharp edges */
    margin: 2rem 0;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.wp-content img:hover {
    transform: scale(1.02);
}

.wp-content a {
    color: #FF3300;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 51, 0, 0.3);
}

.wp-content blockquote {
    border-left: 4px solid #FF3300;
    padding-left: 2rem;
    margin: 3rem 0;
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    color: #f0f0f0;
}

/* --- ASPECT RATIO ENGINE (v3.7) --- */
.aspect-ratio-container {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    /* 4/3 = 1.3333... */
    background-color: #111;
    overflow: hidden;
}

.aspect-ratio-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- PORTFOLIO SLIDER (Homepage) --- */
.portfolio-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.portfolio-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.portfolio-slider .portfolio-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .portfolio-slider .portfolio-item {
        flex: 0 0 30%;
    }
}

/* Fail-safe to hide descriptions in grids/sliders */
.portfolio-item p,
.ImageGrid p {
    display: none !important;
}

/* FORCED COLOR FIX (v3.3) */
img {
    filter: none !important;
    -webkit-filter: grayscale(0) !important;
}

.portfolio-slider img,
.ImageGrid img,
.Hero img {
    filter: none !important;
    grayscale: 0 !important;
}

/* FIX OVERLAP */
.min-h-screen.pt-40 {
    padding-top: 14rem !important;
    /* pt-56 equivalent */
}

/* --- GRAIN TOGGLE --- */
.grain-hidden {
    display: none !important;
}