:root {
    --primary-color: #2563eb;
    --secondary-color: #e0f2fe;
    --accent-color: #16a34a;
    --text-color: #1e293b;
    --background-color: #f8fafc;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --hover-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: linear-gradient(135deg, #f1f8ff 0%, #e6f3ff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background-color: var(--secondary-color);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    opacity: 0.9;
}

.intro-section {
    margin-bottom: 4rem;
}

.intro-card {
    background-color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.gallery-section {
    margin-bottom: 3rem;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.memory-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.memory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.memory-card:hover::before {
    opacity: 1;
}

.image-placeholder {
    width: 100%;
    height: 220px;
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #e2e8f0;
}

/* When there's a data-image attribute, hide the emoji and show the image */
.image-placeholder[data-image] {
    font-size: 0;
    background-image: var(--bg-image);
}

.image-placeholder:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

.caption {
    color: var(--text-color);
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.5rem;
}

.placeholder {
    color: #64748b;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    color: var(--primary-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    text-align: center;
    font-size: 1.2rem;
    padding: 0 1rem;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: -10px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-card {
        padding: 1.5rem;
    }

    .image-placeholder {
        height: 200px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-caption {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    header {
        padding: 2rem 1rem;
    }

    .intro-card {
        padding: 1rem;
    }
} 