.page-works {
    color: #000;
}

.page-works__title-container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.page-works__title-container h1 {
    margin-bottom: 0;
}

.map-tabs {
    display: flex;
    padding: 2px;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid #E9EAEF;
    background: #FFF;
    box-shadow: 0 4px 50px 0 rgba(191, 192, 212, 0.50);
}

.map-tabs__tab {
    display: flex;
    padding: 12px 20px;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
    flex-grow: 1;
    flex-basis: 0;
    flex-shrink: 0;
    width: 100%;
}

.map-tabs__tab[data-tab-active] {
    border-radius: 12px;
    background: linear-gradient(180deg, #82DD63 0%, #50AE30 100%);
    color: #FFF;
    cursor: default;
}

.info-block {
    position: relative;
}

.ib-area {
    min-height: 800px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.ib-work-list, .ib-filter {
    position: absolute;
    z-index: 1;
    border-radius: 14px;
    background: #FFF;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,.1),inset 0 2px 2px 0 rgba(255,255,255,.6),inset 0 0 2px 0 rgba(255,255,255,.6);
    background: rgba(255,253,249,.6);
    border: 1px solid rgba(255,255,255,.6);
    transition: 0.4s;
    top: 10px;

}

.ib-work-list {
    left: 10px;
    max-height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
}

.ib-filter {
    right: 10px;
}

.ib-work-list:hover, .ib-filter:hover {
    background: rgba(255,253,249,.5);
}

[data-close] {
    margin-left: auto;
    position: absolute;
    right: 0;
    display: none;
}

.ib-work-list__label, .ib-filter__label {
    display: flex;
    padding: 12px 20px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    cursor: pointer;
    max-width: 385px;

    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    color: #000;
}

.ib-work-list__item {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 3fr;
    padding: 24px 12px;
    max-width: 385px;
    gap: 16px;
    cursor: pointer;

    transition: all 0.6s ease-in-out;
}

.ib-work-list__item:not(:first-child) {
    margin-top: 6px;
}

.ib-work-list__item.hide {
    transform: translateX(100%);
    opacity: 0;
}

.ib-work-list__item:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #F2F6F8 26.98%, rgba(0, 0, 0, 0.00) 70.86%);
    transition: opacity 0.4s;
}

.ib-work-list__item:hover:after {
    opacity: 0.7;
}

.ib-work-list__material span {
    font-size: 14px;
    line-height: 18px;
}

.ib-work-list__material {
    font-size: 12px;
    line-height: 18px;
    display: flex;
    flex-direction: column;
    grid-column: 1 / 2;
}

[data-block] {
    display: none;
    flex-direction: column;
    /*gap: 6px;*/
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.4s;
}

[data-open-block] {
    transition: width 0.4s, height 0.4s;
    max-height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
}

[data-open-block=true] [data-block] {
    display: flex;
}

[data-open-block=true] [data-close] {
    /*display: block;*/
}

[data-block] {
    max-width: 385px;
    min-width: 385px;
    max-height: calc(100% - 20px);
}

.ib-work-list__image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*transform: scale(1.1);*/
    z-index: -1;
}

.ib-work-list__title {
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
}

.woocommerce-pagination {
    display: none;
}

.ib-work-list__filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: end;
    grid-row: 1/3;
    grid-column: 2 / 3;
    width: 100%;
    height: fit-content;
}

.ib-work-list__filter {
    display: flex;
    padding: 2px 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

    border-radius: 6px;
    background: #50AE30;
    box-shadow: 0 4px 50px 0 rgba(191, 192, 212, 0.50);

    color: #fff;
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
}

.filters {
    padding: 12px 20px;
}

.filters__block {
    border-bottom: 1px solid #F2F6F8;
    padding-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filters__block:not(:first-child) {
    padding-top: 18px;
}

.filters__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
}

.filters__inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filters__inputs span {
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px; /* 128.571% */
}

.filters__input input {
    display: none;
}

.filters__inputs span {
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}

.filters__input input:checked + span:before {
    background: #50AE30 url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.36665 12L2.56665 8.2L3.51665 7.25L6.36665 10.1L12.4833 3.98334L13.4333 4.93334L6.36665 12Z' fill='white'/%3E%3C/svg%3E") no-repeat center;

    border: none;
}

.filters__inputs span:before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #E9EAEF;
    background: rgba(255, 255, 255, 0.8);
}

.ib-work-list__sentinel {
    padding-block: 6px;
}

.loader {
    position: absolute;
    inset: 0;
    align-content: center;
    text-align: center;
    background: rgba(255,255,255,0.6);
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #50AE30;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ib-about {
    position: absolute;
    opacity: 0;
    transform: translateY(200px);
    inset: 10px;
    /*display: flex;*/
    padding: 20px;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;

    backdrop-filter: blur(2px);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,.1),inset 0 2px 2px 0 rgba(255,255,255,.6),inset 0 0 2px 0 rgba(255,255,255,.6);
    background: rgba(255,253,249,.6);
    border: 1px solid rgba(255,255,255,.6);

    z-index: 3;
    overflow: hidden;
    border-radius: 14px;

    display: none;

    transition: all 0.8s ease-in-out;

}

.ib-about.active {
    opacity: 1;
    transform: translateY(0);
}

.ib-about__image-block {
    flex-grow: 1;
    flex-basis: 100px;
    width: 100%;
    height: 100%;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ib-about__image-main {
    flex-grow: 1;
    backdrop-filter: blur(1px);
    box-shadow: inset 0 2px 2px 0 rgba(255,255,255,.6),inset 0 0 2px 0 rgba(255,255,255,.6);

    border: 1px solid rgba(255,255,255,.6);
    border-radius: 14px;
}

.ib-about__image-main img {
    border-radius: 14px;
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 12px;
}

.ib-about__image-mini {
    max-height: 90px;
}

.ib-about__image-mini img {
    border-radius: 14px;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.ib-about__info {
    flex-grow: 1;
    flex-basis: 100px;
    width: 100%;
    padding: 24px 24px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ib-about__header {
    color: #000;
    font-size: 40px;
    font-weight: 500;
}

.ib-about__text {
    flex-direction: column;
    display: flex;
    gap: 12px;
    padding-block: 12px;
    border-bottom: 1px solid #000;
    border-top: 1px solid #000;
    overflow-y: auto;
    flex-grow: 1;
}

.ib-about__text p {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}

.ib-about__tags {
    padding-bottom: 12px;
    border-bottom: 1px solid #000;
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 12px 24px;


    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.ib-about__tags dt {
    font-weight: 500;
}

.ib-about__button {
    margin-left: auto;

    color: #FFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px; /* 112.5% */

    display: flex;
    padding: 12px 20px;
    align-items: center;
    gap: 10px;

    border-radius: 12px;
    background: linear-gradient(180deg, #82DD63 0%, #50AE30 100%);
}

.ib-about__close {
    position: absolute;
    cursor: pointer;
    backdrop-filter: blur(1px);
    background: linear-gradient(180deg, #82DD63 0%, #50AE30 100%);

    border-radius: 12px;
    display: flex;
    padding: 6px;

    top: 20px;
    right: 20px;
}

.ib-about__image-mini .swiper-slide {
    opacity: 0.6;
    transition: opacity 0.4s;
    cursor: pointer;
}

.ib-about__image-mini .swiper-slide-thumb-active {
    opacity: 1;
}

.ib-gallery__item, .grid-sizer {
    width: calc(25% - 14px);
}

.ib-gallery__item {
    margin-bottom: 14px;
}

.ib-gallery__item.hide {
    width: 0;
    visibility: hidden;
    display: none;
}

.ib-gallery__item a {
    display: block;
}

.ib-gallery__item img {
    width: 100%;
    object-fit: cover;
}

.ib-gallery {
    height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
}

.ib-gallery__masonry {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.ib-cases {
    height: 800px;
    align-content: center;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    display: none;
}

@media (max-width: 61.9987em) {
    [data-open-block=true] {
        width: calc(100% - 20px) !important;
    }

    .ib-work-list__item, .ib-work-list__block {
        max-width: unset;
        min-width: unset;
    }

    .ib-work-list__label, .ib-filter__label {
        padding: 6px 12px;
        font-weight: 500;
        gap: 6px;
    }
    .page-works__title-container {
        margin-bottom: 16px;
    }
    .map-tabs {
        width: 100%;
    }
    .ib-about {
        z-index: 3;
        flex-direction: column;
        padding: 12px;
        background: rgba(255,253,249,.8);
    }
    .ib-about__close {
        top: 12px;
        right: 12px;
    }
    .ib-about__info {
        padding: 0;
        overflow-y: auto;
    }
    .ib-about__header {
        font-size: 20px;
        font-weight: 500;
    }
    .ib-about__tags {
        grid-template-columns: 1fr 1fr;
    }
    .ib-about__text {
        overflow-y: unset;
    }

    .ib-area {
        min-height: 600px;
    }

    .ib-gallery, .ib-cases {
        height: 600px;
    }

    .ib-work-list__label, .ib-filter__label {
        max-width: unset;
    }

    .ib-gallery__item, .grid-sizer {
        width: calc(50% - 14px);
        max-height: 350px;
        overflow: hidden;
    }
}