/*
 Theme Name:   Sam Drukker
 Theme URI:    olgaritme.com
 Description:  Sam Drukker
 Author:       Bram Snijders
 Author URI:   olgaritme.com
 Template:     twentytwenty
 Version:      1.0.0
 Tags:         sam, drukker
 Text Domain:  twentytwentyone-child
*/



/* site header and menu styling -------------------------------------------------- */
body:not(.template-homepage) .site-title {
    color: #777;
}
body:not(.template-homepage) .primary-menu > li > a {
    color: #777!important;
}
.header-footer-group,
body:not(.overlay-header) #site-header .toggle,
.menu-modal .toggle {
    color: #777!important;
}

.site-title a:hover, .site-title a:focus {
    text-decoration: none;
}

ul.primary-menu {
    letter-spacing: 0.03em;
}

.primary-menu ul {
    border-radius: 0;
}

/* remove underline decoration under current page menu item (because confusing) */
.primary-menu li.current-menu-item > a,
.primary-menu li.current-menu-item > .link-icon-wrapper > a {
    text-decoration: none;
}
.primary-menu li.current-menu-item > a:hover,
.primary-menu li.current-menu-item > .link-icon-wrapper > a:hover,
.primary-menu li.current-menu-item > a:focus,
.primary-menu li.current-menu-item > .link-icon-wrapper > a:focus {
    text-decoration: none;
}

/* remove underline on hover and replace it with border bottom */
.primary-menu > li > a:hover,
.primary-menu > li > a:focus,
.primary-menu .current_page_ancestor {
    text-decoration: none;
}
.primary-menu li.current-menu-item > a:hover,
.primary-menu li.current-menu-item > .link-icon-wrapper > a:hover,
.primary-menu li.current-menu-item > a:focus,
.primary-menu li.current-menu-item > .link-icon-wrapper > a:focus {
    text-decoration: none;
}
.primary-menu > li {
    transition: all 0.15s linear; /* so the hover underline fades in */
    border-bottom: 2px solid rgba(0,0,0,0);
}
.primary-menu > li:hover,
.primary-menu .current_page_ancestor {
    border-bottom: 2px solid #777;
}

/* make site title bigger */
.site-title {
    font-weight: 500;
    font-size: 3.4rem;
    font-family: georgia, serif;
}
@media (min-width: 700px) {
    .site-title {
        font-size: 6.4rem;
    }
}

/* make site title left align also on mobile */
.header-titles-wrapper {
    justify-content: initial;
    text-align: left;
    padding: 0;
}

/* hide search menu button */
.search-toggle-wrapper {
    display: none;
}
.header-inner .toggle.search-toggle {
    display: none;
}

/* Hide hamburger menu on desktop */
@media ( min-width: 1000px ) {
    .header-toggles {
        display: none;
    }
}



/* general styling --------------------------------------------------------*/

body {
    font-size: 1.6rem;
    background: white;
}

/* no serif font */
.entry-content {
    font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
    letter-spacing: normal;
}
@media (min-width: 700px) {
    .entry-content {
        font-size: 1.6rem;
    }
}

/* reduce total page width */
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: initial;
    width: initial;
}
.section-inner {
    max-width: 100rem;
}
.entry-content > .inner-entry-content:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: 100rem;
}

.entry-content {
    width: calc(100% - 4rem);
    max-width: 100rem;
    margin: 0 auto;
}
@media (min-width: 700px) {
    .entry-content {
        width: calc(100% - 8rem);
    }
}
.entry-content .inner-entry-content:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: 70rem;
    margin-left: 0;
    margin-right: 0;
}
@media (min-width: 700px) {
    .entry-content .inner-entry-content:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
        margin-left: 0;
        margin-right: 0;
    }
}

h1, h2, h3, h4, h5, h6, .faux-heading {
    letter-spacing: 0.02em;
}

/* footer */
.reduced-spacing.footer-top-visible .footer-nav-widgets-wrapper,
.reduced-spacing.footer-top-hidden #site-footer {
    border-top-width: 0;
}


/* style page header */
h1, .heading-size-1 {
    font-size: 2.4rem;
    font-weight: 400;
}
.singular .entry-header {
    padding: 1rem 0 2rem;
}

/* style post header */
h2.entry-title {
    padding-top:  1rem;
    font-size: 2.4rem;
    font-weight: 400;
}

/* style post */
@media (min-width: 700px) {
    body:not(.singular) main > article:first-of-type {
        padding: 0 0 0;
    }
}
.post-inner {
    padding-top: 2rem;
}
@media (min-width: 700px) {
    .post-inner {
        padding-top: 2rem;
    }
}

/* remove styled hr separator and style it differently */
/*hr.styled-separator::before, hr.styled-separator::after {
    content: none;
}
hr.styled-separator {
    background: initial;
    background-color: initial;
    border-style: solid;
    border-width: 0.1rem 0 0 0;
    color: #6d6d6d;
    width: 100rem;
}*/
/*.outer-hr {
    width: calc(100% - 4rem);
    max-width:  100rem;
    margin: 0 auto;
}
@media (min-width: 700px) {
    .outer-hr {
        width: calc(100% - 8rem);
    }
}
.outer-hr hr {
    width: 100%;
    max-width: 70rem;
    margin-left: 0;
    margin-right: 0;
}*/

/* hide all post info stuff like author, categories etc */
.entry-categories {
    display:  none;
}
.post-meta-wrapper {
    display:  none;
}


/* gallery styling ------------------------------------------------------*/
ul.acf-gallery-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 3em;
    grid-auto-flow: row dense;
}
@media (min-width: 700px) {
    ul.acf-gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

li.acf-gallery-item {
    margin: 0;
    padding: 0;
}
li.acf-gallery-item.double-column-width {
    grid-column-end: span 2;
}

.acf-gallery-item img {
    height: 15em;
    object-fit: contain;
    object-position: 0% 50%;
}

.acf-gallery-item figcaption {
    color: black;
    margin-top: 0;
    padding-bottom:  1em;
    font-size: 1.3rem;
    font-weight: 400;
}


/* photoswipe custom styling to white */

.pswp__bg {
  background: white;
}
.pswp__ui--fit .pswp__top-bar, .pswp__ui--fit .pswp__caption {
    background-color: rgba(1, 1, 1, 0);
}

.pswp__caption__center {
    color: black;
}
.pswp__top-bar, .pswp__ui--fit .pswp__caption {
    background-color: rgba(1, 1, 1, 0);
}

.pswp__button--arrow--left:before, .pswp__button--arrow--right:before {
    background-color: rgba(1, 1, 1, 0);
}

/* align caption to the left */
.pswp__caption__center {
    margin-left: 0;
}


/* wordpress default gallery
.blocks-gallery-grid.is-cropped .blocks-gallery-image a, .blocks-gallery-grid.is-cropped .blocks-gallery-image img, .blocks-gallery-grid.is-cropped .blocks-gallery-item a, .blocks-gallery-grid.is-cropped .blocks-gallery-item img, .wp-block-gallery.is-cropped .blocks-gallery-image a, .wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a, .wp-block-gallery.is-cropped .blocks-gallery-item img {
    max-height: 250px;
    object-fit: contain;
    object-position: 0% 50%;
}

.blocks-gallery-grid .blocks-gallery-image figure, .blocks-gallery-grid .blocks-gallery-item figure, .wp-block-gallery .blocks-gallery-image figure, .wp-block-gallery .blocks-gallery-item figure {
    display: initial;
}

.blocks-gallery-grid .blocks-gallery-image figcaption, .blocks-gallery-grid .blocks-gallery-item figcaption, .wp-block-gallery .blocks-gallery-image figcaption, .wp-block-gallery .blocks-gallery-item figcaption {
    position: initial;
    text-align: left;
    color: initial;
    background: none;
    padding: 10px 0;
    font-size: 1.5rem;
}
*/


/*-------------------------------------------------------------- */
/* contact page */
.wp-block-image:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.aligncenter) {
    margin-top: 0;
}


/*-------------------------------------------------------------- */
/* all posts, archive, category etc styling */
body:not(.singular) .inner-entry-content img {
    float: left;
    margin: 0 1em 1em 0;
    width: 25%;
}

body:not(.singular) .inner-entry-content p {
    margin-left: calc(25% + 1em);
}

body:not(.singular) .inner-entry-content a {
    color: black!important;
    text-decoration: none;
}

body:not(.singular) .entry-title a {
    color: #777;
}
body:not(.singular) .entry-title a:hover {
    color: #777;
    text-decoration: underline;
}

/*@media ( min-width: 700px ) {
    hr {
        margin: 4rem auto;
    }
}*/


/*-------------------------------------------------------------- */

/*  Template: Homepage Template
/* -------------------------------------------------------------------------- */

/* give text in header subtle dropshadow so its readable */
body.template-homepage .site-title {
    text-shadow: 0 0 1.5em #000000;
}

/* the weird transform trick is because the text shadow shouldn't cast
a shadow on the border bottom that appears when hovering over li */
body.template-homepage .primary-menu > li {
    transform-style: preserve-3d;
}
body.template-homepage .primary-menu > li > a {
    text-shadow: 0 0 1.5em #000000;
    transform: translateZ(-1px);
}

/* remove underline on hover and replace it with border bottom */
body.template-homepage .primary-menu > li:hover,
body.template-homepage .primary-menu > li > .current_page_ancestor {
    border-bottom: 2px solid white;
}

.cover-header {
    display: flex;
    overflow: hidden;
}

.cover-header-inner-wrapper {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
}

.cover-header-inner {
    padding: 10rem 0 5rem 0;
    width: 100%;
}

.cover-color-overlay,
.cover-color-overlay::before {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

.cover-color-overlay::before {
    background: currentColor;
    content: "";
    display: block;
}

.cover-header .entry-header {
    position: relative;
    width: 100%;
    z-index: 1;
}

.cover-header .entry-header * {
    color: #fff;
}

body.template-homepage .entry-header {
    background: transparent;
    padding: 0;
}

.cover-header h1,
.cover-header h2,
.cover-header h3,
.cover-header h4,
.cover-header h5,
.cover-header h6,
.cover-header .faux-heading {
    color: inherit;
}

.cover-header .entry-header a {
    color: inherit;
}

@media ( max-width: 599px ) {

    /* Template -------------------------------- */

    /* TEMPLATE: HOMEPAGE */

    .template-homepage .post-inner .post-meta-wrapper,
    .template-homepage .post-inner .author-bio {
        width: calc( 100% - 4rem );
    }

}

/* homepage background gallery */
.homepage-bg-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;

    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;

    opacity: 0;

    -webkit-transition: opacity 2s ease-in;
    -moz-transition: opacity 2s ease-in;
    -ms-transition: opacity 2s ease-in;
    -o-transition: opacity 2s ease-in;
    transition: opacity 2s ease-in;
}

.homepage-bg-slide.active-slide {
    opacity: 1;
}

.homepage-bg-slide-caption {
    color: white;
    text-align: right;
    width: 100%;
    max-width: 100rem;
    margin: 0 auto 2rem;
    align-self: flex-end;
}

@media ( max-width: 108rem ) {
    .homepage-bg-slide-caption {
        margin-right: 4rem;
    }
}
