body {
    font-family: Georgia, serif;
    color: #4a4a4a;
    margin: 0;
    padding: 0px;
    line-height: 1.5;
    min-height: 100vh;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.background-overlay {
  color: rgba(249, 247, 244, 0.85);
}

/* main header */
.main-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px 0;
}

.main-header h1 {
    font-size: 48px;
    color: #6b5b73;
    margin-bottom: 20px;
    font-weight: normal;
}

.main-header p {
    font-size: 18px;
    color: #7a7a7a;
    max-width: 600px;
    margin: 0 auto 40px;
}

.series-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.series-nav button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    font-family: Georgia, serif;
    text-decoration: underline;
    padding: 5px 0;
}

.series-nav button:hover {
    color: #6b5b73;
}

.series-nav button.active {
    color: #6b5b73;
    font-weight: bold;
}

/* main container - everything on one page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.photo-series {
    display: none;
    margin-top: 60px;
}

.photo-series.active {
    display: block;
}

/* flowing layout */
.photo-flow {
    position: relative;
    min-height: 100vh;
}

.photo-piece {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 650px;
}

/* positioning for each piece */
.photo-piece:nth-child(1) {
    top: 0px;
    left: 50px;
}

.photo-piece:nth-child(2) {
    top: 350px;
    right: 100px;
    flex-direction: row-reverse;
}

.photo-piece:nth-child(3) {
    top: 750px;
    left: 150px;
}

.photo-piece:nth-child(4) {
    top: 1100px;
    right: 50px;
    flex-direction: row-reverse;
}

.photo-piece:nth-child(5) {
    top: 1450px;
    left: 80px;
}

.photo-piece:nth-child(6) {
    top: 1800px;
    right: 120px;
    flex-direction: row-reverse;
}

/* photo containers */
.photo-container {
    position: relative;
    flex-shrink: 0;
}

.photo-placeholder {
    width: 280px;
    height: 220px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 14px;
    border: 1px solid #e8e8e8;
    position: relative;
}

/* individual rotations */
.photo-piece:nth-child(1) .photo-placeholder {
    transform: rotate(-3deg);
}

.photo-piece:nth-child(2) .photo-placeholder {
    transform: rotate(2deg);
}

.photo-piece:nth-child(3) .photo-placeholder {
    transform: rotate(-1deg);
}

.photo-piece:nth-child(4) .photo-placeholder {
    transform: rotate(2.5deg);
}

.photo-piece:nth-child(5) .photo-placeholder {
    transform: rotate(-2deg);
}

.photo-piece:nth-child(6) .photo-placeholder {
    transform: rotate(1.5deg);
}

/* text content */
.text-content {
    flex: 1;
    min-width: 250px;
    padding-top: 20px;
}

.text-content h3 {
    color: #6b5b73;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: normal;
}

.text-content p {
    color: #7a7a7a;
    font-size: 16px;
    line-height: 1.6;
}

/* connecting elements */
.photo-piece:nth-child(2)::before {
    content: "~";
    position: absolute;
    top: -30px;
    left: 50%;
    color: #d0d0d0;
    font-size: 28px;
    font-family: serif;
}

.photo-piece:nth-child(4)::after {
    content: "✧";
    position: absolute;
    bottom: -25px;
    right: 40%;
    color: #d0d0d0;
    font-size: 20px;
}

.photo-piece:nth-child(6)::before {
    content: "※";
    position: absolute;
    top: -20px;
    left: 30%;
    color: #d0d0d0;
    font-size: 24px;
}

/* subtle connecting lines */
.photo-piece:nth-child(3)::after {
    content: "";
    position: absolute;
    top: -150px;
    right: -80px;
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #e8e8e8, transparent);
}

.photo-piece:nth-child(5)::after {
    content: "";
    position: absolute;
    top: -200px;
    left: -100px;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, #e8e8e8, transparent);
}

/* series transitions */
.series-spacer {
    height: 2200px;
}

/* mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .main-header h1 {
        font-size: 36px;
    }

    .main-header {
        margin-bottom: 60px;
        padding: 40px 0;
    }

    .series-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .container {
        max-width: 100%;
    }

    .photo-piece {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin-bottom: 80px;
        flex-direction: column;
        max-width: 100%;
    }

    .photo-piece:nth-child(even) {
        flex-direction: column;
    }

    .photo-placeholder {
        width: 100%;
        height: 250px;
        transform: none;
        margin-bottom: 20px;
    }

    .text-content {
        padding-top: 0;
    }

    .photo-piece::before,
    .photo-piece::after {
        display: none;
    }

    .series-spacer {
        height: auto;
    }
}