/* Modalni okno aktivity na /activities/ (actmodal.js). Fotka vlevo, text vpravo; telefon = panel pres celou obrazovku. */
.cr-am { width: min(1280px, calc(100vw - 2 * var(--ch-gut))); max-width: none; max-height: min(860px, calc(100dvh - 48px)); margin: auto; padding: 0; border: 0; background: var(--ch-bg); color: #000; overflow: hidden; box-shadow: 0 40px 80px rgba(13, 21, 17, .35); }
.cr-am::backdrop { background: rgba(23, 35, 31, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cr-am[open] { display: flex; animation: cr-am-in .55s var(--ease-out); }
.cr-am[open]::backdrop { animation: cr-am-fade .4s var(--ease); }
.cr-am.is-closing { animation: cr-am-out .3s var(--ease) forwards; }
.cr-am.is-closing::backdrop { animation: cr-am-fade .3s var(--ease) reverse forwards; }
@keyframes cr-am-in { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cr-am-out { to { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes cr-am-fade { from { opacity: 0; } to { opacity: 1; } }
.cr-am__panel { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 0; }
.cr-am__bar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px; pointer-events: none; }
.cr-am__count { position: absolute; left: calc(50% + 48px); top: 30px; }
.cr-am__nav { display: flex; gap: 8px; pointer-events: auto; }
.cr-am__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ch-line); background: var(--ch-bg); color: #000; transition: background-color .2s, border-color .2s, color .2s; }
.cr-am__btn:hover { background: var(--ch-ink); border-color: var(--ch-ink); color: #fff; }
.cr-am__btn svg { width: 20px; height: 20px; }
.cr-am__content { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; height: 100%; }
.cr-am__content.is-swap { animation: cr-am-swap .45s var(--ease-out); }
@keyframes cr-am-swap { from { opacity: 0; transform: translateX(var(--dx, 24px)); } to { opacity: 1; transform: none; } }
.cr-am__media { position: relative; min-height: 0; overflow: hidden; background: #2e241d; }
.cr-am__media img { width: 100%; height: 100%; object-fit: cover; animation: cr-am-zoom 1.4s var(--ease-out); }
@keyframes cr-am-zoom { from { transform: scale(1.08); } to { transform: none; } }
.cr-am__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 88px 48px 40px; }
.cr-am__t { font-family: var(--font); font-weight: 400; font-size: max(30px, calc(48 * var(--u))); line-height: 1.12; text-transform: uppercase; }
.cr-am__sub { margin-top: -8px; font-family: var(--font); font-weight: 500; font-size: max(17px, calc(22 * var(--u))); line-height: 1.3; color: var(--ch-muted); }
.cr-am__body .ch-p { color: var(--ch-ink); }
.cr-am__months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; width: 100%; margin-top: 4px; }
.cr-am__months li { display: grid; place-items: center; height: 32px; border: 1px solid var(--ch-line); font-family: var(--ch-roboto); font-weight: 500; font-size: 12px; color: var(--ch-muted); }
.cr-am__months li.is-on { background: var(--ch-ink); border-color: var(--ch-ink); color: #fff; }
.cr-am__months abbr { text-decoration: none; cursor: help; }
.cr-am__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.cr-am__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cr-am__actions { margin-top: auto; padding-top: 8px; }
.ch-tile a[data-act] { cursor: pointer; }

@media (max-width: 767px) {
  .cr-am { width: 100vw; max-height: none; height: 100dvh; box-shadow: none; }
  .cr-am[open] { animation: cr-am-up .5s var(--ease-out); }
  @keyframes cr-am-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .cr-am__content { display: block; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .cr-am__media { height: 44vh; }
  .cr-am__body { overflow: visible; padding: 24px 20px 32px; }
  .cr-am__count { display: none; }
  .cr-am__bar { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-am[open], .cr-am.is-closing, .cr-am__content.is-swap, .cr-am__media img { animation: none !important; }
}
