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

:root {
    --slate: #2b2d35;
    --cream: #e8dcc4;
    --gold: #d4c5a0;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--slate);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Header with Bridge Image */
.hero-header {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}


.hero-image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 60%,
        rgba(0,0,0,0.9) 75%,
        rgba(0,0,0,0.6) 85%,
        rgba(0,0,0,0.3) 93%,
        rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 60%,
        rgba(0,0,0,0.9) 75%,
        rgba(0,0,0,0.6) 85%,
        rgba(0,0,0,0.3) 93%,
        rgba(0,0,0,0) 100%);
}

/* Dedication Section */
.dedication-section {
    max-width: 800px;
    margin: 60px auto 60px;
    padding: 40px 40px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.dedication-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    color: var(--gold);
}

.dedication-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cream);
    margin-bottom: 20px;
}

.dedication-signature {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--gold);
    text-align: right;
    margin-top: 30px;
}

/* Parent Photos Section */
.parents-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.parents-tribute {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
}

/* Album Section */
.album-section {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 40px 20px;
    text-align: center;
}

#bookContainer {
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page {
    background: var(--slate);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.booklet-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.booklet-nav {
    background: rgba(232, 220, 196, 0.1);
    border: 1px solid rgba(232, 220, 196, 0.3);
    color: var(--cream);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booklet-nav:hover:not(:disabled) {
    background: rgba(232, 220, 196, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.booklet-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.booklet-page-indicator {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    min-width: 150px;
    text-align: center;
}

.section-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--gold);
}

.album-info {
    margin-bottom: 40px;
}

/* Interactive Booklet */
.booklet-container {
    max-width: 1000px;
    margin: 0 auto 40px;
}

.booklet-viewer {
    perspective: 2500px;
    perspective-origin: center;
    margin-bottom: 30px;
}

.booklet-spread {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 2/1;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.booklet-page {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    backface-visibility: hidden;
}

.booklet-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.booklet-page.left {
    left: 0;
    transform-origin: right center;
}

.booklet-page.right {
    right: 0;
    transform-origin: left center;
}

.booklet-page.flipped {
    transform: rotateY(-180deg);
}

.booklet-page.right.flipped {
    transform: rotateY(180deg);
}

/* Back faces of pages */
.booklet-page::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--slate);
    backface-visibility: visible;
    transform: rotateY(180deg);
}

.booklet-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.booklet-nav {
    background: rgba(232, 220, 196, 0.1);
    border: 1px solid rgba(232, 220, 196, 0.2);
    color: var(--cream);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booklet-nav:hover:not(:disabled) {
    background: rgba(232, 220, 196, 0.2);
    transform: translateY(-2px);
}

.booklet-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.booklet-page-indicator {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.booklet-hint {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--gold);
    text-align: center;
    margin-top: 10px;
    opacity: 0.7;
}

.album-release {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin-bottom: 15px;
}

/* Streaming Links */
.streaming-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stream-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(232, 220, 196, 0.1);
    color: var(--cream);
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(232, 220, 196, 0.2);
}

.stream-btn:hover {
    background: rgba(232, 220, 196, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Videos Section */
.videos-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 40px 20px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.video-card {
    background: rgba(232, 220, 196, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(232, 220, 196, 0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
    text-align: center;
}

.video-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.video-description {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--gold);
}

/* Singles Section */
.singles-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 40px 20px;
}

.singles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.single-card {
    background: rgba(232, 220, 196, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(232, 220, 196, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.single-cover {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.single-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.single-date {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.single-note {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--cream);
    margin-bottom: auto;
    padding-bottom: 20px;
    line-height: 1.6;
}

.single-card .streaming-links {
    margin-top: auto;
}

.stream-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(232, 220, 196, 0.1);
    color: var(--cream);
    text-decoration: none;
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(232, 220, 196, 0.2);
}

.stream-btn-small:hover {
    background: rgba(232, 220, 196, 0.2);
    transform: translateY(-2px);
}

/* Footer */
.memorial-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(232, 220, 196, 0.1);
    margin-top: 60px;
}

.memorial-footer p {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--gold);
    margin: 8px 0;
    letter-spacing: 0.05em;
}

.home-link-container {
    text-align: center;
    padding: 40px 20px;
}

.home-link {
    display: inline-block;
    color: var(--cream);
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    padding: 12px 30px;
    border: 1px solid rgba(232, 220, 196, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.home-link:hover {
    background: rgba(232, 220, 196, 0.1);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .parents-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .singles-grid {
        grid-template-columns: 1fr;
    }

    .dedication-section {
        padding: 30px 20px;
    }

    .dedication-text {
        font-size: 1rem;
    }

    .booklet-spread {
        aspect-ratio: 1/1.4;
        max-width: 90%;
    }

    .booklet-page {
        width: 100% !important;
        left: 0 !important;
        right: auto !important;
    }

    .booklet-page.right {
        display: none;
    }
}
