:root {
    --bg-mag: #111111;
    --text-mag: #ffffff;
    --grid-gap: 20px;
}

body {
    margin: 0; 
    font-family: 'DM Sans', sans-serif;
    color: var(--text-mag);
    background: var(--bg-mag);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

header {
    padding: 10px 0;
    border-bottom: 3px solid #ffffff;
    margin-bottom: 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-icon {
    height: 100px;
    width: auto;
}

.logo {
    font-weight: 700;
    font-size: 3.6rem;
    letter-spacing: -1px;
}

@media (max-width: 767px) {
    .logo {
        font-size: 2rem;
    }
    .header-icon {
        height: 60px;
    }
    header {
        padding: 5px 0;
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    auto-rows: 250px; /* Fixed rough height unit */
    grid-auto-flow: dense; /* Packs gaps */
    gap: var(--grid-gap);
    margin-bottom: 100px;
}

.bento-item {
    background: #222; /* Darker placeholder */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

/* Spans */
/* Need media query for desktop only to apply spans, otherwise mobile breaks */
@media (min-width: 768px) {
    .span-wide { grid-column: span 2; }
    .span-tall { grid-row: span 2; }
    .span-big { grid-column: span 2; grid-row: span 2; }
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 0.5s, transform 0.5s;
}

.bento-item:hover img {
    transform: scale(1.05);
}

.info {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.bento-item:hover .info {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; pointer-events: none;
    transition: all 0.3s;
    z-index: 1000;
}
.lightbox.visible { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
