* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #2d6a4f;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

main h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: #3498db;
    color: white;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Dashboard Stats Grid - Two Rows Layout */

/* Row 1: Large cards (Reunion & Newsletter) */
.stats-grid-row-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Row 2: Smaller cards (Total Classmates & Birthday) */
.stats-grid-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Make stat cards in row 2 more compact */
.stats-grid-row-2 .stat-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .stats-grid-row-1,
    .stats-grid-row-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid-row-1,
    .stats-grid-row-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.stat-card {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

/* Dashboard Live Countdown Timer */
.dashboard-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.dashboard-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.dashboard-countdown-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.dashboard-countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 0.4rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.9);
}

/* Reunion Info - More specific selectors */
.countdown-card .reunion-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 1rem;
}

.countdown-card .reunion-info strong {
    display: block;
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: white;
}

.countdown-card .reunion-info p {
    margin: 0.3rem 0 !important;
    opacity: 0.9;
    font-size: 1.1rem !important;
    line-height: 1.5;
    color: rgba(255,255,255,0.95);
}

@media (max-width: 768px) {
    .dashboard-countdown-timer {
        gap: 0.5rem;
    }
    
    .dashboard-countdown-item {
        min-width: 55px;
    }
    
    .dashboard-countdown-number {
        font-size: 1.75rem;
    }
    
    .dashboard-countdown-label {
        font-size: 0.65rem;
    }
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Filters */
.filters {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-form input,
.filter-form select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Tables */
.classmates-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.classmates-table table {
    min-width: 1200px;
}

thead {
    background-color: #34495e;
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: #e9ecef;
}

/* Status Badge */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: bold;
    white-space: nowrap;
}

.status-alive {
    background-color: #d4edda;
    color: #155724;
}

.status-deceased {
    background-color: #f8d7da;
    color: #721c24;
}

.status-sent {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 900px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Newsletter */
.newsletter-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.newsletter-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.newsletter-meta {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.newsletter-content {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
}

.newsletter-actions {
    margin-top: 1rem;
}

/* Reunion */
.reunion-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.reunion-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reunion-card-large {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.reunion-details {
    margin: 1rem 0;
}

/* Merchandise */
.merchandise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.merchandise-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.merchandise-card:hover {
    transform: translateY(-5px);
}

.merchandise-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.merchandise-card .no-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #999;
    font-size: 14px;
}

.merchandise-card h3 {
    padding: 15px 15px 10px;
    margin: 0;
    font-size: 18px;
}

.merchandise-card p {
    padding: 0 15px 10px;
    margin: 0;
}

.merchandise-card .price {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    padding: 0 15px 10px;
}

.merchandise-card .web-link {
    padding: 0 15px 10px;
    margin: 0;
}

.merchandise-card .merchandise-actions {
    padding: 15px;
    margin-top: auto;
}

.merchandise-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.merchandise-actions form {
    display: inline-block;
}

.web-link a {
    color: #3498db;
    text-decoration: none;
}

.web-link a:hover {
    text-decoration: underline;
}

/* Merchandise image link styles */
.merchandise-card .merch-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
}

.merchandise-card .merch-image-link img,
.merchandise-card .merch-image-link .no-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.merchandise-card .merch-image-link:hover img,
.merchandise-card .merch-image-link:hover .no-image {
    transform: scale(1.05);
    opacity: 0.85;
}

/* Link overlay that appears on hover */
.image-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 106, 79, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-link-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.merchandise-card .merch-image-link:hover .image-link-overlay {
    opacity: 1;
}

/* Photos */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-info {
    padding: 1rem;
}

.photo-info h4 {
    margin-bottom: 0.5rem;
}

.photo-info small {
    color: #666;
    display: block;
    margin-top: 5px;
}

.photo-info form {
    display: inline-block;
    margin-top: 10px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.photo-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

/* Photo Gallery Section Headers */
.photos-page h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Classmate Photos */
.classmate-photo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.no-photo {
    width: 50px;
    height: 50px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; /* Larger for initials */
    font-weight: bold;
    color: #6c757d;
    text-align: center;
    border: 2px solid #ddd;
}

/* Adjust table cell for photo */
.classmates-table td:first-child {
    text-align: center;
    padding: 0.5rem;
}

/* Toolbar */
.toolbar {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Column Visibility Dropdown */
.column-visibility-dropdown {
    position: relative;
    display: inline-block;
}

.column-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
    border: 1px solid #ddd;
}

.column-menu-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    color: #333;
}

.column-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 0.75rem;
}

.column-menu-item:hover {
    background-color: #f8f9fa;
}

.column-menu-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.column-menu-item span {
    flex: 1;
    user-select: none;
}

.selection-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#selectionCount {
    font-weight: bold;
    color: #666;
}

/* Selectable rows */
tbody tr {
    cursor: pointer;
}

tbody tr:hover {
    background-color: #e3f2fd !important;
}

tbody tr.selected {
    background-color: #bbdefb !important;
}

/* RSVP Indicators */
.rsvp-indicator {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.875rem;
}

.rsvp-Y {
    background-color: #d4edda;
    color: #155724;
}

.rsvp-N {
    background-color: #f8d7da;
    color: #721c24;
}

.rsvp-U {
    background-color: #fff3cd;
    color: #856404;
}

.rsvp-N\/A {
    background-color: #e9ecef;
    color: #6c757d;
}

/* Dashboard RSVP Table */
.rsvp-table {
    width: 100%;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rsvp-table thead {
    background-color: #34495e;
    color: white;
}

.rsvp-table th,
.rsvp-table td {
    padding: 0.75rem;
    text-align: left;
    color: #2c3e50;
    font-weight: bold;
}

.rsvp-table th {
    color: white;
}

.rsvp-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.rsvp-table tbody tr:last-child {
    border-bottom: none;
}

.rsvp-table tbody tr:hover {
    background-color: #f8f9fa;
}

.rsvp-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: bold;
}

.rsvp-yes {
    background-color: #d4edda;
    color: #155724;
}

.rsvp-no {
    background-color: #f8d7da;
    color: #721c24;
}

.reunion-date {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

/* New Classmates List */
.new-classmates-list {
    list-style: none;
    padding: 0;
}

.new-classmates-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.added-date {
    color: #666;
    font-size: 0.875rem;
}

/* Action Dropdown (Newsletter) */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.action-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-option:hover {
    background-color: #f8f9fa;
}

/* Merchandise Email Modal */
.classmate-selection {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.selection-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.selection-controls input {
    flex: 1;
    min-width: 200px;
}

.classmate-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.classmate-checkbox-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.classmate-checkbox-item label:hover {
    background-color: #f8f9fa;
}

/* Current image preview container */
#current_image_preview {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}

#current_image_preview img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border: 1px solid #ddd;
    display: block;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-form input,
    .filter-form select {
        width: 100%;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .column-visibility-dropdown {
        width: 100%;
    }
    
    .column-menu {
        width: 100%;
    }
    
    .selection-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Newsletter Sent Page */
.newsletter-sent-page {
    max-width: 1000px;
    margin: 0 auto;
}

.sent-summary {
    background-color: #d4edda;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #28a745;
}

.sent-summary h4 {
    margin-bottom: 1rem;
    color: #155724;
}

.sent-summary p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.recipients-list,
.failed-list {
    margin: 2rem 0;
}

.recipients-list h4,
.failed-list h4 {
    margin-bottom: 1rem;
}

.recipients-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recipients-table thead {
    background-color: #34495e;
    color: white;
}

.recipients-table th,
.recipients-table td {
    padding: 0.75rem;
    text-align: left;
}

.recipients-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.recipients-table tbody tr:hover {
    background-color: #e9ecef;
}

.failed-list {
    background-color: #f8d7da;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin-top: 2rem;
}

/* Event Section Styling */
.event-section {
    margin-bottom: 3rem;
}

.event-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Tribute Page */
.tribute-page {
    max-width: 1400px;
    margin: 0 auto;
}

.tribute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.tribute-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.tribute-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tribute-photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tribute-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

.tribute-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.no-photo-tribute {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
    font-weight: bold;
}

.tribute-content {
    padding: 15px;
    text-align: center;
}

.tribute-content h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 18px;
}

.maiden-name {
    color: #666;
    font-style: italic;
    font-size: 14px;
    margin: 5px 0;
}

.tribute-text-display p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.no-tribute {
    color: #999;
    font-style: italic;
    margin-bottom: 1rem;
}

.tribute-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.tribute-text-edit textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.no-tributes {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    margin-top: 2rem;
}

.no-tributes p {
    color: #666;
    font-size: 1.1rem;
}

/* Individual Tribute Detail Page */
.tribute-detail-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.tribute-detail-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
}

.tribute-detail-card .tribute-photo {
    width: fit-content;
    max-width: 100%;
    height: auto;
    margin: 0 auto 30px auto;
    background: #10b981;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.tribute-detail-card .tribute-photo img {
    display: block;
    max-width: 300px;        /* Changed from 100% */
    max-height: 400px;       /* Added */
    width: auto;             /* Added */
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.tribute-detail-card .no-photo-tribute {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 72px;
    font-weight: bold;
}

/* Tributes List */
.tributes-list {
    margin: 30px 0;
}

.tribute-entry {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #10b981;
}

.tribute-text {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 10px;
}

.tribute-author {
    color: #666;
    font-style: italic;
    font-size: 14px;
    text-align: right;
}

/* Add Tribute Form */
.add-tribute-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.add-tribute-form h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Change Password Page */
.change-password-page {
    max-width: 600px;
    margin: 0 auto;
}

.change-password-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.change-password-container .form-group {
    margin-bottom: 1.5rem;
}

.change-password-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.change-password-container .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.change-password-container .form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

/* Manage Users Page */
.manage-users-page {
    max-width: 1200px;
    margin: 0 auto;
}

.user-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.user-section h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.users-table {
    overflow-x: auto;
}

.users-table table {
    width: 100%;
}

.users-table .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Navigation Wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-size: 1rem;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.tiger-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
}

.tiger-icon-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.username {
    font-weight: 600;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.user-profile-btn:hover .dropdown-arrow {
    transform: translateY(2px);
}

/* User Menu Dropdown */
.user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 250px;
    z-index: 1000;
    overflow: hidden;
}

.user-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-menu-header strong {
    display: block;
    font-size: 1.1rem;
}

.user-menu-header small {
    display: block;
    opacity: 0.9;
    font-size: 0.85rem;
}

.user-menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.user-menu-item:hover {
    background-color: #f5f5f5;
}

.user-menu-item.logout {
    color: #e74c3c;
}

.user-menu-item.logout:hover {
    background-color: #fee;
}

.menu-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.logo-image {
    height: 40px;
    width: auto;
    vertical-align: middle;
    margin-right: 10px;
}

/* Export Dropdown */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.export-dropdown {
    position: relative;
}

.export-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #ddd;
}

.export-menu.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.export-option {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.export-option:last-child {
    border-bottom: none;
}

.export-option:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

/* Countdown Card */
.countdown-card {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    color: white;
}

.countdown-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.countdown-display {
    text-align: center;
    margin: 0.5rem 0;
}

.countdown-number {
    font-size: 1.75rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.9);
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reunion-info {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.reunion-info strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.reunion-info p {
    margin: 0.1rem 0;
    opacity: 0.9;
    font-size: 0.75rem;
}

.no-reunion {
    text-align: center;
    padding: 2rem 0;
}

.no-reunion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-reunion p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

/* Reunion Hub Card */
.reunion-hub-card {
    background: white;
    border: 2px solid #2d6a4f;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reunion-hub-card h2 {
    color: #2d6a4f;
    margin-top: 0;
    margin-bottom: 1rem;
}

.reunion-hub-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.reunion-hub-card p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Reunion Hub Box */
.reunion-hub-box {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    min-width: 120px;
}

.reunion-hub-box .hub-link {
    text-decoration: none;
    color: white;
    display: block;
}

.reunion-hub-box .hub-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.reunion-hub-box .hub-text-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reunion-hub-box .hub-text-stacked div {
    font-size: 1rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.reunion-hub-box .hub-link:hover .hub-text-stacked div {
    color: #fff;
    transition: all 0.3s;
}

.reunion-hub-box .hub-link:hover .hub-text {
    color: #fff;
    transform: scale(1.05);
    transition: all 0.3s;
}

.reunion-hub-box .hub-link:hover .hub-icon {
    transform: scale(1.1);
    transition: all 0.3s;
}

.reunion-hub-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.reunion-hub-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Reunion Countdown Banner */
.reunion-countdown-banner {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.banner-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.center-content {
    text-align: center;
}

.center-content h3 {
    margin: 0 0 1rem 0;
}

.reunion-datetime {
    margin-bottom: 1.5rem;
}

.live-countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.banner-layout > .rsvp-counter {
    justify-self: end;
    margin-right: 2rem;
}

.reunion-countdown-banner h3 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    color: white;
}

.reunion-datetime p {
    margin: 0.25rem 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
    min-width: 70px;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.countdown-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* My Profile Page */
.my-profile-page {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-value {
    color: #333;
}

.status-admin {
    background-color: #d4edda;
    color: #155724;
}

.status-user {
    background-color: #d1ecf1;
    color: #0c5460;
}

.current-classmate {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #3498db;
}

.current-classmate h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.classmate-display {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.classmate-photo-large {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #3498db;
}

.no-photo-large {
    width: 120px;
    height: 120px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.875rem;
    border: 3px solid #ddd;
}

.classmate-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.classmate-info p {
    margin: 0.25rem 0;
    color: #555;
}

.link-form {
    margin-top: 1rem;
}

.classmate-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Newsletter PDF Styles */
.newsletter-pdf {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.newsletter-pdf h4 {
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.pdf-download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pdf-download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.pdf-icon {
    font-size: 1.5rem;
}

#current_pdf_display {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-top: 0.5rem;
}

#current_pdf_display a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

#current_pdf_display a:hover {
    text-decoration: underline;
}

/* RSVP Counter on Reunion Page */
.rsvp-counter {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    min-width: 120px;
}

.rsvp-label {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: white;
}

.rsvp-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

/* Birthday Card Styles */
.birthday-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.birthday-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.birthday-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.birthday-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffd700;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.birthday-no-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    border: 4px solid #ffd700;
}

.birthday-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

.birthday-date {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: bold;
}

.no-birthday {
    text-align: center;
    padding: 2rem 0;
}

.no-birthday-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-birthday p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

/* ========================================
   CLASSMATES TABLE - ULTRA-COMPACT VERSION
   ======================================== */

.classmates-table {
    background: white;
    border-radius: 8px;
    overflow: visible; /* CHANGED from hidden */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    margin-bottom: 20px;
}

.classmates-table table {
    width: 100%;
    table-layout: fixed; /* Fixed layout for precise control */
}

/* Ultra-compact column widths */
.col-photo {
    width: 6%;
}

.col-name {
    width: 12%;
}

.col-maiden {
    width: 10%;
}

.col-birthday {
    width: 8%;
}

.col-email {
    width: 15%;
}

.col-phone {
    width: 10%;
}

.col-location {
    width: 13%;
}

.col-rsvp {
    width: 8%;
    text-align: center;
}

.col-status {
    width: 9%;
    text-align: center;
}

.col-actions {
    width: 9%;
    padding: 0.5rem 0.3rem;
    vertical-align: middle;
}

/* Stack action buttons vertically */
.col-actions .btn {
    display: block;
    width: 100%;
    margin: 2px 0;
    padding: 0.25rem 0.3rem;
    font-size: 0.65rem;
    text-align: center;
    border-radius: 3px;
}

/* Hide spacer column if it exists */
.col-spacer {
    display: none !important;
}

/* Very compact padding */
.classmates-table th,
.classmates-table td {
    padding: 0.5rem 0.3rem;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Allow checkbox column to be minimal */
.classmates-table th:first-child,
.classmates-table td:first-child {
    width: 40px;
    text-align: center;
    padding: 0.3rem;
}

/* Photo sizing */
.classmate-photo,
.no-photo {
    width: 50px;
    height: 50px;
}

/* Status badges - more compact */
.status-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
    display: inline-block;
}

/* RSVP indicators - more compact */
.rsvp-indicator {
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.7rem;
    display: inline-block;
}

/* Responsive - hide columns progressively */
@media (max-width: 1400px) {
    .col-maiden {
        display: none;
    }
}

@media (max-width: 1200px) {
    .col-birthday,
    .col-phone {
        display: none;
    }
}

@media (max-width: 900px) {
    .col-location,
    .col-rsvp {
        display: none;
    }
}

@media (max-width: 768px) {
    .classmates-table th,
    .classmates-table td {
        font-size: 0.85rem;
        padding: 0.4rem 0.2rem;
    }
    
    .col-actions .btn {
        font-size: 0.6rem;
        padding: 0.2rem 0.2rem;
    }
}

/* ========================================
   OBITUARY SECTION STYLING
   ======================================== */

.obituary-section {
    margin-bottom: 30px;
}

/* Centered Obituary Link Button */
.obituary-link-container {
    text-align: center;
    margin-bottom: 20px;
}

.obituary-link-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.obituary-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Left-aligned Action Buttons */
.obituary-actions {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

/* Stacked Edit/Remove Buttons */
.obituary-edit-remove {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.obituary-edit-remove .btn {
    width: 80px;
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
}

.obituary-edit-remove form {
    margin: 0;
}

/* Obituary Form */
#obit_form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #3498db;
}

#obit_form .form-group {
    margin-bottom: 15px;
}

#obit_form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

#obit_form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#obit_form .btn {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-profile-btn {
        width: 100%;
        justify-content: center;
    }
    
    .user-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .banner-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .banner-layout > .rsvp-counter {
        justify-self: center;
        margin-right: 0;
    }
    
    .countdown-layout {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
    }
    
    .rsvp-counter {
        min-width: 100px;
        padding: 1rem 1.5rem;
    }
    
    .rsvp-number {
        font-size: 2rem;
    }
    
    .rsvp-label {
        font-size: 0.85rem;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .classmate-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .obituary-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .obituary-edit-remove {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .obituary-edit-remove .btn {
        width: auto;
        flex: 0 0 auto;
    }
    
    .col-maiden,
    .col-birthday,
    .col-phone,
    .col-location,
    .col-rsvp {
        display: none;
    }
}

/* Thumbnails - preserve aspect ratio, no forced crop */
.photo-thumbnail-img,
.photo-item img {
    width: 100%;
    height: auto;                /* Keeps natural proportions */
    max-height: 250px;           /* Optional: limit height for grid */
    object-fit: contain;         /* Shows full image, letterboxes if needed */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.photo-thumbnail-img:hover,
.photo-item img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Modal for full photo */
.full-photo-content {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

#fullPhotoImg {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;        /* Ensures full image is visible */
}

/* Force upload modal visible */
#uploadModal {
    display: block !important;          /* Override any hiding */
    position: fixed !important;
    inset: 0 !important;                /* top:0 left:0 right:0 bottom:0 */
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important; /* strong gray overlay */
    z-index: 99999 !important;          /* very high */
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure inner content shows */
#uploadModal .modal-content {
    display: block !important;
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 700px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: auto !important;
    position: relative !important;
    z-index: 100000 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Close button styling */
#uploadModal .close {
    position: absolute !important;
    top: 15px !important;
    right: 25px !important;
    font-size: 36px !important;
    font-weight: bold !important;
    color: #333 !important;
    cursor: pointer !important;
    z-index: 100001 !important;
}

/* Prevent any hiding transitions/animations from interfering */
#uploadModal, #uploadModal * {
    transition: none !important;
}

/* Ensure modals and content are visible when opened */
.modal[style*="block"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    display: block !important;
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 700px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: auto !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}

.modal .close {
    position: absolute !important;
    top: 15px !important;
    right: 25px !important;
    font-size: 36px !important;
    cursor: pointer !important;
    color: #333 !important;
}

/* Force close and visibility */
.modal[style*="none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.modal[style*="block"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    display: block !important;
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 700px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: auto !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}