﻿body {
    background: #f8f8f8;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
    margin: 0;
}

h1 {
    text-align: center;
    font-family: "Georgia", serif;
    color: #4B4B4B;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.memory-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ccc; /* subtle but visible border */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* slightly stronger shadow */
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0; /* media/content already padded */
    margin:10px;
}

.memory-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.memory-card:hover {
    transform: scale(1.02);
}

.memory-media img,
.memory-media video {
    width: 100%;
    height: auto;
    display: block;
}

.memory-text {
    padding: 20px;
}

.memory-text h2 {
    margin: 0 0 5px 0;
    font-family: "Georgia", serif;
    color: #4B4B4B;
    font-size: 1.3em;
}

.memory-text .email {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.memory-text .message {
    font-size: 1.05em;
    line-height: 1.6;
}

.memory-date {
    padding: 0 20px 20px 20px;
    font-size: 0.8em;
    color: #aaa;
    text-align: right;
}

/* Responsive adjustments */
@media screen and (max-width: 599px) {
    .memory-text h2 { font-size: 1.1em; }
    .memory-text .message { font-size: 1.1em; }
}
