/**
    Theme name: Au fil d'étangs
*/

* {
    box-sizing: border-box;
}

input, textarea {
    border-radius: 8px;
    border: 1px solid var(--wp--preset--color--primary-dark);
    padding: 8px;
    max-width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px;
}

.col {
    margin: 0 20px;
}

#header {
    background: var(--wp--preset--color--primary);
    padding: 20px;
    border-bottom: 1px solid var(--wp--preset--color--primary-dark);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

#branding .custom-logo {
    height: 160px;
    width: auto;
    background: var(--wp--preset--color--primary-light);
    padding: 4px;
    border-radius: 100px;
}

#menu-container {
    margin-left: auto;
}

#menu {
    margin: 0 -10px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

#menu li {
    list-style: none;
    display: block;
    margin: 10px;
}

#menu li a {
    display: block;
    color: var(--wp--preset--color--primary-light);
    background: var(--wp--preset--color--primary-dark);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
}

#menu li a:hover {
    color: var(--wp--preset--color--primary-dark);
    background: var(--wp--preset--color--primary-light);
}

#content {
    width: var(--wp--style--global--content-size);
    margin: 0 auto;
}

@media (max-width: 1024px){
    #header {
        flex-direction: column;
    }

    #menu {
        justify-content: center;
        margin: 20px 0 0 0;
    }

    #content {
        width: 100%;
        padding: 20px;
    }
}

/* Gutenberg */
.osm-block {
    border-radius: var(--wp--custom--border-radius);
}


/*********************/
/* Styles for the lightbox overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-overlay:target {
    display: flex;
}
