/* Shared photo preview for product descriptions and company photographs. */
html.ex-photo-viewer-open { overflow: hidden !important; }
.ex-photo-trigger { position: relative; display: block; cursor: zoom-in; }
.ex-photo-trigger__hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #dce2e3; border-radius: 7px; background: #ffffffed; color: #10232d; font: 600 12px/1.4 Arial, sans-serif; box-shadow: 0 3px 12px #10232d14; pointer-events: none; transition: background .2s, border-color .2s; }
.ex-photo-trigger__hint svg { flex: 0 0 16px; }
.ex-photo-trigger:hover .ex-photo-trigger__hint, .ex-photo-trigger:focus-visible .ex-photo-trigger__hint { background: #ffbd28; border-color: #ffbd28; }
.ex-photo-viewer { box-sizing: border-box; width: min(1100px, calc(100vw - 48px)); height: min(88vh, 900px); height: min(88dvh, 900px); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #ffffff4d; border-radius: 16px; background: #fff; color: #10232d; box-shadow: 0 30px 100px #0006; font: 400 14px/1.5 Arial, sans-serif; }
.ex-photo-viewer:not([open]) { display: none; }
.ex-photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.ex-photo-viewer::backdrop { background: #07151ce0; backdrop-filter: blur(5px); }
.ex-photo-viewer [hidden] { display: none !important; }
.ex-photo-viewer__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; border-bottom: 1px solid #dce2e3; }
.ex-photo-viewer__eyebrow { margin: 0 0 2px; color: #66757a; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.ex-photo-viewer .ex-photo-viewer__head h2 { margin: 0; color: #10232d; font: 700 18px/1.3 Arial, sans-serif; letter-spacing: normal; text-transform: none; }
.ex-photo-viewer button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 9px; min-width: 44px; min-height: 44px; margin: 0; padding: 9px 13px; border: 1px solid #d4dcda; border-radius: 8px; background: #fff; color: #10232d; font: 600 13px/1.4 Arial, sans-serif; cursor: pointer; transition: background .2s, border-color .2s; }
.ex-photo-viewer button:hover { border-color: #c19734; background: #fff5d9; }
.ex-photo-viewer button:focus-visible { outline: 3px solid #ab6c00; outline-offset: 3px; }
.ex-photo-viewer button:disabled { opacity: .35; cursor: default; background: #fff; border-color: #d4dcda; }
.ex-photo-viewer .ex-photo-viewer__close { background: #ffbd28; border-color: #ffbd28; }
.ex-photo-viewer .ex-photo-viewer__close:hover { background: #ffcc59; border-color: #ffcc59; }
.ex-photo-viewer__close-icon { font: 400 26px/1 Arial, sans-serif; }
.ex-photo-viewer__stage { display: grid; place-items: center; min-width: 0; min-height: 0; padding: 18px; overflow: hidden; background: #f3f5f3; }
.ex-photo-viewer .ex-photo-viewer__image { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; margin: 0; border: 0; border-radius: 0; object-fit: contain; }
.ex-photo-viewer__message { margin: 0; max-width: 340px; padding: 24px; color: #56666d; text-align: center; }
.ex-photo-viewer__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 20px; border-top: 1px solid #dce2e3; }
.ex-photo-viewer__caption { flex: 1; min-width: 0; margin: 0; color: #56666d; font-size: 12px; overflow-wrap: anywhere; }
.ex-photo-viewer__nav { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.ex-photo-viewer__count { min-width: 44px; margin: 0; color: #10232d; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) {
  .ex-photo-viewer { width: calc(100vw - 20px); height: calc(100vh - 32px); height: calc(100dvh - 32px); border-radius: 12px; }
  .ex-photo-viewer__head { gap: 12px; padding: 10px 12px; }
  .ex-photo-viewer .ex-photo-viewer__head h2 { font-size: 16px; }
  .ex-photo-viewer__stage { padding: 8px; }
  .ex-photo-viewer__foot { flex-direction: column; align-items: stretch; gap: 10px; padding: 11px 12px; }
  .ex-photo-viewer__caption { font-size: 11px; }
  .ex-photo-viewer__nav { justify-content: space-between; }
  .ex-photo-viewer__nav button { min-width: 100px; }
}
@media (max-height: 500px) {
  .ex-photo-viewer { height: calc(100vh - 20px); height: calc(100dvh - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .ex-photo-viewer__head { padding-block: 6px; }
  .ex-photo-viewer__eyebrow { display: none; }
  .ex-photo-viewer__foot { flex-direction: row; align-items: center; gap: 12px; padding-block: 6px; }
  .ex-photo-viewer__stage { padding: 6px; }
  .ex-photo-viewer__nav button { min-width: 44px; }
  .ex-photo-viewer__nav button>span:not([aria-hidden]) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-photo-trigger__hint, .ex-photo-viewer button { transition: none; }
}
