/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #333;
    font-family: 'Roboto', sans-serif;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.header, .footer {
    background-color: #222;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.article {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #0056b3;
}

.card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.printables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.printable-card img {
    border-radius: 6px;
    max-height: 420px;
    object-fit: contain;
}

.printable-card__caption {
    text-align: center;
    font-weight: 600;
    margin-top: 0.75rem;
    color: #4a3621;
}

.printable-card__download {
    text-align: center;
    margin-top: 0.5rem;
}

ul {
    list-style-type: none;
}

ul li {
    margin-bottom: 10px;
}

/* Blog Layout */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.blog-posts article {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    margin-top: 50px;
    background-color: #222;
    color: white;
    padding: 20px 0;
    text-align: center;
}
nav a {
    margin-right: 30px;  /* Add spacing between links */
    text-decoration: none;  /* Optional: Remove underline */
    font-size: 18px;  /* Optional: Adjust font size */
    //color: #333;  /* Optional: Link color */
}

nav a:last-child {
    margin-right: 0;  /* Prevent margin on the last link */
}

.printable-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    padding: 1rem;
}

.printable-modal.is-visible {
    display: flex;
}

.printable-modal__content {
    position: relative;
    width: min(90vw, 1100px);
    max-height: 90vh;
    overflow: auto;
    background-color: #f9f5ef;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.printable-modal__content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

.printable-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #5a432d;
    cursor: pointer;
}

@media (orientation: landscape) {
    .printable-modal__content {
        width: min(75vw, 1100px);
        max-height: 85vh;
    }

    .printable-modal__content img {
        max-height: 75vh;
    }
}

@media (orientation: portrait) {
    .printable-modal__content {
        width: 92vw;
        max-height: 82vh;
    }

    .printable-modal__content img {
        max-height: 70vh;
    }
}

