/*
 Theme Name:   softlock
 Theme URI:    https://softlockfilm.nl
 Description:  Custom website voor softlock
 Author:       107 ideas
 Author URI:   https://107ideas.com
 Template:     bricks
 Version:      1.1
 Text Domain:  softlock
*/

* {
    cursor: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    margin-top: 0 !important;
}

body, main {
    height: 100dvh;
    overflow: hidden;
}

body:after {
    content: "";
    animation: grain 8s steps(10) infinite alternate;
    background-image: url("img/tv-noise.gif");
    background-size: 1100px;
    background-repeat: repeat;
    height: 300dvh;
    left: -50dvw;
    opacity: 0.075;
    position: fixed;
    top: -100dvh;
    width: 300dvw;
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 999999;
}

@keyframes grain {
    0%   { transform: translate(0, 0) }
    10%  { transform: translate(-5%, -10%) }
    20%  { transform: translate(-15%, 5%) }
    30%  { transform: translate(7%, -10%) }
    40%  { transform: translate(-5%, 10%) }
    50%  { transform: translate(-15%, 10%) }
    60%  { transform: translate(15%, 0%) }
    70%  { transform: translate(0%, 15%) }
    80%  { transform: translate(3%, 10%) }
    90%  { transform: translate(-10%, 10%) }
    100% { transform: translate(0, 0) }
}

#wpadminbar {
    position: fixed !important;
}

#brx-content {
    position: relative;
}
#brx-content .brxe-section:before {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: red;
    background-image: url('img/noise.png');
	background-size: 350px 350px;
	background-repeat: repeat;
	background-position: 0 0;
	background-attachment: fixed;
}

#cursor {
    transition: transform .25s ease-in-out;
    -webkit-filter: drop-shadow(7px 14px 7px rgba(32,30,24,.2));
    filter: drop-shadow(7px 14px 7px rgba(32,30,24,.2));
}

#back-krant, #back-team, #back-portfolio, #team {
    transition: transform .25s ease-in-out;
    -webkit-filter: drop-shadow(7px 14px 7px rgba(32,30,24,.2));
    filter: drop-shadow(7px 14px 7px rgba(32,30,24,.2));
}

#back-krant.instant, #back-team.instant, #back-portfolio.instant {
    transition: none;
}

#contact {
    transition: transform .25s ease-in-out;
    -webkit-filter: drop-shadow(7px 21px 7px rgba(32,30,24,.2));
    filter: drop-shadow(7px 21px 7px rgba(32,30,24,.2));
}
#contact.hide {
    transform: translateY(102%);
}
#contact-mobile {
    transition: transform .25s ease-in-out;
    -webkit-filter: drop-shadow(7px 21px 7px rgba(32,30,24,.2));
    filter: drop-shadow(7px 21px 7px rgba(32,30,24,.2));
}
#contact-mobile.hide {
    transform: translateX(102%);
}


#contactpage {
    transition: transform .25s ease-in-out;
    transform: translateY(0);
}

#contactpage.show {
    transform: translateY(-100dvh);
}


#teampage {
    transition: transform .5s ease-in-out;
    transform: translateY(0);
}
#teampage.show {
    transform: translateY(-200dvh);
}
#teampage::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml;utf-8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='noise' x='0%' y='0%' width='100%' height='100%'><feTurbulence baseFrequency='3' /></filter><rect x='0' y='0' width='100%' height='100%' filter='url(%23noise)' /></svg>");
    opacity: 0.5;
    mix-blend-mode: darken;
    pointer-events: none;
}

#teampage-scroll {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
}

.left, .right {
    transition: transform .25s ease-in-out;
}

.left.hide {
    transform: translateX(-102%);
}
.right.hide {
    transform: translateX(102%);
}

.poster {
    z-index: 100;
    transition: transform .25s ease-in-out;
}
.open .poster {
    transform: translateY(-100dvh);
    z-index: 99 !important;
}

.cover_gallery_container {
    transition: transform .25s ease-in-out !important;
    z-index: 99;
}
.open .cover_gallery_container {
    transform: translateX(0) !important;
    z-index: 100 !important;
    visibility: visible !important;
}
.cover_gallery {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: visible !important;
}
.cover_gallery_container .bricks-layout-item {
    filter: grayscale(1) blur(1px) contrast(0.4) sepia(.5);
    -webkit-mask: radial-gradient(#000, #000c);
    transition: all 0.25s ease-out;
}
.cover_gallery_container .bricks-layout-item:hover {
    filter: grayscale(0) blur(0) contrast(1) sepia(0);
}
.cover_gallery_container .bricks-layout-item img {
    object-fit: contain;
    position: relative;
    padding: 21px;
}

#team-photo {
    position: relative;
}
#team-photo img {
    filter: grayscale(0) contrast(0.4);
    -webkit-mask: radial-gradient(#000, #000c);
    transition: all 0.5s ease-in-out;
}
#team-photo::after {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #e1b2bb;
    opacity: 1;
    filter: grayscale(0.1);
    mix-blend-mode: color;
    pointer-events: none;
    z-index: 1;
}

#spijker {
    -webkit-filter: drop-shadow(3px 5px 1px rgba(32,30,24,0.5));
    filter: drop-shadow(3px 5px 1px rgba(32,30,24,0.5));
}

.teamlid {
    transition: transform .25s ease-in-out;
    -webkit-filter: drop-shadow(2px 9px 5px rgba(32,30,24,0.5));
    filter: drop-shadow(2px 9px 5px rgba(32,30,24,0.5));
    animation: swing 2s infinite cubic-bezier(0.37, 0, 0.63, 1);
    -webkit-transform-origin: top center;
    -moz-transform-origin: top center;
    transform-origin: top center;
    cursor: pointer;
}

@keyframes swing  {
    0% { transform: rotate(2deg); }
    50% { transform: rotate(-2deg); }
    100% { transform: rotate(2deg); }
}

.teamlid, .teamlid_foto {
  position: relative;
  z-index: 1;
  transform: translateZ(0);
}

.lijstje {
  position: relative;
  z-index: 2;
  transform: translateZ(1px);
}

.lijstje img {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.teamlid_foto img {
  position: relative;
  filter: grayscale(1) sepia(0.5) blur(0.25px);
  -webkit-mask: radial-gradient(#000, #000a);
  -webkit-transform: translateZ(0);
  transform: translate3d(0, 0, -1px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.teamlid_foto img::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-mask: radial-gradient(farthest-side, #0000 30%, #000);
    backdrop-filter: blur(5px) sepia(90%);
}

.teamlid_foto img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='noise' x='0%' y='0%' width='100%' height='100%'><feTurbulence baseFrequency='0.5' /></filter><rect x='0' y='0' width='100%' height='100%' filter='url(%23noise)' /></svg>"), #f003;
    filter: grayscale(100%) contrast(150%);
    mix-blend-mode: darken;
}



@media (hover: none) {
    #cursor {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    
    .left.hide {
        transform: translateY(-102%);
    }
    .right.hide {
        transform: translateY(102%);
    }
    
    .open .poster {
        transform: translateX(-100dvw);
        z-index: 99 !important;
    }
    
    .cover_gallery_container {
        transform: translateX(100dvw);
    }
    .open .cover_gallery_container {
        transform: translateX(0);
    }
    .cover_gallery {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        overflow-y: hidden !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 21px !important;
        padding: 14px 0 !important;
        height: 100% !important;
        width: 100% !important;
        columns: unset !important;
        grid-template-columns: unset !important;
    }
    .cover_gallery .bricks-layout-item {
        flex: 0 0 auto !important;
        transform-origin: bottom center !important;
        overflow: hidden;
    }
    .cover_gallery .bricks-layout-item img {
        max-height: calc(45dvh - 42px);
        width: auto;
        padding: 28px 14px !important;
        display: block !important;
    }
}