/* MAMMAL Galéria – farbu tlačidiel zmeníš cez --mg-accent */
.mg-gallery {
	--mg-accent: #d71920;
	--mg-accent-text: #fff;
	--mg-dark: #111;
	--mg-radius: 10px;
	margin: 0 auto 40px;
	box-sizing: border-box;
}
.mg-gallery *, .mg-gallery *::before, .mg-gallery *::after { box-sizing: border-box; }
.mg-gallery [hidden] { display: none !important; }

.mg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: 8px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none !important;
	cursor: pointer; transition: transform .1s, filter .15s, background .15s; white-space: normal; text-align: center;
}
.mg-btn:active { transform: translateY(1px); }
.mg-btn--accent { background: var(--mg-accent); color: var(--mg-accent-text) !important; }
.mg-btn--accent:hover { filter: brightness(1.1); }
.mg-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.mg-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.mg-buy-form { margin: 0; }

.mg-notice { padding: 14px 18px; border-radius: var(--mg-radius); margin: 0 0 20px; font-weight: 600; }
.mg-notice--ok { background: #e7f7ec; color: #0b6b2e; border: 1px solid #b6e6c5; }
.mg-notice--info { background: #eef4fb; color: #1d4f86; border: 1px solid #c7dbf1; }
.mg-notice--warn { background: #fff6e0; color: #7a5300; border: 1px solid #f0d9a0; }

/* Zoznam podujatí */
.mg-allpass, .mg-buy, .mg-owned, .mg-owned-all {
	display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
	background: var(--mg-dark); color: #fff; border-radius: var(--mg-radius); padding: 20px 24px; margin: 0 0 24px;
}
.mg-owned-all { font-weight: 600; background: #0b6b2e; }
.mg-allpass-text, .mg-buy-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.mg-allpass-text strong, .mg-buy-text strong { font-size: 18px; }
.mg-allpass-text span, .mg-buy-text span { opacity: .75; font-size: 14px; }
.mg-buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mg-owned { background: #0b6b2e; }
.mg-owned .mg-btn--accent { background: #fff; color: #0b6b2e !important; }

.mg-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.mg-card {
	display: flex; flex-direction: column; border-radius: var(--mg-radius); overflow: hidden;
	background: var(--mg-dark); color: #fff !important; text-decoration: none !important;
	transition: transform .15s, box-shadow .15s;
}
.mg-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.mg-card-img { position: relative; display: block; aspect-ratio: 3 / 2; background: #222; overflow: hidden; }
.mg-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.mg-card:hover .mg-card-img img { transform: scale(1.04); }
.mg-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.mg-card-title { font-size: 20px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.mg-card-meta { font-size: 13px; opacity: .7; }
.mg-badge { position: absolute; top: 10px; left: 10px; background: #0b6b2e; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* Detail podujatia */
.mg-back { display: inline-block; margin: 0 0 12px; text-decoration: none; font-weight: 600; opacity: .8; }
.mg-back:hover { opacity: 1; }
.mg-head { margin: 0 0 18px; }
.mg-title { margin: 0 0 4px; text-transform: uppercase; }
.mg-meta { margin: 0; opacity: .7; }

.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.mg-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: #222; }
.mg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s, opacity .2s; }
.mg-photo:hover img { transform: scale(1.05); opacity: .9; }
.mg-empty { opacity: .7; }

@media (max-width: 600px) {
	.mg-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
	.mg-events { grid-template-columns: 1fr; }
	.mg-allpass, .mg-buy, .mg-owned { padding: 16px; }
	.mg-buy-actions, .mg-buy-actions .mg-buy-form, .mg-buy-actions .mg-btn, .mg-allpass .mg-buy-form, .mg-allpass .mg-btn, .mg-owned .mg-btn { width: 100%; }
}

/* Lightbox */
html.mg-lb-lock { overflow: hidden; }
.mg-lb { position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,.97); display: none; }
.mg-lb.is-open { display: block; }
.mg-lb-stage { position: absolute; inset: 0 0 72px; display: flex; align-items: center; justify-content: center; padding: 16px 64px; }
.mg-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.mg-lb button { font-family: inherit; }
.mg-lb-close, .mg-lb-prev, .mg-lb-next {
	position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
	width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 48px; padding: 0; text-align: center; z-index: 2;
}
.mg-lb-close:hover, .mg-lb-prev:hover, .mg-lb-next:hover { background: rgba(255,255,255,.25); }
.mg-lb-close { top: 12px; right: 12px; }
.mg-lb-prev { left: 12px; top: calc(50% - 60px); }
.mg-lb-next { right: 12px; top: calc(50% - 60px); }
.mg-lb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; display: flex; align-items: center; justify-content: center; gap: 20px; color: #fff; padding: 0 16px; }
.mg-lb-count { opacity: .7; font-size: 14px; }
.mg-lb-btn {
	background: #d71920; color: #fff !important; border: 0; border-radius: 8px; padding: 11px 18px;
	font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none !important;
}
.mg-lb-btn:hover { filter: brightness(1.1); }
.mg-lb-dl { background: #0b6b2e; }
@media (max-width: 600px) {
	.mg-lb-stage { padding: 8px; }
	.mg-lb-prev, .mg-lb-next { top: auto; bottom: 12px; width: 44px; height: 44px; line-height: 44px; }
	.mg-lb-bar { padding: 0 64px; gap: 10px; flex-wrap: wrap; justify-content: center; }
	.mg-lb-count { display: none; }
}

/* Rozmazané náhľady (kým človek nezaplatí) */
.mg-blur .mg-photo img:not(.is-clear), .mg-blur .mg-card-img img:not(.is-clear) { filter: blur(8px); transform: scale(1.12); }
.mg-blur .mg-photo:hover img:not(.is-clear) { transform: scale(1.15); opacity: 1; }
.mg-blur .mg-card:hover .mg-card-img img:not(.is-clear) { transform: scale(1.15); }
.mg-lb-stage { overflow: hidden; }
.mg-lb--blur .mg-lb-stage img:not(.is-clear) { width: 100%; height: 100%; object-fit: contain; filter: blur(14px); }
.mg-photo--pending { background: #1c1c1c; }
