@import url('https://fonts.googleapis.com/css2?family=Mrs+Saint+Delafield&display=swap');

.gl-scatter-wrapper {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding-top: 100px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Sidebar Nav (Image 1) */
.gl-side-nav {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 10;
}

.gl-side-text {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gl-side-text:hover {
    opacity: 1;
}

.gl-side-text-bold {
    font-weight: bold;
    font-size: 0.85rem;
    opacity: 1;
}

/* Sort Button */
.gl-top-right-btn {
    position: absolute;
    top: 120px;
    right: 40px;
}

.gl-sort-btn {
    background-color: var(--color-text-light);
    color: var(--color-bg-dark);
    padding: 5px 15px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* Cursive Logo (Image 2) */
.gl-cursive-top {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 80px;
}

.gl-cursive-logo {
    font-family: 'Mrs Saint Delafield', cursive;
    font-size: 6rem;
    line-height: 0.8;
    margin: 0;
    font-weight: normal;
}

.gl-cursive-sub {
    font-family: 'Mrs Saint Delafield', cursive;
    font-size: 3rem;
    opacity: 0.8;
}

/* Scattered Grid */
.gl-scatter-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 100px;
    /* Base row height for spanning */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
}

/* Grid Items General */
.gl-item {
    position: relative;
    overflow: hidden;
}

.gl-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.gl-item:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

.gl-item-text-block {
    background-color: var(--color-surface);
    color: var(--color-text-light);
    padding: 2rem;
    border: 1px solid rgba(var(--ink), 0.1);
}

.gl-item-text-block p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* Typography elements */
.gl-cursive-text {
    font-family: 'Mrs Saint Delafield', cursive;
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-10deg);
}

.gl-cursive-sig {
    font-family: 'Mrs Saint Delafield', cursive;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid Placements (The Scattered Layout) */
/* Columns are 1 to 13. Total 12 cols. */
.gl-pos-1 {
    grid-column: 9 / 13;
    grid-row: 1 / 5;
}

/* Top right tall */
.gl-pos-2 {
    grid-column: 3 / 6;
    grid-row: 2 / 7;
}

/* Left face */
.gl-pos-3 {
    grid-column: 6 / 9;
    grid-row: 4 / 9;
    z-index: 2;
    margin-left: -20px;
}

/* Black block overlapping */
.gl-pos-4 {
    grid-column: 4 / 6;
    grid-row: 7 / 10;
    margin-top: 30px;
}

/* Studio portrait */
.gl-pos-5 {
    grid-column: 2 / 6;
    grid-row: 10 / 16;
    margin-right: 20px;
}

/* Floral texture */
.gl-pos-6 {
    grid-column: 6 / 9;
    grid-row: 9 / 14;
}

/* Leaves */
.gl-pos-7 {
    grid-column: 9 / 12;
    grid-row: 9 / 12;
    margin-top: -30px;
}

/* Model looking up */
.gl-pos-8 {
    grid-column: 6 / 8;
    grid-row: 14 / 18;
    margin-top: 20px;
}

/* Strapped model */
.gl-pos-9 {
    grid-column: 8 / 11;
    grid-row: 14 / 19;
    margin-left: 20px;
}

/* Horses */
.gl-pos-10 {
    grid-column: 10 / 13;
    grid-row: 6 / 8;
}

/* My King cursive */
.gl-pos-11 {
    grid-column: 3 / 5;
    grid-row: 16 / 18;
}

/* Signature cursive */
.gl-pos-12 {
    grid-column: 2 / 4;
    grid-row: 18 / 21;
}

/* Statue */
.gl-pos-13 {
    grid-column: 4 / 8;
    grid-row: 18 / 23;
    margin-top: -40px;
}

/* Bottom Center Model */

/* Cursive Bottom (Image 2) */
.gl-cursive-bottom {
    text-align: center;
    margin-top: 100px;
    padding-bottom: 100px;
}

.gl-cursive-bottom h2 {
    font-family: 'Mrs Saint Delafield', cursive;
    font-size: 5rem;
    font-weight: normal;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .gl-side-nav {
        display: none;
    }

    .gl-top-right-btn {
        position: static;
        text-align: center;
        margin-top: 20px;
    }

    .gl-scatter-grid {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
    }

    .gl-item {
        width: 100%;
        height: auto;
        margin: 0 !important;
        margin-bottom: 20px !important;
    }

    .gl-pos-3 {
        margin-left: 0;
    }
}