
html {
    scroll-behavior: smooth;
}

article {
    		scroll-margin-top: 100px; /* Adjust as needed */
		}

body {
    margin: 0,auto;
    padding: 0;
    box-sizing: border=box;
	font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #141416; /* Matches your layout background color */
    color: #f8eee6; /* Ensures text is visible */
    width:900px;
    max-width: 100%;
    text-align: left;
    margin:auto;
    font-size: 12px;
}
/* HEADER --------------------------------------------------------------------------------*/

header {
    background: #141416;
    color: #f8eee6;
    padding: 0px 0px;
}


header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    font-size: 10px; /* adjusts to the size of the screen */
}

header nav ul li {
    margin: 10px 5px;
}


header nav ul li a {
    color: #f8eee6;
    text-decoration: none;
    font-weight: bold;
    /*font-size: clamp(12px, 4vw, 24px); /* Scales between 12px and 24px */
}

/* MAIN --------------------------------------------------------------------------------*/

main {
     background: #141416;
     color: #f8eee6;
}
a{
    color:#ccc;
}
section{
    padding: 3%;
    margin:10px;
}

.news{
    position: sticky ;
    margin: 10px;
    color:antiquewhite;
    background-color:dimgrey;
    border-left:snow solid;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: 40px;
    margin-right: 40px;
    
    
}

.news p{
    font-size: 12px;
    text-align: left;
}

.news h3{
    text-align: left;
}

.fit {
    display: block;
    margin: auto;
    max-width: 99%;
    max-height: 99%;
}

/* GALLERY--------------------------------------------------------------------------------*/
/*
.image-gallery {
    <!--display: flex; -->
    <!--display: grid; -->
    display: lightbox;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.image-gallery img {
    max-width: 480px;
    border: 2px solid #ccc;
    border-radius: 1px;
}
*/

/* Responsive and dynamic gallery styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    justify-content: center;
    padding: 20px;
}
.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
/* LIGHTBOX --------------------------------------------------------------------------------*/

/* Lightbox container */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    justify-content: center;
    align-items: center;
}

/* Lightbox image */
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

/* FOOTER --------------------------------------------------------------------------------*/
footer {
    text-align: center;
    padding: 10px 0;
    background: #141416
    /*margin-top 20px; error in css*/
}

footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0px;
}

footer nav ul li {
    margin: 0 10px;
    font-size: 10px; /* adjusts to the size of the screen */
}

footer a {
    color: inherit; /* Inherits the color of the parent element (footer) */
    text-decoration: none; /* Removes the underline */
    cursor: default; /* Changes the pointer to default (optional) */
}

footer a:hover {
    color: inherit; /* Ensures no color change on hover */
    text-decoration: none; /* Ensures no underline on hover */
    cursor: pointer; /* default pointer on hover */
}


/* CONTACT --------------------------------------------------------------------------------*/
/* Contact form styles */
.contact-form {
    max-width: 90%;
    height: 25vh; /* Set the overall height of the form */
    margin: 0 auto;
    padding: 20px;
    background-color: #f8eee6;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #141416;
    display: flex;
    flex-direction: column; /* Stacks form elements vertically */
    justify-content: space-between; /* Distributes space between items */
    gap: 15px; /* Adds space between each input */
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%; /* Full width for all inputs */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

.contact-form textarea {
    flex-grow: 1; /* Allows the message box to expand and fill available space */
    resize: vertical; /* Allows vertical resizing only */
}

.contact-form button {
    display: inline-block;
    background-color: #141416;
    color: #f8eee6;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    align-self: flex-start; /* Aligns the button to the start */
}

.contact-form button:hover {
    background-color: #333;
}

ul{
    list-style-type: none;
    padding-left: 0px;
    padding-top: 25px;
}

/* BLOG --------------------------------------------------------------------------------*/

/* Blog-specific layout adjustment */
.blog-container {
    display: flex;
}

.blog-nav {
    width: 20%;
    background-color: #141416;
    color: #f8eee6;
    padding: 1%;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    font-size: .75em;
}

.blog-content {
    width: 80%; /* Ensures it fits next to the nav bar */
    padding: 20px;
    box-sizing: border-box; /* Includes padding in width calculation */
}

.wrap-image {
    float: left;
    margin: 0 15px 15px 0;
    max-width:100%;
    height: 200px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
