/* ==========================================================================
   CSS SYSTEM DESIGN: EN NUESTRA MEMORIA (MEMORIAL TEMPLATE)
   Colors: Purple, Ivory White, Gold, Deep Dark Charcoal, Pastel Lilacs
   Style: Elegant, Premium, Professional, Modern, Minimalist
   ========================================================================== */

/* Variables & Custom Properties */
:root {
    --color-bg-page: #fbf9f5;         /* Cream/Ivory background for high peace/elegance */
    --color-bg-card: #ffffff;         /* Pure white for foreground elements */
    --color-bg-dark: #1f0724;         /* Rich deep dark purple/black */
    --color-bg-pastel: #f6f0f8;       /* Pastel lavender/lilac */
    
    --color-primary: #3d0c47;         /* Royal Bishop Purple */
    --color-primary-light: #5a1866;   /* Medium Purple */
    --color-primary-pastel: #ebdcf0;  /* Pastel Lilac Accent */
    
    --color-gold: #c5a059;            /* Premium Dull Matte Gold */
    --color-gold-light: #dfc28d;      /* Bright Soft Gold */
    --color-gold-dark: #8c6e30;       /* Dark Metallic Bronze */
    
    --color-text-dark: #2a242c;       /* Deep Charcoal for body text */
    --color-text-muted: #6e6473;      /* Muted purple-grey for dates/labels */
    --color-text-light: #f7f3f9;      /* Off-white for dark background text */
    
    --font-heading: 'Cinzel', 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: 'Playfair Display', serif;
    
    --border-gold-thin: 1px solid rgba(197, 160, 89, 0.4);
    --border-gold-thick: 2px solid rgba(197, 160, 89, 0.8);
    
    --shadow-premium: 0 10px 30px rgba(45, 11, 61, 0.05), 0 1px 8px rgba(0, 0, 0, 0.02);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-page);
    color: var(--color-text-dark);
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Helpers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.gold-text { color: var(--color-gold); }
.gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 16px auto 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.3;
}

/* Floating Navigation Bar with Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(251, 249, 245, 0.85); /* Semi-transparent cream */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo i {
    font-size: 1.5rem;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link.active {
    font-weight: 600;
}

.btn-share {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-text-light);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(61, 12, 71, 0.2);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 12, 71, 0.3);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

/* Banner Section */
.banner-section {
    position: relative;
    height: 45vh;
    min-height: 320px;
    overflow: hidden;
    margin-top: 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(31, 7, 36, 0.2), rgba(251, 249, 245, 1) 98%);
    z-index: 2;
}

.banner-img-container {
    width: 100%;
    height: 100%;
}

.banner-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Profile Section (Hero) */
.profile-section {
    position: relative;
    z-index: 10;
    margin-top: -150px;
    padding-bottom: 60px;
}

.profile-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-center: center;
    box-shadow: var(--shadow-premium);
    border: var(--border-gold-thin);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar-wrapper {
    position: relative;
    width: 190px;
    height: 190px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-bg-card);
    box-shadow: 0 8px 24px rgba(45, 11, 61, 0.15);
    z-index: 2;
    position: relative;
    transition: var(--transition-smooth);
}

.profile-avatar:hover {
    transform: scale(1.03);
}

.avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed var(--color-gold);
    animation: rotate 60s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.memorial-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.memorial-dates {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

/* Epitaph */
.epitaph-wrapper {
    position: relative;
    max-width: 600px;
    padding: 16px 40px;
}

.memorial-epitaph {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-primary);
    line-height: 1.8;
}

.quote-icon-start {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.5rem;
    color: var(--color-gold-light);
    opacity: 0.5;
}

.quote-icon-end {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 1.5rem;
    color: var(--color-gold-light);
    opacity: 0.5;
}

/* Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2rem;
    color: var(--color-primary);
}

/* Quotes Section */
.quotes-section {
    padding: 80px 0;
    background-color: var(--color-bg-pastel);
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.quote-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 32px;
    border-left: 4px solid var(--color-gold);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(45, 11, 61, 0.08);
}

.quote-text {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.quote-author {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--color-bg-page);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(197, 160, 89, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(31, 7, 36, 0.8) 0%, rgba(31, 7, 36, 0) 60%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    z-index: 2;
}

.gallery-item-caption {
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-item-caption {
    transform: translateY(0);
}

/* Candle Section (Interactive) */
.candles-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #110214 100%);
    color: var(--color-text-light);
    position: relative;
}

.candle-card-interactive {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.candle-title {
    color: var(--color-gold-light);
    margin-top: 24px;
    font-size: 1.8rem;
}

.candle-description {
    color: rgba(247, 243, 249, 0.8);
    font-size: 0.95rem;
    margin: 12px 0 24px;
    max-width: 480px;
}

.candle-counter {
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-gold-thin);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.candle-counter span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-gold-light);
}

.btn-light-candle {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg-dark);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-light-candle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
}

/* Candle Animation Graphic */
.candle-visual {
    width: 60px;
    height: 110px;
    position: relative;
    margin-bottom: 10px;
}

.candle-body {
    width: 32px;
    height: 70px;
    background: linear-gradient(to right, #ebdcf0, #fcfafd, #ebdcf0);
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.candle-wick {
    width: 2px;
    height: 10px;
    background-color: #3d2207;
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
}

.candle-flame {
    width: 14px;
    height: 28px;
    background: radial-gradient(ellipse at bottom, #ffea4a 0%, #ff8c1a 50%, rgba(255, 60, 0, 0) 90%);
    border-radius: 50% 50% 20% 20%;
    position: absolute;
    bottom: 78px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px #ffaa1a, 0 0 40px #ff3c00;
    opacity: 0;
    transform-origin: center bottom;
    transition: var(--transition-smooth);
}

.candle-flame.lit {
    opacity: 1;
    animation: flicker 1.5s infinite alternate ease-in-out;
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-1deg); }
    30% { transform: translateX(-50%) scale(1.05) rotate(1deg); }
    50% { transform: translateX(-50%) scale(0.95) rotate(-0.5deg); }
    70% { transform: translateX(-50%) scale(1.02) rotate(0.8deg); }
    100% { transform: translateX(-50%) scale(1) rotate(-0.2deg); }
}

/* Comments Section */
.comments-section {
    padding: 80px 0;
    background-color: var(--color-bg-page);
}

.comments-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Glassmorphism Form Card */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-premium);
}

.card-glass h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.form-instructions {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
}

.form-group input, .form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(61, 12, 71, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
    color: var(--color-text-dark);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.btn-submit {
    background: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-submit:hover {
    background: var(--color-primary-light);
    box-shadow: 0 4px 15px rgba(61, 12, 71, 0.15);
}

/* Comments List Columns */
.comments-list-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.comments-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: var(--border-gold-thin);
    padding-bottom: 12px;
}

.badge-count {
    background: var(--color-bg-pastel);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.comments-scroll-area {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Custom scrollbar for comments list */
.comments-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.comments-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.comments-scroll-area::-webkit-scrollbar-thumb {
    background-color: var(--color-gold-light);
    border-radius: 10px;
}

.comment-item {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(197, 160, 89, 0.08);
    transition: var(--transition-smooth);
    animation: fadeIn 0.4s ease-out;
}

.comment-item:hover {
    transform: translateX(4px);
    border-color: rgba(197, 160, 89, 0.3);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
}

.comment-relation {
    font-size: 0.75rem;
    background-color: var(--color-bg-pastel);
    color: var(--color-primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 500;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.comment-body {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    line-height: 1.5;
}

.no-comments {
    text-align: center;
    color: var(--color-text-muted);
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.no-comments i {
    font-size: 2rem;
    color: var(--color-gold-light);
    opacity: 0.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer-site {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 48px 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(247, 243, 249, 0.6);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-links a {
    color: var(--color-gold-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: #ffffff;
}

.bullet {
    color: rgba(247, 243, 249, 0.3);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 7, 36, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 480px;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(31, 7, 36, 0.25);
    border: var(--border-gold-thin);
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2rem;
    border: none;
    background: none;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--color-primary);
}

.qr-modal-icon {
    font-size: 2.2rem;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.modal-body h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.modal-body p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.qr-container-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.qr-frame {
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.qr-frame img {
    display: block;
    width: 160px;
    height: 160px;
}

.qr-display-url {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-primary);
    background-color: var(--color-bg-pastel);
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 500;
    max-width: 100%;
    word-break: break-all;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn-action {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-gold {
    background: var(--color-gold);
    color: white;
}

.btn-gold:hover {
    background: var(--color-gold-dark);
}

.btn-outline {
    background: none;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-bg-pastel);
}

/* Lightbox Modal Specifics */
.lightbox-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 85vh;
}

.lightbox-img-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    border: 2px solid var(--color-gold-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
    color: #ffffff;
    font-size: 1rem;
    margin-top: 14px;
    font-family: var(--font-body);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.lightbox-close {
    color: white;
    font-size: 2.5rem;
    top: -40px;
    right: 0;
}

.lightbox-close:hover {
    color: var(--color-gold-light);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(197, 160, 89, 0.8);
    color: var(--color-bg-dark);
}

.lightbox-nav.prev { left: -60px; }
.lightbox-nav.next { right: -60px; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .comments-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: 70px;
    }
    
    .nav-menu {
        display: none; /* Can be enhanced later to a slide menu, but keep it clean */
    }
    
    .banner-section {
        height: 35vh;
        min-height: 240px;
    }
    
    .profile-section {
        margin-top: -100px;
    }
    
    .profile-card {
        padding: 32px 16px;
    }
    
    .profile-avatar-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .memorial-title {
        font-size: 1.8rem;
    }
    
    .memorial-dates {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .epitaph-wrapper {
        padding: 10px 15px;
    }
    
    .memorial-epitaph {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-auto-rows: 140px;
        gap: 10px;
    }
    
    .gallery-item-overlay {
        padding: 10px;
    }
    
    .gallery-item-caption {
        font-size: 0.75rem;
    }
    
    .lightbox-nav.prev { left: -10px; width: 36px; height: 36px;}
    .lightbox-nav.next { right: -10px; width: 36px; height: 36px;}
    
    .modal-content {
        padding: 24px 16px;
    }
}
