/* --- Global Styles --- */
body {
    font-family: 'Montserrat', sans-serif; /* Clean, modern font */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* Light gray background */
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header & Footer --- */
.site-header {
    background-color: #1a1a1a; /* Dark background */
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 5px solid #ff5722; /* Accent color */
}

.site-header h1 {
    font-family: 'Playfair Display', serif; /* Elegant title font */
    font-size: 3em;
    margin: 0 0 10px 0;
}

.site-header p {
    font-size: 1.1em;
    opacity: 1;
}

.site-footer {
    background-color: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9em;
}

.site-footer p,a {
    color: #ccc;
}

/* --- About Section --- */
.about-section {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    margin-bottom: 10px;
    color: #ff5722;
}

/* --- Gallery Layout --- */
.gallery {
    display: grid;
    /* Create a single column layout that is easier to read like a blog */
    grid-template-columns: 1fr; 
    gap: 40px; /* Space between posts */
}

.gallery-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex; /* Use flexbox for image/details alignment */
    flex-direction: column; /* Default stack items vertically */
}

.image-placeholder {
    /* Ensures image takes up available space and maintains aspect ratio */
    width: 100%;
    height: auto;
    max-height: 500px; /* Limit height on large screens */
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the container without distortion */
    display: block;
    transition: transform 0.3s ease;
}

.image-placeholder img:hover {
    transform: scale(1.03); /* Subtle hover effect */
}

.item-details {
    padding: 20px;
}

.item-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #1a1a1a;
    margin-top: 0;
}

.item-details .date {
    font-style: italic;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.item-details .description {
    color: #555;
    text-align: justify;
}

/* --- Responsive Design for Tablet/Desktop --- */
@media (min-width: 768px) {
    .gallery-item {
        /* On larger screens, switch to a side-by-side layout */
        flex-direction: row; 
    }

    /* Alternate the image and text alignment for a dynamic look */
    .gallery-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    .image-placeholder {
        /* Image takes up 60% of the item width */
        flex: 3; 
    }

    .item-details {
        /* Text details take up 40% of the item width */
        flex: 2; 
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
    }
}