* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    background: #f7f7f7;
}

a {
    color: #0b5cad;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    background: #222;
    color: #fff;
    padding: 1rem 0;
    border-bottom: 6px solid #5cb85c;
}

.site-header .wrap {
    display: flex;
    align-items: center;
}

.site-header a {
    color: #fff;
}

.branding {
    flex: 0 0 auto;
    height: 100px;
}

.branding a img {
    display: block;
    height: 100px;
}

.main-nav {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-left: 2rem;
}

.main-nav a {
    font-weight: 400;
    text-transform: uppercase;
}

/* MAIN */

.site-main {
    padding: 0;
}

.site-footer {
    background: #1f1f1f;
    color: #fff;
    padding: 1.5rem 0;
    margin-top: 0;
}

/* HERO */

.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 40px 0;
}

.hero .wrap {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero-overlay {
    background: rgb(88 88 88 / 50%);
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 600px;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

.hero p {
    margin: 0;
    font-size: 1.2rem;
}

/* SECTIONS */

.intro,
.latest-posts,
.latest-galleries,
.post-list,
.post-detail,
.page-detail,
.gallery-year,
.contact-grid {
    width: 100%;
    padding: 2rem 2rem 2rem 2rem;
}

.intro {
    background: #ffffff;
    text-align: center;
}

.latest-posts {
    background: #f1f5f1;
}

.latest-galleries {
    background: #ffffff;
}

.post-list,
.post-detail,
.page-detail,
.gallery-year,
.contact-grid {
    background: #ffffff;
}

.post-detail .gallery .g-one{ width: 100%;}
.post-detail .gallery .g-two{ width: 49%; margin: 0px 1%; }
.post-detail .gallery .g-other{ width: 30%; margin: 0px 1%; }

.post-list-h1,
.page-list-h1{
    background: #5cb85c;
    padding: 40px;
    margin: 0px;
}

/* TITLES */

.intro h2,
.latest-posts h2 {
    text-align: center;
    font-size: 40px;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.card,
.post-item {
    border-left: 6px solid #5cb85c;
    border-bottom: 2px solid #ddd;
    padding: 1rem;
    margin: 0px 0px 10px 0px;
    /*border-radius: 6px;*/
    background: #fff;
}

.card h3 {
    margin-top: 0;
}

.post-item a,
.card h3 a{
    color: #000;
    text-transform: uppercase;
}
.post-item a:hover,
.card h3 a:hover{
    text-decoration: underline;
}
.card .main-image,
.post-item .main-image{
    width: 150px;
}
/* GALLERY */

.gallery-list {
    margin: 0;
    padding-left: 1.2rem;
}

/* CONTACT */

.contact-grid {
    display: block;
}

.contact-grid .wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
}

/* FORMS */

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    margin-bottom: .35rem;
    font-weight: bold;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: .75rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    font: inherit;
}

/* BUTTONS */

button,
.button {
    display: inline-block;
    background: #5cb85c;
    color: #fff;
    border: 0;
    padding: .75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: #255a31;
    text-decoration: none;
}

/* ALERTS */

.alert {
    padding: .85rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert.success {
    background: #e6f7ea;
    color: #215732;
}

.alert.error {
    background: #fdeaea;
    color: #8a1f1f;
}

.post-date {
    color: #666;
    font-size: .92rem;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .site-header .wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        margin-left: 0;
        margin-top: 1rem;
    }

    .contact-grid .wrap {
        grid-template-columns: 1fr;
    }

    .intro h2,
    .latest-posts h2 {
        font-size: 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
    }
}