/* Photo pages use Zibll's container, buttons, surfaces and color variables. */
.eu-photos-page { margin-top: 25px; margin-bottom: 25px; }
.eu-photos-page [hidden] { display: none !important; }
.em-wall-main-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.em-page-title { font-size: 26px; margin: 0 0 10px; }
.em-wall-main-header p { margin: 0; }
.em-wall-main-header > .but { flex-shrink: 0; }
.em-wall-header-quote { flex: 1; min-width: 0; color: var(--muted-color); font-size: 14px; line-height: 1.8; }
.em-wall-header-quote .yiyan { display: inline-block; max-width: 100%; min-height: 1.8em; vertical-align: top; overflow-wrap: anywhere; cursor: pointer; }
#em-wall-category-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.em-wall-category-group { padding: 0; overflow: hidden; align-self: start; margin: 0; border-radius: 12px; }
.em-wall-category-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 168px; padding: 24px; background: linear-gradient(120deg, #0a3d62, #1e3799); color: #fff; border: 0; text-align: left; font-weight: 400; }
.em-wall-exhibition-copy { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.em-wall-exhibition-year { font-size: 12px; opacity: .7; letter-spacing: 1px; }
.em-wall-exhibition-name { color: #fff; font-size: 19px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.em-wall-exhibition-meta { font-size: 12px; line-height: 1.7; opacity: .8; }
.em-wall-category-caret { display: flex; align-items: center; justify-content: center; align-self: flex-end; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); }
.em-wall-category-caret .fa { font-size: 18px; line-height: 1; transition: transform .2s; }
.em-wall-category-group.is-open .em-wall-category-caret .fa { transform: rotate(180deg); }
.em-wall-category-card:hover { filter: brightness(1.08); }
.em-wall-category-card:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.em-wall-day-options { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 20px 20px; }
.eu-photos-page.is-enhanced .em-wall-category-group:not(.is-open) .em-wall-day-options { display: none; }
.em-wall-detail-hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: 230px; height: auto; padding: 45px 25px; margin-bottom: 20px; overflow: hidden; background: linear-gradient(135deg, #4a69bd, #1e3799); }
.em-wall-detail-hero-bg { position: absolute; inset: 0; z-index: -2; }
.em-wall-detail-hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.em-wall-detail-hero .page-mask { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .25); }
.em-wall-detail-hero-content { text-align: center; color: white; }
.em-wall-detail-title { margin: 0 0 12px; font-size: clamp(23px, 3vw, 36px); color: white; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.em-wall-detail-meta { margin: 0; color: rgba(255,255,255,.9); }
.em-wall-detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.em-wall-day-switcher { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; flex: 1; }
.em-wall-back-button, .em-wall-info-toggle { flex-shrink: 0; }
.em-wall-detail-info { white-space: normal; overflow-wrap: anywhere; }
#em-wall-grid-loader { text-align: center; padding: 35px 15px; }
#em-wall-grid-loader.em-loader-hidden { display: none; }
#em-wall-grid { position: relative; width: 100%; columns: 280px; column-gap: 20px; }
#em-wall-grid.is-waterfall { columns: auto; }
.em-wall-grid-item { position: relative; margin: 0 0 20px; width: 100%; break-inside: avoid; overflow: hidden; }
.is-waterfall .em-wall-grid-item { position: absolute; margin: 0; }
.em-wall-media { position: relative; display: block; width: 100%; overflow: hidden; background: var(--muted-bg-color, rgba(127,127,127,.1)); }
.em-wall-media > img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; display: block; object-fit: contain; }
.em-wall-image-placeholder { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 25%, rgba(127,127,127,.12) 45%, transparent 65%); background-size: 250% 100%; animation: eu-photo-placeholder 2s ease-in-out infinite; }
.em-wall-grid-item:not(.is-image-ready) .em-wall-media > img { opacity: 0; }
.em-wall-grid-item.is-image-ready .em-wall-image-placeholder { display: none; }
.em-wall-grid-item.is-image-error .em-wall-image-placeholder { animation: none; }
.em-wall-share-position { position: absolute; top: 10px; right: 10px; z-index: 2; }
.em-wall-share-position > .eu-photo-native-share { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 8px; color: var(--main-color); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.em-wall-share-position > .eu-photo-native-share:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }
.em-wall-retry-position { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); max-width: 85%; }
.em-wall-image-retry { white-space: normal; max-width: 100%; }
.em-wall-caption { padding: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.em-wall-notice { column-span: all; padding: 30px; text-align: center; }
.em-wall-notice p { margin: 0; }
.em-wall-disclaimer { border-top: 1px solid rgba(127,127,127,.15); margin-top: 25px; padding-top: 20px; font-size: 13px; line-height: 1.7; }
#em-upload-area { border: 2px dashed rgba(127,127,127,.35); border-radius: 8px; padding: 45px 20px; text-align: center; cursor: pointer; }
#em-upload-area.dragover, #em-upload-area:focus-visible { border-color: var(--focus-color, #2997f7); }
#em-upload-area h3 { font-size: 20px; }
#em-preview-area { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.em-preview-card { border: 1px solid rgba(127,127,127,.2); border-radius: 8px; overflow: hidden; }
.em-preview-card-image { aspect-ratio: 4/3; background: var(--muted-bg-color, rgba(127,127,127,.1)); }
.em-preview-card-image img { width: 100%; height: 100%; object-fit: contain; }
.em-preview-card-content { padding: 15px; }
.em-form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }
.em-form-group:last-child { margin-bottom: 0; }
.em-form-group input, .em-form-group select, .em-form-group textarea { width: 100%; border: 1px solid rgba(127,127,127,.25); border-radius: 5px; padding: 8px 10px; background: var(--main-bg-color, transparent); color: inherit; }
.em-form-group .error { border-color: #f56c6c; }
.em-preview-status { margin: 0; padding: 0 15px 15px; }
#em-form-actions { text-align: center; margin-top: 25px; }
#em-progress-bar-container { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 15px; }
#em-progress-bar { width: min(400px, 80%); height: 16px; accent-color: var(--focus-color, #2997f7); }
#em-wall-submit-all:disabled { opacity: .6; cursor: progress; }
.eu-photo-share-context strong { display: block; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.eu-photo-share-context p { margin: 8px 0 0; font-size: 12px; }
@keyframes eu-photo-placeholder { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .em-wall-image-placeholder { animation: none; } }
@media (max-width: 767px) {
    .em-wall-main-header { align-items: flex-start; flex-direction: column; gap: 15px; }
    .em-wall-header-quote { flex: none; width: 100%; }
    .em-wall-main-header > .but { align-self: flex-end; }
    .em-wall-detail-hero { min-height: 180px; padding: 35px 15px; }
    .em-wall-detail-actions { gap: 12px; }
    .em-wall-category-card { min-height: 155px; padding: 22px; }
    .em-wall-day-switcher { flex: 0 0 100%; order: 3; justify-content: flex-start; }
    #em-upload-area { padding: 30px 15px; }
}
