/*
Theme Name: ACF Explorer
Author: Sylvain DANGIN
*/
@media screen {
    body {
        min-height: 100vh;
    }        
}

* {
    font-family: area-normal, sans-serif;
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-family: larken, sans-serif;
    font-weight: 700;
    font-style: normal;
}

section.container {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

section.container h1 {
    font-size: 200%;
    font-weight: 900;
}

section.container .panel-block {
    background-color: white;
}

section.container .panel-block .table {
    width: 100%;
}

#no-result > .icon-text {
    display: block;
    text-align: center;
}

.navbar-item {
    font-weight: bold;
}

.navbar-end {
    border-top: none;
}

#home .hero {
    background-position: center bottom !important;
    background-blend-mode: multiply;
    background-size: cover !important;
}

#home .hero h1 {
    font-size: 3rem;
    line-height: 4rem;
    text-shadow: 0px 0px 10px #000000;
}

#home .hero p {
    font-size: 1.5rem;
    line-height: 2.5rem;
    text-shadow: 0px 0px 10px #000000;
}


#home #global-navbar {
    background: transparent;
}

#home #global-navbar a {
    font-weight: bold;
}

#home a.navbar-item:hover, #home a.navbar-item:focus {
    background-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 2px 2px 3px 5px rgba(0, 0, 0, 0.15) !important;
}

#home .columns,
#acf-item-cards {
    justify-content: center;
}

#home .card figure,
#acf-item-cards div.card .card-image {
    overflow: hidden;
}

#home .card img,
#acf-item-cards div.card img {
    object-fit: cover !important;
    transition: transform 0.5s;
}

#home .card:hover img:hover,
#acf-item-cards .card:hover img {
    transform: scale(1.03);
}

#home .columnn 
#acf-item-cards > .column {
    display: flex;
}

#home div.card,
#acf-item-cards div.card {
    width: 100%;
    height: 100%;
}

#home div.card {
    display: flex;
    flex-direction: column;
}

#home div.card .card-content {
    flex-grow: 1;
}

#home div.card .card-content a {
    font-weight: bold;
}
#acf-item-cards div.card:hover {
    box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.329), 0 0 0 1px rgba(10,10,10,.02);
    transition: box-shadow 0.3s;
}

#acf-item-cards .tag {
    text-overflow: ellipsis;
    overflow: hidden;
    display: inline;
    padding-top: 0.25rem;
}

#acf-item-cards .card-image {
    border-radius: 0.75rem;
}

@media screen and (max-width: 600px) {
    #acf-item-cards .card {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    #acf-item-cards .card-content {
        width: 66.666%;
        padding: 0.5rem 1rem;
    }

    #acf-item-cards .card-image {
        width: 33.33%;
    }

    #acf-item-cards .card-image a {
        height: 100%;
    }

    #acf-item-cards .tags {
        margin-top: 1rem;
        flex-direction: column;
        align-content: start;
        align-items: start;
    }

    #filter-form .select,
    #filter-form select {
        width: 100%;
    }

    #home .field.has-addons {
        display: block;
    }

    #home .field.has-addons .control input,
    #home .field.has-addons .control button{
        border-radius: 0 !important;
    }

    #home .columns {
        display: flex;
    }

    #home .card-content {
        padding: 0.8rem;
    }

    #home .card-content .title.is-4 {
        font-size: 1rem;
        padding-bottom: 0.2rem;
    }

    #home .card-content .subtitle {
        font-size: 1rem;
    }
}

#filter-form span.is-right {
    cursor: pointer;
    pointer-events: all;
}

#filter-form input[name="search"]:placeholder-shown + span {
    display: none;
}

#basic-filters {
    align-items: end;
}

#advanced-filters {
    box-shadow: inset 0.1rem 0.1rem 0.1rem #00000033;
    background-color: white;
    border-radius: 1rem;
    margin-inline-start: 0;
    margin-inline-end: 0;
    display: flex;
}

#basic-filters input[type="checkbox"],
#advanced-filters input[type="checkbox"] {
    margin-right: 0.25rem;
}

#basic-filters label.checkbox,
#advanced-filters label.checkbox {
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
}

@media screen and (min-width: 601px) and (max-width: 768px) {
    #acf-item-cards.columns {
        display: flex;
    }    
    #acf-item-cards div.column {
        width: 50%;
    }
    #home .columns {
        display: flex;
    }
}

@media screen and (max-width: 1215px) {
    #acf-item-cards .is-hidden-touch {
        display: none !important;
    }
}

#acf-item-cards div.column.next-page {
    display: table;
}

#acf-item-cards div.column.next-page span {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    width: 100%;
    opacity: 0.5;
}

#pagination {
    margin-top: 1rem;
}

footer nav {
    font-size: 2.5rem;
    line-height: 4rem;
    margin-bottom: 0 !important;
}

p + h2,
ul + h2,
table + h2 {
    margin-top: 2.5rem;
}

.acf-item-panel .panel-block {
    display: block;
}

.acf-item-panel .columns {
    width: 98%;
    border-bottom: 1px solid rgb(182, 182, 182);
    margin: 0 1%;
}

.acf-item-panel .title {
    font-size: 1rem;
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .acf-item-panel .columns {
        display: flex;
        border-bottom: none;
    }

    .acf-item-panel .column {
        border-bottom: 1px solid rgb(182, 182, 182);
    }
}

/* Glossary */
.glossary-tooltip a {
    background: none;
    color: inherit;
}

.glossary-only-link {
    padding: 0 !important;
}

.glossary-thumbnail {
    display: block;
    margin: 0 auto;
    max-height: 50vh;
}

.glossary-tooltip-text a {
    display: none !important;
}

.glossary-acf-explorer .is-128x128 img {
    height: 128px;
    width: 128px;
    object-fit: cover;
}

#print-button {
    position: absolute;
    right: 2.5rem;
}

@media print {
    #print-button {
        display: none;
    }

    .acf-item-panel {
        position: relative;
        font-size: 95%;
    }

    .acf-item-panel .column {
        padding: 0.5rem;
    }

    #print-logo {
        position: absolute;
        top: 0;
        right: 0;
        height: 2.5cm;
        width: auto;
    }
}

@media screen {
    #print-mask {
        position: absolute;
        z-index: 99999;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: block;
        background-color: white;
    }

    #print-logo {
        display: none;
    }
}



img.magnify {
    cursor: pointer;
}

#magnify-modal .modal-content {
    text-align: center;
    overflow: hidden;
    height: 98%;
    width: 100%;
    margin-top: 1%;
}

#magnify-img {
    object-fit: contain;
    height: 100%;
    width: auto;
}



.content img {
    margin-bottom: 1rem;
}

label.checkbox {
    height: 2.5rem;
}

.control > input[type=checkbox] {
    appearance: none;
    outline: none;
    cursor: pointer;
    height: 2rem;
    width: 2rem;
    top: 0.25rem;
    border-radius: 6px;
}

.control > input[type=checkbox],
a.pagination-link {
    border: 1px solid black;
    background-color: white;
    box-shadow: rgba(51, 51, 51, 0.05) 0px 1px 2px 0px, rgba(51, 51, 51, 0.05) 0px 2px 4px 0px;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    border-color: rgb(214, 217, 224) !important;
}

.control > input[type=checkbox]:hover,
a.pagination-link:hover {
    background-color: rgb(231, 233, 237);
    border-color: rgb(162, 169, 185);
}

.control > input[type=checkbox]:checked::after {
    content: '\2713';
    display: block;
    text-align: center;
    color: #4181b8;
    position: absolute;
    line-height: 2rem;
    width: 2rem;
    font-weight: bold;
    font-size: 1.2rem;
}

label.checkbox span {
    margin-left: 2.5rem;
    line-height: 2.5rem;
}

#partners div {
    text-align: center;
}
