        @font-face {
            font-family: 'Denne Etude';
            src: url('static/Denne Etude.ttf') format('truetype');
        }

        body {
            background-color: #F5F2E8;
            color: #1B2951;
            line-height: 1.6;
            font-family: 'Georgia', 'Times New Roman', Times, serif;
            font-style: italic;
            font-weight: 400;
        }
        
        /* Enhanced Image Modal Styles */
        .image-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(5px);
        }
        
        .image-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
        }
        
        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content img {
            max-width: 100%;
            max-height: 80vh;
            height: auto;
            border: 3px solid #F5F2E8;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        }
        
        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            background: #F5F2E8;
            color: #1B2951;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            font-style: normal;
            z-index: 1001;
        }
        
        .close-modal:hover {
            background: #FFFFFF;
            transform: scale(1.1);
        }
        
        /* Navigation buttons for modal */
        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(245, 242, 232, 0.9);
            color: #1B2951;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-style: normal;
        }
        
        .modal-nav:hover {
            background: #F5F2E8;
            transform: translateY(-50%) scale(1.1);
        }
        
        .modal-nav.prev {
            left: 20px;
        }
        
        .modal-nav.next {
            right: 20px;
        }
        
        .modal-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: #FFFFFF;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-style: normal;
        }
        
        /* Gallery Section Styles - UPDATED */
        .gallery-section {
            padding: 80px 0;
            background: #D4C4A0;
            overflow: hidden;
        }
        
        .gallery-section .section-title {
            color: #FFFFFF;
            border-bottom-color: rgba(255, 255, 255, 0.3);
        }
        
        .gallery-container {
            position: relative;
            padding: 0 50px;
        }
        
        .gallery-scroll {
            display: flex;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 20px 0;
            gap: 15px;
            scrollbar-width: thin;  /* Show thin scrollbar for Firefox */
            scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.1);
        }
        
        .gallery-scroll::-webkit-scrollbar {
            height: 8px;  /* Show scrollbar for Chrome, Safari and Opera */
        }
        
        .gallery-scroll::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }
        
        .gallery-scroll::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.5);
            border-radius: 4px;
        }
        
        .gallery-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.7);
        }
        
        .gallery-item {
            flex: 0 0 auto;
            cursor: pointer;
            height: 250px;
        }
        
        .gallery-item img {
            height: 100%;
            width: auto;
            object-fit: cover;
            border: 2px solid #F5F2E8;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        
        .scroll-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(245, 242, 232, 0.8);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            color: #1B2951;
        }
        
        .scroll-button.left {
            left: 0;
        }
        
        .scroll-button.right {
            right: 0;
        }
        
        /* Videos Section Styles */
        .videos-section {
            padding: 80px 0;
            background: #FFFFFF;
        }
        
        .videos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        
        .video-item video {
            width: 100%;
            height: 250px;
            object-fit: cover;
            background: #000;
        }
        
        .header-section {
            padding: 60px 0;
            border-bottom: 1px solid #E8E0D0;
            margin-top: 19px;
        }
        
        .memorial-photo {
            border: 1px solid #E8E0D0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            max-width: 100%;
            height: auto;
        }
        
        .memorial-text {
            background: rgba(255, 255, 255, 0.95);
            padding: 40px;
            border: 1px solid #E8E0D0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .memorial-text p {
            font-style: italic;
            font-size: 1.05rem;
        }
        
        .timeline-section {
            padding: 80px 0;
            background: #FFF;
        }
        
        .timeline-container {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        
        .timeline-line {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 2px;
            background: #1B2951;
            z-index: 1;
        }
        
        .timeline-points {
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 2;
            height: 100px;
        }
        
        .timeline-point {
            position: relative;
            width: 16px;
            height: 16px;
            background: #1B2951;
            border: 2px solid #F5F2E8;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 3;
        }
        
        .timeline-point:hover {
            background: #F5F2E8;
            border-color: #1B2951;
        }
        
        .timeline-year {
            position: absolute;
            top: 35px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 12px;
            font-weight: 500;
            color: #1B2951;
            white-space: nowrap;
            font-style: normal;
        }
        
        .timeline-tooltip {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid #E8E0D0;
            padding: 20px;
            min-width: 280px;
            max-width: 320px;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
            z-index: 10;
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        }
        
        .timeline-point:hover .timeline-tooltip {
            opacity: 1;
            visibility: visible;
        }
        
        .timeline-tooltip img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            margin-bottom: 12px;
        }
        
        .timeline-tooltip h6 {
            color: #1B2951;
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 14px;
            font-style: normal;
            font-family: 'Georgia', 'Times New Roman', Times, serif;
        }
        
        .timeline-tooltip p {
            color: #1B2951;
            font-size: 13px;
            margin: 0;
            line-height: 1.5;
            font-style: italic;
        }
        
        .keepsake-section {
            padding: 80px 0;
            background: #E8DCC4;
            border-top: 1px solid #D4C4A0;
            border-bottom: 1px solid #D4C4A0;
        }
        
        .keepsake-container {
            background: rgba(255, 255, 255, 0.95);
            padding: 60px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            max-width: 1190px;
            margin: 0 auto;
        }
        
        .keepsake-content {
            display: flex;
            align-items: center;
            gap: 60px;
        }
        
        .keepsake-book {
            flex: 0 0 350px;
        }
        
        .keepsake-book img {
            width: 100%;
            height: auto;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            border-radius: 4px;
        }
        
        .keepsake-info {
            flex: 1;
        }
        
        .keepsake-info h3 {
            color: #8B8B8B;
            font-size: 1rem;
            font-weight: normal;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 15px;
            font-style: normal;
        }
        
        .keepsake-info h2 {
            color: #1B2951;
            font-size: 2.5rem;
            font-weight: 300;
            margin-bottom: 25px;
            font-family: 'Times New Roman', serif;
            font-style: normal;
        }
        
        .keepsake-info p {
            color: #1B2951;
            font-size: 1.1rem;
            margin-bottom: 30px;
            font-style: normal;
        }
        
        .keepsake-buttons {
            display: flex;
            gap: 20px;
            margin-bottom: 40px;
        }
        
        .keepsake-btn {
            padding: 12px 30px;
            border: 2px solid #1B2951;
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
            font-style: normal;
        }
        
        .keepsake-btn-primary {
            background: #1B2951;
            color: #FFFFFF;
        }
        
        .keepsake-btn-primary:hover {
            background: #142144;
            border-color: #142144;
            color: #FFFFFF;
        }
        
        .keepsake-btn-secondary {
            background: transparent;
            color: #1B2951;
        }
        
        .keepsake-btn-secondary:hover {
            background: #1B2951;
            color: #FFFFFF;
        }
        
        .keepsake-share {
            border-top: 1px solid #E8E0D0;
            padding-top: 30px;
        }
        
        .keepsake-share h4 {
            color: #1B2951;
            font-size: 1.3rem;
            margin-bottom: 15px;
            font-weight: 600;
            font-style: normal;
        }
        
        .keepsake-share p {
            color: #1B2951;
            font-size: 1rem;
            margin-bottom: 20px;
        }
        
        .keepsake-share-btn {
            background: #54626F;
            color: #FFFFFF;
            padding: 12px 30px;
            border: none;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
            font-style: normal;
        }
        
        .keepsake-share-btn:hover {
            background: #3D4852;
            color: #FFFFFF;
        }
        
               @font-face {
            font-family: 'Denne Etude';
            src: url('static/Denne Etude.ttf') format('truetype');
        }

        body {
            background-color: #F5F2E8;
            color: #1B2951;
            line-height: 1.6;
            font-family: 'Georgia', 'Times New Roman', Times, serif;
            font-style: italic;
            font-weight: 400;
        }
        
        .memories-section {
            padding: 60px 0;
            background: #FAFAF8;
        }
        
        .memory-card {
            background: #FFFFFF;
            border: 1px solid #E8E0D0;
            padding: 15px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: opacity 0.4s ease, box-shadow 0.4s ease;
            text-align: center;
            break-inside: avoid;
            display: inline-block;
            width: 100%;
        }
        
        .memory-card:hover {
            opacity: 1;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .memory-photo {
            width: 300px;
            height: auto;
            object-fit: contain;
            border: none;
            margin: 0 auto 15px auto;
            display: block;
            cursor: pointer;
            transition: opacity 0.3s ease;
        }
        
        .memory-photo:hover {
            opacity: 0.8;
        }
        
        .memory-content {
            width: 100%;
        }
        
        .memory-content p {
            font-style: italic;
            font-size: 0.95rem;
        }
        
        .memory-author {
            color: #1B2951;
            font-weight: 400;
            border-bottom: 1px solid #E8E0D0;
            padding-bottom: 8px;
            margin-bottom: 12px;
            font-size: 21px;
            text-align: left;
            font-style: normal;
            font-family: 'Playfair Display', serif;
        }
        
        .memory-card p {
            text-align: left;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 50px;
            padding-bottom: 20px;
            border-bottom: 2px solid #E8E0D0;
            color: #1B2951;
            font-weight: 300;
            font-size: 3.5rem;
            font-family: 'Denne Etude', 'Times New Roman', serif;
            font-style: normal;
        }
        
        /* Masonry-style container */
        .guestbook-container {
            column-count: 3;
            column-gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Responsive Design */
        @media (max-width: 992px) {
            .guestbook-container {
                column-count: 2;
                column-gap: 15px;
            }
        }
        
        @media (max-width: 768px) {
            .memories-section {
                padding: 40px 0;
            }
            
            .guestbook-container {
                column-count: 1;
                column-gap: 0;
                padding: 0 15px;
            }
            
            .memory-card {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .memory-photo {
                width: 250px;
                height: auto;
                margin: 0 auto 12px auto;
            }
            
            .section-title {
                font-size: 2.2rem;
                margin-bottom: 30px;
            }
        }
        
        @media (max-width: 576px) {
            .section-title {
                font-size: 1.8rem;
            }
            
            .memory-card {
                padding: 12px;
            }
            
            .memory-photo {
                width: 200px;
                height: auto;
                margin: 0 auto 10px auto;
            }
        }
        
        .contact-section {
            background: #142144;
            color: #FFFFFF;
            padding: 50px 0;
            text-align: center;
        }
        
        .contact-section h3 {
            font-style: normal;
        }
        
        .contact-section p {
            font-style: normal;
        }
        
        .contact-section .btn {
            background: #F5F2E8;
            color: #1B2951;
            border: 2px solid #E8E0D0;
            padding: 12px 30px;
            font-weight: 500;
            transition: all 0.3s ease;
            font-style: normal;
        }
        
        .contact-section .btn:hover {
            background: #FFFFFF;
            color: #1B2951;
            border-color: #FFFFFF;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 50px;
            padding-bottom: 20px;
            border-bottom: 2px solid #E8E0D0;
            color: #1B2951;
            font-weight: 300;
            font-size: 3.5rem;
            font-family: 'Denne Etude', 'Times New Roman', serif;
            font-style: normal;
        }
        
        .memorial-name {
            color: #1B2951;
            font-size: 3.8rem;
            font-weight: 300;
            margin-bottom: 15px;
            letter-spacing: 1px;
            font-family: 'Denne Etude', 'Times New Roman', serif;
            font-style: normal;
        }
        
        .memorial-dates {
            color: #8B8B8B;
            font-size: 1.1rem;
            margin-bottom: 25px;
            /*! font-style: italic; */
            font-family: 'Lora', 'Georgia', serif;
        }
        
        .memorial-quote {
            color: #1B2951;
            border-left: 3px solid #E8E0D0;
            padding-left: 25px;
            margin: 25px 0;
            font-size: 1.15rem;
            font-style: italic;
            font-family: 'Playfair Display', serif;
            font-weight: 400;
        }
        
        /* Responsive Design */
        @media (min-width: 1200px) {
            .contact-section h3 {
                font-size: 2.75rem;
            }
        }
        
        @media (max-width: 768px) {
            .header-section {
                padding: 40px 0;
                margin-top: 40px;
            }
            
            .memorial-text {
                padding: 25px;
            }
            
            .memorial-name {
                font-size: 2.2rem;
            }
            
            .memorial-dates {
                font-size: 1rem;
            }
            
            .section-title {
                font-size: 1.6rem;
                margin-bottom: 30px;
            }
            
            .timeline-section {
                padding: 40px 0;
            }
            
            .timeline-container {
                padding: 20px 10px;
            }
            
            .timeline-tooltip {
                min-width: 200px;
                max-width: 250px;
                padding: 15px;
            }
            
            .timeline-tooltip img {
                height: 100px;
            }
            
            .keepsake-section {
                padding: 40px 0;
            }
            
            .keepsake-container {
                padding: 30px;
            }
            
            .keepsake-content {
                flex-direction: column;
                text-align: center;
                gap: 30px;
            }
            
            .keepsake-book {
                flex: 0 0 auto;
                max-width: 300px;
                margin: 0 auto;
            }
            
            .keepsake-info h2 {
                font-size: 2rem;
            }
            
            .keepsake-buttons {
                justify-content: center;
            }
                    .memories-section {
            padding: 60px 0;
            background: #FAFAF8;
        }
        
        .memory-card {
            background: #FFFFFF;
            border: 1px solid #E8E0D0;
            padding: 15px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: opacity 0.4s ease, box-shadow 0.4s ease;
            text-align: center;
            break-inside: avoid; /* Prevent breaking across columns */
        }
        
        .memory-card:hover {
            opacity: 1;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .memory-photo {
            width: 300px;
            height: auto;
            object-fit: contain;
            border: none;
            margin: 0 auto 15px auto;
            display: block;
            cursor: pointer;
            transition: opacity 0.3s ease;
        }
        
        .memory-photo:hover {
            opacity: 0.8;
        }
        
        .memory-content {
            width: 100%;
        }
        
        .memory-content p {
            font-style: italic;
            font-size: 0.95rem;
        }
        
        .memory-author {
            color: #1B2951;
            font-weight: 400;
            border-bottom: 1px solid #E8E0D0;
            padding-bottom: 8px;
            margin-bottom: 12px;
            font-size: 21px;
            text-align: left;
            font-style: normal;
            font-family: 'Playfair Display', serif;
        }
        
        .memory-card p {
            text-align: left;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 50px;
            padding-bottom: 20px;
            border-bottom: 2px solid #E8E0D0;
            color: #1B2951;
            font-weight: 300;
            font-size: 3.5rem;
            font-family: 'Denne Etude', 'Times New Roman', serif;
            font-style: normal;
        }
        
        /* Three column container */
        .guestbook-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .guestbook-column {
            display: flex;
            flex-direction: column;
        }
        
        /* Responsive Design */
        @media (max-width: 992px) {
            .guestbook-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
        }
        
        @media (max-width: 768px) {
            .memories-section {
                padding: 40px 0;
            }
            
            .guestbook-container {
                grid-template-columns: 1fr;
                gap: 10px;
                padding: 0 15px;
            }
            
            .memory-card {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .memory-photo {
                width: 250px;
                height: auto;
                margin: 0 auto 12px auto;
            }
            
            .section-title {
                font-size: 2.2rem;
                margin-bottom: 30px;
            }
        }
        
        @media (max-width: 576px) {
            .section-title {
                font-size: 1.8rem;
            }
            
            .memory-card {
                padding: 12px;
            }
            
            .memory-photo {
                width: 200px;
                height: auto;
                margin: 0 auto 10px auto;
            }
        }
            
            .section-title {
                font-size: 2.2rem;
                margin-bottom: 30px;
            }
        }
        
        @media (max-width: 576px) {
            .section-title {
                font-size: 3.8rem;
            }
            
            .memory-card {
                padding: 12px;
            }
            
            .memory-photo {
                width: 200px;
                height: auto;
                margin: 0 auto 10px auto;
            }
        }
            
            .modal-content {
                max-width: 95%;
                max-height: 70%;
            }
            
            .gallery-item {
                height: 180px;
            }
            
            .scroll-button {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }