/* General Page Styling */
body {
    font-family: 'Montserrat', 'Futura', sans-serif;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    padding-top: 60px;
}

/* Navigation Header Styling */
.nav-header {
    margin: 0 auto;
    padding-top: 80px;
    position: relative;
    background: none;
    box-shadow: none;
    width: 100%;
}

/* Navigation Container */
.nav-header .container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

/* Logo Styling */
.nav-header .logo a {
    font-family: 'Montserrat', 'Futura', sans-serif;
    font-size: 1.5em;
    font-weight: none;
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Links */
.nav-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-header nav ul li {
    display: inline;
}

.nav-header nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-header nav ul li a.social-icon {
    padding: 0.5rem;
    font-size: 1.2rem;
}

.nav-header nav ul li a:visited {
    color: #555;
    text-decoration: none;
}

.nav-header nav ul li a:hover {
    color: #666;
}

/* Content Wrapper to Center Everything */
.container {
    max-width: 1000px;
    margin: 80px auto;
    text-align: center;
    font-family: 'Montserrat', 'Futura', sans-serif;
    color: #555;
    margin-top: 80px;
}

/* Header Styling */
.container header {
    text-align: center;
    margin-bottom: 40px;
}

.container header h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
}

.container header p {
    font-size: 1.2em;
    color: #555;
}

/* Section Styling */
section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 2em;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

section p, section ul {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

section ul {
    list-style: none;
    padding: 0;
}

section ul li {
    margin-bottom: 10px;
}

section ul li a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

section ul li a:hover {
    text-decoration: underline;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Tile Styling */
.grid-item {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: #fff;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

/* Image Styling */
.image-container {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

/* Text below each image tile */
.tile-text {
    text-align: left;
    padding: 10px;
    font-family: 'Montserrat', 'Futura', sans-serif;
}

/* Tile title */
.tile-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 3px;
    color: #555;
}

/* Tile date */
.tile-date {
    font-size: 0.9em;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Link styling */
.grid-item a {
    text-decoration: none;
    color: inherit;
}

/* Tag Filter Styling */
.tag-filter-container {
    margin-bottom: 30px;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-pill {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tag-pill:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.tag-pill.selected {
    background: #007bff;
    color: white;
    border: 2px solid #0056b3;
    transform: scale(1.05);
}

/* Grid animations */
.grid-item {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    opacity: 1;
}

.grid-item.filtered-out {
    display: none;
}

.grid-container {
    transition: all 0.3s ease;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .nav-header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-header nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .container header h1 {
        font-size: 2em;
    }

    .tag-filters {
        gap: 6px;
    }

    .tag-pill {
        font-size: 0.75em;
        padding: 3px 10px;
    }
}
