@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --ink: #211b15;
  --ink-soft: #5c5146;
  --cream: #e9dfcd;
  --paper: #f2eadc;
  --gold: #c5a46a;
  --gold-bright: #dfc18a;
  --line: rgba(233, 223, 205, .18);
  --panel: rgba(28, 23, 18, .96);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body, #app { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #17130f; }
body { color: var(--cream); font-family: var(--sans); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
#scene-host { position: absolute; inset: 0; z-index: 0; }
#scene-host canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.is-hidden { display: none !important; }

.screen { position: absolute; inset: 0; z-index: 20; }
.screen--loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; background: #17130f; color: var(--cream); letter-spacing: .16em; text-transform: uppercase; font-size: 10px; }
.loading-mark { font-family: var(--serif); font-size: 40px; letter-spacing: .12em; color: var(--gold-bright); }
.loading-mark span { color: #76634a; }
.loading-line { width: 150px; height: 1px; background: rgba(255,255,255,.15); overflow: hidden; }
.loading-line span { display: block; height: 100%; width: 40%; background: var(--gold); animation: loading 1.1s ease-in-out infinite alternate; }
@keyframes loading { from { transform: translateX(-30%); } to { transform: translateX(180%); } }

.screen--welcome { display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 54% 48%, rgba(95,67,42,.38), transparent 55%), linear-gradient(115deg, #17130f, #30251b 58%, #1b1611); }
.welcome-grain { position: absolute; inset: 0; opacity: .11; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.screen--welcome::before, .screen--welcome::after { content: ''; position: absolute; width: min(52vw, 680px); aspect-ratio: 1; border: 1px solid rgba(205,174,121,.12); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.screen--welcome::after { width: min(42vw, 540px); border-color: rgba(205,174,121,.09); }
.welcome-content { position: relative; z-index: 1; width: min(560px, calc(100% - 40px)); text-align: center; padding: 38px 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; color: #bda274; font-size: 9px; font-weight: 700; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; }
.welcome-content > .eyebrow { justify-content: center; }
.eyebrow-line { display: inline-block; width: 25px; height: 1px; background: var(--gold); }
.welcome-monogram { width: 58px; height: 58px; display: grid; place-items: center; margin: 34px auto 15px; border: 1px solid rgba(209,177,122,.68); color: var(--gold-bright); font-family: var(--serif); font-size: 19px; letter-spacing: .12em; transform: rotate(0deg); }
.welcome-monogram::first-letter { transform: rotate(-45deg); }
.welcome-content h1 { margin: 0; color: #f1e8d9; font-family: var(--serif); font-size: clamp(54px, 8vw, 88px); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.welcome-content h1 em { color: #d3b47e; font-weight: 400; }
.welcome-copy { max-width: 390px; margin: 24px auto 27px; color: rgba(239,228,209,.66); font-size: 13px; line-height: 1.8; }
.welcome-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.button { min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 2px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--gold { background: var(--gold); color: #211a12; }
.button--gold:hover { background: var(--gold-bright); }
.button--quiet { background: transparent; color: rgba(239,228,209,.72); border-color: transparent; }
.button--quiet:hover { color: var(--gold-bright); }
.button--full { width: 100%; }
.button--outline { color: var(--cream); border-color: rgba(205,174,121,.45); background: transparent; }
.button--outline:hover { background: rgba(197,164,106,.12); }
.welcome-footer { display: flex; justify-content: center; gap: 10px; margin-top: 48px; color: rgba(232,218,194,.42); font-size: 8px; font-weight: 700; letter-spacing: .2em; }
.footer-dot { color: var(--gold); }
.welcome-side-note { position: absolute; right: 34px; bottom: 30px; color: rgba(232,218,194,.3); font-size: 8px; line-height: 1.8; letter-spacing: .17em; text-align: right; }

.hud { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 20px 25px; pointer-events: none; background: linear-gradient(180deg, rgba(14,12,10,.58), transparent); }
.hud-brand, .hud-actions { display: flex; align-items: center; pointer-events: auto; }
.hud-brand { gap: 11px; }
.hud-monogram { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(209,177,122,.55); color: var(--gold-bright); font-family: var(--serif); font-size: 12px; letter-spacing: .1em; }
.hud-brand strong { display: block; color: #f1e7d5; font-family: var(--serif); font-size: 15px; font-weight: 500; }
.hud-brand span { display: block; margin-top: 3px; color: rgba(239,228,209,.52); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.hud-actions { gap: 9px; }
.icon-button { width: 34px; height: 34px; border: 1px solid rgba(239,228,209,.28); border-radius: 50%; color: #f0e4d1; background: rgba(20,17,14,.36); }
.icon-button:hover { border-color: var(--gold); color: var(--gold-bright); }
.hud-editor-button { padding: 10px 14px; border: 1px solid rgba(205,174,121,.55); color: #ead9bc; background: rgba(23,19,15,.55); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hud-editor-button:hover { background: rgba(197,164,106,.2); }

.room-toast { position: absolute; z-index: 3; top: 88px; left: 50%; display: flex; align-items: center; gap: 11px; padding: 9px 15px; transform: translateX(-50%); color: rgba(244,233,214,.85); background: rgba(24,20,16,.52); border: 1px solid rgba(220,190,139,.17); backdrop-filter: blur(8px); font-family: var(--serif); font-size: 14px; letter-spacing: .04em; pointer-events: none; animation: toast-in .5s ease-out; }
.toast-rule { width: 19px; height: 1px; background: var(--gold); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%,-8px); } to { opacity: 1; transform: translate(-50%,0); } }
.crosshair { position: absolute; z-index: 2; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3px 0 0 -3px; border: 1px solid rgba(255,242,218,.9); border-radius: 50%; box-shadow: 0 0 7px rgba(0,0,0,.7); pointer-events: none; }
.crosshair span { position: absolute; inset: 2px; border-radius: 50%; background: var(--gold-bright); }

.help-panel { position: absolute; z-index: 8; top: 78px; right: 22px; width: min(330px, calc(100% - 30px)); padding: 24px; border: 1px solid rgba(207,177,125,.3); background: rgba(27,22,17,.96); box-shadow: 0 18px 60px rgba(0,0,0,.32); }
.help-panel h2, .overlay-card h2, .editor-header h2 { margin: 8px 0 18px; color: #f0e6d6; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.panel-close { width: 30px; height: 30px; border: 1px solid rgba(239,228,209,.22); border-radius: 50%; color: var(--cream); background: transparent; font-size: 20px; line-height: 1; }
.panel-close:hover { color: var(--gold-bright); border-color: var(--gold); }
.help-panel > .panel-close { position: absolute; top: 16px; right: 16px; }
.help-row { display: flex; align-items: center; gap: 5px; min-height: 35px; color: rgba(239,228,209,.74); font-size: 10px; }
.help-row > span:last-child { margin-left: 8px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border: 1px solid rgba(239,228,209,.28); border-bottom-width: 2px; color: #ead6b5; background: rgba(255,255,255,.045); font-size: 9px; }
.mouse-icon { width: 22px; text-align: center; color: var(--gold-bright); font-size: 17px; }
.help-footnote { margin: 17px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: rgba(239,228,209,.48); font-size: 10px; line-height: 1.6; }

.overlay-screen { position: absolute; z-index: 15; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(13,11,9,.72); backdrop-filter: blur(7px); }
.overlay-card { width: min(420px, 100%); padding: 36px; border: 1px solid rgba(205,174,121,.38); background: #211b15; box-shadow: 0 25px 80px rgba(0,0,0,.4); text-align: center; }
.overlay-card .eyebrow { justify-content: center; }
.overlay-card h2 { margin-bottom: 9px; font-size: 35px; }
.overlay-card p:not(.eyebrow) { margin: 0 0 24px; color: rgba(239,228,209,.6); font-size: 12px; line-height: 1.7; }
.overlay-card .button { width: 100%; margin-top: 8px; }
.text-button { margin-top: 20px; border: 0; color: rgba(239,228,209,.48); background: none; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.text-button:hover { color: var(--gold-bright); }

.photo-modal { position: absolute; z-index: 18; inset: 0; display: grid; place-items: center; padding: clamp(15px, 4vw, 60px); background: rgba(12,10,8,.9); backdrop-filter: blur(12px); }
.photo-close { position: absolute; top: 22px; right: 25px; width: 42px; height: 42px; border: 1px solid rgba(239,228,209,.32); border-radius: 50%; color: var(--cream); background: rgba(0,0,0,.2); font-size: 27px; }
.photo-close:hover { border-color: var(--gold); color: var(--gold-bright); }
.photo-modal-inner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr); gap: clamp(24px, 4vw, 58px); width: min(1100px, 100%); max-height: 82vh; align-items: center; }
.photo-image-wrap { display: grid; place-items: center; min-height: 260px; max-height: 75vh; padding: 16px; border: 1px solid rgba(202,171,121,.22); background: #201a14; box-shadow: 0 22px 70px rgba(0,0,0,.4); }
.photo-image-wrap img { display: block; max-width: 100%; max-height: calc(75vh - 32px); object-fit: contain; }
.photo-details { padding: 20px 0; }
.photo-details .eyebrow { margin-bottom: 13px; }
.photo-details h2 { margin: 0 0 16px; color: #f2e6d3; font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1.08; }
.photo-description { color: rgba(239,228,209,.68); font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.photo-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.photo-meta span { padding: 7px 9px; border: 1px solid rgba(205,174,121,.23); color: #d0bb99; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.photo-modal-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 38px; padding-top: 14px; border-top: 1px solid var(--line); color: rgba(239,228,209,.35); font-size: 8px; letter-spacing: .14em; }

.editor-panel { position: absolute; z-index: 16; top: 0; right: 0; bottom: 0; width: min(450px, 100%); padding: 25px 25px 30px; overflow: auto; border-left: 1px solid rgba(205,174,121,.28); background: rgba(27,22,17,.985); box-shadow: -18px 0 70px rgba(0,0,0,.38); scrollbar-width: thin; scrollbar-color: #725b3e #211b15; }
.editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.editor-header h2 { margin: 5px 0 0; font-size: 32px; }
.editor-intro { margin: 14px 0 20px; color: rgba(239,228,209,.55); font-size: 11px; line-height: 1.65; }
.artwork-form { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.upload-box { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 126px; margin-bottom: 18px; padding: 18px; border: 1px dashed rgba(205,174,121,.5); color: #e9ddc9; background: rgba(205,174,121,.04); text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.upload-box:hover { border-color: var(--gold-bright); background: rgba(205,174,121,.09); }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-plus { color: var(--gold-bright); font-size: 24px; line-height: 1.2; }
.upload-box strong { margin-top: 5px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.upload-box small { margin-top: 6px; color: rgba(239,228,209,.4); font-size: 9px; }
.upload-preview { max-width: 100%; max-height: 130px; margin-top: 12px; object-fit: contain; }
.field-label { display: block; margin: 13px 0 6px; color: #d2c1a4; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.text-field { width: 100%; min-height: 38px; padding: 9px 10px; outline: none; border: 1px solid rgba(239,228,209,.16); border-radius: 1px; color: #f0e6d5; background: rgba(255,255,255,.045); font-size: 11px; }
.text-field:focus { border-color: rgba(207,177,125,.75); }
.text-field::placeholder { color: rgba(239,228,209,.28); }
select.text-field { color-scheme: dark; }
.text-area { min-height: 72px; resize: vertical; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.position-heading { display: flex; align-items: center; justify-content: space-between; }
.position-heading output { margin-top: 12px; color: var(--gold-bright); font-size: 10px; }
.range-field { width: 100%; accent-color: var(--gold); }
.range-ends { display: flex; justify-content: space-between; margin-top: -3px; color: rgba(239,228,209,.32); font-size: 8px; }
.placement-preview { margin: 17px 0; padding: 12px; border: 1px solid rgba(205,174,121,.17); background: rgba(0,0,0,.13); }
.preview-heading { display: flex; justify-content: space-between; gap: 8px; color: rgba(239,228,209,.48); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.preview-heading span:last-child { color: var(--gold); }
#plan-preview { display: block; width: 100%; max-height: 170px; margin: 6px auto 0; }
.plan-room { fill: rgba(197,164,106,.1); stroke: rgba(216,190,151,.47); stroke-width: 1.2; }
.plan-street { fill: rgba(101,127,108,.14); }
.plan-nature { fill: rgba(116,126,83,.16); }
.plan-portraits { fill: rgba(119,65,59,.16); }
.plan-door { fill: none; stroke: rgba(230,218,197,.8); stroke-width: 3; }
.plan-label { fill: rgba(237,225,205,.52); font: 7px 'DM Sans', sans-serif; text-anchor: middle; letter-spacing: .6px; }
.plan-dot { fill: var(--gold-bright); stroke: #2a2118; stroke-width: 2; filter: drop-shadow(0 0 3px rgba(223,193,138,.7)); }
.placement-preview > p { margin: 3px 0 4px; color: #e5d1ae; font-size: 10px; }
.placement-preview > small { color: rgba(239,228,209,.38); font-size: 8px; line-height: 1.5; }
.collection-tools { padding-top: 20px; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; }
.collection-heading h3 { margin: 0; color: #ede2d1; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.collection-heading > span { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 50%; color: var(--gold-bright); background: rgba(197,164,106,.13); font-size: 9px; }
.collection-list { display: grid; gap: 8px; margin: 13px 0 15px; }
.collection-item { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 7px; border: 1px solid rgba(239,228,209,.09); background: rgba(255,255,255,.025); }
.collection-item img { width: 52px; height: 44px; object-fit: cover; background: #4a3a29; }
.collection-item strong { display: block; overflow: hidden; color: #e9ddcc; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.collection-item small { display: block; margin-top: 4px; color: rgba(239,228,209,.43); font-size: 8px; }
.remove-work { width: 27px; height: 27px; border: 1px solid rgba(239,228,209,.12); color: rgba(239,228,209,.55); background: transparent; }
.remove-work:hover { border-color: #a76a5d; color: #e7a38f; }
.editor-note { margin: 13px 0 0; color: rgba(239,228,209,.4); font-size: 9px; line-height: 1.65; }
.editor-note code { color: #d6bd91; }

.touch-controls { position: absolute; z-index: 6; inset: auto 0 0; height: 170px; pointer-events: none; }
.touch-pad { position: absolute; bottom: 23px; left: 20px; width: 128px; height: 128px; pointer-events: auto; }
.touch-key { position: absolute; width: 40px; height: 40px; border: 1px solid rgba(239,228,209,.3); border-radius: 9px; color: #f1e4cf; background: rgba(25,20,15,.55); backdrop-filter: blur(6px); touch-action: none; }
.touch-key:active, .touch-key.pressed { background: rgba(197,164,106,.55); }
.touch-up { top: 0; left: 44px; }.touch-left { top: 44px; left: 0; }.touch-down { top: 44px; left: 44px; }.touch-right { top: 44px; left: 88px; }
.touch-look-hint { position: absolute; right: 18px; bottom: 67px; color: rgba(255,245,228,.55); font-size: 9px; text-shadow: 0 1px 4px #000; }
.touch-photo-button { position: absolute; right: 16px; bottom: 20px; padding: 9px 12px; border: 1px solid rgba(205,174,121,.5); color: #f1e4cf; background: rgba(25,20,15,.72); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; pointer-events: auto; }
.micro-footer { position: absolute; z-index: 3; bottom: 14px; left: 50%; display: flex; gap: 20px; transform: translateX(-50%); color: rgba(244,233,214,.4); font-size: 7px; font-weight: 700; letter-spacing: .16em; pointer-events: none; white-space: nowrap; text-shadow: 0 1px 4px #000; }

@media (max-width: 700px) {
  .hud { padding: 13px 13px; }
  .hud-brand strong { font-size: 13px; }
  .hud-brand span { font-size: 8px; }
  .hud-monogram { width: 31px; height: 31px; }
  .hud-actions { gap: 6px; }
  .hud-editor-button { padding: 9px 10px; font-size: 8px; }
  .icon-button { width: 31px; height: 31px; }
  .room-toast { top: 70px; }
  .micro-footer { display: none !important; }
  .photo-modal { padding: 58px 13px 15px; align-items: start; overflow: auto; }
  .photo-modal-inner { display: flex; flex-direction: column; gap: 17px; max-height: none; }
  .photo-image-wrap { width: 100%; min-height: 160px; max-height: 48vh; }
  .photo-image-wrap img { max-height: calc(48vh - 30px); }
  .photo-details { width: 100%; padding: 0 5px 20px; }
  .photo-details h2 { font-size: 31px; }
  .photo-modal-footer { margin-top: 22px; }
  .editor-panel { width: 100%; padding: 18px 17px 25px; }
  .editor-header h2 { font-size: 28px; }
  .welcome-content { padding: 25px 0; }
  .welcome-content h1 { font-size: clamp(50px, 15vw, 72px); }
  .welcome-monogram { margin-top: 28px; }
  .welcome-side-note { right: 14px; bottom: 12px; font-size: 7px; }
  .welcome-footer { margin-top: 34px; font-size: 7px; }
  .welcome-copy { max-width: 310px; font-size: 12px; }
  .help-panel { top: 62px; right: 10px; }
}
@media (max-height: 650px) and (min-width: 701px) {
  .welcome-monogram { margin-top: 15px; }
  .welcome-content h1 { font-size: 62px; }
  .welcome-copy { margin: 14px auto 17px; }
  .welcome-footer { margin-top: 25px; }
  .editor-panel { padding-top: 16px; }
}

.chosen-slot { padding: 12px; border: 1px solid rgba(197,164,106,.48); background: rgba(197,164,106,.1); color: #ecd6aa; font-size: 12px; line-height: 1.5; }


/* ---------- V4: controles móveis e orientação ---------- */
html,body { overscroll-behavior: none; }
#museum-canvas { touch-action: none; }
.mobile-help { display: none; }
.rotate-hint { position: absolute; inset: 0; z-index: 25; display: grid; place-items: center; padding: 24px; background: rgba(16,13,10,.94); }
.rotate-card { width: min(390px, 100%); text-align: center; }
.rotate-card h2,.mobile-tour-card h2 { font: 400 clamp(24px,5vw,34px) var(--serif); margin: 8px 0 12px; color: #f1e6d5; }
.rotate-card p,.mobile-tour-card p { color: #d1c3ac; line-height: 1.65; font-size: 14px; }
.rotate-icon { font-size: 46px; color: var(--gold-bright); margin-bottom: 12px; }
.rotate-card .button { margin-top: 14px; }
.mobile-tour { position: absolute; inset: 0; z-index: 24; display: grid; place-items: center; background: rgba(14,11,9,.8); padding: 18px; }
.mobile-tour-card { width: min(420px,100%); max-height: 90dvh; overflow: auto; border: 1px solid rgba(211,180,125,.45); background: #261e17; padding: 24px; box-shadow: 0 10px 60px #0008; }
.mobile-tour-card p { margin: 8px 0; }
.mobile-tour-card .button { margin-top: 20px; }
.mobile-joystick { position: absolute; left: max(17px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); width: 144px; height: 140px; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.joystick-ring { position: absolute; top: 2px; left: 13px; width: 116px; height: 116px; border: 2px solid rgba(241,227,199,.42); border-radius: 50%; background: rgba(20,18,16,.45); box-shadow: inset 0 0 24px #0007; backdrop-filter: blur(6px); }
.joystick-ring::before,.joystick-ring::after { content: ''; position: absolute; background: rgba(227,196,142,.19); }
.joystick-ring::before { width: 1px; height: 80%; top: 10%; left: 50%; }
.joystick-ring::after { height: 1px; width: 80%; left: 10%; top: 50%; }
.joystick-thumb { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid rgba(255,243,222,.72); background: radial-gradient(circle at 35% 30%,#ad926c,#66513a); box-shadow: 0 3px 13px #0008; }
.joystick-label { position: absolute; bottom: 0; width: 100%; text-align: center; color: #e8d9bb; letter-spacing: .14em; font-size: 9px; text-shadow: 0 1px 5px #000; }
.mobile-action-group { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: flex-end; flex-direction: column; gap: 14px; pointer-events: none; }
.touch-controls { height: 164px; }
.touch-look-hint { position: static; font-size: 11px; color: #f5e7d0; padding: 7px 11px; background: #19140fcc; border-radius: 20px; }
.touch-photo-button { position: static; min-width: 108px; min-height: 50px; padding: 12px 16px; font-size: 11px; border-radius: 10px; background: rgba(40,29,17,.88); border-color: #c5a46a; font-weight: 700; }
.touch-photo-button:active { background: #725935; }
@media (pointer: coarse) {
  .desktop-help { display: none !important; }
  .mobile-help { display: block; font-size: 13px; line-height: 1.55; }
  .hud { padding-top: max(8px,env(safe-area-inset-top)); padding-left: max(10px,env(safe-area-inset-left)); padding-right: max(10px,env(safe-area-inset-right)); }
  .help-panel { z-index: 22; max-height: 78dvh; overflow: auto; }
  .editor-panel { z-index: 20; width: min(520px,100%); padding: max(16px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(30px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); }
  .photo-modal { z-index: 21; }
  .text-field, .artwork-form input, .artwork-form textarea { font-size: 16px; min-height: 44px; }
  .field-label { font-size: 11px; }
  .editor-intro, .editor-note { font-size: 12px; }
  .upload-box { min-height: 110px; }
  .button { min-height: 44px; }
  .hud-editor-button { min-height: 36px; }
}
@media (pointer: coarse) and (orientation: landscape) {
  .hud-brand span { display: none; }
  .hud { padding-top: max(6px,env(safe-area-inset-top)); }
  .mobile-joystick { width: 126px; height: 120px; bottom: max(6px,env(safe-area-inset-bottom)); }
  .joystick-ring { width: 100px; height: 100px; left: 12px; }
  .joystick-thumb { width: 46px; height: 46px; }
  .joystick-label { font-size: 8px; }
  .touch-controls { height: 130px; }
  .mobile-action-group { bottom: max(10px,env(safe-area-inset-bottom)); }
  .photo-modal-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 15px; }
  .photo-image-wrap { max-height: 70dvh; min-height: 110px; }
  .photo-image-wrap img { max-height: 60dvh; }
  .photo-modal { padding-top: 44px; }
}
@media (pointer: coarse) and (max-width: 420px) and (orientation: portrait) {
  .hud-actions { gap: 4px; }
  .hud-brand strong { font-size: 11px; }
  .hud-editor-button { font-size: 8px; padding: 7px; }
  .mobile-joystick { transform: scale(.88); transform-origin: bottom left; }
  .mobile-action-group { bottom: max(32px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .loading-line span { animation: none; } }

/* V5 — linguagem editorial de galeria contemporânea (sem alterar controles) */
:root { --ink: #171b1c; --ink-soft: #717778; --cream: #e9e9e3; --paper: #f2f2ed; --gold: #b9a98b; --gold-bright: #e0d6bf; --panel: rgba(22,27,29,.97); --line: rgba(224,230,230,.17); }
html,body,#app { background: #161b1c; }
.screen--loading { background: #161b1c; }
.screen--welcome { background: radial-gradient(ellipse at 52% 45%, rgba(100,111,110,.22), transparent 60%), #171d1f; }
.hud-monogram { border-color: rgba(221,227,226,.44); }
.hud-editor-button { border-color: rgba(210,217,216,.42); }
.icon-button:hover,.panel-close:hover { border-color: #d8dfdc; }
.room-toast { border-color: rgba(224,230,230,.19); background: rgba(19,25,27,.75); }
.overlay-card,.mobile-tour-card { background: #1e2527; border-color: rgba(223,232,231,.27); }
.editor-panel { background: rgba(24,29,31,.985); border-color: rgba(222,231,230,.17); }
.photo-modal { background: rgba(11,15,16,.94); }
.photo-image-wrap { background: #1e2425; border-color: rgba(217,227,225,.18); }
.chosen-slot { background: rgba(198,208,206,.10); border-color: rgba(198,208,206,.32); color: #e9e9e3; }
.touch-photo-button { border-color: rgba(230,232,227,.55); background: rgba(26,31,32,.89); }
.joystick-thumb { background: radial-gradient(circle at 35% 30%,#b4b7b4,#606869); }


/* ---------- V7: trilha autoral + volume acessível (desktop e mobile) ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.music-controls { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 3px 8px 3px 4px; border: 1px solid rgba(239,228,209,.24); border-radius: 22px; background: rgba(21,24,26,.72); backdrop-filter: blur(8px); pointer-events: auto; }
.music-mute { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border: 0; border-radius: 50%; color: #f2e9dc; background: rgba(255,255,255,.09); font-size: 18px; line-height: 1; }
.music-mute:hover, .music-mute:focus-visible { color: #ead09a; background: rgba(255,255,255,.17); }
.music-mute[aria-pressed="true"] { color: #d4c2ac; background: rgba(255,255,255,.04); }
.music-volume { display: block; width: 74px; height: 22px; margin: 0; accent-color: #d8bc85; cursor: pointer; touch-action: auto; }
.music-percent { min-width: 31px; color: #f1e6d4; font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.pause-music-settings { margin: 2px auto 19px; padding: 12px; border: 1px solid rgba(239,228,209,.18); background: rgba(255,255,255,.035); }
.pause-music-label { display: block; margin-bottom: 10px; color: #d8c29a; font-size: 10px; font-weight: 600; letter-spacing: .13em; }
.music-controls--pause { width: min(260px, 100%); margin: 0 auto; background: rgba(21,24,26,.55); }
.music-controls--pause .music-volume { flex: 1; width: auto; }
@media (max-width: 700px) {
  .music-controls { gap: 3px; min-height: 32px; padding: 2px 6px 2px 2px; }
  .music-mute { width: 27px; height: 27px; flex-basis: 27px; }
  .music-volume { width: 53px; }
  .music-percent { display: none; }
  .music-controls--pause { gap: 7px; min-height: 36px; padding: 3px 8px 3px 4px; }
  .music-controls--pause .music-percent { display: inline; }
}
@media (max-width: 470px) and (orientation: portrait) {
  .hud { flex-wrap: wrap; gap: 7px; }
  .hud-brand { flex: 1 1 100%; }
  .hud-actions { margin-left: auto; }
  .hud-editor-button { padding-inline: 9px; }
}
@media (pointer: coarse) {
  .music-mute { min-width: 34px; min-height: 34px; }
  .music-volume { min-height: 30px; }
}

/* ================= V8 · LIVRO DE VISITAS ================= */
.guestbook-welcome-button { color: #e8d3ae; border-bottom: 1px solid rgba(220,190,140,.4); border-radius: 0; }
.guestbook-shortcut { font-size: 19px; color: #f3e2c5; }
.guestbook-modal {
  position: absolute; z-index: 28; inset: 0; display: flex; justify-content: center; align-items: center;
  padding: clamp(12px, 3.5vh, 32px) 14px;
  background: rgba(10,16,20,.86); backdrop-filter: blur(12px);
  overflow-y: auto; overscroll-behavior: contain;
}
.guestbook-paper {
  position: relative; width: min(660px, 100%); max-height: min(92dvh, 900px); overflow-y: auto;
  padding: clamp(23px, 4.5vw, 43px); border: 1px solid #d8c8aa;
  background: #f2ede2; color: #303b42;
  box-shadow: 0 30px 95px rgba(0,0,0,.48), inset 5px 0 0 rgba(155,139,114,.1);
  scrollbar-width: thin; scrollbar-color: #a6a095 transparent;
}
.guestbook-paper:before { content: ''; position: absolute; top: 0; bottom: 0; left: 17px; width: 1px; background: rgba(122,104,82,.17); pointer-events:none; }
.guestbook-close {
  position: absolute; top: 15px; right: 15px; width: 35px; height: 35px;
  border: 1px solid #b9b4a8; background: transparent; color: #39444a;
  font-size: 22px; border-radius: 50%; line-height: 1;
}
.guestbook-close:hover, .guestbook-close:focus-visible { background: #d9e0df; }
.guestbook-mark { display: inline-flex; padding: 8px 11px; border: 1px solid #8c989c; color: #566872; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.guestbook-overline { margin: 18px 0 6px; font-size: 10px; color: #647783; font-weight: 700; letter-spacing: .18em; }
.guestbook-heading h2 { margin: 2px 0 11px; font: 400 clamp(34px, 6vw, 54px) var(--serif); letter-spacing: -.035em; color: #2c3c49; }
.guestbook-heading h2 em { color: #738b95; font-weight: 400; }
.guestbook-heading > p:last-child { margin: 0 0 22px; font-size: 13px; line-height: 1.65; color: #647075; }
.guestbook-tabs { display: flex; gap: 10px; margin: 0 0 18px; }
.guestbook-tab { min-height: 40px; padding: 0 16px; border: 1px solid #bfc6c7; background: #eef0ea; color: #52646d; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.guestbook-tab.is-active { background: #415d6c; color: #fff; border-color: #415d6c; }
.guestbook-tab:hover { background: #dde4e4; }
.guestbook-tab.is-active:hover { background: #385260; }
.guestbook-panel.is-hidden { display: none; }
.guestbook-list-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 14px; }
.guestbook-list-header p { margin:0; color:#65757d; font-size:12px; line-height:1.6; }
.guestbook-refresh { min-height: 34px; padding: 0 12px; border: 1px solid #bcc5c8; background: #f5f5f1; color: #445965; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.guestbook-list-status { margin: 0 0 12px; color: #66727a; font-size: 12px; line-height: 1.6; }
.guestbook-list { display: grid; gap: 10px; max-height: 280px; overflow: auto; padding-right: 4px; }
.guestbook-entry { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 12px 14px; border: 1px solid #dbd7ca; background: #fbfaf6; }
.guestbook-entry-main { display: grid; gap: 4px; }
.guestbook-entry-name { color: #2f4250; font-size: 15px; font-weight: 700; }
.guestbook-entry-city { color: #65727a; font-size: 12px; }
.guestbook-entry-date { color: #7b868b; font-size: 11px; white-space: nowrap; align-self: start; }
.guestbook-empty { padding: 14px; border: 1px dashed #cfd1c8; color: #6f7a7c; font-size: 12px; text-align: center; background: #faf9f5; }
.guestbook-form { display: grid; gap: 16px; }
.guestbook-form label:not(.guestbook-consent) { display: block; color: #41515b; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.guestbook-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.guestbook-form input[type='text'] {
  display: block; width: 100%; min-height: 45px; margin-top: 7px; padding: 10px 12px;
  border: 1px solid #c9c9c1; border-radius: 2px; outline: none;
  background: #fffdf7; color: #30404a; font-size: 16px; font-weight: 400; letter-spacing: normal; text-transform: none;
}
.guestbook-form input[type='text']:focus { border-color: #6d8595; box-shadow: 0 0 0 3px rgba(113,139,155,.17); }
.guestbook-form input::placeholder { color: #969b9a; }
.guestbook-honeypot { position: absolute !important; left: -99999px; width: 1px; height: 1px; overflow: hidden; }
.guestbook-consent { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; border: 1px solid #e0dace; background: #eae5da; color: #5b635f; font-size: 11px; line-height: 1.55; }
.guestbook-consent input { flex: none; margin-top: 2px; width: 16px; height: 16px; accent-color: #516b78; }
.guestbook-submit { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 47px; border: 0; background: #415d6c; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.guestbook-submit:hover { background: #314b5a; }
.guestbook-submit:disabled { opacity: .63; cursor: wait; }
.guestbook-status { margin: -3px 0 1px; min-height: 2px; font-size: 12px; line-height: 1.6; }
.guestbook-status--success { color: #285f4b; font-weight: 700; }
.guestbook-status--error { color: #a43e32; font-weight: 700; }
.guestbook-invitation { margin-top: 26px; padding-top: 23px; border-top: 1px solid #c9c5b9; }
.guestbook-invitation-mark { color: #687f89; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.guestbook-invitation h3 { max-width: 500px; margin: 9px 0 8px; font: 400 22px/1.25 var(--serif); color: #2e4350; }
.guestbook-invitation p { margin: 0; color: #66727a; font-size: 12px; line-height: 1.75; }
.guestbook-email { display: inline-block; margin-top: 13px; color: #2d5569; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.guestbook-contact-empty { margin-top: 10px !important; font-style: italic; }
.guestbook-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding-top: 20px; margin-top: 25px; border-top: 1px solid #d0c9b9; color: #899192; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
@media (max-width: 620px) {
  .guestbook-modal { padding: 7px; align-items: flex-start; }
  .guestbook-paper { margin: auto; max-height: calc(100dvh - 14px); padding: 27px 23px 22px; }
  .guestbook-fields { grid-template-columns: 1fr; gap: 13px; }
  .guestbook-tabs { flex-direction: column; }
  .guestbook-list-header { align-items: flex-start; flex-direction: column; }
  .guestbook-invitation h3 { font-size: 21px; }
  .guestbook-heading h2 { font-size: 40px; }
  .guestbook-close { top: 9px; right: 9px; }
  .guestbook-bottom { font-size: 8px; }
  .guestbook-shortcut { min-width: 32px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .guestbook-modal { align-items: flex-start; padding: 6px 10px; }
  .guestbook-paper { max-height: calc(100dvh - 12px); }
  .guestbook-fields { grid-template-columns: 1fr 1fr; }
}

/* ================= V10 · PERCURSO GUIADO + DOIS JOYSTICKS ================= */
.welcome-mode-actions { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 5px; }
.welcome-mode-actions .button { min-width: 158px; }
.button--guided { color: #f1e9d9; border-color: rgba(227,221,209,.49); background: rgba(206,216,220,.10); }
.button--guided:hover, .button--guided:focus-visible { background: rgba(199,212,220,.20); border-color: rgba(233,236,233,.76); }
.hud-guide-button { min-height: 36px; padding: 7px 11px; border: 1px solid rgba(215,220,221,.39); color: #f2f2ed; background: rgba(21,30,35,.79); font-weight: 700; font-size: 9px; letter-spacing: .055em; white-space: nowrap; }
.hud-guide-button:hover { border-color: #f2f2ed; background: #384b55; }
.guided-panel {
  position: absolute; z-index: 9; right: clamp(12px, 3vw, 34px); bottom: clamp(12px, 3vh, 30px);
  width: min(418px, calc(100vw - 24px)); max-height: min(74dvh, 550px); overflow-y: auto;
  padding: 19px 21px 17px; border: 1px solid rgba(213,227,233,.45); border-radius: 4px;
  color: #f3f2ed; background: linear-gradient(144deg, rgba(31,43,50,.98), rgba(18,27,32,.96));
  box-shadow: 0 14px 48px rgba(0,0,0,.44); backdrop-filter: blur(13px); pointer-events: auto;
}
.guided-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guided-kicker, .guided-progress { color: #d6c4a8; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.guided-progress { color: #e8e7e1; font-variant-numeric: tabular-nums; }
.guided-progress-track { margin-top: 12px; height: 3px; border-radius: 6px; overflow: hidden; background: rgba(222,233,234,.19); }
.guided-progress-track span { display: block; height: 100%; width: 0; background: #b9cfd3; transition: width .28s ease; }
.guided-room { margin: 16px 0 4px; color: #bfd0d3; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.guided-panel h2 { margin: 0 0 8px; color: #f6f2e8; font: 400 clamp(24px, 3vw, 30px)/1.14 var(--serif); }
.guided-description { max-height: 122px; overflow: auto; margin: 0; color: #d5d9d6; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.guided-state { margin: 9px 0 12px; color: #b6c3c7; font-size: 10px; line-height: 1.45; }
.guided-buttons { display: flex; flex-wrap: wrap; align-items: stretch; gap: 7px; }
.guided-buttons button { flex: 1 1 auto; min-height: 38px; padding: 8px 10px; border: 1px solid rgba(205,218,221,.45); color: #f7f6f0; background: rgba(97,116,124,.24); font-size: 11px; font-weight: 700; }
.guided-buttons button:hover:not(:disabled) { background: rgba(130,151,158,.4); }
.guided-buttons #guided-next { background: #c8d8d8; color: #20333b; border-color: #c8d8d8; }
.guided-buttons #guided-next:hover { background: #f0f4f1; }
.guided-buttons button:disabled { opacity: .4; cursor: default; }
.guided-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.guided-footer button { min-height: 33px; padding: 3px 2px; border: 0; background: none; color: #d1d3ca; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.guided-footer #guided-leave { color: #ebd4b2; font-weight: 700; }
.guided-footer button:hover { color: #fff; }
.guided-panel.is-collapsed { width: min(355px, calc(100vw - 24px)); padding: 12px 14px; }
.guided-panel.is-collapsed .guided-progress-track,
.guided-panel.is-collapsed .guided-room,
.guided-panel.is-collapsed .guided-description,
.guided-panel.is-collapsed .guided-state { display: none; }
.guided-panel.is-collapsed h2 { margin: 9px 0; font-size: 20px; }

/* Direcional de olhar à direita: funciona de modo independente do caminhar. */
.mobile-look-joystick { position: relative; width: 144px; height: 140px; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.mobile-look-joystick .look-ring { border-color: rgba(197,225,230,.56); background: rgba(19,31,35,.48); }
.mobile-look-joystick .look-thumb { background: radial-gradient(circle at 30% 25%, #bbd4d7, #566c76); }
.mobile-action-group { align-items: center; gap: 5px; right: max(15px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); }
.mobile-action-group .touch-photo-button { pointer-events: auto; min-height: 44px; min-width: 108px; border-radius: 9px; font-size: 10px; }
.touch-controls { height: 206px; }
@media (max-width: 700px) {
  .hud-guide-button { padding: 6px 8px; min-height: 33px; font-size: 8px; }
  .guided-panel { right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); padding: 13px 14px; max-height: 65dvh; }
  .guided-panel h2 { font-size: 24px; }
  .guided-description { font-size: 11px; max-height: 90px; }
  .guided-buttons button { font-size: 10px; padding: 8px 7px; }
  .guided-room { margin-top: 10px; }
  .mobile-look-joystick { width: 126px; height: 126px; }
  .mobile-look-joystick .look-ring { width: 100px; height: 100px; left: 12px; }
  .mobile-look-joystick .look-thumb { width: 46px; height: 46px; }
  .mobile-joystick { width: 126px; height: 126px; }
  .mobile-joystick .joystick-ring { width: 100px; height: 100px; left: 12px; }
  .mobile-joystick .joystick-thumb { width: 46px; height: 46px; }
  .touch-controls { height: 193px; }
}
@media (pointer: coarse) and (orientation: landscape) {
  .hud-actions { gap: 5px; }
  .hud-guide-button { min-height: 31px; }
  .mobile-joystick { width: 118px; height: 116px; }
  .mobile-look-joystick { width: 118px; height: 116px; }
  .mobile-action-group { gap: 0; }
  .touch-controls { height: 175px; }
  .guided-panel { width: min(375px, 58vw); bottom: max(5px, env(safe-area-inset-bottom)); padding: 10px 12px; max-height: calc(100dvh - 62px); }
  .guided-panel h2 { font-size: 20px; margin-bottom: 4px; }
  .guided-room { font-size: 9px; margin-top: 6px; }
  .guided-description { font-size: 10px; line-height: 1.45; max-height: 45px; }
  .guided-state { font-size: 9px; margin: 5px 0; }
  .guided-progress-track { margin-top: 6px; }
  .guided-buttons button { min-height: 30px; }
  .guided-footer { margin-top: 4px; }
  .guided-footer button { min-height: 25px; font-size: 9px; }
}
@media (pointer: coarse) and (max-width: 760px) and (orientation: landscape) {
  .hud-editor-button { display: none; }
  .hud-brand strong { font-size: 12px; }
  .music-volume { width: 45px; }
}
@media (pointer: coarse) and (max-width: 450px) and (orientation: portrait) {
  .welcome-mode-actions { flex-direction: column; }
  .guided-panel { left: 10px; right: 10px; width: auto; max-height: 57dvh; }
  .guided-panel h2 { font-size: 23px; }
  .mobile-joystick { transform: scale(.87); transform-origin: bottom left; }
  .mobile-look-joystick { transform: scale(.87); transform-origin: bottom right; }
  .guided-buttons { gap: 4px; }
  .guided-footer { gap: 5px; }
}
@media (max-height: 380px) {
  .guided-panel { max-height: calc(100dvh - 46px); }
  .guided-description { max-height: 38px; }
  .guided-panel h2 { font-size: 18px; }
  .guided-buttons button { min-height: 28px; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  .welcome-content { padding: 4px 0; }
  .welcome-monogram { display: none; }
  .welcome-content h1 { font-size: clamp(36px, 11vh, 50px); line-height: .95; }
  .welcome-copy { max-width: 480px; margin: 8px auto 10px; font-size: 11px; line-height: 1.5; }
  .welcome-actions { gap: 1px; }
  .welcome-mode-actions { gap: 7px; margin-bottom: 0; }
  .welcome-mode-actions .button { min-height: 36px; }
  .welcome-actions > .button { min-height: 33px; }
  .welcome-footer, .welcome-side-note { display: none; }
  .welcome-content > .eyebrow { margin-bottom: 8px; }
}

/* V11 — Perfis dos fotógrafos, apresentados sem interferir no museu 3D. */
.photographers-modal { position:absolute; z-index:30; inset:0; display:flex; justify-content:center; overflow-y:auto; background:rgba(12,17,18,.96); padding:clamp(15px,4vw,60px); color:#f0ebe1; }
.photographers-shell { width:min(910px,100%); margin:auto 0; padding:28px; border:1px solid rgba(205,184,148,.28); background:linear-gradient(140deg,#252e32,#171b1c); box-shadow:0 20px 70px #0008; }
.photographers-top { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.photographers-top h2,.photographer-bio-head h2 { font:400 clamp(27px,4vw,43px)/1.14 var(--serif); margin:5px 0 10px; }
.photographers-top .panel-close { position:static; flex:none; }
.photographers-status { color:#c6c7be; font-size:12px; margin:5px 0 22px; }
.photographers-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(215px,1fr)); gap:13px; }
.photographer-card { min-height:96px; text-align:left; display:flex; align-items:center; gap:14px; padding:14px; background:#30393b; border:1px solid #526064; color:#eee8dc; cursor:pointer; }
.photographer-card:hover,.photographer-work:hover { border-color:#d9b986; background:#3b4547; }
.photographer-card strong { display:block; font-family:var(--serif); font-size:20px; line-height:1.2; }
.photographer-card small { display:block; color:#aebbb9; font-size:11px; margin-top:6px; }
.photographer-avatar { border-radius:50%; width:67px; height:67px; flex:none; display:grid; place-items:center; font:35px var(--serif); color:#eee4d0; background:#67787a; overflow:hidden; }
.photographer-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.photographer-avatar--large { width:118px; height:118px; font-size:54px; }
.photographer-profile-link { display:inline-block; margin-top:17px; padding:9px 12px; color:#f0d4a0; border:1px solid #907b59; background:transparent; cursor:pointer; font-size:12px; }
.photographer-profile-link:hover { background:#5e5345; color:#fff; }
.photographers-back { border:0; background:none; color:#edd7b0; font-size:12px; cursor:pointer; padding:10px 0; }
.photographer-bio-head { display:flex; align-items:center; gap:24px; margin:15px 0 23px; }
.photographer-bio-head p { margin:5px 0; color:#c1c8c5; font-size:13px; }
.photographer-bio { white-space:pre-wrap; line-height:1.75; max-width:720px; color:#dfdfd7; font-size:14px; }
.photographer-links { display:flex; gap:13px; flex-wrap:wrap; margin:20px 0; }
.photographer-links a { color:#ebd0a2; font-weight:700; font-size:13px; text-underline-offset:3px; }
.photographers-detail h3 { color:#eee8dc; font:normal 23px var(--serif); margin:20px 0 12px; }
.photographer-works { display:grid; grid-template-columns:repeat(auto-fill,minmax(175px,1fr)); gap:13px; }
.photographer-work { display:flex; flex-direction:column; gap:10px; padding:8px; border:1px solid #4d5a5d; background:#283135; color:#e7e2d9; text-align:left; cursor:pointer; }
.photographer-work img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.photographer-work span { display:block; font-size:12px; padding:0 3px 4px; }
@media(max-width:600px){ .photographers-modal{padding:9px;}.photographers-shell{padding:15px;}.photographer-bio-head{gap:15px;}.photographer-avatar--large{width:80px;height:80px;}.photographers-list{grid-template-columns:1fr}.photographer-works{grid-template-columns:repeat(2,minmax(0,1fr));} .photographers-top h2{font-size:29px} }
@media (pointer:coarse) and (max-width:760px) and (orientation:landscape){.photographers-hud-button{display:none}}
