/* ========================================
   DITYA PORTFOLIO — NEO-BRUTALIST & EDITORIAL STYLE
   (Benar-benar berbeda dari gaya utama yang dark & glassmorphism)
======================================== */

:root {
    --brutal-bg: #f4f0ea;       /* Warna kertas arsip/kريم terang */
    --brutal-surface: #ffffff;  /* Putih solid */
    --brutal-text: #121212;     /* Hitam pekat */
    --brutal-accent: #ff3366;   /* Merah muda/neon pop yang kontras */
    --brutal-border: #121212;   /* Garis tebal hitam khas brutalisme */
    --brutal-shadow: 6px 6px 0px #121212; /* Bayangan keras tanpa blur */
}

/* Base Override untuk Style Ini */
body.editorial-mode {
    background-color: var(--brutal-bg);
    color: var(--brutal-text);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

/* Hilangkan efek gradient background lama */
body.editorial-mode::before {
    display: none;
}


/* ==========================================
   TRUE-RATIO MASONRY GRID UNTUK VIDEO
   (Mengikuti ukuran & rasio asli video)
========================================== */
body.editorial-mode .design-bento-grid {
    display: columns;
    columns: 3 300px; /* Maksimal 3 kolom, minimal lebar 300px per kolom */
    column-gap: 30px;
    padding-bottom: 80px;
}

body.editorial-mode .design-card {
    break-inside: avoid; /* Mencegah kartu terpotong di tengah kolom */
    margin-bottom: 30px;
    position: relative;
    border-radius: 0px; /* Tanpa lengkungan */
    overflow: hidden;
    background: var(--brutal-surface);
    border: 3px solid var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    aspect-ratio: auto !important; /* Hapus paksaan rasio tetap */
    height: auto !important;
}

/* Efek hover "geser dan angkat" */
body.editorial-mode .design-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px var(--brutal-accent); /* Bayangan berubah warna saat disentuh */
}

/* Tinggi video otomatis mengikuti dimensi aslinya */
body.editorial-mode .design-card video {
    width: 100%;
    height: auto !important;
    display: block;
    object-fit: fill;
    pointer-events: none;
}

/* Overlay teks bergaya majalah cetak */
body.editorial-mode .design-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.editorial-mode .design-card:hover .design-overlay {
    opacity: 1;
}

body.editorial-mode .design-overlay h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Tombol Load More ala Brutalis */
body.editorial-mode .btn-load {
    background: var(--brutal-accent);
    border: 3px solid var(--brutal-border);
    color: #ffffff;
    font-weight: 800;
    padding: 18px 40px;
    border-radius: 0px;
    box-shadow: var(--brutal-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.editorial-mode .btn-load:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0px var(--brutal-border);
    background: #ff194d;
}


/* ==========================================
   FIX MODAL VIDEO AGAR TIDAK MELEBIHI LAYAR
========================================== */

/* Batasi kontainer modal agar tidak lebih dari 90% tinggi layar */
body.editorial-mode .modal-container {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--brutal-surface);
    border: 4px solid var(--brutal-border);
    box-shadow: 12px 12px 0px rgba(0,0,0,1);
    border-radius: 0px;
    padding: 25px;
}

/* Pastikan wrapper grid modal fleksibel */
body.editorial-mode .modal-content-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

body.editorial-mode .modal-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: calc(90vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kunci utama: Batasi tinggi video dan gunakan contain agar utuh */
body.editorial-mode #modalVideo {
    width: 100% !important;
    height: auto !important;
    max-height: 75vh !important; /* Batasi maksimal 75% dari tinggi layar */
    object-fit: contain !important; /* Menjaga video tampil utuh tanpa terpotong */
    background: #000;
}

body.editorial-mode .modal-close {
    background: var(--brutal-accent);
    border: 2px solid var(--brutal-border);
    border-radius: 0px;
    color: #fff;
    font-weight: bold;
    z-index: 1001;
}