.mg-albums{width:100%;max-width:1140px;margin:0 auto;color:#f5f5f5;font-family:Inter,sans-serif}
.mg-albums *{box-sizing:border-box}
.mg-albums [hidden]{display:none!important}
.mg-albums .mg-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.mg-albums .mg-filters{display:flex;flex-direction:column;align-items:center;gap:14px;margin-bottom:24px}
.mg-albums .mg-yearpick{width:100%;max-width:420px}
.mg-albums .mg-select{display:block;width:100%;min-height:44px;margin:0;padding:8px 40px 8px 14px;border:1px solid #ff3344!important;border-radius:8px;background-color:#0e0e0e!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:20px 20px;color:#f5f5f5!important;font-family:"Inter",sans-serif;font-size:14px;line-height:1.4;box-shadow:none;-webkit-appearance:none;appearance:none;cursor:pointer}
.mg-albums .mg-select option,.mg-albums .mg-select optgroup{background:#0e0e0e;color:#f5f5f5}
.mg-albums .mg-select:focus-visible{outline:2px solid #f5f5f5;outline-offset:4px}
.mg-albums .mg-bar{display:flex;align-items:center;gap:20px;margin-bottom:24px}
.mg-albums .mg-heading{flex:1;min-width:0;text-align:center}
.mg-albums .mg-title{margin:0;color:#f5f5f5;font-family:"Anton",sans-serif;font-size:36px;font-weight:400;line-height:1.2;letter-spacing:0;text-transform:none;overflow-wrap:anywhere}
.mg-albums .mg-date{margin:4px 0 0;color:#ff3344;font-family:"Anton",sans-serif;font-size:20px;font-weight:400;line-height:1.2;letter-spacing:.04em}
.mg-albums .mg-date:empty{display:none}
.mg-albums .mg-count{margin:8px 0 0;font-size:12px;line-height:1.4;color:#b3b3b3}
.mg-albums .mg-count:empty{display:none}
.mg-albums button{position:relative;overflow:visible;font-family:"Inter",sans-serif;cursor:pointer;border:0;transition:background-color .2s ease}
.mg-albums button,.mg-albums button:focus{background:#ff3344!important;color:#f5f5f5!important;box-shadow:none}
.mg-albums .mg-arrow{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border-radius:8px;font-size:32px;line-height:1}
.mg-albums button:hover,.mg-albums button:active,.mg-albums button:focus-visible{background:#ff6673!important;color:#f5f5f5!important}
.mg-albums button:focus-visible,.mg-albums a:focus-visible{outline:2px solid #f5f5f5;outline-offset:4px}
.mg-albums .mg-viewport{overflow:hidden;padding:4px;margin:-4px}
/* Room for the hover glow around the outer photos (mouse devices only) */
@media(hover:hover) and (pointer:fine){@supports (overflow-clip-margin:24px){.mg-albums .mg-viewport{overflow:clip;overflow-clip-margin:24px}}}
.mg-albums .mg-grid{display:block;column-count:3;column-gap:14px}
.mg-albums .mg-photo{display:block;width:100%;min-width:0;margin:0 0 14px;break-inside:avoid;page-break-inside:avoid;background:#171717;border-radius:4px;overflow:hidden}
.mg-albums .mg-photo img{display:block;width:100%;max-width:100%;height:auto;margin:0;border:0;border-radius:0;transition:transform .35s ease}
/* Photo hover (mouse only): slight zoom, red outline and glow, like the hero social icons */
.mg-albums .mg-photo{position:relative;transition:box-shadow .2s ease}
.mg-albums .mg-photo::after{content:"";position:absolute;inset:0;box-sizing:border-box;border:1px solid transparent;border-radius:inherit;pointer-events:none;transition:border-color .2s ease}
@media(hover:hover) and (pointer:fine){.mg-albums .mg-photo:hover{z-index:1;box-shadow:0 6px 18px rgba(179,25,43,.25)}.mg-albums .mg-photo:hover::after{border-color:#b3192b}.mg-albums .mg-photo:hover img{transform:scale(1.04)}}
.mg-albums .mg-message{column-span:all;margin:0;padding:32px 0;text-align:center;font-size:14px;line-height:1.5;color:#b3b3b3}
.mg-albums .mg-retry{min-height:44px;margin-left:8px;padding:8px 18px;border-radius:20px;font-size:13px;font-weight:700}
.mg-albums .mg-open{display:block;margin:24px auto 0;padding:12px 26px;min-height:44px;border-radius:20px;font-size:14px;font-weight:700;line-height:1.4}
.mg-albums .mg-lightbox{position:fixed;inset:0;width:min(1100px,calc(100vw - 24px));max-width:none;height:auto;max-height:94vh;max-height:94dvh;margin:auto;padding:54px 14px 14px;border:1px solid #54595f;border-radius:8px;background:#0e0e0e;color:#f5f5f5;overflow:auto}
.mg-albums .mg-lightbox:not([open]){display:none}
.mg-lightbox::backdrop{background:rgba(0,0,0,.9)}
.mg-albums .mg-close{display:grid;place-items:center;position:absolute;top:6px;right:8px;width:40px;height:40px;padding:0;border-radius:6px;font-size:28px}
/* Fixed-height column: the photo takes whatever height is left after the caption, arrows and previews, so everything fits on screen without scrolling */
.mg-albums .mg-lightbox[open]{display:flex;flex-direction:column;height:94vh;height:94dvh;box-sizing:border-box}
.mg-albums .mg-lightbox figure{flex:1 1 auto;min-height:0;margin:0;display:grid;grid-template-rows:minmax(0,1fr) auto auto;grid-template-columns:minmax(0,1fr)}
.mg-albums .mg-full{grid-row:1;grid-column:1}
.mg-albums .mg-lightbox-nav,.mg-albums .mg-strip{flex:0 0 auto}
/* The photo keeps its own shape inside a fixed-height row, so the rounded corners sit on the photo itself (same 4px as on the homepage) and the caption never jumps */
.mg-albums .mg-full{display:block;place-self:center;width:auto;height:auto;max-width:100%;max-height:100%;border-radius:4px}
.mg-albums .mg-caption{margin-top:14px;text-align:center;font-family:"Inter",sans-serif!important;font-size:18px;font-weight:400;font-style:normal;line-height:1.5;color:#f5f5f5;overflow-wrap:anywhere}
.mg-albums .mg-caption-title{display:block;font-family:"Anton",sans-serif;font-size:22px;line-height:1.2}
.mg-albums .mg-caption-date{display:block;margin-top:2px;font-family:"Anton",sans-serif;font-size:16px;line-height:1.2;letter-spacing:.04em;color:#ff3344}
.mg-albums .mg-lightbox-nav{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:12px}
/* Thumbnail strip under the lightbox arrows: about 9 previews on desktop, 7 on phones */
.mg-albums .mg-strip{--mg-thumb:64px;--mg-thumb-gap:10px;--mg-thumb-radius:10px;position:relative;width:min(100%,calc(9 * var(--mg-thumb) + 8 * var(--mg-thumb-gap)));margin:6px auto 0;overflow:hidden;padding:10px 0 12px}
.mg-albums .mg-strip[hidden]{display:none}
.mg-albums .mg-strip-track{display:flex;gap:var(--mg-thumb-gap);width:max-content;transition:transform .45s cubic-bezier(.16,1,.3,1);will-change:transform}
.mg-albums .mg-strip-track.is-instant{transition:none}
/* Same look as the social icons in the hero: rounded square, thin border, lift with a red glow */
.mg-albums .mg-strip button,.mg-albums .mg-strip button:focus,.mg-albums .mg-strip button:hover{flex:0 0 var(--mg-thumb);width:var(--mg-thumb);height:var(--mg-thumb);padding:0;box-sizing:border-box;border:1px solid rgba(255,255,255,.12);border-radius:var(--mg-thumb-radius);overflow:hidden;background:#1d1d1d!important;opacity:.5;outline:0;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,opacity .25s ease}
.mg-albums .mg-strip button.is-current{opacity:1;border-color:#b3192b;box-shadow:0 6px 18px rgba(179,25,43,.25)}
@media(hover:hover){.mg-albums .mg-strip button:hover{opacity:1;transform:translateY(-3px) scale(1.05);border-color:#b3192b;box-shadow:0 6px 18px rgba(179,25,43,.25)}}
.mg-albums .mg-strip button:focus-visible{opacity:1;outline:2px solid #fff;outline-offset:-3px}
.mg-albums .mg-strip button::after{display:none}
.mg-albums .mg-strip img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
@media(max-width:767px){.mg-albums .mg-strip{--mg-thumb:44px;--mg-thumb-gap:6px;--mg-thumb-radius:7px;width:min(100%,calc(7 * var(--mg-thumb) + 6 * var(--mg-thumb-gap)))}}
@media(prefers-reduced-motion:reduce){.mg-albums .mg-strip-track,.mg-albums .mg-strip button{transition:none}.mg-albums .mg-strip button:hover{transform:none}}
.mg-albums .mg-lightbox-nav button{display:grid;place-items:center;width:44px;height:44px;padding:0;font-size:30px;line-height:1;border-radius:6px}
.mg-albums .mg-photo-count{font-family:"Inter",sans-serif!important;font-size:16px;font-weight:400;line-height:1.5;color:#f5f5f5}
.mg-albums .mg-arrow svg,.mg-albums .mg-lightbox-nav button svg,.mg-albums .mg-close svg{display:block;width:24px;height:24px;margin:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transform:none;pointer-events:none}
@media(max-width:767px){.mg-albums .mg-filters{margin-bottom:18px}.mg-albums .mg-bar{gap:10px;margin-bottom:18px}.mg-albums .mg-grid{column-count:2;column-gap:10px}.mg-albums .mg-photo{margin-bottom:10px}.mg-albums .mg-title{font-size:26px}.mg-albums .mg-date{font-size:17px}.mg-albums .mg-open{font-size:12px}.mg-albums .mg-count{font-size:11px}.mg-albums .mg-caption{font-size:16px}.mg-albums .mg-caption-title{font-size:18px}.mg-albums .mg-caption-date{font-size:14px}.mg-albums .mg-photo-count{font-size:14px}}
.mg-albums .mg-swipe{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.mg-albums .mg-photo{-webkit-tap-highlight-color:transparent}
.mg-albums .mg-photo img,.mg-albums .mg-full{-webkit-user-drag:none}
.mg-albums .mg-lightbox{overflow-x:hidden}
/* Click outline on buttons; uses transforms so it does not change the layout */
.mg-albums button::after{content:"";position:absolute;inset:0;box-sizing:border-box;border:2px solid #ff3344;border-radius:inherit;background:transparent;opacity:0;pointer-events:none;transform-origin:center}
.mg-albums button.mg-pulsing::after{animation:meredyt-gallery-wave 650ms cubic-bezier(.16,1,.3,1)}
@keyframes meredyt-gallery-wave{from{transform:scale(1);opacity:.9}to{transform:scale(var(--mg-wave-x,1.6),var(--mg-wave-y,1.6));opacity:0}}
@media(prefers-reduced-motion:reduce){.mg-albums button{transition:none}.mg-albums button.mg-pulsing::after{animation:none}.mg-albums .mg-photo,.mg-albums .mg-photo::after,.mg-albums .mg-photo img{transition:none}.mg-albums .mg-photo:hover img{transform:none}}

/* "Zobrazit celou galerii" button in the same style as "Všechny koncerty": cut corners, red background, lighter red on hover */
.mg-albums .mg-open {
  --mb-cut: 14px;
  padding: 17px;
  min-height: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  background: #FF3344 !important;
  color: #F5F5F5 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  clip-path: polygon(0 0, calc(100% - var(--mb-cut)) 0, 100% var(--mb-cut), 100% 100%, var(--mb-cut) 100%, 0 calc(100% - var(--mb-cut)));
  transition: background-color .2s ease, color .2s ease;
}
.mg-albums .mg-open:hover {
  background: #FF6673 !important;
  color: #F5F5F5 !important;
}
.mg-albums .mg-open:focus-visible {
  outline: none !important;
  box-shadow: inset 0 0 0 2px #F5F5F5 !important;
}
/* The gallery's own click outline would be clipped by the cut corners; click-effects.js draws it instead */
.mg-albums .mg-open::after { display: none; }

@media (max-width: 767px) {
  .mg-albums .mg-open { --mb-cut: 10px; padding: 12px 20px; font-size: 14px; font-weight: 600; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-albums .mg-open { transition: none; }
}

/* Long gallery names: balanced lines everywhere; on phones "Place – Event" becomes two lines without the dash */
.mg-albums .mg-title,.mg-albums .mg-caption-title{text-wrap:balance}
@media(max-width:767px){
.mg-albums .mg-title{font-size:23px;line-height:1.15}
.mg-albums .mg-t-dash{display:none}
.mg-albums .mg-t-line{display:block}
.mg-albums .mg-t-line+.mg-t-dash+.mg-t-line{margin-top:2px}
/* Smaller arrows in the lightbox on phones */
.mg-albums .mg-lightbox-nav{gap:14px;margin-top:8px}
.mg-albums .mg-lightbox-nav button{width:36px;height:36px;border-radius:5px}
.mg-albums .mg-lightbox-nav button svg{width:20px;height:20px}
}

/* Phones: arrows the same size as in the lightbox, centred on the title + date block.
   The title always reserves two lines (a one-line name sits on the lower one, right above the date),
   so the block keeps its height and the arrows never jump between galleries. */
@media(max-width:767px){
.mg-albums .mg-bar{align-items:flex-start}
.mg-albums .mg-title{display:flex;flex-direction:column;justify-content:flex-end;min-height:2.3em}
.mg-albums .mg-arrow{flex:0 0 36px;width:36px;height:36px;border-radius:5px;margin-top:21px}
.mg-albums .mg-arrow svg{width:20px;height:20px}
}

/* Phones: previews directly under the photo (moved there by gallery.js) */
@media(max-width:767px){.mg-albums .mg-lightbox figure .mg-strip{margin:10px auto 0}}

/* Swipe hint: a small, quiet arrow icon in the middle of the photo, shown on touch screens until the first swipe */
.mg-albums .mg-swipe-hint{grid-row:1;grid-column:1;place-self:center;z-index:1;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(14,14,14,.45);color:#f5f5f5;pointer-events:none;opacity:0;transition:opacity .4s ease}
.mg-albums .mg-swipe-hint.is-on{opacity:.85}
.mg-albums .mg-swipe-hint svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mg-albums .mg-swipe-hint.is-on svg{animation:mg-hint-sway 1.1s ease-in-out .45s 2}
@keyframes mg-hint-sway{0%,100%{transform:none}35%{transform:translateX(-4px)}70%{transform:translateX(4px)}}

