
.jetbrains-mono-header {
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
  text-decoration: none;
  color: #ff46a2;
}

body {
    background-color: #f8fbf8;
    color: #2b2b2b;
    padding: 3rem 1rem;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.container {
    max-width: 935px;
    /* Standard Instagram desktop width */
    margin: 0 auto;
}

/* --- Profile Header --- */
header {
    margin-bottom: 3rem;
    text-align: left;
    border-bottom: 1px solid #efefef;
    padding-bottom: 2rem;
}

h1 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* --- Instagram-style Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    /* Space between photos */
}

@media (max-width: 735px) {
    .gallery-grid {
        gap: 3px;
        /* Mimics Instagram mobile tight spacing */
    }

    body {
        padding: 1rem 1rem;
    }

    header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
}

/* --- Grid Item (Square) --- */
.grid-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Forces perfectly square cells */
    overflow: hidden;
    background-color: #fafafa;
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crops center-square without distorting */
    transition: opacity 0.2s ease;
}

.grid-item:hover img {
    opacity: 0.85;
}

/* --- Up-Close Lightbox Overlay --- */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    /* Dark background to pop film colors */
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

/* Shows full uncropped image when active */
.lightbox img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: 5%;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    font-family: monospace;
}