@font-face {
    font-family: 'Noto SerifTC';
    src: url('fonts/NotoSerifTC/NotoSerifTC-Medium.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'NotoSerifTC';
    src: url('fonts/NotoSerifTC/NotoSerifTC-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
:root {
--leaf:        #8fae63;
--leaf-light:  #b8d68f;
--leaf-pale:   #e6f0d6;
--dark:        #0a0d0a;
--dark-mid:    #10130f;
--dark-panel:  #151913;
--text-muted:  rgba(200,214,180,0.8);
--text-body:   rgba(220,230,205,0.85);
--border-leaf: rgba(143,174,99,0.3);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body, html {
    height: 100%;
    font-family: 'Noto Serif TC', 'Microsoft JhengHei', serif;
    background: var(--dark);
    color: var(--text-body);
    overflow: hidden;
}
.content-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}
/* -- LEFT column: photo stage + photo description, stacked -- */
.carousel-wrapper {
    flex: 0 0 62%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--dark-mid);
    transition: flex-basis 0.45s ease;
}
.photo-stage {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    background: #000;
    overflow: hidden;
}
.photo-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}
.photo-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(135deg, rgba(143,174,99,0.16) 0%, transparent 20%), linear-gradient(315deg, rgba(143,174,99,0.10) 0%, transparent 20%);
    pointer-events: none;
}
#artCarousel, #artCarousel .carousel-inner {
    height: 100%;
}
#artCarousel .carousel-item {
    height: 100%;
    position: relative;
}
#artCarousel .carousel-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(143,174,99,0.15));
    transition: filter 0.6s ease;
}
#artCarousel .carousel-item img:hover {
    filter: drop-shadow(0 0 60px rgba(143,174,99,0.28));
}
.carousel-control-prev, .carousel-control-next {
    width: 10%;
    z-index: 10;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 0.9;
}
.slide-counter {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 10;
    font-size: 0.75rem;
    color: rgba(143,174,99,0.7);
    letter-spacing: 0.15em;
}
/* -- photo description, directly below the photo -- */
.photo-desc {
    flex: 0 0 34vh;
    height: 34vh;
    overflow-y: auto;
    background: var(--dark-panel);
    border-top: 1px solid var(--border-leaf);
    padding: 1.4rem 2.5rem 1.6rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-leaf) transparent;
    transition: opacity 0.25s ease;
}
.photo-desc::-webkit-scrollbar {
    width: 4px;
}
.photo-desc::-webkit-scrollbar-thumb {
    background: var(--border-leaf);
    border-radius: 2px;
}
.photo-desc.is-updating {
    opacity: 0.35;
}
/* keeps each line of text a comfortable reading length even when the
   photo column is expanded to full width (panel collapsed) */
.photo-desc-inner {
    max-width: 760px;
    margin: 0 auto;
}
.photo-desc-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--leaf-light);
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}
.photo-desc-meta {
    font-size: 0.85rem;
    color: var(--leaf);
    opacity: 0.85;
    letter-spacing: 0.05em;
    margin-bottom: 0.9rem;
}
.photo-desc-story p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}
.photo-desc-story p:last-child {
    margin-bottom: 0;
}
/* -- RIGHT: info panel -- */
.info-panel {
    flex: 0 0 38%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--dark-panel);
    scrollbar-width: thin;
    scrollbar-color: var(--border-leaf) transparent;
    position: relative;
    transition: flex-basis 0.45s ease;
}
/* -- collapse/expand toggle handle, sits on the border between the two columns --
   positioned relative to .content-wrapper (not .info-panel) so it is never
   clipped while the panel's own width animates down to 0 */
.panel-toggle {
    position: absolute;
    left: 62%;
    top: 2.4rem;
    transform: translate(-50%, 0);
    width: 30px;
    height: 44px;
    border-radius: 8px;
    background: var(--dark-panel);
    border: 1px solid var(--border-leaf);
    color: var(--leaf-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: left 0.45s ease, background 0.2s ease, color 0.2s ease;
}
.panel-toggle:hover {
    background: var(--dark-mid);
    color: var(--leaf-pale);
}
.panel-toggle i {
    font-size: 0.75rem;
    pointer-events: none;
}
.content-wrapper.panel-collapsed .carousel-wrapper {
    flex-basis: 100%;
}
.content-wrapper.panel-collapsed .info-panel {
    flex-basis: 0;
    min-width: 0;
}
.content-wrapper.panel-collapsed .info-panel::before {
    display: none;
}
.content-wrapper.panel-collapsed .panel-toggle {
    left: calc(100% - 24px);
}
.info-panel::-webkit-scrollbar {
width: 4px;
}
.info-panel::-webkit-scrollbar-thumb {
background: var(--border-leaf);
border-radius: 2px;
}
.info-panel::before {
    content: '';
    position: fixed;
    left: 62%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, var(--leaf) 20%, var(--leaf) 80%, transparent 100%);
    z-index: 20;
    opacity: 0.4;
}
.panel-inner {
    padding: 3rem 2.5rem 4rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.venue-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--leaf);
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 1.8rem;
    text-align:center
}
.title-block {
    margin-bottom: 2rem;
    animation: fadeUp 0.9s ease both;
    text-align: center;
}
.title-block h1 {
    font-family: 'Noto Serif TC', serif;
    font-weight: 700;
    font-size: 2.1rem;
    letter-spacing: 0.12em;
    color: var(--leaf-pale);
    line-height: 1.5;
}
.title-block .sub {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--leaf-light);
    opacity: 0.85;
}
.divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--leaf), transparent);
    opacity: 0.5;
}
.divider-diamond {
    width: 6px;
    height: 6px;
    background: var(--leaf);
    transform: rotate(45deg);
    opacity: 0.7;
    flex-shrink: 0;
}
.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    animation: fadeUp 0.9s 0.15s ease both;
}
.info-list li {
    padding: 0.65rem 0;
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.7;
    display: flex;
    gap: 0.7rem;
    align-items: center;
}
.info-icon {
    color: var(--leaf);
    opacity: 0.85;
    font-size: 0.95rem;
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
}
#slider {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-leaf);
    margin: 3rem 0;
    animation: fadeUp 0.9s 0.25s ease both;
}
#slider .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}
#slider .carousel-control-prev, #slider .carousel-control-next {
    width: 15%;
    opacity: 0.5;
}
.body-text {
    animation: fadeUp 0.9s 0.35s ease both;
}
.body-text .lead-line {
    font-size: 1.1rem;
    color: var(--leaf-light);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.7;
}
.body-text p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.section-heading {
    font-family: 'Noto Serif TC', serif;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--leaf);
    margin: 3em 0 0.8em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-leaf);
}
@keyframes fadeUp {
from {
opacity: 0;
transform: translateY(18px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 767.98px) {
body, html {
    overflow: auto;
}
.content-wrapper {
    flex-direction: column;
    height: auto;
    overflow: visible;
}
.carousel-wrapper {
    flex: none;
    width: 100%;
    height: auto;
}
.photo-stage {
    flex: 0 0 50vh;
    height: 50vh;
}
.photo-desc {
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    overflow-y: visible;
    padding: 1.2rem 1.5rem 1.6rem;
}
.info-panel {
    flex: none;
    width: 100%;
    height: auto;
    overflow: visible;
}
.panel-toggle {
    display: none;
}
.info-panel::before {
    display: none;
}
.panel-inner {
    padding: 2rem 1.5rem 3rem;
}
#slider {
    margin: 2rem 0;
}
}
