/*
Theme Name: Janina Gajska-Bruzdowicz
Author: Piotr Chmielowiec
Author URI: https://deltam.pl/
Version: 1.0
Text Domain: jgb
*/

.about-us--columns-group .wp-block-column {
    border: 1px solid #D7D7D7;
    margin-top: -1px;
    margin-left: -1px;
}

.about-us--columns-group .wp-block-column:empty {
    border-color: transparent;
}

.wp-site-blocks>*+* {
    margin-block-start: 0;
}

.is-style-blank td {
    border: 0;
    padding: 0;
    font-size: 16px;
    vertical-align: baseline;
}

.is-style-blank tr td:first-child {
    font-size: 14px;
    color: #B1B1B1;
    padding-right: 8px;
}

.is-style-rect {
    width: 87px;
    height: 5px;
    border-left: 1px solid;
    border-right: 1px solid;
}

.is-style-rect-full-width {
    height: 5px;
    border-left: 1px solid;
    border-right: 1px solid;
    background-image: linear-gradient(90deg, transparent 33.333%, #111 33.333% 66.666%, transparent 66.66%)
}

header .wp-block-site-logo a {
    color: #fff;
    display: inline-block;
    line-height: 1;
}

header .wp-block-site-logo svg {
    max-width: 334px;
    width: 100%;
    height: auto;
}

footer .wp-block-site-logo {
    text-align: center;
}

footer .wp-block-site-logo a {
    color: var(--wp--preset--color--contrast);
}

footer .wp-block-site-logo svg {
    width: 541px;
    max-width: 100%;
    height: auto;
}

.wp-site-blocks {
    position: relative;
}

header.wp-block-template-part {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.o-nas--column-left-border {
    border-left: 5px solid var(--wp--preset--color--primary);
    padding-left: 30px;
}

.home-media-text .wp-block-media-text__content {
    padding: 0;
    grid-column: 1 / -1 !important;
    position: relative;
}

.home-media-text .wp-block-media-text__media {
    text-align: center;
}

.home-media-text .wp-block-media-text__media img {
    width: auto;
    max-width: 100%;
}

.fancy-gallery-swiper .swiper-slide img {
    max-width: 100%;
}

.heading-fancy-text {
    font-family: var(--wp--preset--font-family--condor-extended);
}

.wp-block-site-logo {
    line-height: 1;
}

.header--lang-switch a {
    line-height: 1;
}

@media(min-width: 601px) {
    .header-container {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 2rem;
    }
}

@media(min-width: 900px) {
    .wp-block-navigation__container {
        gap: 50px;
    }
}

@media(min-width: 1050px) {
    .header-container {
        grid-template-columns: 1fr auto 1fr;
    }
}

@media(max-width: 600px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        column-gap: 1rem;
    }

    .header--lang-switch {
        display: none!important;
    }

    .header-container .wp-block-navigation {
        flex-shrink: 0;
    }

    .wp-block-navigation__container, .wp-block-navigation__container li {
        width: 100%;
    }

    .wp-block-navigation__container li {
        border-bottom: 1px solid #434343;
        padding-bottom: 1.5rem!important;
    }

    .home-hero-section.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
        margin-top: -124px;
        padding: 0 1rem;
    }

    .home-second-hero--text {
        margin-top: -64px;
        font-size: 11vw!important;
    }
}

@media(max-width: 767px) {
    .fancy-gallery-swiper .swiper-wrapper {
        align-items: center;
    }

    .fancy-gallery-swiper .swiper-slide {
        min-height: unset !important;
    }
}

@media(min-width: 768px) {
    .fancy-gallery-swiper .swiper-slide {
        height: auto;
        text-align: center;
    }

    .fancy-gallery-swiper .swiper-slide {
        height: auto;
    }

    .fancy-gallery-swiper .swiper-slide img {
        position: absolute;
        transform: translateY(100%);
        max-height: var(--max-height);
        bottom: 100%;
        transition: bottom .5s, transform .5s, max-height .5s, max-width .5s;
        margin: auto;
        left: 0;
        right: 0;
    }

    .fancy-gallery-swiper .swiper-slide-prev img {
        max-width: 60%;
        max-height: 455px;
    }

    .fancy-gallery-swiper .swiper-slide-next img,
    .fancy-gallery-swiper .swiper-slide-next+.swiper-slide img {
        bottom: 50%;
        transform: translateY(50%);
        max-height: 455px;
    }

    .fancy-gallery-section {
        position: relative;
    }

    .fancy-gallery-heading-group {
        position: absolute;
        bottom: 40%;
        z-index: 10;
    }
}

.fancy-gallery-swiper .swiper-slide-next, .fancy-gallery-swiper .swiper-slide-prev {
    cursor: pointer;
}

.swiper-pagination-arrow {
    padding: 0;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

.swiper-pagination-arrow:hover .swiper-pagination-arrow-svg--arrow {
    fill: #fff;
}

.swiper-pagination-arrow:hover .swiper-pagination-arrow-svg--circle {
    fill: rgba(255, 255, 255, .14);
}

.swiper-pagination-arrow-svg--prev {
    transform: scaleX(-1);
    margin-right: 86px;
}

.swiper-pagination {
    text-align: center;
    margin-top: 4rem;
}

.project-gallery-swiper img {
    max-width: 100%;
    height: auto;
}

.project-gallery-swiper-thumbs {
    display: flex;
    gap: 30px;
    overflow: auto;
}

.project-gallery-swiper-thumbs img {
    width: 150px;
    height: auto;
}

.project-gallery-swiper-thumb {
    cursor: pointer;
}

.project-gallery-swiper-thumb:not(.active) {
    opacity: .3;
}

/* Listing */


.listing-grid li {
    width: 100% !important;
}

.post-type-archive-project:not(.paged) .listing-grid li:nth-child(2) .wp-block-post-title a, .post-type-archive-project:not(.paged) .listing-grid li:nth-child(7) .wp-block-post-title a, .post-type-archive-project.paged-2 .listing-grid li:nth-child(5) .wp-block-post-title a, .post-type-archive-project.paged-2 .listing-grid li:nth-child(7) .wp-block-post-title a, .post-type-archive-project.paged-3 .listing-grid li:nth-child(1) .wp-block-post-title a, .post-type-archive-project.paged-3 .listing-grid li:nth-child(3) .wp-block-post-title a {
    color: #fff;
    font-size: clamp(1.6875rem, 0.9952rem + 3.0769vw, 4.6875rem);
    font-weight: 400;
    font-family: var(--wp--preset--font-family--condor-extended);
}

.post-type-archive-project.paged .listing-top {
    display: none;
}

/* Listing page 1 */
@media(min-width: 1000px) {
    .listing-top {
        position: absolute;
        width: 32%;
    }
    
    .listing-grid {
        display: grid !important;
        grid-template-columns: repeat(12, 1fr);
        row-gap: var(--wp--preset--spacing--60) !important;
    }

    .post-type-archive-project:not(.paged) .listing-grid li:nth-child(1) {
        grid-column: 5 / -1;
        grid-row: 1;
    }

    .post-type-archive-project:not(.paged) .listing-grid li:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
        position: relative;
    }

    .post-type-archive-project:not(.paged) .listing-grid li:nth-child(2) .wp-block-post-featured-image {
        width: 58.33% !important;
    }

    .post-type-archive-project:not(.paged) .listing-grid li:nth-child(2) .wp-block-post-title {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 50%;
    }

    .post-type-archive-project:not(.paged) .listing-grid li:nth-child(3) {
        grid-column: 3 / span 4;
        grid-row: 3;
    }
    
    .post-type-archive-project:not(.paged) .listing-grid li:nth-child(4) {
        grid-column: 7 / span 4;
        grid-row: 3;
    }

    .post-type-archive-project:not(.paged) .listing-grid li:nth-child(5) {
        grid-column: 1 / span 7;
        grid-row: 4;
    }

    .post-type-archive-project:not(.paged) .listing-grid li:nth-child(6) {
        grid-column: 9 / -1;
        grid-row: 4;
    }

    .post-type-archive-project:not(.paged) .listing-grid li:nth-child(7) {
        grid-column: 3 / -1;
        grid-row: 5;
        position: relative;
        margin-top: -200px;
    }

    .post-type-archive-project:not(.paged) .listing-grid li:nth-child(7) .wp-block-post-featured-image {
        width: 50% !important;
    }

    .post-type-archive-project:not(.paged) .listing-grid li:nth-child(7) .wp-block-post-title {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        right: 0;
        text-align: right;
    }
}

/* Listing page 2 */
@media(min-width: 1000px) {
    .post-type-archive-project.paged-2 .listing-grid li:nth-child(1) {
        grid-column: 1 / span 3;
        grid-row: 1;
        width: 83%!important;
    }
    
    .post-type-archive-project.paged-2 .listing-grid li:nth-child(2) {
        grid-column: 4 / span 3;
        grid-row: 1;
        width: 83%!important;
        margin-right: auto;
        margin-left: auto;
    }
    
    .post-type-archive-project.paged-2 .listing-grid li:nth-child(3) {
        grid-column: 7 / span 3;
        grid-row: 1;
        width: 83%!important;
        margin-right: auto;
        margin-left: auto;
    }

    .post-type-archive-project.paged-2 .listing-grid li:nth-child(1) img, .post-type-archive-project.paged-2 .listing-grid li:nth-child(2) img, .post-type-archive-project.paged-2 .listing-grid li:nth-child(3) img, .post-type-archive-project.paged-2 .listing-grid li:nth-child(4) img {
        height: 548px;
    }

    .post-type-archive-project.paged-2 .listing-grid li:nth-child(5) {
        grid-column: 1 / -1;
        grid-row: 2;
        position: relative;
    }

    .post-type-archive-project.paged-2 .listing-grid li:nth-child(5) .wp-block-post-featured-image {
        width: 50% !important;
    }

    .post-type-archive-project.paged-2 .listing-grid li:nth-child(5) .wp-block-post-title {
        position: absolute;
        top: 30%;
        transform: translateY(-50%);
        left: 50%;
        right: 20%;
        text-align: center;
    }
    
    .post-type-archive-project.paged-2 .listing-grid li:nth-child(4) {
        grid-column: 10 / -1;
        grid-row: 1;
        width: 83%!important;
    }

    .post-type-archive-project.paged-2 .listing-grid li:nth-child(6) {
        grid-column: 8 / -1;
        grid-row: 3;
        margin-top: -285px;
    }

    .post-type-archive-project.paged-2 .listing-grid li:nth-child(7) {
        grid-column: 1 / -1;
        grid-row: 4;
        position: relative;
        margin-top: -450px;
    }

    .post-type-archive-project.paged-2 .listing-grid li:nth-child(7) .wp-block-post-featured-image {
        width: 50% !important;
    }

    .post-type-archive-project.paged-2 .listing-grid li:nth-child(7) .wp-block-post-title {
        position: absolute;
        top: 70%;
        transform: translateY(-50%);
        right: 0;
        text-align: right;
    }
}

/* Listing page 3 */
@media(min-width: 1000px) {
    .post-type-archive-project.paged-3 .listing-grid li:nth-child(1) {
        grid-column: 1 / -1;
        position: relative;
        grid-row: 1;
    }

    .post-type-archive-project.paged-3 .listing-grid li:nth-child(1) .wp-block-post-featured-image {
        width: 58.33% !important;
        margin-left: auto;
    }

    .post-type-archive-project.paged-3 .listing-grid li:nth-child(1) .wp-block-post-title {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
    }

    .post-type-archive-project.paged-3 .listing-grid li:nth-child(2) {
        grid-column: 2 / span 5;
        grid-row: 2;
        position: relative;
        z-index: 1;
    }

    .post-type-archive-project.paged-3 .listing-grid li:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: 3;
        position: relative;
        margin-top: -680px;
    }

    .post-type-archive-project.paged-3 .listing-grid li:nth-child(3) .wp-block-post-featured-image {
        width: 41.67% !important;
        margin-left: auto;
    }
    
    .post-type-archive-project.paged-3 .listing-grid li:nth-child(3) .wp-block-post-title {
        position: absolute;
        top: 70%;
        transform: translateY(-50%);
        left: 0;
        right: 0;
        text-align: center;
    }
}

.is-project-separator {
    height: 3px;
    border-left: 1px solid;
    border-right: 1px solid;
    background-image: linear-gradient(90deg, #fff 0% 150px, transparent 150px);
}

.project-footer-logo svg {
    max-width: 100%;
}

@media(min-width: 601px) {
    .home-hero-section--desc {
        padding-left: 4rem;
    }
}

.wp-block-query-pagination-numbers {
    display: flex;
    gap: 1rem;
}

.pagination-arrow-svg--prev {
    transform: scaleX(-1);
}

.wp-block-query-pagination-previous:hover .pagination-arrow-svg--arrow, .wp-block-query-pagination-next:hover .pagination-arrow-svg--arrow {
    fill: #fff;
}

.wp-block-query-pagination-previous:hover .pagination-arrow-svg--circle, .wp-block-query-pagination-next:hover .pagination-arrow-svg--circle {
    fill: #333333;
}

@media(min-width: 600px) {
    .wp-block-navigation-link--lang {
        display: none!important;
    }
}