/* 
Theme Name: Echomuse
Template: kadence
Description: .
Tags: 
Version: 
Updated: 

*/

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f3f1;
    scroll-behavior: auto;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}
.gallery-item {
    position: relative;
}
.progress-container {
    width: 100%;
    height: 6px;
    position: fixed;
    top: 9.6%;
    left: 0;
    z-index: 1050;
    backdrop-filter: blur(5px);
}
.progress-bar {
    width: 0%;
    height: 100%;
    background-image: -moz-linear-gradient(90deg, #6fff00, #ff4f4f);
    background-image: -moz-linear-gradient(0deg, #6fff00, #ff4f4f);
    background-image: -webkit-linear-gradient(90deg, #6fff00, #ff4f4f);
    background-image: -webkit-linear-gradient(0deg, #6fff00, #ff4f4f);
    background-image: -o-linear-gradient(90deg, #6fff00, #ff4f4f);
    background-image: -o-linear-gradient(0deg, #6fff00, #ff4f4f);
    background-image: -ms-linear-gradient(90deg, #6fff00, #ff4f4f);
    background-image: -ms-linear-gradient(0deg, #6fff00, #ff4f4f);
    background-image: linear-gradient(0deg, #6fff00, #ff4f4f);
    background-image: linear-gradient(90deg, #6fff00, #ff4f4f);
    -moz-transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
    -o-transition: width 0.3s ease;
    transition: width 0.3s ease;
}
#progress-icon {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 50%;
    left: 0%;
    z-index: 1002;
    pointer-events: none;
    -moz-transition: left 0.3s;
    -webkit-transition: left 0.3s;
    -o-transition: left 0.3s;
    transition: left 0.3s;
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.gallery-item__caption {
    width: 100%;
    margin-top: 0;
    font-size: 13px;
    position: absolute;
    bottom: 0;
    color: #fff;
    background-image: -moz-linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    background-image: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    background-image: -webkit-linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    background-image: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    background-image: -o-linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    background-image: -o-linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    background-image: -ms-linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    background-image: -ms-linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    left: 0;
    opacity: 0;
    right: 0;
    text-align: center;
    -moz-transition: opacity .3s ease-in-out;
    -webkit-transition: opacity .3s ease-in-out;
    -o-transition: opacity .3s ease-in-out;
    transition: opacity .3s ease-in-out;
    max-height: 100%;
    overflow-y: auto;
    padding: 10px;
}
.gallery-item__caption a {
    font-size: large;
    text-decoration: none;
    color: #bdc3c7;
    padding: 10px 0;
}
.gallery-item:hover .gallery-item__caption, .gallery-item:focus-within .gallery-item__caption {
    opacity: 1;
}
.masonry {
    -moz-column-gap: 20px;
    -webkit-column-gap: 20px;
    -o-column-gap: 20px;
    column-gap: 20px;
    -moz-column-count: 4;
    -webkit-column-count: 4;
    -o-column-count: 4;
    column-count: 4;
}
.masonry-item {
    margin-bottom: 20px;
    break-inside: avoid;
}
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.artwork-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.artwork-single {
    display: grid;
    grid-template-columns: 1fr 420px;
    max-width: 1400px;
    gap: 60px;
    padding: 60px 40px;
    margin: 0 auto;
}
.artwork-hero {
    display: flex;
    justify-content: center;
    align-items: center;
}
.artwork-image {
    max-width: 100%;
    background-color: #fff;
    -moz-box-shadow: 0 20px 60px rgba(0,0,0,.25);
    -webkit-box-shadow: 0 20px 60px rgba(0,0,0,.25);
    -o-box-shadow: 0 20px 60px rgba(0,0,0,.25);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-height: 90vh;
    object-fit: contain;
}
.artwork-header {
    margin-bottom: 30px;
}
.artwork-title {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 10px;
}
.artwork-subtitle {
    font-size: 1.1rem;
    color: #666;
}
.artwork-description {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.8;
}
.artwork-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}
.artwork-meta li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
}
.artwork-back a {
    font-size: 0.9rem;
    border-bottom: 1px solid #000;
    text-decoration: none;
    color: #000;
}
.artwork-back a:hover {
    opacity: 0.7;
}
.favorite-btn {
    display: inline-flex;
    cursor: pointer;
    border: 1px solid #ccc;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
}
.favorite-btn .is-active {
    color: #f1f109 !important;
    border-color: #f1f109 !important;
}
.favorite-count {
    -moz-transition: transform .2s ease;
    -webkit-transition: transform .2s ease;
    -o-transition: transform .2s ease;
    transition: transform .2s ease;
}
.favorite-btn.is-active .favorite-count {
    -moz-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
}
@media (max-width: 1200px) {
.masonry {
    -moz-column-count: 3;
    -webkit-column-count: 3;
    -o-column-count: 3;
    column-count: 3;
}
}
@media (max-width: 1024px) {
.artwork-single {
    grid-template-columns: 1fr;
    padding: 40px 20px;
}
}
@media (max-width: 800px) {
.masonry {
    -moz-column-count: 2;
    -webkit-column-count: 2;
    -o-column-count: 2;
    column-count: 2;
}
}
@media (max-width: 500px) {
.masonry {
    -moz-column-count: 1;
    -webkit-column-count: 1;
    -o-column-count: 1;
    column-count: 1;
}
}


    /* 左侧菜单样式 */

#sidebar {
    width: 14vw;
    position: sticky;
    left: 5%;
    top: 12%;
    background: #6df0e5;
    color: #ecf0f1;
    padding: 2vw 0;
    box-shadow: 0 0 40px #f9e27b, 0 0 10px #fbf7d6;
    transition: all 0.3s ease;
    z-index: 3;
    min-height: 0;
    height: 80vh;         
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;     
}

#menu-title-list {
    list-style: none;
    padding: 0 2vw;
    margin: 0;
    flex: 1 1 auto;
    overflow-y: auto;     /* 超出滚动 */
    max-height: 100%;     /* 限制最大高度 */
}
        
#menu-title-list li {
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.2s;
}
        
#menu-title-list a {
    display: block;
            color: #bdc3c7;
            text-decoration: none;
            padding: 10px 0;
            border-radius: 5px;
            transition: all 0.2s;
            position: relative;
            text-align: center;
        }

#menu-title-list a:hover {
            background: #ff6f6f;
            color: #ecf0f1;
        }
        
#menu-title-list a.active {
            background: #ff6f6f;
            color: white;
            /* border-bottom: 3px solid #db7734; */
        }
        
#menu-title-list .h1-item {
            font-weight: bold;
            font-size: 1.1rem;
            text-align: center;
            color: #370667;
            /* border-left: 3px solid #3498db; */
        }
        
#menu-title-list .h2-item {
            font-size: 0.95rem;
            color: #434c4d;
        }

#menu-title-list::-webkit-scrollbar {
    width: 8px;
    background: #6df0e5; 
    border-radius: 6px;
}
#menu-title-list::-webkit-scrollbar-thumb {
    background: #e6b2b2; 
    border-radius: 6px;
    transition: background 0.2s;
}
#menu-title-list::-webkit-scrollbar-thumb:hover {
    background: #7ed8df; 
}

#menu-title-list {
    scrollbar-width: thin;
    scrollbar-color: #b2e6e2 #6df0e5;
}        

.right {
          padding-right: -10vw;
}

  @media (max-width: 992px) {
            #sidebar {
                width: 70%;
            }

            .left{width:17% !important;}
            .right{width:70% !important;margin-left:3%;}
            
        }
        
  @media (max-width: 576px) {
            body {
                flex-direction: column;
            }
            
            #sidebar {
                width: 100%;
                height: auto;
                position: relative;
                max-height: 300px;
            }

            .left{display:none;}
            .right{width:95% !important;margin-left:5%;}
            
  }