/* Gallery heading and mosaic sit directly on the page, without a glass card. */
.gr221-photo-mosaic{display:grid;width:100%;gap:4px;margin:24px auto 28px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.gr221-photo-row{display:grid;grid-template-columns:2.5fr 1fr;aspect-ratio:2.12;gap:4px;min-width:0}
.gr221-photo-row:nth-child(2){grid-template-columns:2fr 1fr 1fr 1fr;aspect-ratio:3.75}
.gr221-photo-row:nth-child(3){grid-template-columns:1fr 1.7fr 1.3fr 1fr;aspect-ratio:3.75}
.gr221-photo-link{position:relative;display:block;min-width:0;min-height:0;overflow:hidden;border:0;border-radius:12px;background:#080808;touch-action:manipulation}
.gr221-photo-link img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--photo-position,50% 50%)}
.gr221-photo-link:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media(hover:hover) and (pointer:fine){.gr221-photo-link:hover::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 2px var(--accent);pointer-events:none}}
.gr221-photo-viewer{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;margin:0;border:0;padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:#050505f5;color:var(--text);font:500 .875rem/1.4 var(--body)}
.gr221-photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.gr221-photo-viewer::backdrop{background:#000e}
.gr221-photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gr221-photo-counter{color:var(--muted);padding:0 4px}
.gr221-photo-tools{display:flex;gap:10px}
.gr221-photo-control.gr221-share{width:48px;height:48px;min-height:48px;padding:0;border-radius:50%}
.gr221-photo-media{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden;touch-action:pan-y pinch-zoom}
.gr221-photo-media img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;user-select:none;-webkit-user-select:none}
.gr221-photo-media img[hidden]{visibility:hidden}
.gr221-photo-media.is-zoomed{display:block;overflow:auto;touch-action:pan-x pan-y pinch-zoom}
.gr221-photo-media.is-zoomed img{width:auto;height:auto;max-width:none;max-height:none;margin:auto}
.gr221-photo-bottom{display:flex;align-items:center;justify-content:center;gap:24px;min-height:48px}
.gr221-photo-progress{min-width:20px;text-align:center;color:var(--muted)}
.gr221-photo-progress:empty{display:none}
@media(max-width:600px){.gr221-photo-mosaic{gap:3px;margin:20px auto 24px}.gr221-photo-row{gap:3px}.gr221-photo-viewer[open]{gap:8px}}

/* Mobile keeps all ten photos. Desktop follows the seven-photo annotated layout. */
@media(min-width:1024px){
 .gr221-photo-mosaic{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));aspect-ratio:2.6;margin-top:40px}
 .gr221-photo-row{display:contents}
 .gr221-photo-link{display:none}
 .gr221-photo-link[data-photo="1"]{display:block;grid-area:1 / 1 / 2 / 6}
 .gr221-photo-link[data-photo="4"]{display:block;grid-area:1 / 6 / 2 / 8}
 .gr221-photo-link[data-photo="8"]{display:block;grid-area:1 / 8 / 2 / 13}
 .gr221-photo-link[data-photo="2"]{display:block;grid-area:2 / 1 / 3 / 4}
 .gr221-photo-link[data-photo="9"]{display:block;grid-area:2 / 4 / 3 / 7}
 .gr221-photo-link[data-photo="5"]{display:block;grid-area:2 / 7 / 3 / 10}
 .gr221-photo-link[data-photo="7"]{display:block;grid-area:2 / 10 / 3 / 13}
}

/* The standalone guide introduction sits directly on the page background. */
#dialkove-treky .guide-cover.guide-feature.gr221-intro-plain{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#dialkove-treky .gr221-intro-plain .guide-copy{padding:20px 0 8px;justify-content:flex-start;gap:0}
@media(min-width:1200px){#dialkove-treky .gr221-intro-plain .guide-copy{padding:0 0 0 20px}}

/* Keep guide sharing beside its title, with a compact touch target on phones. */
.gr221-intro-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-bottom:16px}
.guide-feature .gr221-intro-heading h1{flex:1;min-width:0;margin:0}
.gr221-intro-heading .gr221-share{flex:none}
@media(max-width:600px){.gr221-intro-heading .gr221-share{box-sizing:border-box;min-height:48px;padding:12px;gap:7px}.gr221-intro-heading .gr221-share span{display:inline}}
@media(max-width:360px){.gr221-intro-heading{flex-wrap:wrap}.guide-feature .gr221-intro-heading h1{flex-basis:100%}}

/* Keep the gallery's height until the opening detail has grown to full height. */
#gr221-series:has(#gr221-panel.gr221-gear-open)+#gr221-photos,
#gr221-series:has(#gr221-panel :is(.stay-toggle,.collection-route)[aria-expanded="true"]):not(:has(#gr221-panel :is(.stay-panel,.route-panel)[data-panel-motion="opening"]))+#gr221-photos{display:none}
#gr221-series:has(#gr221-panel :is(.stay-panel,.route-panel)[data-panel-motion="opening"])+#gr221-photos{visibility:hidden}
html:has(#gr221-panel :is(.stay-toggle,.collection-route)[aria-expanded="true"]){overflow-anchor:none}

/* Match the upright NAJNOVŠIE VIDEO subsection typography. */
.gr221-gallery-section{margin-top:24px}
#gr221-gallery-heading{font-family:var(--body);font-weight:800;font-style:normal;letter-spacing:-.025em;margin:0}
.gr221-gallery-section>.shelf-heading{margin-bottom:20px}
.gr221-gallery-section>.gr221-photo-mosaic{margin-top:0}
@media(max-width:600px){.gr221-gallery-section{margin-top:20px}}
@media(min-width:1024px){.gr221-gallery-section{margin-top:40px}}

/* Desktop reading flow wraps around the cover instead of trapping paragraphs in a column. */
@media(min-width:1200px){
 #dialkove-treky .guide-cover.guide-feature.gr221-intro-plain{display:flow-root}
 #dialkove-treky .gr221-intro-plain>.guide-visual{float:left;display:block;width:calc(50% - 6px);margin:0 32px 0 0}
 #dialkove-treky .gr221-intro-plain>.guide-copy,
 #dialkove-treky .gr221-intro-plain>.gr221-intro-ending{display:contents;container-type:normal}
 #dialkove-treky .gr221-intro-plain .gr221-intro-heading{width:auto;margin-bottom:16px}
 #dialkove-treky .gr221-intro-plain .guide-description{max-width:none;margin:0 0 16px;text-align:justify;text-align-last:left;hyphens:auto;-webkit-hyphens:auto;hyphenate-limit-chars:6 3 3;overflow-wrap:normal;word-break:normal}
 #dialkove-treky .gr221-intro-plain .gr221-intro-ending>.guide-description:last-child{margin-bottom:0}
}

.gr221-intro-toggle {
  display: none;
}

@media (max-width: 767px) {
  .gr221-intro-toggle:not([hidden]) {
    display: inline-block;
    align-self: flex-end;
    min-height: 44px;
    margin: 0 0 8px;
    padding: 0;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--accent);
    font: 600 .9375rem/1.4 var(--body);
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
    touch-action: manipulation;
  }

  .gr221-intro-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .gr221-intro-plain[data-intro-collapsed] :is(#gr221-intro-followup, #gr221-intro-practical) {
    display: none;
  }
}
