* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    /* Premium dark atmospheric radial gradient */
    background: radial-gradient(circle at center, #1c2833 0%, #0f171e 100%);
    color: #f5f5f5;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Home Button in top left corner */
.back-nav {
    max-width: 1400px;
    margin: 0 auto 30px auto;
}

.back-link {
    font-family: 'Felipa', cursive;
    color: #fcf8f2;
    text-decoration: none;
    font-size: 1.4rem;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.7;
}

/* --- GALLERY TOP GRID (Desktop) --- */
.gallery-grid {
    max-width: 1400px;
    margin: 0 auto 60px auto;
    display: grid;
    /* Adjust grid proportions to give the left stack comfortable width */
    grid-template-columns: 260px 1fr 1fr;
    gap: 30px;
    /* Removed fixed height constraint so aspect-ratios maintain original image detail */
    height: auto;
}

/* Left Column: 3 Rows stacked */
.left-column-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

.img-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* Specific aspect ratios for left column images to stop over-zooming */
.left-column-stack .img-box {
    aspect-ratio: 3 / 4;
}

/* Middle and Right columns match height naturally */
.middle-col, .right-col {
    height: 100%;
    min-height: 500px;
}

/* Implements the soft faded edges technique */
.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Vignette fade effect around the boundaries */
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
}

/* --- LOWER TEXT DOCUMENT STRUCTURE --- */
.document-container {
    max-width: 900px;
    margin: 0 auto 100px auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.doc-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: baseline;
}

.doc-keyword {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fcf8f2;
    font-family: 'Montserrat', sans-serif;
}

.doc-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #d1d8e0;
    font-weight: 300;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        height: auto !important;
        gap: 20px;
    }

    .left-column-stack {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
    }

    .left-column-stack .img-box {
        aspect-ratio: auto;
        height: 180px;
    }

    /* Middle and right column adjust sizing for mobile */
    .middle-col, .right-col {
        height: 320px;
        min-height: auto;
    }

    .doc-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 0;
    }
}