/* Event carousel - 2026-11-29 (DRAFT). Reusable on any event page: .ec[data-ec] with <ul class="ec-track"><li class="ec-item"><a class="ec-link">.
   Not in style.css (shared with the *2 pages). No-JS: tiles stay a plain, swipe/scroll-able row of working links.
   Look: 1:1 thumbs, full-width 5-tile row, arrows overlaid on the first and last photo.
   Arrow variants via data-ec-arrows="A|B|C|D" (default A). */
/* style.css floats .text-body (shrink-to-fit). Even 10px inset, same as .text-area-photo. */
.text-area-2013.historycell.greybkg{padding-bottom:0}
.text-body.ec-host{float:none;width:auto;margin:0!important;padding:10px;box-sizing:border-box}
.ec-host .marginleft10{margin-left:0}
.ec-host .margintop5{margin-top:0!important}
.ec-host .marginleft10 > span.block{display:block;margin:0 0 6px}
.ec{--ec-vis:5;--ec-thumb-h:72px;--ec-gap:4px;margin:0;padding:0}
.ec-main{position:relative;display:block}
.ec-viewport{display:block;width:100%;overflow:hidden;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.ec-viewport:focus-visible{outline:2px solid #5c8ffe;outline-offset:2px}
.ec-track{display:flex;gap:var(--ec-gap);margin:0;padding:0;list-style:none;font-size:16px;line-height:normal}
.ec-item{flex:0 0 calc((100% - var(--ec-gap) * (var(--ec-vis) - 1)) / var(--ec-vis));min-width:0;margin:0;padding:0;list-style:none;box-sizing:border-box}
/* no-JS fallback: scrollable row, every link reachable */
.ec:not(.ec-js) .ec-track{overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding-bottom:4px}
.ec:not(.ec-js) .ec-item{scroll-snap-align:start}
.ec-js .ec-track{will-change:transform;transition:transform .32s cubic-bezier(.3,.7,.3,1)}
.ec-js .ec-track.ec-notrans{transition:none}
.ec-link,.ec-link:hover{display:block;color:#fff;text-decoration:none;text-align:center;-webkit-user-drag:none;user-select:none}
.ec-link *{color:inherit;text-decoration:none;-webkit-user-drag:none;user-select:none}
.ec-link{outline-offset:2px}
.ec-link:focus-visible{outline:2px solid #5c8ffe}
.ec-thumb{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;border-radius:3px;background:#222}
.ec-thumb img{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none;transition:transform .25s ease}
.ec-title{display:block;margin-top:3px;font-family:"Fira Sans Extra Condensed","Fira FB",Arial,sans-serif;font-weight:400;font-size:11px;line-height:1.2;letter-spacing:.01em;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ec-title .ec-year{display:inline;font-weight:500}
@media (hover:hover){.ec-link:hover .ec-title{color:#fffc0f}.ec-link:hover .ec-thumb img{transform:scale(1.07)}}
.ec-link:focus-visible .ec-title{color:#fffc0f}
/* video tiles: play badge, scales with the square thumb */
.ec-item--video .ec-thumb::after{content:"";position:absolute;left:50%;top:50%;width:24.2%;max-width:28.6px;min-width:17.6px;aspect-ratio:1/1;margin:0;transform:translate(-50%,-50%);border-radius:50%;background:rgba(0,0,0,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' d='M3.2 2l5 3-5 3z'/%3E%3C/svg%3E") center/100% no-repeat;border:2px solid rgba(255,255,255,.8);box-sizing:border-box;pointer-events:none;opacity:0.75}
@media (hover:hover){.ec-item--video .ec-link:hover .ec-title{color:#f85821}.ec-item--video .ec-link:hover .ec-thumb::after,a.ec-item--video.ec-link:hover .ec-thumb::after{background-color:#f85821;border-color:#f85821;opacity:0.75}}

/* ---- Overlaid arrows (shared) ----
   Sit on the first / last photo, in the upper half: the button’s bottom edge sits on the horizontal midline of the tile.
   Always visible; hover brightens. Colours match the homepage #fp-slider arrows
   (rgba(0,0,0,.40) tab, white chevron, hover rgba(0,0,0,.72), 4px corners where square). */
.ec-btn{position:absolute;z-index:3;top:calc(var(--ec-thumb-h) / 2);transform:translateY(-100%);margin:0;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;border:0;box-shadow:none;-webkit-appearance:none;appearance:none;transition:background .2s ease,opacity .2s ease;background:rgba(0,0,0,.40)}
.ec-prev{left:6px}
.ec-next{right:6px}
.ec-btn svg{display:block;pointer-events:none}
.ec-btn:focus-visible{outline:2px solid #5c8ffe;outline-offset:2px}
.ec-btn[hidden],.ec-btn:disabled{display:none}
@media (hover:hover){.ec-btn:hover{background:rgba(0,0,0,.72)}}
.ec-btn:active{background:rgba(0,0,0,.8)}

/* A — round button, bigger white chevron (default) */
.ec-btn,.ec[data-ec-arrows="A"] .ec-btn{width:36px;height:36px;border-radius:50%}
.ec-btn svg,.ec[data-ec-arrows="A"] .ec-btn svg{width:14px;height:20px}

/* B — thin full-height dark gradient strip over the tile edge (kept from draft4) */
.ec[data-ec-arrows="B"] .ec-btn{top:0;transform:none;width:36px;height:var(--ec-thumb-h);border-radius:0;color:#fffc0f;background:linear-gradient(to right,rgba(0,0,0,.82),rgba(0,0,0,.4) 60%,rgba(0,0,0,0))}
.ec[data-ec-arrows="B"] .ec-prev{left:2px;border-radius:3px 0 0 3px}
.ec[data-ec-arrows="B"] .ec-next{right:2px;border-radius:0 3px 3px 0;background:linear-gradient(to left,rgba(0,0,0,.82),rgba(0,0,0,.4) 60%,rgba(0,0,0,0))}
.ec[data-ec-arrows="B"] .ec-btn svg{width:12px;height:18px}
@media (hover:hover){
  .ec[data-ec-arrows="B"] .ec-prev:hover{background:linear-gradient(to right,rgba(0,0,0,.92),rgba(0,0,0,.55) 60%,rgba(0,0,0,0))}
  .ec[data-ec-arrows="B"] .ec-next:hover{background:linear-gradient(to left,rgba(0,0,0,.92),rgba(0,0,0,.55) 60%,rgba(0,0,0,0))}
}

/* C — plain yellow chevron with shadow, no background (kept from draft4) */
.ec[data-ec-arrows="C"] .ec-btn{width:28px;height:36px;border-radius:0;background:transparent;color:#fffc0f}
.ec[data-ec-arrows="C"] .ec-btn svg{width:12px;height:18px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.85)) drop-shadow(0 0 3px rgba(0,0,0,.55))}
@media (hover:hover){.ec[data-ec-arrows="C"] .ec-btn:hover{background:transparent;filter:brightness(1.15)}
  .ec[data-ec-arrows="C"] .ec-btn:hover svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.95)) drop-shadow(0 0 4px rgba(0,0,0,.7))}}

/* D — square 4px button, bigger white chevron, homepage colours */
.ec[data-ec-arrows="D"] .ec-btn{width:36px;height:36px;border-radius:4px}
.ec[data-ec-arrows="D"] .ec-btn svg{width:14px;height:20px}

/* E — exact homepage #fp-slider arrow style, scaled to the tile.
   Homepage: 32×88px tab, rgba(0,0,0,.40), radius 4px, white 14px/700 chevron, hover rgba(0,0,0,.72).
   Tab height is 32% of the image (tile) height, plus 10px upward; the bottom edge stays on the photo midline. */
.ec[data-ec-arrows="E"] .ec-btn{width:32px;height:calc(var(--ec-thumb-h) * 0.32 + 10px);border-radius:4px;left:auto;right:auto}
.ec[data-ec-arrows="E"] .ec-prev{left:6px}
.ec[data-ec-arrows="E"] .ec-next{right:6px}
.ec[data-ec-arrows="E"] .ec-btn svg{width:12px;height:16px}

.ec-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (prefers-reduced-motion:reduce){.ec-js .ec-track,.ec-thumb img{transition:none}}

/* ===== Event photoboxes (Nejlepší fotky, apartments, slopes, videos) =====
   Same 10px inset / 4px gaps as the carousel row. Hover zoom reuses .ec-link + .ec-thumb.
   .event-bestphotos kept as an alias so the first box stays marked. */
.text-area-photo.event-photobox,.text-area-photo.event-bestphotos{padding-bottom:0}
.text-area-photo.event-photobox .text-body-photo,.text-area-photo.event-bestphotos .text-body-photo{float:none;width:auto;max-width:none;box-sizing:border-box;margin:0!important;padding:10px}
.text-area-photo.event-photobox .text-body-photo > span,.text-area-photo.event-bestphotos .text-body-photo > span{display:block;margin:0 0 6px!important}
.text-area-photo.event-photobox .photobox2019,.text-area-photo.event-bestphotos .photobox2019{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;width:100%;box-sizing:border-box;padding:0;margin:0;font-size:0;line-height:0}
.text-area-photo.event-photobox .photobox2019 > a,.text-area-photo.event-bestphotos .photobox2019 > a{display:block;position:relative;margin:0;padding:0;min-width:0;overflow:hidden}
.text-area-photo.event-photobox .photobox2019 .ec-thumb,.text-area-photo.event-bestphotos .photobox2019 .ec-thumb{aspect-ratio:112/100;width:100%;border-radius:3px}
.text-area-photo.event-photobox .photobox2019 picture,.text-area-photo.event-bestphotos .photobox2019 picture{display:block;width:100%;height:100%}
.text-area-photo.event-photobox .photobox2019 .photobox2019item,.text-area-photo.event-bestphotos .photobox2019 .photobox2019item{display:block;width:100%;height:100%;margin:0;object-fit:cover;box-sizing:border-box;border:0}
/* cancel the old 1px dotted hover border so the carousel zoom is the hover language */
.text-area-photo.event-photobox .photobox2019 a:hover .photobox2019item,
.text-area-photo.event-photobox .photobox2019item:hover,
.text-area-photo.event-bestphotos .photobox2019 a:hover .photobox2019item,
.text-area-photo.event-bestphotos .photobox2019item:hover{border:0}

/* Tab box (skupiny/firmy/zeptej se): body text after the Oswald title matches
   the main column (.text-body / .text-para) — Fira Sans Extra Condensed.
   Does not override .oswfont titles or Eight Track tab labels. */
.tabset_content .side-box-content-textarea{font-family:"Fira Sans Extra Condensed", 'Fira FB','Fira FB2','Fira FB3', Arial, sans-serif}
/* 2026-11-30: photobox tiles that are not wrapped in .ec-thumb (index Best of, older pages) */
.text-area-photo.event-bestphotos .photobox2019 > a:not(:has(.ec-thumb)),.text-area-photo.event-photobox .photobox2019 > a:not(:has(.ec-thumb)){aspect-ratio:112/100}
.text-area-photo.event-bestphotos .photobox2019 > a:not(:has(.ec-thumb)) picture,.text-area-photo.event-photobox .photobox2019 > a:not(:has(.ec-thumb)) picture{display:block;width:100%;height:100%}
