*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: none;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 100vh;
    padding: 40px 20px;
    background: url('photos-min/new_bg_2-min.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    gap: 40px;
}

.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.2s;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    padding: 4px;
}

.hamburger.hide {
    opacity: 0;
    pointer-events: none;
}

.hamburger span {
    display: block;
    width: 32px;
    height: 4px;
    margin: 4px 0;
    background: #CB9D33;
    border-radius: 2px;
    transition: 0.3s;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.97);
    box-shadow: -2px 0 16px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem 2rem 1.5rem;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #CB9D33;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    position: absolute;
    top: 0.1rem;
    right: 1.5rem;
    z-index: 1002;
}

.drawer-audio-toggle {
    background: none;
    border: none;
    color: #CB9D33;
    font-size: 1.3rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    position: absolute;
    top: 0.5rem;
    right: 4.2rem;
    z-index: 2002;
    transition: color 0.2s;
    pointer-events: auto;
}
.drawer-audio-toggle:hover {
    color: #fff;
}

.drawer-music {
    background: none;
    border: none;
    color: #CB9D33;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    position: absolute;
    top: 0.1rem;
    right: 3.5rem;
    z-index: 1002;
    transition: color 0.2s;
}
.drawer-music:hover {
    color: #fff;
}

.drawer-music-dropdown {
    display: none;
    position: absolute;
    top: 2.6rem;
    right: 3.5rem;
    z-index: 1003;
    animation: dropdown-fade 0.3s;
}
.drawer-music-dropdown.open {
    display: block;
}
@keyframes dropdown-fade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
#drawer-audio-toggle {
    background: #CB9D33;
    color: #181818;
    border: none;
    border-radius: 6px;
    font-size: 1.5rem;
    padding: 6px 18px;
    cursor: pointer;
    font-family: 'Homenaje', sans-serif;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
#drawer-audio-toggle:hover {
    background: #fff;
    color: #CB9D33;
}

.drawer-profile {
    display: block;
    width: 100%;
    height: 28vh;
    object-fit: cover;
    object-position: top;
    border-radius: 16px 16px 0 0;
    margin: 2.5rem 0 1rem 0;
    box-shadow: none;
    border: none;
}

.drawer-menu-title {
    font-family: 'Alex Brush', cursive;
    font-size: 60px;
    color: #CB9D33;
    text-align: center;
    margin-bottom: 0.25rem;
    margin-top: -0.5rem;
    display: inline-block;
    border-bottom: 3px solid #CB9D33;
    padding-bottom: 4px;
}

.drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    margin-top: 0;
}

.drawer-menu-list li {
    font-family: 'Homenaje', sans-serif;
    font-size: 45px;
    color: #CB9D33;
    text-align: center;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.drawer-menu-list a {
    color: #CB9D33;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s;
}

.drawer-menu-list a:hover {
    color: #fff;
}

.hero-3d-elements {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin-bottom: 0;
    position: static;
    z-index: auto;
}

.logo-3d-container,
.text-3d-container {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    pointer-events: none;
}

.logo-3d-container {
    width: 12vw;
    height: 12vw;
    max-width: 170px;
    max-height: 170px;
    margin-right: -30px;
    margin-top: 15px;
}

.text-3d-container {
    width: 28vw;
    height: 28vw;
    max-width: 400px;
    max-height: 400px;
}

.logo-3d-container model-viewer {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    --poster-color: transparent;
    --progress-bar-color: transparent;
    --progress-bar-height: 0px;
}

.text-3d-container model-viewer {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    --poster-color: transparent;
    --progress-bar-color: transparent;
    --progress-bar-height: 0px;
}

@media (max-width: 600px) {
    .hero-3d-elements {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        display: flex;
        flex-direction: row;
        gap: 4vw;
    }
    .logo-3d-container {
        width: 50vw;
        height: 50vw;
        max-width: 130px;
        max-height: 130px;
    }
    .text-3d-container {
        width: 70vw;
        height: 70vw;
        max-width: 300px;
        max-height: 300px;
    }
    .logo-3d-container model-viewer {
        width: 100% !important;
        height: 100% !important;
        max-width: 98vw;
        max-height: 40vh;
    }
    .text-3d-container model-viewer {
        width: 100% !important;
        height: 100% !important;
        max-width: 98vw;
        max-height: 40vh;
    }
    .hero-container {
        background: url('photos-min/new_bg_2-min.png') no-repeat center center;
        background-size: cover;
    }
    .drawer-menu-list li {
        margin-bottom: 0.5rem;
    }
    .hero-corner-book {
        display: block;
        position: static;
        width: 45vw;
        max-width: 180px;
        height: auto;
        z-index: 30;
        transform: none;
    }
}

#author-bio {
    background-color: black;
    color: #CB9D33;
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

#author-bio h2 {
    font-family: 'Alex Brush', cursive;
    font-size: 60px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 30px;
    display: inline-block;
    border-bottom: 2px solid #CB9D33;
    padding-bottom: 5px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#author-bio p {
    font-family: 'Homenaje', sans-serif;
    font-size: 24px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: justify;
    letter-spacing: 0.5px;
}

#author-bio p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    #author-bio {
        padding: 30px 15px;
    }
    #author-bio p {
        font-size: 20px;
        padding: 0;
        max-width: 100%;
    }
}

#book-trailer {
    background-color: black;
    color: #CB9D33;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

#book-trailer h2 {
    font-family: 'Alex Brush', cursive;
    font-size: 60px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 30px;
    display: inline-block;
    border-bottom: 2px solid #CB9D33;
    padding-bottom: 5px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#behind-the-scenes {
    background-color: black;
    color: #CB9D33;
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

#behind-the-scenes h2 {
    font-family: 'Alex Brush', cursive;
    font-size: 60px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 30px;
    display: inline-block;
    border-bottom: 2px solid #CB9D33;
    padding-bottom: 5px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

#behind-the-scenes .videos-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.video-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.video-container video {
    width: calc(33.333% - 20px);
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1200px) {
    .video-container {
        position: relative;
        overflow: hidden;
        padding: 0;
    }

    .video-container video {
        width: 100%;
        min-width: unset;
        display: none;
    }

    .video-container video.active {
        display: block;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(203, 157, 51, 0.3);
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .carousel-dot.active {
        background: #CB9D33;
    }
}

@media (max-width: 600px) {
    #book-trailer h2, #behind-the-scenes h2 {
        font-size: 45px;
    }
    .video-container {
        width: 100%;
        margin-bottom: 30px;
    }
    .video-container video {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    #behind-the-scenes h2 {
        font-size: 45px;
    }
}

#photo-gallery {
    background-color: black;
    color: #CB9D33;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 20px 20px;
}

#photo-gallery h2 {
    font-family: 'Alex Brush', cursive;
    font-size: 60px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid #CB9D33;
    padding-bottom: 5px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
}

.frame-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    position: relative;
}

.gold-fence {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70vw;
    max-width: 700px;
    aspect-ratio: 4/3;
    height: auto;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

.fence-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.framed-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92%;
    height: 92%;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    display: block;
}

.framed-photo.fade-out {
    opacity: 0;
}

.framed-photo.fade-in {
    opacity: 1;
}

.framed-photo[style*="display: none"] {
    opacity: 0;
}

.photo-caption {
    font-family: 'Homenaje', sans-serif;
    font-size: 32px;
    color: #CB9D33;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 1px;
    width: 100%;
    position: relative;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.photo-caption.fade-out {
    opacity: 0;
}

.photo-caption.fade-in {
    opacity: 1;
}

.carousel-arrow {
    background: none;
    border: none;
    color: #CB9D33;
    font-size: 48px;
    cursor: pointer;
    padding: 10px 15px;
    transition: transform 0.2s, color 0.2s;
    z-index: 2;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    color: #fff;
    transform: scale(1.1);
}

@media (max-width: 600px) {
    #photo-gallery h2 {
        font-size: 45px;
        margin-bottom: 10px;
    }

    .gold-fence {
        width: 95vw; /* Make frame wider on mobile */
    }

    .carousel-arrow {
        font-size: 36px;
        padding: 5px 10px;
    }
    .photo-caption {
        font-size: 24px;
        margin-top: 5px;
    }
}

#free-chapters {
    background-color: #000;
    color: #CB9D33;
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

#free-chapters h2 {
    font-family: 'Alex Brush', cursive;
    font-size: 60px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 30px;
    display: inline-block;
    border-bottom: 2px solid #CB9D33;
    padding-bottom: 5px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#free-chapters p {
    font-family: 'Homenaje', sans-serif;
    font-size: 24px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: justify;
    letter-spacing: 0.5px;
}

#free-chapters p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    #free-chapters p {
        font-size: 20px;
        padding: 0 15px;
    }
}

.pdf-container {
    width: fit-content;
    margin: 0 auto;
    position: relative;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pdf-viewer {
    width: fit-content;
    background: white;
    margin-bottom: 20px;
    border: 1px solid #CB9D33;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    perspective: 2000px;
    gap: 0;
}

.pdf-viewer canvas {
    display: block;
    margin: 0;
    width: auto;
    height: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease-in-out;
    transform-origin: center;
    backface-visibility: hidden;
    background: white;
}

.pdf-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
}

.pdf-nav-button {
    background: #CB9D33;
    color: black;
    border: none;
    padding: 10px 20px;
    font-family: 'Homenaje', sans-serif;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.pdf-nav-button:hover {
    background: #a37d1f;
}

.pdf-nav-button:disabled {
    background: #666;
    cursor: not-allowed;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.zoom-button {
    background: #CB9D33;
    color: black;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.zoom-button:hover {
    background: #a37d1f;
}

.zoom-level {
    color: #CB9D33;
    font-family: 'Homenaje', sans-serif;
    font-size: 16px;
    min-width: 60px;
    text-align: center;
}

.page-info {
    color: #CB9D33;
    font-family: 'Homenaje', sans-serif;
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .pdf-container {
        width: 100%;
        padding: 10px;
    }
    
    .pdf-viewer {
        width: 100%;
    }
    
    .pdf-nav-button {
        padding: 8px 16px;
        font-size: 16px;
    }
    .pdf-viewer canvas {
        max-width: 100%;
        height: auto !important;
    }
    .zoom-controls {
        display: none;
    }
}

@media (max-width: 1200px) {
    .pdf-viewer {
        flex-direction: column;
        gap: 10px;
    }
    
    .pdf-viewer canvas {
        transform-origin: center !important;
    }
}

#book-trailer video {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#header {
    color: #CB9D33;
    text-align: center;
    position: relative;
    z-index: 2;
    background: none;
    padding: 0;
}

#header img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.hero-book-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 220px;
    width: 40vw;
    height: auto;
    z-index: 10;
    position: relative;
}

@media (max-width: 600px) {
    .hero-book-image {
        max-width: 120px;
        width: 60vw;
        margin-top: 20px;
    }
}

.hero-welcome-message {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 0;
    background: #000;
    color: #CB9D33;
    font-family: 'Homenaje', sans-serif;
    font-size: 1.7rem;
    max-width: 900px;
    width: 90vw;
    padding: 18px 36px 14px 36px;
    border-radius: 10px;
    text-align: center;
    z-index: 20;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .hero-welcome-message {
        position: static;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
        font-size: 1.1rem;
        padding: 10px 12px;
        width: 95vw;
        max-width: 95vw;
        border-radius: 7px;
        margin: 20px auto;
        display: block;
    }
}

.hero-welcome-heading {
    font-family: 'Alex Brush', cursive;
    font-size: 2.2rem;
    color: #CB9D33;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 1px;
}

.hero-corner-book {
    position: absolute;
    top: 18px;
    left: 45px;
    width: 22vw;
    max-width: 320px;
    height: auto;
    z-index: 30;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border-radius: 8px;
}

@media (max-width: 600px) {
    .hero-corner-book {
        display: block;
        position: static;
        width: 45vw;
        max-width: 180px;
        height: auto;
        z-index: 30;
        transform: none;
    }

    .hero-signature-image {
        display: block;
        position: absolute;
        bottom: 420px; /* Adjust this value to move the image closer to the message */
        left: 50%;
        transform: translateX(-50%);
        width: 200px; /* Increased from 150px */
        z-index: 21;
        top: auto; /* Reset top for mobile */
    }

    .hero-welcome-message {
        position: static;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
        font-size: 1.1rem;
        padding: 10px 12px;
        width: 95vw;
        max-width: 95vw;
        border-radius: 7px;
        margin: 20px auto;
        display: block;
    }
}

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.contact-modal.open {
    display: flex;
}

.contact-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 1;
}

.contact-modal-content {
    position: relative;
    z-index: 2;
    background: #181818;
    color: #CB9D33;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    padding: 36px 32px 28px 32px;
    min-width: 320px;
    max-width: 95vw;
    width: 400px;
    text-align: center;
    font-family: 'Homenaje', sans-serif;
}

.contact-modal-content h2 {
    font-family: 'Alex Brush', cursive;
    font-size: 2.2rem;
    color: #CB9D33;
    margin-bottom: 18px;
}

.contact-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    color: #CB9D33;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s;
}

.contact-modal-close:hover {
    color: #fff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    font-family: 'Homenaje', sans-serif;
    font-size: 1.1rem;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #CB9D33;
    background: #222;
    color: #CB9D33;
    outline: none;
    resize: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #fff;
}

.contact-form button[type="submit"] {
    background: #CB9D33;
    color: #181818;
    font-family: 'Homenaje', sans-serif;
    font-size: 1.2rem;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.contact-form button[type="submit"]:hover {
    background: #fff;
    color: #CB9D33;
}

@media (max-width: 600px) {
    .contact-modal-content {
        width: 98vw;
        min-width: unset;
        padding: 18px 4vw 16px 4vw;
    }
    .contact-modal-content h2 {
        font-size: 1.5rem;
    }
}

.contact-thankyou {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3100;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.85);
}
.contact-thankyou.open {
    display: flex;
}
.contact-thankyou > div,
.contact-thankyou-content {
    background: #181818;
    color: #CB9D33;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    padding: 36px 32px 28px 32px;
    min-width: 320px;
    max-width: 95vw;
    width: 400px;
    text-align: center;
    font-family: 'Homenaje', sans-serif;
}
.contact-thankyou h2 {
    font-family: 'Alex Brush', cursive;
    font-size: 2.2rem;
    color: #CB9D33;
    margin-bottom: 18px;
}
@media (max-width: 600px) {
    .contact-thankyou > div,
    .contact-thankyou-content {
        width: 98vw;
        min-width: unset;
        padding: 18px 4vw 16px 4vw;
    }
    .contact-thankyou h2 {
        font-size: 1.5rem;
    }
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 24px auto 0 auto;
    background: rgba(0,0,0,0.7);
    border-radius: 12px;
    padding: 12px 24px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 100;
}
.audio-controls button {
    background: #CB9D33;
    color: #181818;
    border: none;
    border-radius: 6px;
    font-size: 1.5rem;
    padding: 6px 18px;
    cursor: pointer;
    font-family: 'Homenaje', sans-serif;
    transition: background 0.2s, color 0.2s;
}
.audio-controls button:hover {
    background: #fff;
    color: #CB9D33;
}
.audio-controls input[type="range"] {
    width: 120px;
    accent-color: #CB9D33;
    background: transparent;
    height: 4px;
    border-radius: 2px;
}
#audio-controls input[type="range"]::-webkit-slider-thumb {
    background: #CB9D33;
}
#audio-controls input[type="range"]::-moz-range-thumb {
    background: #CB9D33;
}
#audio-controls input[type="range"]::-ms-thumb {
    background: #CB9D33;
}
#audio-controls input[type="range"]::-webkit-slider-thumb {
    border: 1px solid #CB9D33;
}
#audio-controls input[type="range"]:focus {
    outline: none;
}
#audio-controls input[type="range"]::-webkit-slider-runnable-track {
    background: #222;
}
#audio-controls input[type="range"]::-moz-range-track {
    background: #222;
}
#audio-controls input[type="range"]::-ms-fill-lower {
    background: #222;
}
#audio-controls input[type="range"]::-ms-fill-upper {
    background: #222;
}
#audio-controls input[type="range"]::-webkit-slider-thumb {
    box-shadow: 0 0 2px #CB9D33;
}
#audio-controls input[type="range"]::-moz-range-thumb {
    box-shadow: 0 0 2px #CB9D33;
}
#audio-controls input[type="range"]::-ms-thumb {
    box-shadow: 0 0 2px #CB9D33;
}
#audio-controls input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}
#audio-controls input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}
#audio-controls input[type="range"]::-ms-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}
@media (max-width: 600px) {
    .audio-controls {
        padding: 8px 8px;
        gap: 10px;
    }
    .audio-controls input[type="range"] {
        width: 70px;
    }
    .audio-controls button {
        font-size: 1.1rem;
        padding: 4px 10px;
    }
}

/* Hide default audio element */
audio#audio {
    display: none;
}

.alex-brush {
    font-family: 'Alex Brush', cursive;
    color: #CB9D33;
    font-size: 2.1rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 8px;
}

.shopify-embed {
    background: #000;
    padding: 40px 0 40px 0;
    width: 100%;
}

.hero-mobile-image {
    display: none; /* Hidden by default */
}

@media (max-width: 600px) {
    .hero-mobile-image {
        display: block;
        position: absolute;
        bottom: 200px; /* Adjust as needed */
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        z-index: 21;
    }

    .hero-welcome-message {
        position: static;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
        font-size: 1.1rem;
        padding: 10px 12px;
        width: 95vw;
        max-width: 95vw;
        border-radius: 7px;
        margin: 20px auto;
        display: block;
    }

    .hero-container {
        background: url('photos-min/new_bg_2-min.png') no-repeat center center;
        background-size: cover;
        height: auto;
    
    }
}

.hero-signature-image {
    position: absolute;
    top: 18px;
    left: 45px;
    width: 320px;
    z-index: 30;
    display: block; /* Visible by default on desktop */
}

@media (max-width: 600px) {
    .hero-signature-image {
        display: block;
        position: absolute;
        bottom: 420px; /* Adjust this value to move the image closer to the message */
        left: 50%;
        transform: translateX(-50%);
        width: 200px; /* Increased from 150px */
        z-index: 21;
        top: auto; /* Reset top for mobile */
    }

    .hero-welcome-message {
        position: static;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
        font-size: 1.1rem;
        padding: 10px 12px;
        width: 95vw;
        max-width: 95vw;
        border-radius: 7px;
        margin: 20px auto;
        display: block;
    }
}

#shopify-section {
    background-color: black;
    padding: 40px 0;
    width: 100%;
    color: #fff; /* White text on black background */
}

.shopify-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

#shopify-section h2 {
    color: #CB9D33; /* Gold color for headings */
    text-align: center;
    font-family: 'Alex Brush', cursive;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Style Shopify buy button text to match site colors */
#shopify-section * {
    color: #fff; /* Ensure all text in Shopify section is white */
}

#shopify-section h1, 
#shopify-section h2, 
#shopify-section h3, 
#shopify-section h4, 
#shopify-section h5, 
#shopify-section h6 {
    color: #CB9D33; /* Gold for all headings */
}

@media (max-width: 600px) {
    #shopify-section h2 {
        font-size: 2rem;
    }
    
    .shopify-container {
        padding: 0 15px;
    }
}

.third-party-links-section {
    background-color: #000;
    padding: 60px 20px;
}

.third-party-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.third-party-link img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #CB9D33;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.third-party-link:hover img {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(203, 157, 51, 0.6);
}

@media (max-width: 768px) {
    .third-party-links-container {
        gap: 30px;
    }
    .third-party-link img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .third-party-links-container {
        gap: 20px;
    }
    .third-party-link img {
        width: 80px;
        height: 80px;
    }
}

/* PDF Viewer Section */
#free-chapters {
    background-color: #000;
}

.purchase-container {
    display: flex;
    background-color: #000;
    padding: 40px 20px;
    gap: 40px;
    align-items: flex-start;
}

#shopify-section {
    flex: 3; /* Takes up more space */
    padding: 0;
    background: transparent;
}

.third-party-links-section {
    flex: 1; /* Takes up less space */
    padding: 0;
    background: transparent;
    text-align: center;
}

.third-party-links-section h2 {
    color: #CB9D33;
    font-family: 'Alex Brush', cursive;
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.third-party-links-container {
    flex-direction: column;
    gap: 25px;
}

@media (max-width: 992px) {
    .purchase-container {
        flex-direction: column;
        align-items: center;
    }
    #shopify-section {
        order: 1; /* Appears first on mobile */
        width: 100%;
        max-width: 600px;
    }
    .third-party-links-section {
        order: 2; /* Appears second on mobile */
        width: 100%;
        max-width: 600px;
    }
    .third-party-links-container {
        flex-direction: row;
        justify-content: center;
    }
}

.third-party-links-section {
    background-color: #000;
    padding: 60px 20px;
}

#purchase {
    scroll-margin-top: 10px;
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        justify-content: flex-start;
        gap: 30px;
        height: auto;
        padding: 30px 10px;
    }
}

/* Photo Gallery Modal Styles */
.photo-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5000;
    justify-content: center;
    align-items: center;
}
.photo-gallery-modal.open {
    display: flex;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 1;
}
.modal-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 95vw;
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
}
.modal-frame-container {
    position: relative;
    width: 90vw;
    max-width: 900px;
    aspect-ratio: 4/3;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-fence-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.modal-framed-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92%;
    height: 92%;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 0.5s, transform 0.3s;
    display: block;
    border-radius: 8px;
}
.modal-arrow {
    background: none;
    border: none;
    color: #CB9D33;
    font-size: 64px;
    cursor: pointer;
    padding: 10px 18px;
    transition: transform 0.2s, color 0.2s;
    z-index: 3;
    flex-shrink: 0;
    user-select: none;
}
.modal-arrow:hover {
    color: #fff;
    transform: scale(1.1);
}
@media (max-width: 600px) {
    .modal-content {
        width: 98vw;
        max-width: 98vw;
        height: 70vh;
        max-height: 70vh;
    }
    .modal-frame-container {
        width: 98vw;
        max-width: 98vw;
    }
    .modal-arrow {
        font-size: 40px;
        padding: 5px 8px;
    }
}
