.instrument-item-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    padding-bottom: 72px;
}
.instrument-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
}
.instrument-image img.active-image { 
    display: none;
}
.instrument-image img.inactive-image { 
    display: block;
}
.instrument-image.active img.active-image { 
    display: block;
}
.instrument-image.active img.inactive-image { 
    display: none;
}
.instrument-image img {
    width: 120px;
    aspect-ratio: 1;
    object-fit: contain;
    position: relative;
    z-index: 2;
}
.instrument-title h6 {
    margin-top: 10px;
    line-height: var(--line-height-150) !important;
	text-align: center;
	width: 150px;
}

.instrument-details {
    display: flex;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: 
        linear-gradient(var(--teal), var(--teal)) padding-box,
        linear-gradient(180deg, rgba(63,189,173,1), rgba(226,228,61,1)) border-box;
    border: 1px solid transparent;
    box-shadow: 3px 3px 9px 0px rgba(16, 16, 16, 0.10);
}

.instrument-details .image {
   
    mask-image: url('/wp-content/uploads/icons/instruments-webmask.svg');
    mask-repeat: no-repeat;
    mask-size: cover;
}
.instrument-details .image img {
    border-radius: 20px;
    height: 100%;
    object-fit: cover;
    width: 41.66vw;
    max-width: 41.66vw;
}

.instrument-details .info {
    padding: 65px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.instrument-details .info .title {
    display: flex;
    align-items: baseline;
}

.instrument-details .info .title p {
    font-family: gotham, sans-serif;
font-weight: 700;
    line-height: var(--line-height-std);
    font-size: var(--font-size-40);
    margin: 0;
    color: var(--white);
}

.instrument-details .info .title p.chinese-terms {
    font-family: gotham, sans-serif;
font-weight: 500;
    font-size: var(--font-size-20);
    line-height: var(--line-height-114);
    margin: 0 0 0 20px;
    color: var(--white);
}

.instrument-details .info .content p {
    font-family: gotham, sans-serif;
font-weight: 300;
    line-height: var(--line-height-150);
    font-size: var(--font-size-16);
    margin: 0 0 16px;
    color: var(--white);
}

.mejs-container,
.mejs-container .mejs-controls,
.mejs-embed,
.mejs-embed body {
    background: unset !important;
}

.mejs-container {
    border: 1px solid var(--white);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    width: fit-content !important;
    gap: 8px;
    padding: 12px 16px;
}

.mejs-container:has(.mejs-controls .mejs-pause) {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        color: red !important;
    }

    50% {
        color: aqua;
    }

    100% {
        color: red;
    }
}

.mejs-playpause-button button {
    display: none;
}

.mejs-time,
 .mejs-time-rail,
 .mejs-volume-button,
 .mejs-horizontal-volume-slider {
    display: none !important;
}

.mejs-container::before {
    content: "Listen";
    font-family: gotham, sans-serif;
font-weight: 500;
}

 .mejs-container::after {
    content: "";
    background-image: url('/wp-content/uploads/icons/sound-wave-white.svg');
    background-repeat: no-repeat;
    background-size: contain;
    width: 20px;
    height: 20px;
    display: inline-block;
    color: transparent;
}

.mejs-controls .mejs-playpause-button {
    width: 100%;
    content-visibility: hidden;
}

/* Video Gallery */
.zh-videos-gallery div[data-acf_name="custom_page_title"] {
    display: flex;
}
.videos-gallery-pg .post-contents h3 {
    color: var(--teal);
}
.videos-gallery-pg .video-description p {
    margin: 8px 0 0 0;
}
.videos-gallery-pg .bwg_container,
.videos-gallery-pg .bwg_container a {
    margin: 0 !important;
}

.videos-gallery-pg .bwg_container a {
    position: relative !important;
}

.videos-gallery-pg .bwg-container {
    gap: 1.45vw;
    justify-content: flex-start !important;
    padding: 0px !important;
}

.videos-gallery-pg .bwg-item {
    max-width: 27.75vw !important;
}

.videos-gallery-pg .bwg-item0 {
    aspect-ratio: 80/49 !important;
    border-radius: 10px !important;
    background: unset !important;
    z-index: 0 !important;
}

.videos-gallery-pg .bwg-item1 {
    padding-top: 0% !important;
    aspect-ratio: 80/49 !important;
}

.videos-gallery-pg .bwg-item2 {
    margin: unset !important;
    position: relative !important;
}

.videos-gallery-pg .bwg-item img {
    height: unset !important;
    aspect-ratio: 80/49 !important;
    object-fit: cover;
    object-position: center;
    height: 100% !important;
}

.videos-gallery-pg .bwg-title1 {
    position: absolute;
    bottom: 20px;
    text-align: left;
    left: 20px;
    max-width: calc(27.75vw - 40px) !important;
}

.videos-gallery-pg .bwg-title2 {
    color: var(--white) !important;
    font-family: gotham, sans-serif !important;
font-weight: 700 !important;
    line-height: var(--line-height-114);
}

.videos-gallery-pg .bwg-thumbnails .bwg-item i.bwg-icon-play {
    font-family: "Font Awesome 6 Brands" !important;
    font-size: var(--font-size-50) !important;
    line-height: var(--line-height-std);
    color: var(--scored) !important;
}

.videos-gallery-pg .bwg-thumbnails .bwg-item i.bwg-icon-play:before {
    content: '' !important;
    background-image: url('/wp-content/uploads/icons/play.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 50px;
    height: 50px;
    display: block;
    aspect-ratio: 1;
}
.videos-gallery-pg .pagination-links,
.videos-gallery-pg .pagination-links_col1,
.videos-gallery-pg .custom-page-numbers,
.videos-gallery-pg .pagination-links_col3 {
    display: flex;
    gap: 20px;
}
.videos-gallery-pg .pagination-links {
    padding-top: 50px;
    justify-content: center;
}
.videos-gallery-pg .pagination-links .bwg-a {
    width: 42px;
    height: 42px;
    background-color: rgba(16, 16, 16, 0.15) !important;
    color: var(--outerspace) !important;
    font-size: var(--font-size-14) !important;
    line-height: var(--line-height-114) !important;
    border-radius: 50% !important;
    padding: 10px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0px !important;
    font-family: gotham, sans-serif !important;
font-weight: 300 !important;
    color: var(--chineseblack);
}
.videos-gallery-pg .bwg_load_more_ajax_loading {
    position: absolute;
    top: 0 !important;
    height: calc(100% - 50px);
}
.videos-gallery-pg .custom-page.active {
    background-color: var(--green) !important;
    color: var(--white) !important;
    pointer-events: none;
}
.bwg-play-icon1 {
    z-index: 10;
}

.digital-photo-gallery .bwg_thumbnail.bwg_container {
    margin: 0;
}
.digital-photo-gallery .bwg_thumbnail.bwg_container .search_line.bwg_tag_select_view {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: unset;
    box-shadow: unset;
    padding: 0 0 58.67px;
    margin: 0;
}
.digital-photo-gallery .search_line.bwg_tag_select_view .bwg_tags_container_0 {
    display: none;
}
.digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags li.item {
    border-radius: 100px;
    border: 1px solid var(--teal);
    margin: 0;
    cursor: pointer;
}
.digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags li.item:first-child span {
    padding: 12px 30.5px;
}
.digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags li.item span {
    font-size: var(--font-size-14);
    line-height: var(--line-height-114);
    color: var(--teal);
    width: 100%;
    display: inline-block;
    white-space: nowrap;
    padding: 12px 16px;
}
.digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags li.item.active,
.digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags li.item:hover {
    background: var(--teal);
}
.digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags li.item.active span,
.digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags li.item:hover span {
    color: var(--white);
}
.digital-photo-gallery .bwg_thumbnail.bwg_container .search_line .bwg_order_cont {
    margin: 0;
    min-width: unset;
    max-width: unset;
    width: 19.44%;
    height: 100%;
    border: 1px solid var(--grey);
    float: unset;
    border-radius: 100px;
    display: none;
}
.digital-photo-gallery .bwg_thumbnail.bwg_container .search_line .SumoSelect {
    padding: 0;
}
.digital-photo-gallery .bwg_thumbnail.bwg_container .search_line .CaptionCont {
    height: 100% !important;
}
.digital-photo-gallery .bwg_thumbnail.bwg_container .search_line .CaptionCont span {
    font-size: var(--font-size-16);
    line-height: var(--line-height-150);
    color: var(--grey) !important;
    padding: 8px 16px;
}
.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label {
    top: 50%;
    right: 16px;
    transform: translate(0, -50%);
}
.digital-photo-gallery .bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt label,
.digital-photo-gallery .bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.closed:before, 
.digital-photo-gallery .bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.opened:before {
    color: var(--grey);
    font-size: var(--font-size-16);
    line-height: var(--line-height-150);
}
.digital-photo-gallery #bwg_container1_0 #bwg_container2_0 .bwg_masonry_thumbnails_0 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px 26.67px;
    max-width: 100%;
    width: 100% !important;
    margin: 0;
    overflow: unset;;
}
.digital-photo-gallery #bwg_container1_0 #bwg_container2_0 .bwg-container-0.bwg-masonry-thumbnails .bwg-item,
.digital-photo-gallery #bwg_container1_0 #bwg_container2_0 .bwg-container-temp0.bwg-masonry-thumbnails .bwg-item {
    padding : 0;
}
.digital-photo-gallery .bwg-item.bwg-empty-item {
    display: none;
}
.digital-photo-gallery .bwg_thumbnail.bwg_container .tablenav-pages_0 {
    margin: 50px 0 10px !important;
    font-family: gotham, sans-serif !important;
font-weight: 500 !important;
    font-size: var(--font-size-14) !important;
    color: var(--teal) !important;
}
.digital-photo-gallery .bwg_thumbnail.bwg_container .tablenav-pages_0 a {
    font-family: gotham, sans-serif !important;
font-weight: 300 !important;
    font-size: var(--font-size-14) !important;
    /* font-weight: unset !important; */
    line-height: var(--line-height-114);
    color: var(--teal) !important;
    border-radius: 100px !important;
    border: 1px solid var(--teal) !important;
    padding: 12px 16px !important;
}
.digital-photo-gallery #bwg_container1_0 #bwg_container2_0 .bwg-container-0.bwg-masonry-thumbnails .bwg-item0 {
    border-radius: 10px;
    background: transparent;
}
.digital-photo-gallery #bwg_container1_0 #bwg_container2_0 .bwg-container-0.bwg-masonry-thumbnails .bwg-title1 {
    margin: 10px 0 0;
}
.digital-photo-gallery #bwg_container1_0 #bwg_container2_0 .bwg-container-0.bwg-masonry-thumbnails .bwg-title2 {
    padding: 0;
    font-family: gotham, sans-serif !important;
font-weight: 500 !important;
    font-size: var(--font-size-14) !important;
    /* font-weight: unset !important; */
    line-height: var(--line-height-114);
    color: var(--grey) !important;
    text-align: left !important;
}
.bwg_thumbnail.bwg_container .SumoSelect.open>.optWrapper {
    position: absolute;
    top: 104%;
    left: 0;
    width: 100%;
    border: 1px solid var(--outerspace);
    background-color: var(--white);
    border-radius: 16px;
    padding: 16px;
    z-index: 1000;
}
.bwg_thumbnail.bwg_container .search_line .SumoSelect ul.options:not(:empty) {
    padding: 0 !important;
}
.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options::-webkit-scrollbar {
    width: 8px;
    background: var(--brightgray);
}
.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 10px;
}
.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 3px rgba(70, 70, 70, 0.10);
    background-color: var(--brightgray);
    border-radius: 10px;
}
.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt {
    color: var(--chineseblack);
    font-size: var(--font-size-16);
    line-height: var(--line-height-150);
}
.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt:not(:last-child) {
    margin: 0 0 10px;
}
.bwg_thumbnail.bwg_container .SumoSelect>.optWrapper>.options>li.opt:last-child {
    margin: 0 !important;
    border: 0 !important;
}

@media only screen and (max-width: 992px) {
    .videos-gallery-pg .custom-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    .videos-gallery-pg .bwg-title2 {
        font-size: 14px !important;
    }
    .videos-gallery-pg .bwg-thumbnails .bwg-item i.bwg-icon-play:before {
        width: 30px;
        height: 30px;
    }
    .videos-gallery-pg .bwg-title1 {
        left: 5px;
        bottom: 5px;
        max-width: 100% !important;
    }

    .digital-photo-gallery .bwg_thumbnail.bwg_container .search_line.bwg_tag_select_view {
        flex-flow: column wrap;
        align-items: flex-start;
        gap: 10px;
    }
    .digital-photo-gallery .bwg_thumbnail.bwg_container .search_line .bwg_order_cont {
        width: 100%;
    }
    .digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags {
        flex-flow: row nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        max-width: calc(100vw - 80px);
        scrollbar-width: thin;
        padding: 0 0 10px
    }
    .digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags::-webkit-scrollbar {
        width: 5px;
        border-radius: 10px;
        background-color: var(--brightgray);
    }
    .digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags::-webkit-scrollbar-thumb {
        background-color: var(--black);
        border-radius: 10px;
    }
    .digital-photo-gallery .search_line.bwg_tag_select_view ul.custom-search-tags::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        background-color: var(--brightgray);
        border-radius: 10px;
    }
}

@media only screen and (max-width: 767px) {
    .videos-gallery-pg .page-numbers {
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .videos-gallery-pg .bwg-container {
        gap: 20px;
    }
    .videos-gallery-pg .bwg-item {
        max-width: calc(50% - 10px) !important;
    }
    .videos-gallery-pg .pagination-links .bwg-a {
        width: 25px;
        height: 25px;
        font-size: 10px !important;
        padding: 0 !important;
    }
    .videos-gallery-pg .pagination-links .bwg-a img {
        width: 15px;
        height: 15px;
    }
    .videos-gallery-pg .bwg-title2 {
        font-size: 12px !important;
    }

    
    .instrument-item-wrapper {
        flex-wrap: nowrap;
        overflow: auto;
        -ms-overflow-style: none;  /* Internet Explorer 10+ */
        scrollbar-width: none;
    }
    .instrument-item-wrapper::-webkit-scrollbar {
        display: none;
    }
    .instrument-item-wrapper {
        gap: 0;
    }
    .instrument-image img {
        width: 80px;
    }
    .instrument-details {
        flex-direction: column;
    }
    .instrument-details .image img {
        max-width: 100%;
        width: 100%;
    }
    .instrument-details .info {
        padding: 25px;
    }
}

.staging.digital-photo-gallery #bwg_container1_0 #bwg_container2_0 .bwg_masonry_thumbnails_0 { 
    gap: unset;
}