/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

body #header-outer #top .slide-out-widget-area-toggle[data-custom-color="true"] a:before {
    background-color: rgb(255 255 255 / 90%);
    height: 40px;
}

#header-outer[data-box-shadow="large"] {
    box-shadow: none;
}

#slide-out-widget-area.fullscreen-split .off-canvas-menu-container>ul>li{
    margin-bottom: 3vh !important;
}

.container-wrap.no-sidebar.single-top {
    padding-top: 0;
    margin-top: -90px;
}

body #header-outer, body[data-header-color="dark"] #header-outer {
    background-color: transparent;
}

.single-title {
    height: clamp(500px, 65vh, 620px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
   padding-bottom: 80px;
}

.single-title .row-bg.viewport-desktop.using-image {
    background-size: cover;
    background-position: center;
}

.single-title .row-bg.viewport-desktop.using-image:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 90%));
}

a.btn-back {
    color: #fff;
    opacity: 0.7;
    font-family: Cascadia Mono;
    text-transform: uppercase;
    letter-spacing: .04px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

a.btn-back svg {
    max-width: 8px;
    height: auto;
}

a.btn-back svg path {
    stroke: #fff !important;
}
    
.single-info {
    padding-top: 60px;
    padding-bottom: 80px;
}

.vc_column-inner.single-details {
    margin-bottom: 50px;
}

.vc_column-inner.single-details h6 {
    opacity: 0.75;
}

.projekt-info {
    max-width: 350px;
}

.projekt-info-item {
    display: flex;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,.12);
    padding-bottom: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.projekt-info-item h6 {
    margin: 0;
}

.projekt-info-item p {
    text-align: right;
}

.single-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 20px;
    width: 100%;
}

.gallery-item:nth-child(4n + 1) {
    grid-column: span 3;
}

.gallery-item:nth-child(4n + 2) {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
}

.single-gallery > div:nth-child(4n + 3) {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
}

.gallery-item:nth-child(4n) {
    grid-column: span 3;
}

.gallery-item {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-item a:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgb(37 35 35 / 35%);
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item img {
    margin-bottom: 0 !important;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
    transition: all 0.45s ease;
}

.gallery-item:hover a:after {
opacity: 1;    
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.filter-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.filter-wrapper h6 {
    opacity: 0.75;
}
    
.categories-filter ul {
    margin: 0;
    display: flex;
    gap: 6px;
}

.categories-filter ul li {
    list-style: none;
    font-size: 15px;
    font-weight: 600;
}

.categories-filter ul li a {
    color: #fff;
    padding: 5px 15px;
    background: #252323;
    border-radius: 50px;
    transition: all 0.35s ease;
}

.categories-filter ul li a:hover,
.categories-filter ul li.active a {
    background: rgb(0 184 244 / 100%);
    color: #fff;
}
    
.projekty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.projekty-grid .projekt-item:nth-child(8n + 1), 
.projekty-grid .projekt-item:nth-child(8n + 2) {
    grid-column: span 1;
}

.projekty-grid .projekt-item:nth-child(8n + 3) {
    grid-column: span 2;
}

.projekty-grid .projekt-item:nth-child(8n + 4) {
    grid-column: span 2;
}

.projekty-grid .projekt-item:nth-child(8n + 5) {
    grid-column: span 2;
}

.projekty-grid .projekt-item:nth-child(8n + 6) {
    grid-column: span 2;
}

.projekty-grid .projekt-item:nth-child(8n + 7),
.projekty-grid .projekt-item:nth-child(8n + 8) {
    grid-column: span 1;
}

.projekty-grid .projekt-item {
    margin-bottom: 20px;
}

.projekt-thumb {
    position: relative;
    overflow: hidden;
}

.projekt-thumb img {
    position: absolute;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    left: 0;
    top: 0;
    transition: all 0.45s ease;
}

.projekt-thumb:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgb(37 35 35 / 35%);
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.projekt-item a:hover .projekt-thumb:after {
opacity: 1;    
}

.projekt-item a:hover img {
    transform: scale(1.05);
}

.projekty-grid .projekt-item:nth-child(8n + 1) .projekt-thumb, 
.projekty-grid .projekt-item:nth-child(8n + 2) .projekt-thumb,
.projekty-grid .projekt-item:nth-child(8n + 7) .projekt-thumb,
.projekty-grid .projekt-item:nth-child(8n + 8) .projekt-thumb{
    aspect-ratio: 1/1;
}

.projekty-grid .projekt-item:nth-child(8n + 3) .projekt-thumb,
.projekty-grid .projekt-item:nth-child(8n + 4) .projekt-thumb,
.projekty-grid .projekt-item:nth-child(8n + 6) .projekt-thumb{
    aspect-ratio: 3/2;
}

.projekty-grid .projekt-item:nth-child(8n + 5) .projekt-thumb {
    aspect-ratio: 4/3;
}


.col h3.projekt-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 5px;
}

.projekt-meta {
    border-top: 1px solid rgba(0,0,0,.12);
    padding-top: 3px;
    display: flex;
}

.projekt-meta-item {
    font-family: Cascadia Mono;
    text-transform: uppercase;
    letter-spacing: .04px;
    font-size: 14px;
    color: rgb(37 35 35 / 50%);
}

.projekt-meta-item:first-child:after {
    content: '•';
    margin: 0 8px;
}

.projekty-grid.selected .projekt-item:nth-child(8n + 5),
.projekty-grid.selected .projekt-item:nth-child(8n + 6) {
    grid-column: span 1;
}

.projekty-grid.selected .projekt-item:nth-child(8n + 5) .projekt-thumb,
.projekty-grid.selected .projekt-item:nth-child(8n + 6) .projekt-thumb {
    aspect-ratio: 1 / 1;
}

.container-wrap textarea {
    height: 100px;
}

body[data-form-style="minimal"] input[type=text], 
body[data-form-style="minimal"] input[type=email], 
body[data-form-style="minimal"] textarea  {
    padding-left: 0;
}

body[data-form-submit="regular"] input[type=submit] {
    background:#252323;
}

.material .wpcf7-form .nectar-wpcf7-inline-form {
    padding: 0;
}

.wpcf7-form .nectar-wpcf7-inline-form .nectar-wpcf7-inline-field {
    padding-right: 20px;
    padding-bottom: 20px;
}

.project-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 70px 0 30px 0;
}

.project-navigation a {
    font-family: "Cascadia Mono";
    text-transform: uppercase;
    letter-spacing: 0.04px;
    font-weight: 600;
    color: #252323;
    font-size: 14px;
}

.project-navigation a:hover {
    opacity: 0.7;
}

.project-nav__item.project-nav__all img {
    width: 36px;
    max-width: 36px;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.project-nav__item.project-nav__prev,
.project-nav__item.project-nav__next {
    flex: 0 0 calc(50% - 18px);
}

.project-nav__item.project-nav__next {
    text-align: right;
}

.project-nav__item.project-nav__all a:hover img {
    transform: scale(0.95);
}