/**
 * Memorial Landing Page Styles - DEFAULT THEME
 * Clean, professional, timeless design
 * Version: 10.7.0 - Consolidated Android number spacing fix
 * 
 * LOCATION: /wp-content/plugins/qr-code-generator/assets/css/memorial-page-default.css
 */

/* =================================================================
   RESET AND BASE STYLES
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.memorial-landing-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-feature-settings: "kern" 1, "liga" 1;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
}

/* =================================================================
   STICKY HEADER CONTAINER
   ================================================================= */
.memorial-sticky-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
}

/* =================================================================
   HERO HEADER
   ================================================================= */
.memorial-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: min-height 0.3s ease, padding 0.3s ease;
}

.memorial-sticky-container.scrolled .memorial-hero {
    min-height: 100px;
    padding: 15px 20px 10px;
}

.memorial-hero-content {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.memorial-profile {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 5px solid white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.memorial-sticky-container.scrolled .memorial-profile {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    border-width: 3px;
}

.memorial-profile-placeholder {
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.memorial-sticky-container.scrolled .memorial-profile-placeholder {
    font-size: 24px;
}

.memorial-hero-name {
    font-size: 42px;
    font-weight: 600;
    color: white;
    margin: 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.memorial-sticky-container.scrolled .memorial-hero-name {
    font-size: 20px;
    margin: 4px 0;
}

.memorial-hero-dates {
    font-size: 16px;
    color: rgba(255,255,255,0.95);
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.memorial-sticky-container.scrolled .memorial-hero-dates {
    font-size: 13px;
}

/* Epitaph/Tagline */
.memorial-hero-epitaph {
    font-size: 18px;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    margin-top: 15px;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.memorial-sticky-container.scrolled .memorial-hero-epitaph {
    font-size: 0;
    margin: 0;
    opacity: 0;
}

/* =================================================================
   NAVIGATION - MATCHES TEMPLATE STRUCTURE
   ================================================================= */
.memorial-nav {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.memorial-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.memorial-nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.memorial-nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.memorial-nav-link::before {
    content: '';
    font-size: 18px;
}

.memorial-nav-link:nth-child(1)::before { content: '📖'; }
.memorial-nav-link:nth-child(2)::before { content: '✨'; }
.memorial-nav-link:nth-child(3)::before { content: '🕐'; }
.memorial-nav-link:nth-child(4)::before { content: '🖼️'; }
.memorial-nav-link:nth-child(5)::before { content: '🎬'; }
.memorial-nav-link:nth-child(6)::before { content: '💬'; }
.memorial-nav-link:nth-child(7)::before { content: '⛪'; }

/* =================================================================
   CONTENT SECTIONS
   ================================================================= */
.memorial-content {
    padding-top: 0;
    background: #f9fafb;
}

.memorial-section {
    padding: 60px 20px;
    background: white;
}

.memorial-section-alt {
    background: #f9fafb;
}

.memorial-section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.memorial-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 30px 0;
    text-align: center;
}

.memorial-obituary {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

.memorial-obituary p {
    margin-bottom: 20px;
}

/* =================================================================
   TIMELINE
   ================================================================= */
.memorial-timeline {
    position: relative;
    padding-left: 140px;
}

.memorial-timeline::before {
    content: '';
    position: absolute;
    left: 128px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.memorial-timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.memorial-timeline-date-wrapper {
    position: absolute;
    left: -140px;
    width: 100px;
    text-align: right;
    top: 0;
}

.memorial-timeline-year {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.memorial-timeline-day {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.memorial-timeline-marker {
    position: absolute;
    left: -152px;
    width: 48px;
    height: 48px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.memorial-timeline-content {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
}

.memorial-timeline-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.memorial-timeline-desc {
    color: #6b7280;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.memorial-timeline-location {
    color: #9ca3af;
    font-size: 14px;
    font-style: italic;
}

/* =================================================================
   GALLERY
   ================================================================= */
.memorial-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.memorial-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.memorial-gallery-item {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memorial-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.memorial-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =================================================================
   VIDEOS SECTION
   ================================================================= */
.memorial-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.memorial-video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.memorial-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.memorial-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.memorial-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.memorial-video-info {
    padding: 20px;
}

.memorial-video-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.memorial-video-description {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* =================================================================
   TRIBUTES
   ================================================================= */
.memorial-tributes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.memorial-tribute-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.memorial-tribute-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    flex-shrink: 0;
}

.memorial-tribute-content {
    flex: 1;
}

.memorial-tribute-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.memorial-tribute-author {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.memorial-tribute-date {
    font-size: 14px;
    color: #9ca3af;
}

.memorial-tribute-message {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.memorial-tribute-photos {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.memorial-tribute-photos img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.memorial-tribute-photos img:hover {
    transform: scale(1.05);
}

/* =================================================================
   SERVICE SECTION
   ================================================================= */
.memorial-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.memorial-service-details,
.memorial-service-rsvp {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.memorial-service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
}

.memorial-service-item {
    display: flex;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.memorial-service-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.memorial-service-label {
    font-weight: 600;
    color: #6b7280;
    min-width: 100px;
    font-size: 15px;
}

.memorial-service-value {
    flex: 1;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.5;
}

.memorial-service-map {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Service RSVP Form */
.memorial-rsvp-form .memorial-form-group {
    margin-bottom: 20px;
}

.memorial-input,
.memorial-select,
.memorial-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.memorial-input:focus,
.memorial-select:focus,
.memorial-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.memorial-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.memorial-textarea {
    resize: vertical;
    min-height: 80px;
}

/* =================================================================
   BUTTONS
   ================================================================= */
.memorial-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.memorial-btn-primary {
    background: #667eea;
    color: white;
}

.memorial-btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.memorial-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.memorial-btn-secondary:hover {
    background: #e5e7eb;
}

/* =================================================================
   MODALS & SLIDESHOW
   ================================================================= */
.memorial-modal,
.memorial-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.memorial-modal.active,
.memorial-slideshow.active {
    display: block;
}

.memorial-modal-overlay,
.memorial-slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.memorial-modal-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.memorial-modal-close,
.memorial-slideshow-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.memorial-modal-close:hover,
.memorial-slideshow-close:hover {
    background: rgba(0,0,0,0.7);
    transform: rotate(90deg);
}

.memorial-slideshow-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-slideshow-image-container {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
}

.memorial-slideshow-image-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.memorial-slideshow-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

.memorial-slideshow-prev,
.memorial-slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.memorial-slideshow-prev {
    left: 30px;
}

.memorial-slideshow-next {
    right: 30px;
}

.memorial-slideshow-prev:hover,
.memorial-slideshow-next:hover {
    background: rgba(255,255,255,0.3);
}

.memorial-slideshow-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* =================================================================
   FORMS
   ================================================================= */
.memorial-form-group {
    margin-bottom: 25px;
}

.memorial-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.memorial-form-group input[type="text"],
.memorial-form-group input[type="email"],
.memorial-form-group input[type="tel"],
.memorial-form-group input[type="number"],
.memorial-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.memorial-form-group input:focus,
.memorial-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.memorial-form-group small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.memorial-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

.memorial-form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.memorial-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}

.memorial-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

/* =================================================================
   FOOTER
   ================================================================= */
.memorial-footer {
    text-align: center;
    padding: 40px 20px;
    background: #1f2937;
    color: rgba(255,255,255,0.7);
}

/* =================================================================
   FAVOURITES SECTION
   ================================================================= */
.memorial-favourites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.memorial-favourites-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
    align-items: stretch;
}

.memorial-favourites-heading {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 5px 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.memorial-favourites-cards-container {
    position: relative;
    min-height: 150px;
}

.memorial-favourite-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInSlide 0.6s ease forwards;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.memorial-favourite-card:nth-child(1) {
    animation-delay: 0s;
}

.memorial-favourite-card:nth-child(2) {
    animation-delay: 0.15s;
}

.memorial-favourite-card:nth-child(3) {
    animation-delay: 0.3s;
}

.memorial-favourite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-left-color: #764ba2;
}

.memorial-favourite-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.memorial-favourite-subtitle {
    font-size: 15px;
    color: #667eea;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.memorial-favourite-quote {
    font-size: 17px;
    font-style: italic;
    color: #4b5563;
    margin: 0 0 12px 0;
    line-height: 1.6;
    position: relative;
    padding-left: 16px;
}

.memorial-favourite-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 32px;
    color: #667eea;
    opacity: 0.3;
}

.memorial-favourite-note {
    font-size: 14px;
    color: #6b7280;
    margin: 10px 0 0 0;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    font-style: italic;
    line-height: 1.5;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.memorial-favourites-column[data-rotation="true"] .memorial-favourite-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    animation: none;
}

.memorial-favourites-column[data-rotation="true"] .memorial-favourite-card.active {
    position: relative;
    animation: fadeInOut 8s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    10% {
        opacity: 1;
        transform: translateX(0);
    }
    85% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* =================================================================
   ANDROID/MOBILE NUMBER SPACING FIX v10.7.0
   Prevents emoji fonts from causing "1 9 9 4" spacing on Android
   ================================================================= */
.memorial-hero-dates,
.memorial-timeline-year,
.memorial-timeline-day,
.memorial-timeline-content,
.memorial-timeline-title,
.memorial-timeline-desc,
.memorial-tribute-card,
.memorial-tribute-message,
.memorial-tribute-date,
.memorial-favourite-card,
.memorial-favourite-title,
.memorial-favourite-subtitle,
.memorial-favourite-note,
.memorial-service-value {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-variant-numeric: normal;
    letter-spacing: normal;
    word-spacing: normal;
}

/* =================================================================
   RESPONSIVE - MOBILE
   ================================================================= */
@media (max-width: 768px) {
    .memorial-hero {
        min-height: 280px;
        padding: 40px 20px 30px;
    }
    
    .memorial-sticky-container.scrolled .memorial-hero {
        min-height: 90px;
        padding: 12px 20px 8px;
    }
    
    .memorial-profile {
        width: 100px;
        height: 100px;
    }
    
    .memorial-sticky-container.scrolled .memorial-profile {
        width: 50px;
        height: 50px;
    }
    
    .memorial-hero-name {
        font-size: 28px;
    }
    
    .memorial-sticky-container.scrolled .memorial-hero-name {
        font-size: 16px;
    }
    
    .memorial-hero-dates {
        font-size: 14px;
    }
    
    .memorial-sticky-container.scrolled .memorial-hero-dates {
        font-size: 11px;
    }
    
    .memorial-nav {
        justify-content: flex-start;
        padding: 0 10px;
    }
    
    .memorial-nav-link {
        padding: 16px 18px;
        font-size: 14px;
    }
    
    .memorial-section {
        padding: 40px 16px;
    }
    
    .memorial-section h2 {
        font-size: 26px;
    }
    
    .memorial-timeline {
        padding-left: 0;
    }
    
    .memorial-timeline::before {
        display: none;
    }
    
    .memorial-timeline-item {
        margin-bottom: 30px;
    }
    
    .memorial-timeline-date-wrapper {
        position: static;
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
    }
    
    .memorial-timeline-year {
        font-size: 22px;
    }
    
    .memorial-timeline-day {
        font-size: 14px;
    }
    
    .memorial-timeline-marker {
        position: static;
        margin: 0 auto 15px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .memorial-timeline-content {
        padding: 20px;
    }
    
    .memorial-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .memorial-videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .memorial-video-card {
        margin-bottom: 0;
    }
    
    .memorial-video-info {
        padding: 16px;
    }
    
    .memorial-video-title {
        font-size: 16px;
    }
    
    .memorial-video-description {
        font-size: 14px;
    }
    
    .memorial-tributes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .memorial-tribute-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .memorial-tribute-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .memorial-tribute-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .memorial-gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .memorial-modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .memorial-slideshow-prev,
    .memorial-slideshow-next {
        width: 45px;
        height: 45px;
        font-size: 30px;
    }
    
    .memorial-slideshow-prev {
        left: 15px;
    }
    
    .memorial-slideshow-next {
        right: 15px;
    }

    .memorial-favourites-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .memorial-favourites-column {
        gap: 16px;
    }
    
    .memorial-favourites-heading {
        font-size: 20px;
        text-align: center;
    }
    
    .memorial-favourite-card {
        padding: 20px;
    }
    
    .memorial-favourite-title {
        font-size: 17px;
    }
    
    .memorial-favourite-quote {
        font-size: 16px;
    }
    
    .memorial-favourites-column[data-rotation="true"] .memorial-favourite-card {
        position: relative;
        opacity: 1;
        animation: fadeInSlide 0.6s ease forwards;
    }
    
    .memorial-favourites-column[data-rotation="true"] .memorial-favourite-card.active {
        animation: fadeInSlide 0.6s ease forwards;
    }
    
    .memorial-service-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .memorial-service-card {
        padding: 24px;
    }
    
    .memorial-service-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .memorial-service-label {
        min-width: auto;
        font-size: 14px;
    }
    
    .memorial-service-value {
        font-size: 15px;
    }
}