/* TEMA Gallery: /gallery/ page and the home page strip */
#tema-portal .tph-wordmark{display:inline-block;font-family:TemaMarketLogo,Arial,sans-serif;font-size:32px;font-weight:700;line-height:1.1;letter-spacing:-.065em;color:#252821;text-decoration:none;margin-bottom:18px}
#tema-portal .tph-wordmark b{color:#e87b17;font-weight:700}
#tema-portal .tph-wordmark span{color:#e87b17}
#tema-portal .tph-wordmark:hover{color:#252821}
#tema-portal .tph-main h1 span,#tema-portal .tph-main h2 span,#tema-portal .tph-home h2 span{color:#e87b17}
#tema-portal .tph-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:13px 22px;border:0;border-radius:10px;background:#e87b17;color:#fff!important;font-family:inherit;font-weight:600;font-size:15px;line-height:1.2;text-decoration:none;cursor:pointer;transition:background .2s,transform .2s}
#tema-portal .tph-cta:hover{background:#cf6a0f}
#tema-portal .tph-cta:disabled{opacity:.6;cursor:wait}
#tema-portal .tph-cta svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
#tema-portal .tph-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:13px 20px;border:1px solid #d8d3c7;border-radius:10px;background:#fff;color:#252821;font-family:inherit;font-weight:600;font-size:15px;line-height:1.2;text-decoration:none;cursor:pointer}
#tema-portal .tph-ghost:hover{border-color:#e87b17;color:#e87b17}

/* Hero */
#tema-portal .tph-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:48px;align-items:center;padding:44px 0 36px}
#tema-portal .tph-intro h1{font-size:clamp(40px,5vw,64px)!important;line-height:1.02!important;letter-spacing:-.045em!important;margin:0 0 18px!important;color:#252821}
#tema-portal .tph-intro>p{font-size:17px;line-height:1.6;color:#5d6057;max-width:520px;margin:0 0 26px}
#tema-portal .tph-hero-actions{display:flex;flex-wrap:wrap;gap:12px}
#tema-portal .tph-hero-actions .tph-cta,#tema-portal .tph-hero-actions .tph-ghost{min-height:52px;padding:14px 26px;border-radius:11px;font-size:15px}
#tema-portal .tph-intro>p.tph-note{margin:24px 0 0;max-width:520px;font-size:13px;line-height:1.5;color:#8b8e82}
#tema-portal .tph-month{position:relative;margin:0;border-radius:18px;overflow:hidden;background:#20211f;box-shadow:0 20px 50px #20211f26}
#tema-portal .tph-month-open{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
#tema-portal .tph-month img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .6s}
#tema-portal .tph-month:hover img{transform:scale(1.02)}
#tema-portal .tph-month-badge{position:absolute;top:16px;left:16px;padding:7px 13px;border-radius:30px;background:#e87b17;color:#fff;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;pointer-events:none}
#tema-portal .tph-month figcaption{position:absolute;left:0;right:0;bottom:0;padding:60px 20px 18px;background:linear-gradient(transparent,#000000b3);color:#fff;pointer-events:none}
#tema-portal .tph-month figcaption strong{display:block;font-size:19px;line-height:1.3}
#tema-portal .tph-month figcaption span{font-size:13px;opacity:.9}
#tema-portal .tph-month figcaption a{color:#fff;pointer-events:auto;text-decoration:underline;text-underline-offset:3px}
#tema-portal .tph-hero-art{display:grid;grid-template-columns:1.25fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:10px;height:400px}
#tema-portal .tph-tile{position:relative;display:block;overflow:hidden;border-radius:12px;background:#e9e4d9}
#tema-portal .tph-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#tema-portal .tph-tile-1{grid-row:1/3;background:#7d8a6d}
#tema-portal .tph-tile-2{grid-column:2/4;background:#e8a15a}
#tema-portal .tph-tile-3{background:#e4ddd0}
#tema-portal .tph-tile-4{background:#d6c3a5}
#tema-portal .tph-tile em{position:absolute;left:20px;bottom:18px;font-style:normal;font-weight:700;font-size:19px;line-height:1.25;color:#fff}

/* Author page head */
#tema-portal .tph-author-head{padding:34px 0 10px}
#tema-portal .tph-back{display:inline-block;margin-bottom:18px;color:#8b8e82;font-size:14px;text-decoration:none}
#tema-portal .tph-back:hover{color:#e87b17}
#tema-portal .tph-author-head h1{font-size:clamp(34px,4.5vw,54px)!important;line-height:1.05!important;letter-spacing:-.04em!important;margin:8px 0 10px!important}
#tema-portal .tph-author-head p{color:#5d6057;font-size:15px;margin:0}
#tema-portal .tph-author-head p a{color:#e87b17;font-weight:600}

/* Exhibitions grid */
#tema-portal .tph-gallery{padding:28px 0 20px;border-top:1px solid #e4dfd4}
#tema-portal .tph-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
#tema-portal .tph-toolbar h2{font-size:clamp(26px,3vw,36px)!important;letter-spacing:-.035em!important;margin:0!important}
#tema-portal .tph-tabs{display:flex;gap:4px;padding:4px;border-radius:30px;background:#eee9df}
#tema-portal .tph-tabs a{padding:8px 16px;border-radius:30px;color:#5d6057;font-size:14px;font-weight:600;text-decoration:none}
#tema-portal .tph-tabs a[aria-current]{background:#fff;color:#252821;box-shadow:0 1px 4px #20211f1a}
#tema-portal .tph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px 18px}
#tema-portal .tph-card{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:#fff;border:1px solid #e9e4d9;transition:box-shadow .25s,transform .25s}
#tema-portal .tph-card:hover{box-shadow:0 12px 30px #20211f1f;transform:translateY(-2px)}
#tema-portal .tph-cover{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#eee9df}
#tema-portal .tph-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
#tema-portal .tph-card:hover .tph-cover img{transform:scale(1.03)}
#tema-portal .tph-count{position:absolute;left:10px;bottom:10px;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:20px;background:#20211fcc;color:#fff;font-size:12px;font-weight:600;backdrop-filter:blur(4px)}
#tema-portal .tph-count svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
#tema-portal .tph-card-body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 10px;padding:13px 14px 15px}
#tema-portal .tph-card-title{grid-column:1;font-size:16px;font-weight:700;line-height:1.3;color:#252821;text-decoration:none}
#tema-portal .tph-byline{grid-column:1;font-size:13px;color:#8b8e82}
#tema-portal .tph-author{color:#5d6057;font-weight:600;text-decoration:none}
#tema-portal .tph-author:hover{color:#e87b17}
#tema-portal .tph-card .tph-like{grid-column:2;grid-row:1/3}
#tema-portal .tph-like{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:7px 12px;border:1px solid #e4dfd4;border-radius:30px;background:#fff;color:#686b62;font-family:inherit;font-weight:600;font-size:14px;line-height:1;cursor:pointer;transition:border-color .2s,color .2s,background .2s}
#tema-portal .tph-like svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;transition:fill .2s}
#tema-portal .tph-like:hover{border-color:#e87b17;color:#e87b17}
#tema-portal .tph-like[aria-pressed=true]{border-color:#f3c38f;background:#fff5ea;color:#e87b17}
#tema-portal .tph-like[aria-pressed=true] svg{fill:#e87b17}
#tema-portal .tph-like.is-pop svg{animation:tph-pop .4s ease}
@keyframes tph-pop{40%{transform:scale(1.35)}}
#tema-portal .tph-empty{padding:50px 20px;border:1px dashed #d8d3c7;border-radius:16px;text-align:center;color:#5d6057}
#tema-portal .tph-empty strong{display:block;font-size:22px;color:#252821;margin-bottom:6px}
#tema-portal .tph-empty p{margin:0 0 20px}
#tema-portal .tph-pagination{margin-top:14px}

/* Single exhibition */
#tema-portal .tph-ex-head{max-width:820px;padding:30px 0 26px}
#tema-portal .tph-ex-head .tph-back{margin-bottom:18px}
#tema-portal .tph-ex-head h1{font-size:clamp(34px,4.6vw,56px)!important;line-height:1.05!important;letter-spacing:-.04em!important;margin:10px 0 16px!important;color:#252821}
#tema-portal .tph-ex-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;font-size:15px;color:#5d6057}
#tema-portal .tph-ex-date{color:#8b8e82;font-size:14px}
#tema-portal .tph-ex-desc{margin:18px 0 0;font-size:17px;line-height:1.6;color:#4a4d44}
#tema-portal .tph-shots-grid{columns:3 300px;column-gap:14px;padding-bottom:10px}
#tema-portal .tph-shot{break-inside:avoid;margin:0 0 14px;border-radius:10px;overflow:hidden;background:#eee9df}
#tema-portal .tph-open{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
#tema-portal .tph-open img{display:block;width:100%;height:auto;transition:opacity .2s}
#tema-portal .tph-open:hover img{opacity:.92}
#tema-portal .tph-more{margin-top:26px}
#tema-portal .tph-more .tph-toolbar .tph-ghost{min-height:42px;padding:10px 16px;font-size:14px}

/* Share CTA under the gallery */
#tema-portal .tph-share-cta{display:flex;align-items:center;justify-content:space-between;gap:30px;margin:34px 0 50px;padding:34px 38px;border-radius:18px;background:#eee9df;border:1px solid #e4dfd4}
#tema-portal .tph-share-cta h2{font-size:clamp(26px,3vw,36px)!important;line-height:1.1!important;letter-spacing:-.035em!important;margin:8px 0 10px!important}
#tema-portal .tph-share-cta p{margin:0;max-width:560px;font-size:15px;line-height:1.55;color:#5d6057}
#tema-portal .tph-share-cta .tph-cta{flex-shrink:0}

/* "Поделиться фото" page — same structure as the Market listing form */
#tema-portal .tph-add{padding:28px 0 56px}
#tema-portal .tph-add .tph-back{margin-bottom:22px}
#tema-portal .tph-add-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;align-items:start}
#tema-portal .tph-kicker{display:block;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#b96922}
#tema-portal .tph-add h1{font-size:clamp(32px,4vw,42px)!important;line-height:1.1!important;letter-spacing:-.04em!important;margin:8px 0 8px!important;color:#252821}
#tema-portal .tph-add-intro{margin:0 0 24px;font-size:15px;color:#7e8474}
#tema-portal .tph-form fieldset{margin:0 0 16px;padding:24px 26px;border:1px solid #e6e7df;border-radius:14px;background:#fff;min-width:0}
#tema-portal .tph-form legend{float:left;width:100%;display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:0;font-size:18px;font-weight:700;color:#252821}
#tema-portal .tph-form legend+*{clear:both}
#tema-portal .tph-form legend span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:#fff0e0;color:#cb711f;font-size:11px;font-weight:700}
#tema-portal .tph-form fieldset>label:not(.tph-drop){display:block;font-size:13px;font-weight:600;color:#4a4d44}
#tema-portal .tph-form fieldset>label:not(.tph-drop)>input{display:block;margin-top:7px}
#tema-portal .tph-sub{margin:20px 0 10px;font-size:13px;font-weight:600;color:#4a4d44}
#tema-portal .tph-two{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
#tema-portal .tph-form small{font-weight:400;color:#949b86;margin-left:4px}
#tema-portal .tph-contact{margin-top:18px}
#tema-portal .tph-form input[type=text]{width:100%;padding:12px 13px;border:1px solid #e2e5db;border-radius:9px;background:#fafbf8;font-family:inherit;font-weight:400;font-size:15px;line-height:1.4;color:#252821;transition:border-color .2s,background .2s}
#tema-portal .tph-form input[type=text]::placeholder{color:#a0a694}
#tema-portal .tph-form input[type=text]:focus{background:#fff;border-color:#d99b60;outline:2px solid #e87b1726;outline-offset:0}
#tema-portal .tph-form input.is-invalid{border-color:#d9534f;background:#fff}
#tema-portal .tph-soc-field{position:relative;display:block}
#tema-portal .tph-soc-field svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:18px;height:18px;fill:none;stroke:#8b8e82;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;pointer-events:none;transition:stroke .2s}
#tema-portal .tph-soc-field input[type=text]{padding-left:42px}
#tema-portal .tph-soc-field:focus-within svg{stroke:#e87b17}
#tema-portal .tph-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#tema-portal .tph-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
#tema-portal .tph-drop{position:relative;display:flex;align-items:center;justify-content:center;min-height:240px;border:1.5px dashed #dbc7ad;border-radius:12px;background:#fcfaf5;cursor:pointer;overflow:hidden;transition:border-color .2s,background .2s}
#tema-portal .tph-drop:hover,#tema-portal .tph-drop:focus-within{border-color:#e87b17;background:#fff8ef}
#tema-portal .tph-drop.is-invalid{border-color:#d9534f}
#tema-portal .tph-drop input{position:absolute;inset:0;z-index:2;opacity:0;cursor:pointer}
#tema-portal .tph-drop-empty{display:grid;justify-items:center;gap:6px;padding:20px;text-align:center;pointer-events:none}
#tema-portal .tph-drop-empty svg{width:34px;height:34px;fill:none;stroke:#b96922;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
#tema-portal .tph-drop-empty strong{font-size:15px;color:#b96922}
#tema-portal .tph-drop-empty small{font-size:12px;color:#949b86;margin:0}
#tema-portal .tph-drop.has-photo{min-height:0;border-style:solid;background:#20211f}
#tema-portal .tph-drop.has-photo .tph-drop-empty{display:none}
#tema-portal .tph-drop-preview{display:block;width:100%;max-height:520px;object-fit:contain;pointer-events:none}
#tema-portal .tph-drop-change{display:none;position:absolute;right:12px;bottom:12px;padding:8px 14px;border-radius:20px;background:#fffffff0;color:#252821;font-size:13px;font-weight:600;pointer-events:none}
#tema-portal .tph-drop.has-photo .tph-drop-change{display:block}
#tema-portal .tph-submit{display:grid;gap:16px;padding:22px 26px;border:1px solid #e6e7df;border-radius:14px;background:#fff}
#tema-portal .tph-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;color:#4a4d44;cursor:pointer}
#tema-portal .tph-consent input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:#e87b17}
#tema-portal .tph-consent input.is-invalid{outline:2px solid #d9534f;outline-offset:1px}
#tema-portal .tph-submit .tph-cta{justify-self:start;min-width:220px}
#tema-portal .tph-status{margin:0;font-size:13px;color:#5d6057}
#tema-portal .tph-status:empty{display:none}
#tema-portal .tph-status.is-error{color:#c0392b}
#tema-portal .tph-done{display:grid;gap:10px;justify-items:start;padding:34px 30px;border:1px solid #e6e7df;border-radius:14px;background:#fff}
#tema-portal .tph-done strong{font-size:24px;color:#252821}
#tema-portal .tph-done p{margin:0 0 8px;color:#5d6057;font-size:15px}
#tema-portal .tph-done-actions{display:flex;flex-wrap:wrap;gap:10px}
#tema-portal .tph-add-aside{position:sticky;top:20px;display:grid;gap:18px}
#tema-portal .tph-add-aside .tph-kicker{color:#8b8e82}
#tema-portal .tph-live{overflow:hidden;border:1px solid #e6e7df;border-radius:14px;background:#fff}
#tema-portal .tph-live-photo{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:#eceee6}
#tema-portal .tph-live-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#tema-portal .tph-live-photo span{display:grid;justify-items:center;gap:6px;color:#a0a694}
#tema-portal .tph-live-photo svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
#tema-portal .tph-live-photo small{font-size:11px}
#tema-portal .tph-live.has-photo .tph-live-photo span{display:none}
#tema-portal .tph-live-copy{display:grid;gap:4px;padding:14px 16px 16px}
#tema-portal .tph-live-title{font-size:16px;line-height:1.35;color:#252821;word-break:break-word}
#tema-portal .tph-live-author{font-size:13px;color:#8b8e82}
#tema-portal .tph-live-socials{display:flex;gap:5px}
#tema-portal .tph-live-socials:empty{display:none}
#tema-portal .tph-live-socials .tph-soc{width:26px;height:26px}
#tema-portal .tph-tip{padding-top:14px;border-top:1px solid #e0e2d8}
#tema-portal .tph-tip strong{display:block;font-size:13px;color:#252821;margin-bottom:4px}
#tema-portal .tph-tip p{margin:0;font-size:12px;line-height:1.55;color:#8b8e82}

/* Author social icons */
#tema-portal .tph-socials{display:inline-flex;flex-wrap:wrap;gap:6px;vertical-align:middle}
#tema-portal .tph-soc{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:32px;height:32px;border-radius:50%;background:#eee9df;color:#4a4d44;text-decoration:none;transition:background .2s,color .2s}
#tema-portal .tph-soc svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
#tema-portal a.tph-soc:hover{background:#e87b17;color:#fff}
#tema-portal .tph-socials.has-labels{display:flex;gap:8px;margin-top:16px}
#tema-portal .has-labels .tph-soc{width:auto;height:auto;padding:9px 15px;border-radius:30px;background:#fff;border:1px solid #e4dfd4;font-size:14px;font-weight:600;color:#252821}
#tema-portal .has-labels .tph-soc:hover{border-color:#e87b17;background:#fff8ef;color:#e87b17}
#tema-portal .tph-month figcaption .tph-socials{display:flex;margin-top:10px;pointer-events:auto}
#tema-portal .tph-month figcaption .tph-soc{background:#ffffff2e;color:#fff}
#tema-portal .tph-lightbox .tph-socials{margin-left:10px}
#tema-portal .tph-lightbox .tph-soc{width:30px;height:30px;background:#ffffff1f;color:#fff}

/* Fullscreen viewer */
html.tph-lock,html.tph-lock body{overflow:hidden}
.tph-lightbox{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;background:#0d0d0cf2;padding:56px 70px}
.tph-lightbox[hidden]{display:none}
.tph-lightbox figure{margin:0;display:flex;flex-direction:column;align-items:center;max-width:100%;max-height:100%}
.tph-lightbox img{display:block;max-width:100%;max-height:calc(100vh - 170px);object-fit:contain;border-radius:6px;box-shadow:0 20px 60px #0008}
.tph-lightbox figcaption{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;max-width:900px;padding:14px 4px 0;color:#fff}
.tph-lightbox figcaption strong{display:block;font-size:17px;line-height:1.3}
.tph-lightbox figcaption span{font-size:13px;color:#c9c9c2}
.tph-lightbox figcaption a{color:#fff;text-decoration:underline;text-underline-offset:3px}
#tema-portal .tph-lightbox .tph-like{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 14px;border:1px solid #ffffff40;border-radius:30px;background:transparent;color:#fff;font:600 14px/1 Arial,sans-serif;cursor:pointer}
#tema-portal .tph-lightbox .tph-like svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
#tema-portal .tph-lightbox .tph-like[aria-pressed=true]{border-color:#e87b17;color:#e87b17}
#tema-portal .tph-lightbox .tph-like[aria-pressed=true] svg{fill:#e87b17}
.tph-lb-close,.tph-lb-prev,.tph-lb-next{position:absolute;display:flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:#ffffff1f;color:#fff;cursor:pointer;transition:background .2s}
.tph-lb-close:hover,.tph-lb-prev:hover,.tph-lb-next:hover{background:#e87b17}
.tph-lb-close{top:14px;right:14px;font-size:30px;line-height:1}
.tph-lb-prev{left:14px;top:50%;transform:translateY(-50%)}
.tph-lb-next{right:14px;top:50%;transform:translateY(-50%)}
.tph-lb-prev svg,.tph-lb-next svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tph-lightbox.is-single .tph-lb-prev,.tph-lightbox.is-single .tph-lb-next{display:none}
.tph-lb-count{position:absolute;top:26px;left:22px;color:#c9c9c2;font:600 13px/1 Arial,sans-serif}

/* Home page block */
#tema-portal .tph-home{margin:40px 0;padding:32px;border-radius:16px;background:#20211f;color:#fff}
#tema-portal .tph-home-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
#tema-portal .tph-home .tph-wordmark{color:#fff;margin-bottom:12px;font-size:28px}
#tema-portal .tph-home h2{font-size:clamp(26px,3vw,38px)!important;line-height:1.1!important;letter-spacing:-.035em!important;color:#fff!important;margin:0 0 10px!important}
#tema-portal .tph-home p{margin:0;font-size:15px;line-height:1.55;color:#c9c9c2;max-width:480px}
#tema-portal .tph-home-actions{display:flex;flex-shrink:0;gap:10px}
#tema-portal .tph-home-share{display:inline-flex;align-items:center;min-height:44px;padding:11px 18px;border-radius:10px;background:#e87b17;color:#fff!important;font-weight:600;font-size:14px;text-decoration:none}
#tema-portal .tph-home-all{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:11px 16px;border:1px solid #ffffff33;border-radius:10px;color:#fff!important;font-weight:600;font-size:14px;text-decoration:none}
#tema-portal .tph-home-all:hover{border-color:#e87b17}
#tema-portal .tph-home-all svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
#tema-portal .tph-home.is-empty .tph-home-head{margin-bottom:0}
#tema-portal .tph-home-strip{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
#tema-portal .tph-home-item{position:relative;display:block;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#333}
#tema-portal .tph-home-item img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
#tema-portal .tph-home-item:hover img{transform:scale(1.05)}
#tema-portal .tph-home-item span{position:absolute;left:0;right:0;bottom:0;padding:18px 8px 6px;background:linear-gradient(transparent,#000a);color:#fff;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media (max-width:900px){
 #tema-portal .tph-hero{grid-template-columns:1fr;gap:28px;padding:28px 0 26px}
 #tema-portal .tph-hero-art{height:280px;gap:8px}
 #tema-portal .tph-tile em{left:12px;right:10px;bottom:12px;font-size:14px}
 #tema-portal .tph-tile em br{display:none}
 #tema-portal .tph-add-layout{grid-template-columns:1fr}
 #tema-portal .tph-add-aside{position:static;order:-1}
 #tema-portal .tph-add-aside .tph-tip{display:none}
 #tema-portal .tph-live{display:grid;grid-template-columns:120px 1fr;align-items:center}
 #tema-portal .tph-live-photo{aspect-ratio:1}
 #tema-portal .tph-share-cta{flex-direction:column;align-items:stretch;padding:26px}
 #tema-portal .tph-home-strip{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:38%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -32px;padding:0 32px}
 #tema-portal .tph-home-strip::-webkit-scrollbar{display:none}
 #tema-portal .tph-home-item{scroll-snap-align:start}
}
@media (max-width:680px){
 #tema-portal .tph-intro h1{font-size:40px!important}
 #tema-portal .tph-intro>p{font-size:15px}
 #tema-portal .tph-hero-actions{flex-direction:column;gap:10px}
 #tema-portal .tph-hero-actions .tph-cta,#tema-portal .tph-hero-actions .tph-ghost{width:100%}
 #tema-portal .tph-intro>p.tph-note{margin-top:20px}
 #tema-portal .tph-toolbar{flex-wrap:wrap}
 #tema-portal .tph-form fieldset,#tema-portal .tph-submit{padding:20px 18px}
 #tema-portal .tph-two{grid-template-columns:1fr}
 #tema-portal .tph-drop{min-height:190px}
 #tema-portal .tph-form input[type=text]{font-size:16px}
 #tema-portal .tph-submit .tph-cta{justify-self:stretch}
 #tema-portal .tph-share-cta{margin:24px 0 40px;padding:24px 20px}
 #tema-portal .tph-share-cta .tph-cta{width:100%}
 #tema-portal .tph-home{padding:24px 20px;margin:28px 0}
 #tema-portal .tph-home-head{flex-direction:column;align-items:stretch}
 #tema-portal .tph-home-actions>*{flex:1;justify-content:center;white-space:nowrap;padding:11px 12px}
 #tema-portal .tph-home-strip{margin:0 -20px;padding:0 20px;grid-auto-columns:42%}
 .tph-lightbox{padding:60px 0 20px}
 .tph-lightbox img{max-height:calc(100vh - 190px);border-radius:0}
 .tph-lightbox figcaption{padding:14px 16px 0}
 .tph-lb-prev,.tph-lb-next{display:none}
}
@media (prefers-reduced-motion:reduce){#tema-portal .tph-card,#tema-portal .tph-month img,#tema-portal .tph-home-item img{transition:none}#tema-portal .tph-like.is-pop svg{animation:none}}

/* The site-wide "#tema-portal a:hover{color:accent!important}" must not recolour gallery buttons */
#tema-portal a.tph-cta:hover,#tema-portal a.tph-home-share:hover,#tema-portal a.tph-home-all:hover,#tema-portal a.tph-soc:not(.tph-soc-label):hover,#tema-portal .tph-month figcaption a:hover,#tema-portal .tph-lightbox figcaption a:hover{color:#fff!important}
#tema-portal .has-labels a.tph-soc:hover{color:#e87b17!important}
#tema-portal a.tph-wordmark:hover{color:#252821!important}
#tema-portal .tph-home a.tph-wordmark:hover{color:#fff!important}

/* Exhibition uploader: shot thumbnails with order controls */
#tema-portal .tph-uploader{display:grid;gap:12px}
#tema-portal .tph-shots-edit{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
#tema-portal .tph-shots-edit:empty{display:none}
#tema-portal .tph-edit-shot{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#20211f;cursor:grab}
#tema-portal .tph-edit-shot img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .2s}
#tema-portal .tph-edit-shot.is-wait img,#tema-portal .tph-edit-shot.is-up img{opacity:.45}
#tema-portal .tph-edit-shot.is-err{outline:2px solid #d9534f;outline-offset:-2px}
#tema-portal .tph-edit-shot.is-err img{opacity:.35}
#tema-portal .tph-edit-shot.is-drag{opacity:.4}
#tema-portal .tph-cover-badge{position:absolute;top:7px;left:7px;padding:4px 8px;border-radius:12px;background:#e87b17;color:#fff;font-size:11px;font-weight:700}
#tema-portal .tph-edit-state{position:absolute;left:8px;right:8px;top:50%;transform:translateY(-50%);text-align:center;color:#fff;font-size:12px;font-weight:600;line-height:1.3;text-shadow:0 1px 4px #000a}
#tema-portal .tph-edit-shot.is-up .tph-edit-state::before{content:'';display:block;width:20px;height:20px;margin:0 auto 6px;border:2px solid #fff6;border-top-color:#fff;border-radius:50%;animation:tph-spin .8s linear infinite}
@keyframes tph-spin{to{transform:rotate(360deg)}}
#tema-portal .tph-edit-bar{position:absolute;left:6px;right:6px;bottom:6px;display:flex;gap:4px}
#tema-portal .tph-edit-bar button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:#fffffff0;color:#252821;font-size:18px;line-height:1;cursor:pointer}
#tema-portal .tph-edit-bar button:disabled{opacity:.35;cursor:default}
#tema-portal .tph-edit-bar .tph-edit-del{margin-left:auto;color:#c0392b}
#tema-portal .tph-edit-bar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#tema-portal .tph-drop.is-compact{min-height:110px}
#tema-portal .tph-drop.is-compact .tph-drop-empty small{display:none}
#tema-portal .tph-drop[hidden]{display:none}
#tema-portal .tph-hint{margin:10px 0 0;font-size:12px;color:#949b86}
#tema-portal .tph-form textarea{display:block;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #e2e5db;border-radius:9px;background:#fafbf8;font-family:inherit;font-weight:400;font-size:15px;line-height:1.5;color:#252821;resize:vertical}
#tema-portal .tph-form textarea:focus{background:#fff;border-color:#d99b60;outline:2px solid #e87b1726;outline-offset:0}
#tema-portal .tph-form fieldset>label+label{margin-top:14px}
#tema-portal .tph-live-count{position:absolute;left:10px;bottom:10px;padding:5px 9px;border-radius:14px;background:#20211fcc;color:#fff;font-size:11px;font-weight:600}
#tema-portal .tph-live-count[hidden]{display:none}
#tema-portal .tph-home-item span b{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis}
#tema-portal a.tph-tile{transition:opacity .2s}
#tema-portal a.tph-tile:hover{opacity:.9}
#tema-portal .tph-month-open{cursor:pointer}
@media (max-width:680px){
 #tema-portal .tph-grid{grid-template-columns:1fr;gap:16px}
 #tema-portal .tph-shots-grid{columns:1}
 #tema-portal .tph-ex-head{padding:22px 0 18px}
 #tema-portal .tph-ex-desc{font-size:15px}
 #tema-portal .tph-shots-edit{grid-template-columns:repeat(3,1fr);gap:6px}
 #tema-portal .tph-edit-bar button{width:26px;height:26px;font-size:16px}
 #tema-portal .tph-more .tph-toolbar{flex-direction:column;align-items:flex-start}
}
