/* MRC Site Manager – front-end */
.msm-list, .msm-carousel, .msm-journey, .msm-social { box-sizing: border-box; }
.msm-list *, .msm-carousel *, .msm-journey * { box-sizing: border-box; }

/* Grid */
.msm-grid { display: grid; grid-template-columns: repeat(var(--msm-cols, 4), minmax(0, 1fr)); gap: var(--msm-gap, 16px); align-items: start; }
@media (max-width: 1024px) { .msm-grid { grid-template-columns: repeat(min(var(--msm-cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 767px)  { .msm-grid { grid-template-columns: repeat(min(var(--msm-cols, 4), 2), minmax(0, 1fr)); } }
@media (max-width: 480px)  { .msm-reels .msm-grid, .msm-videos .msm-grid, .msm-news .msm-grid { grid-template-columns: 1fr; } }

.msm-loadmore-wrap { text-align: center; margin: 24px 0 0; }
.msm-loadmore { background: #000; color: #fff; border: 0; border-radius: 999px; padding: 12px 32px; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .2s, opacity .2s; }
.msm-loadmore:hover { transform: translateY(-1px); opacity: .9; }

/* Carousel */
.msm-carousel { position: relative; }
.msm-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--msm-cols, 4) - 1) * var(--msm-gap, 16px)) / var(--msm-cols, 4)); gap: var(--msm-gap, 16px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 12px; }
.msm-track::-webkit-scrollbar { display: none; }
.msm-track > * { scroll-snap-align: start; }
@media (max-width: 1024px) { .msm-track { grid-auto-columns: calc((100% - var(--msm-gap, 16px)) / 2); } }
@media (max-width: 600px)  { .msm-track { grid-auto-columns: 85%; } }
.msm-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 28px; line-height: 40px; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; }
.msm-prev { left: -10px; } .msm-next { right: -10px; }
@media (max-width: 600px) { .msm-nav { display: none; } }

/* Reels – same look as the current hand-pasted embeds */
.msm-reel .instagram-media,
.msm-reel iframe.instagram-media { border-radius: 16px !important; overflow: hidden !important; box-shadow: 0 4px 20px rgba(0,0,0,.15) !important; border: none !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
.msm-reel blockquote.instagram-media { background: #fff; min-height: 420px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.msm-reel blockquote.instagram-media a { color: #000; font-weight: 600; text-decoration: none; }

/* Videos – lightweight click-to-play */
.msm-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.msm-yt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, opacity .35s; }
.msm-yt:hover img { transform: scale(1.04); opacity: .9; }
.msm-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.msm-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: #f00; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.msm-play:after { content: ""; position: absolute; left: 28px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.msm-video-title { margin: 8px 2px 0; font-size: 14px; line-height: 1.4; font-weight: 600; }

/* Gallery */
.msm-photo { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.msm-photo img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; margin: 0; transition: transform .35s ease; }
.msm-photo:hover img { transform: scale(1.05); }
.msm-carousel .msm-photo { aspect-ratio: 3 / 4; }
.msm-news-img { aspect-ratio: 16 / 10; overflow: hidden; }
.msm-news-img img { width: 100% !important; height: 100% !important; object-fit: cover; }
.msm-yt img { height: 100% !important; }
.msm-tl-card img { height: 160px !important; }

/* News cards */
.msm-news-card a { display: block; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.08); color: inherit; text-decoration: none; height: 100%; }
.msm-news-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.msm-news-body { padding: 14px 16px 18px; }
.msm-news-body time { font-size: 12px; color: #777; }
.msm-news-body h3 { font-size: 16px; line-height: 1.4; margin: 6px 0 0; }

/* Journey – replica of the current card slider */
.msm-journey { position: relative; padding: 100px 0 150px; width: 100%; overflow: hidden; }
.msm-journey:before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 17px; background: #fff; transform: translateY(-50%); z-index: 0; }
.msm-tl-progress { position: absolute; top: 50%; left: 0; width: 0; height: 8px; background: #76caff; transform: translateY(-50%); z-index: 1; }
.msm-journey .swiper { padding: 100px 0; overflow: visible; }
.msm-journey .swiper-slide { display: flex; justify-content: center; position: relative; opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .6s ease; }
.msm-journey.is-in .swiper-slide { opacity: 1; transform: none; }
.msm-tl-card { background: #111; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.25); text-align: center; width: 100%; max-width: 280px; min-height: 380px; color: #fff; position: relative; z-index: 3; display: flex; flex-direction: column; }
.msm-tl-card img { width: 100%; height: 160px; object-fit: cover; flex: 0 0 auto; }
.msm-tl-content { display: flex; flex-direction: column; justify-content: center; padding: 20px 16px; flex: 1; }
.msm-tl-year { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.msm-tl-tag { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 700; margin: 10px auto 12px; }
.msm-tl-card p { font-size: 14px; line-height: 1.5; color: #ddd; margin: 0; }
.msm-journey .swiper-slide:nth-child(odd) .msm-tl-card { margin-bottom: 120px; }
.msm-journey .swiper-slide:nth-child(even) .msm-tl-card { margin-top: 120px; }
.msm-c-orange { border: 3px solid #872896; } .msm-c-orange .msm-tl-tag { background: #872896; }
.msm-c-red    { border: 3px solid #f0c61d; } .msm-c-red .msm-tl-tag    { background: #f0c61d; }
.msm-c-blue   { border: 3px solid #007aff; } .msm-c-blue .msm-tl-tag   { background: #007aff; }
.msm-c-green  { border: 3px solid #8b3dff; } .msm-c-green .msm-tl-tag  { background: #8b3dff; }
.msm-tl-nav { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 30%; z-index: 4; }
.msm-tl-nav button { background: none; border: 0; color: #000; font-size: 44px; line-height: 1; cursor: pointer; padding: 0 10px; }
@media (max-width: 767px) {
	.msm-journey .swiper-slide:nth-child(odd) .msm-tl-card,
	.msm-journey .swiper-slide:nth-child(even) .msm-tl-card { margin-top: 0 !important; margin-bottom: 0 !important; }
	.msm-journey { padding: 40px 0 90px; }
	.msm-journey .swiper { padding: 40px 0; }
}

/* Social icons */
.msm-social { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.msm-social .msm-s { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: var(--msm-s-size, 40px); height: var(--msm-s-size, 40px); border-radius: 999px; color: #fff; font-size: calc(var(--msm-s-size, 40px) * .45); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.msm-social .msm-s span { font-size: 14px; padding-right: 14px; }
.msm-social .msm-s:has(span) { padding-left: 14px; }
.msm-social .msm-s:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.2); color: #fff; }
.msm-s-facebook { background: #1877f2; } .msm-s-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.msm-s-x { background: #000; } .msm-s-youtube { background: #ff0000; } .msm-s-whatsapp { background: #25d366; }
.msm-s-linkedin { background: #0a66c2; } .msm-s-telegram { background: #229ed9; } .msm-s-threads { background: #000; }
.msm-s-email { background: #444; } .msm-s-phone { background: #0b8a52; }
.msm-social-custom .msm-s { background: var(--msm-s-bg, #000) !important; color: var(--msm-s-color, #fff) !important; }

/* Sticky social bar – same as the current one */
.msm-social-sticky { position: fixed; top: 50%; left: 10px; transform: translateY(-50%); flex-direction: column; gap: 10px; z-index: 9999; transition: opacity .4s ease, visibility .4s ease; }
.msm-social-sticky .msm-s { width: 44px; height: 44px; min-width: 0; border-radius: 50%; background: #fff !important; color: #000 !important; font-size: 20px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.msm-social-sticky .msm-s:hover { transform: scale(1.1); box-shadow: 0 6px 14px rgba(0,0,0,.25); color: #000 !important; }
.msm-social-sticky.is-hidden { opacity: 0; visibility: hidden; }
@media (max-width: 768px) {
	.msm-social-sticky { left: 6px; gap: 8px; }
	.msm-social-sticky .msm-s { width: 38px; height: 38px; font-size: 18px; }
}
