/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #faf9f6; /* Soft off-white */
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.hero {
    padding: 40px 0 40px;
    text-align: center;
    background-color: #fff;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.subtitle {
    font-style: italic;
    font-size: 1.2rem;
    color: #777;
}

/* Content Section */
.content {
    padding: 10px 0;
}

.message {
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0px 0px 0px 0px;
}


.message p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Card / Archive Section */
.contact-card {
    max-width: 800px;
    margin: 40px auto; /* Centers the card and gives it space */
    padding: 30px 30px 10px 30px;
    background-color: #fff; /* Very light warm background */
    border: 1px solid #d1c7bd; /* A thin, elegant taupe frame */
    border-radius: 4px; /* Subtle rounding for a softer look */
    text-align: center;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.5); /* Inner "glow" to make it look clean */
}

.archive-text {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.5;
}

.contact-link {
    margin-top: 5px;
}

/* Ensure the email link stays consistent with your previous style */
.masked-email {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}



/* Email Link Styling */
.masked-email {
    color: #555555; /* Dark Grey */
    text-decoration: none;
    transition: color 0.3s ease; /* Makes the color change smooth */
    font-weight: 800;
}

.masked-email:hover {
    color: #8b7355; /* Light Brown on hover */
    text-decoration: underline;
}

.masked-email:active {
    color: #bc9b70; /* Brighter Light Brown when clicked */
}

.signature {
    margin-top: 40px !important;
margin-bottom: 0px !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.name {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.archive {
    margin-bottom: 0px !important;
}





/* Ensure the gallery has a fixed shape */
.image-gallery {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.img-wrapper.fade-group {
    flex: 1;
    position: relative;
    /* This ensures the frame has a consistent height */
    aspect-ratio: 4 / 5; 
    background-color: #fff;
    padding: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.fade-group img {
    position: absolute;
    /* Centers the images inside the 10px padding */
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    
    /* The Magic: Start invisible */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

/* This class makes the image visible */
.fade-group img.active {
    opacity: 1;
    z-index: 2;
}








/* Responsive adjustment for mobile phones */
@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .img-wrapper {
        width: 100%;
        max-width: 400px;
    }
}
/* Footer */
footer {
    text-align: center;
    padding:0px 0 40px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .image-gallery { flex-direction: column; }
}