@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap");

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #c1b5aa;
    color: #46413c;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

header {
    background: #c1b5aa;
    border-bottom: 1px solid #46413c;
    padding: 30px 0;
    margin-top: 75px;
    position: relative;
}

.logo-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -60%);
    background: #c1b5aa;
    padding: 0 20px;
    z-index: 10;
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-nav,
.right-nav {
    display: flex;
    gap: 25px;
    width: 100%;
}

.right-nav {
    justify-content: flex-end;
}

.nav-container nav a {
    color: #1f1f1f;
    text-decoration: none;
    padding: 0 5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-container nav a:hover {
    color: #8692a7;
}

.design-photos {
    padding: 60px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5px; /* Reduced vertical spacing */
}

.photo-container {
    position: relative;
}

.photo-container img {
    width: 100%;
    height: 375px; /* 50% larger */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(31, 31, 31, 0.1);
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease-in-out;
}

.photo-container:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.photo-container figcaption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #c1b5aa;
    font-size: 1rem;
    font-weight: 500;
    background-color: #1f1f1f;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.photo-container:hover figcaption {
    opacity: 1;
}

#page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 31, 31, 0.5);
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

body.overlay-active #page-overlay {
    opacity: 1;
}

.photo-container:hover {
    z-index: 20;
    position: relative;
}

footer {
    text-align: center;
    padding: 40px 0;
    background: #c1b5aa;
    color: #46413c;
    margin-top: 60px;
}

/* Post page specific styles */
.post-header {
    text-align: center;
    padding: 60px 0;
    background: #c1b5aa;
    color: #46413c;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.post-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #46413c;
}

.post-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.centered-image {
    text-align: center;
}

.centered-image img {
    max-width: 100%;
    height: 500px;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(31, 31, 31, 0.2);
}

.post-content h3 {
    color: #1f1f1f;
}

.post-content a {
    color: #8692a7;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}
