/*--------- Main ----------*/

#page > .section {
    padding-top: 0;
}
.frontpage #page > .section {
    padding-top: 4rem;
    padding-bottom: 1rem;
}
.main-content {
    padding-top: 0;
}
.main-content article {
    padding-bottom: 0;
}
.frontpage .main-content {
    padding-top: 1.3rem;
}
.frontpage .main-content article {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

body:not(.frontpage) .columns.is-centered {
    margin-top: 0;
}

/*--------- Block images ----------*/

.name-field-image {
    position: relative;
}

.name-field-block-image .name-field-media-image {
    padding: 15px;
    margin: 0 auto 15px auto;
}
.name-field-block-image .name-field-media-image img {
    border-radius: 999px;
    display: block;
    height: auto;
    max-width: 100%;
    overflow: hidden;
}


/*--------- Title area + pages ----------*/

.title-area {
    position: relative;
    padding-bottom: 16%;
    height: 0;
    overflow: hidden;
}
.title-area > div {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.name-field-title-image::after {
    background: transparent;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 15%, rgba(0,0,0,0) 80%); 
    content: '';
    display: block;
    left: 0; 
    position: absolute;
    top: 0;
    width: 80%;
    height: 100%;
}
.name-field-title-image article {
    position: initial;
}
.name-field-title-image, .name-field-title-image div {
    height: 100%;
}
.title-area img, .title-area picture {
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

.title-area .page-title {
    display: flex;
    height: 100%;
    align-items: center;
    justify-items: flex-start;
    max-width: 1030px;
    padding: 15px; 
    width: 100%;
    text-align: left;
    margin: 0 auto;
}
.page-title h1 {
    color: var(--white);
    font-family: var(--altFont);
    font-size: 3em;
    font-size: min(3em, 5vw);
    margin: 0;
    padding: 0;
}

.frontpage .title-area {
    display: none;
}

.name-field-preface {
    background: var(--yellow);
    color: var(--white);
    padding: 4rem 30px 4rem 30px;
    margin-bottom: 5.3rem;
    text-align: center;
    position: relative;
    width: 100%;
}
.name-field-preface > * {
    max-width: 1050px;
    font-size: 1.1rem;
    margin: 0 auto;
}
.name-field-preface h1, .name-field-preface h2, .name-field-preface h3 {
    color: var(--darkGreen);
}
.name-field-preface a {
    color: inherit;
    text-decoration: underline;
}
.name-field-preface .butterfly {
    left: 8%;
    bottom: 0;
    transform: translateY(40%);
}

body:not(.frontpage) .content-area, body:not(.frontpage) .content-paragraphs-area {
    max-width: 1030px;
    margin: 0 auto;
}
/* body:not(.frontpage) .content-area > * {
    flex: 1 0 calc(45% + 60px);
} 
body:not(.frontpage) .content-area div.content {
    flex: 0 1 auto;
}
*/
body:not(.frontpage) .name-field-image {
    display: block; 
    float: right;
    max-width: 50%;
    min-width: 460px;
    margin: 6px 0 15px 30px;
}
body:not(.frontpage) .name-field-image img {
    display: block;
}

/*--------- Photoswipe image gallery ----------*/

.photoswipe-gallery {
    display: flex;
    width: 100%;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
.photoswipe-gallery > div { 
    flex-basis: calc(33% - 1rem);
}
.name-field-content-paragraphs {
    margin: 2rem 0 2rem 0;
}
.name-field-content-paragraphs + .name-field-content-paragraphs {
    margin-bottom: 0;
}

/*--------- Products / Trainingen ----------*/

#products .container {
    background: var(--yellow);
    color: var(--darkGreen);
    position: relative;
    text-align: center;
    font-size: 0.95rem;
}
#products .columns {
    max-width: 1080px;
    margin: 0 auto;
}
#products .column.is-6 > div, #products .column.is-4 > div {
    max-width: 320px;
    margin: 0 auto;
}

#block-trainingenheader {
    margin-bottom: 10px;
}

#products h2 {
    display: block;
    margin: 25px auto 0 auto;
    text-align: center;   
}

#products .container::before {
    background-image: url('../images/border1.svg');
    background-position: center bottom;
    background-size: 100% 100%;
    content: '';
    display: block;
    height: 20px;
    left: 0;
    top: -19px;
    position: absolute;
    width: 100%;
}

#products .name-field-media-image {
    max-width: 270px;
}
#products .name-body {
    margin-bottom: 35px;
}
#products .is-full .name-body {
    margin: 0;
}
#products .name-body p {
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
}
#products h3 {
    color: #fff;
    margin-bottom: 35px;
}
#products a {
    color: #fff;
    text-decoration: none;
}
#products a:hover {
    text-decoration: underline;
}

#products .butterfly {
    top: 0;
    left: 23%;
    transform: translateY(-85%);
}

/*--------- Quote ----------*/

#quote .container {
    position: relative;
}
body:not(.frontpage) #quote .container {
    margin-top: 3.5rem;
    padding-top: 4.5rem;
}
body:not(.frontpage) #quote .container::before {
    background-image: url('../images/lijn.svg');
    background-position: center bottom;
    background-size: 100% 100%;
    content: '';
    background-repeat: no-repeat;
    display: block;
    height: 20px;
    left: 0;
    top: -15px;
    position: absolute;
    width: 100%;
}

.quote {
    color: var(--green);
    font-family: var(--altFont);
    text-align: center;
    font-size: 3rem;
    font-size: min(3.4rem, 5vw);
    line-height: 1.3em;
    max-width: 1080px;
    margin: 0 0 0.3em 0;
}
.quote-by {
    color: var(--darkGreen);
    font-weight: 600;
    text-align: right;
    margin: 0 7em 0 0;
    font-size: min(1.4rem, 4vw);
    letter-spacing: 0.02rem;
}


/*--------- Contact ----------*/

#contact {
    padding: 3rem 1.5rem 0rem 1.5rem; 
}

#contact .container {
    background: var(--darkGreen);
    color: var(--white);
    position: relative;
    padding: 40px 0 60px 0;
    text-align: center;
    font-size: 0.95rem;
    text-align: left;
}

#contact .container::before {
    background-image: url('../images/border2.svg');
    background-position: center bottom;
    background-size: 100% 100%;
    content: '';
    display: block;
    height: 20px;
    left: 0;
    top: -19px;
    position: absolute;
    width: 100%;
}

#contact .container a {
    color: var(--white);
    text-decoration: none;
}
#contact .container a:hover {
    text-decoration: underline;
}
#contact .columns {
    max-width: 800px;
    margin: 0 auto;
}
#contact .columns .column .column {
    padding: 0;
} 

#contact h1, #contact h2, #contact h3, #contact a .fab, #contact .fab i {
    color: var(--yellow);
}

#block-contact img {
    width: 166px;
    border-radius: 4px;
    margin: -10px 0 -10px 0;
    display: block;
}

#block-contactfoto {
    margin-top: -20px;
}

#block-contactfoto .name-field-media-image {
    max-width: 200px;
    margin: 0 auto 10px auto;
}

#contact .alt-font {
    color: var(--green);
    font-size: 1.2rem;
}

#contact .butterfly {
    right: 0;
    top: 20%;
    transform: translateX(45%);
}

/*--------- Tables ----------*/

.table-wrapper {
    overflow: auto;
    max-width: 100%;
}

.content table td, .content table th {
    border: initial;
    padding: 5px;
}
.content table[cellpadding="0"] td, .content table table[cellpadding="0"] th {
    padding: 0;
}
.content table[cellpadding="10"] td, .content table table[cellpadding="10"] th {
    padding: 10px;
}

.content table tr {
    background: var(--background);
}
.content table tr:nth-child(odd) {
    background: rgba(255,255,255,0.50);
}