@charset "UTF-8";
@import "../css/loop-item-works.css";

.single .entry-header {
    padding: 0 60px;

    @media screen and (max-width: 991.99px) {
        padding: 0;
    }
}

.works_slider {
    width: 100%;
    margin: 0 auto 60px;
}

.works-main-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    padding: 0 60px;

    @media screen and (max-width: 991.99px) {
        padding: 0;
    }
}

.works-main-slider {
    width: 100%;
}

.works-main-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 8/6;
    object-fit: contain;
}

.works-main-wrapper .swiper-button-next,
.works-main-wrapper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background-image: url(../../img/icon-more.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -22px;
}

.works-main-wrapper .swiper-button-next::after,
.works-main-wrapper .swiper-button-prev::after {
    content: "";
}

.works-main-wrapper .swiper-button-prev {
    transform: rotate(180deg);
    left: 0;
}

.works-main-wrapper .swiper-button-next {
    right: 0;
}

.works-thumb-list {
    width: 100%;
    padding: 0 60px;

    @media screen and (max-width: 991.99px) {
        padding: 0;
    }
}

.works-thumb-slider {
    width: 100%;
}

.works-thumb-slider .swiper-slide {
    width: auto;
}

.works-thumb-item {
    width: 100%;
    height: auto;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s;
    aspect-ratio: 3/2;
}

.works-thumb-item.active-thumb {
    opacity: 0.4;
}

.works-thumb-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 100%;
}

.works-card__noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9d9d9;
    color: #555;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.d-works-wrap {
    padding: 0 60px;

    @media screen and (max-width: 991.99px) {
        padding: 0;
    }
}

.works-data-header {
    padding-bottom: 10px;
}

.works-data-header img {
    width: 53px;
    height: auto;
}

.works-data-body {
    /* display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #666;
    border-top: 1px solid #666;
    margin-bottom: 30px; */
}

/* .works-text {
    width: 60%;
    font-size: 16px;
    line-height: 1.8;
}

.works-info {
    width: 35%;
    border-left: 1px solid #666;
    padding-left: 40px;
    box-sizing: border-box;
} */

/* .works-info dl {
    margin: 0;
}

.works-info-row {
    display: flex;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.works-info-row dt {
    width: 120px;
    font-weight: normal;
    margin: 0;
}

.works-info-row dd {
    margin: 0;
    flex: 1;
} */

@media screen and (max-width: 991.99px) {
    .works-main-wrapper {
        padding: 0 30px;
    }

    .works-main-wrapper .swiper-button-next,
    .works-main-wrapper .swiper-button-prev {
        width: 22px;
        height: 22px;
        margin-top: -11px;
    }

    .works-thumb-list {
        grid-template-columns: repeat(5, 1fr);
    }

    .works-data-body {
        flex-direction: column;
        gap: 30px;
    }

    .works-text {
        width: 100%;
        font-size: 14px;
    }

    .works-info {
        width: 100%;
        border-left: none;
        padding-left: 0;
    }

    .works-info-row {
        font-size: 14px;
    }

    .works-info-row dt {
        width: 100px;
    }
}

@media screen and (max-width: 767.99px) {
    .works-main-wrapper {
        padding: 0 0;
    }

    .works-main-wrapper .swiper-button-next,
    .works-main-wrapper .swiper-button-prev {
        width: 22px;
        height: 40px;
        margin-top: -20px;
        background-image: url(../../img/icon-more-wh.svg);
        background-color: var(--vk-color-text-body);
        background-size: 225%;
    }
}

.archive .vk_posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0;
}

.works-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.works-archive-header__lead {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.04em;
    margin: 0;
    color: var(--vk-color-text-body);
}

.works-archive-header__label span {
    font-size: 45px;
    font-family: "Caslon", serif;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--vk-color-text-body);
    display: block;
}

.works-archive-filter {
    border-top: 1px solid var(--vk-color-text-body);
    border-bottom: 1px solid var(--vk-color-text-body);
    padding: 30px 0;
    margin-bottom: 80px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0;
    row-gap: 15px;
}

.works-archive-filter__search {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--vk-color-text-body);
    margin-right: 60px;
}

.works-archive-filter__icon {
    width: 30px;
    height: 30px;
    display: inline-block;
    background-image: url(../../img/icon-search.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.works-archive-filter__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.works-archive-filter__btn {
    /* width: 120px; */
    min-height: 38px;
    border: 1px solid var(--vk-color-text-body);
    text-decoration: none;
    padding: 2px 5px;
    font-size: 16px;
    letter-spacing: 0.08em;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.works-archive-filter__btn:hover,
.works-archive-filter__btn.is-active {
    background-color: var(--vk-color-text-body);
    color: #fff;
    opacity: 1;
}

@media (max-width: 767.98px) {
    .works-archive-header {
        flex-direction: column;
        gap: 40px;
    }

    .works-archive-filter {
        flex-direction: column;
        align-items: flex-start;
        column-gap: 0;
        row-gap: 20px;
    }

    .works-archive-filter__search {
        margin-right: 0;
    }

    .works-archive-header__lead {
        font-size: 16px;
    }

    .works-archive-header__label span {
        font-size: 36px;
    }

    .works-archive-filter__buttons {
        width: 100%;
    }

    .archive .vk_posts {
        grid-template-columns: repeat(1, 1fr);
    }
}

.works-data-body {
    padding: 40px 0;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666;
    margin-bottom: 60px;
}

.works-data-body h2 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.Gallery-buildingdata {
    margin-bottom: 50px;
}

.Gallery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.6;
}

:where(:not(.wp-block-table))>table :is(th, td) {
    border: 0.25px solid #ddd;
}

.works-data-body table.Gallery-table {
    border: 0.5px solid #ddd;

}

.Gallery-table th,
.Gallery-table td {
    padding: 15px 20px;
    border-bottom: 0.5px solid #ddd;
    text-align: left;
}

.Gallery-table th {
    width: 30%;
    font-weight: normal;
    background-color: #edecec;
    vertical-align: top;
}

.Gallery-staff {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
}

.Gallery-staff h2 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: none;
}

@media screen and (max-width: 767.99px) {
    .works-data-body {
        padding: 30px 0;
        margin-bottom: 40px;
    }

    .works-data-body h2 {
        font-size: 20px;
    }

    .Gallery-table th,
    .Gallery-table td {
        display: block;
        width: 100%;
        font-size: 14px;
    }

    .Gallery-table th {
        background-color: #edecec;
        font-weight: bold;
        border-bottom: none;
    }

    .Gallery-table td {}

    .Gallery-staff {
        padding: 20px;
    }
}