/* --- General Body & Typography --- */
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding-top: 60px; /* Space for the fixed header */
}

a {
    color: #111;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #888;
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-decoration: none;
    color: #111;
}

.main-nav a {
    margin-left: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}
.main-nav a i {
    font-size: 1.2rem;
}

/* --- Main Content Layout --- */
.content-wrapper {
    max-width: 840px; /* Classic editorial width */
    margin: 40px auto;
    padding: 0 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-header h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 10px;
}

.article-header .subtitle {
    font-size: 1.1rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Images --- */
.hero-image {
    margin: 0 0 40px 0;
}

.hero-image img {
    width: 100%;
    height: auto;
}

.hero-image figcaption {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Article Sections --- */
.article-section {
    margin-bottom: 60px;
}

.article-section h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 400;
}

.article-section p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
}

/* ** UPDATED: CSS for the 3-column photo gallery ** */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

/* NEW: Style for collection titles (h3) */
.collection-title {
    grid-column: 1 / -1; /* This makes the title span all 3 columns */
    font-family: 'Libre Baskerville', serif;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #333;
}

/* MODIFIED: The <figure> is now the grid item */
.photo-gallery figure {
    margin: 0;
    position: relative; /* Needed for the caption overlay */
    overflow: hidden; /* Hides parts of the caption that might stick out */
}

.photo-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block; /* Removes any extra space below the image */
}

/* NEW: Beautiful overlay style for the image figcaptions */
.photo-gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;

    /* Single-line properties */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Hover Effect */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* This makes the caption appear when you hover over the figure */
.photo-gallery figure:hover figcaption {
    opacity: 1;
}


/* --- Contact Specifics --- */
.contact-details {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 40px;
}

.contact-item {
    flex: 1;
    padding: 0 15px;
}

.contact-item i {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.contact-item h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 5px;
}

.contact-item a, .contact-item span {
    text-decoration: none;
    font-size: 1rem;
    color: #555;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #e5e5e5;
    margin-top: 60px;
}

.main-footer p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

/* --- Responsive for smaller screens --- */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2.2rem;
    }
    .contact-details {
        flex-direction: column;
    }
    .contact-item {
        margin-bottom: 30px;
    }
    .main-nav a:not(:last-child):not(:nth-last-child(2)) {
        display: none;
    }
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
}