html {
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

.header-top .header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-height: 28px;
}

.header-top .social-bx ul {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.header-top .social-bx ul li {
    float: none;
    padding: 0;
    line-height: 1;
}

.header-top .social-bx a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

.language-switch {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: 4px;
    flex: none;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 20px;
    background: #fff7e4;
    color: #53301f;
    font-family: 'Noto Sans', sans-serif;
    font-size: 12px;
    line-height: 22px;
}

.language-switch a {
    color: #53301f;
    font-weight: 700;
    padding: 0 2px;
}

.language-switch a:hover,
.language-switch a:focus-visible,
.language-switch a[aria-current] {
    color: #a82b28;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contactlist a { color: inherit; text-decoration: none; }
.contactlist a:hover { text-decoration: underline; }

.album-more-photos { display: flex; justify-content: center; margin: 4px 0 24px; }
.album-more-photos a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 6px; background: #b31d19; color: #fff; font-family: 'Noto Sans', sans-serif; font-size: 15px; font-weight: 700; text-decoration: none; }
.album-more-photos a:hover, .album-more-photos a:focus-visible { background: #8d1714; color: #fff; text-decoration: none; }
.album-more-photos a:focus-visible { outline: 3px solid #ffb900; outline-offset: 3px; }

.home-video-section .youtube-full { width: 100%; margin-left: 0; }
.home-video-section .youtube-full iframe { display: block; }
.upakram .activity-list { display: block; width: 90%; height: 450px; overflow: hidden; }
.upakram .day-header { width: 100%; border: 0; font-family: inherit; text-align: left; }
.upakram .day-header-label { display: flex; align-items: center; min-width: 0; }
.upakram .day-header-label img { flex: none; }
.upakram .day-photos-link { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 9px 14px; border-radius: 6px; background: #b31d19; color: #fff; font-family: 'Noto Sans', sans-serif; font-size: 15px; font-weight: 700; text-decoration: none; }
.upakram .day-photos-link:hover, .upakram .day-photos-link:focus-visible { background: #8d1714; color: #fff; text-decoration: none; }
.upakram .day-photos-link:focus-visible { outline: 3px solid #ffb900; outline-offset: 3px; }

.site-footer .site-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}
.site-footer .site-footer-inner.without-visitor-counter { grid-template-columns: minmax(0, 1fr) auto; }

.site-footer .footer-visitor-counter {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-self: start;
    gap: 1px;
    padding: 5px 10px;
    border: 1px solid #a88755;
    border-radius: 6px;
    background: #45403b;
    color: #fff;
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.site-footer .visitor-counter-number { color: #ffd38c; font-size: 18px; line-height: 1; }
.site-footer .copyright { font-size: 12px; }
.site-footer .footer-credit { justify-self: end; color: #fff; font-size: 12px; white-space: nowrap; }
.site-footer .footer-credit a { color: #ffd38c; text-decoration: underline; }

@media (max-width: 767px) {
    .site-footer .site-footer-inner { grid-template-columns: 1fr; gap: 4px; }
    .site-footer .site-footer-inner.without-visitor-counter { grid-template-columns: 1fr; }
    .site-footer .copyright { text-align: left; }
    .site-footer .footer-credit { justify-self: start; }
}

.wa-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    font-family: 'Noto Sans', sans-serif;
}

.wa-launcher {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 17px;
    border: 0;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 24px #0004;
    font: 700 14px/1 'Noto Sans', sans-serif;
    cursor: pointer;
}

.wa-launcher:hover, .wa-launcher:focus-visible { background: #20bd5a; color: #fff; }
.wa-launcher:focus-visible, .wa-close:focus-visible, .wa-chat-btn:focus-visible { outline: 3px solid #173e30; outline-offset: 3px; }
.wa-launcher .fa-whatsapp { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ffffff38; font-size: 20px; }

.wa-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: 320px;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 100px);
    overflow: auto;
    border-radius: 16px;
    background: #efeae2;
    box-shadow: 0 16px 40px #0005;
    color: #303030;
    text-align: left;
}

.wa-panel[hidden] { display: none; }
.wa-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #075e54; color: #fff; }
.wa-header-user { display: flex; align-items: center; gap: 11px; min-width: 0; font-size: 14px; }
.wa-header-user img { display: block; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; object-fit: cover; }
.wa-header-user strong { line-height: 1.3; }
.wa-close { flex: none; border: 0; padding: 5px; background: transparent; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.wa-body { min-height: 118px; padding: 16px; }
.wa-bubble { max-width: 92%; padding: 11px 12px; border-radius: 4px 12px 12px 12px; background: #fff; box-shadow: 0 1px 3px #0002; }
.wa-bubble strong { display: block; margin-bottom: 4px; color: #075e54; font-size: 13px; }
.wa-bubble p { margin: 0; font-size: 14px; line-height: 1.4; }
.wa-footer { padding: 12px 14px 16px; background: #f0f2f5; }
.wa-chat-btn { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border-radius: 999px; background: #25d366; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none !important; box-shadow: 0 4px 14px #25d36659; }
.wa-chat-btn:hover { background: #1ebe57; }
.wa-chat-btn .fa-whatsapp { font-size: 20px; }

.music-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(107deg, #ee5723, #ef9243);
    color: #fff;
    box-shadow: 1px 2px 8px rgba(0, 0, 0, .3);
    font-size: 22px;
    cursor: pointer;
}

.music-toggle:hover { background: #c84620; }
.music-toggle:focus-visible { outline: 3px solid #53301f; outline-offset: 3px; }
.music-toggle i { display: block; }
.music-toggle--bouncing i { animation: music-icon-bounce .65s ease-in-out 4; }

@keyframes music-icon-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-9px) scale(1.12); }
    70% { transform: translateY(2px) scale(.96); }
}

@media (prefers-reduced-motion: reduce) {
    .music-toggle--bouncing i { animation: none; }
}

.has-music-control .scroll-top { bottom: 80px; }
.has-whatsapp-widget .music-toggle { bottom: 86px; }
.has-whatsapp-widget .scroll-top { bottom: 88px; right: 29px; }
.has-whatsapp-widget.has-music-control .scroll-top { bottom: 145px; }

#photo-viewer {
    position: fixed;
    inset: 0;
    width: min(920px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #151515;
    color: #fff;
    box-shadow: 0 18px 60px #0009;
    overflow: hidden;
}

#photo-viewer:not([open]) { display: none; }
#photo-viewer::backdrop { background: rgba(0, 0, 0, .82); }

.photo-viewer-bar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
    align-items: center;
    min-height: 52px;
    padding: 4px 8px;
    gap: 4px;
}

.photo-viewer-bar button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font: 32px/1 Arial, sans-serif;
    cursor: pointer;
}

.photo-viewer-bar button:hover,
.photo-viewer-bar button:focus-visible { background: #ffffff29; }

#photo-caption {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    font: 14px/1.4 'Noto Sans', sans-serif;
}

#photo-full {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 991px) {
    .mahalakshmi-mahiti .row > .col-md-4:first-child { flex: 0 0 100%; max-width: 100%; }
    .mahalakshmi-mahiti .row > .col-md-4:nth-child(n + 2) { flex: 0 0 50%; max-width: 50%; }
    .mahalakshmi-mahiti .mahalakshmi-imgWrap,
    .mahalakshmi-mahiti .mahalakshmi-imgWrap-shlok { display: block; max-width: 320px; margin-left: auto; margin-right: auto; }

    .upakram .col-md-11,
    .upakram .col-md-2,
    .upakram .col-md-10,
    .upakram .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .upakram .offset-md-1,
    .upakram .offset-md-2,
    .upakram .offset-md-3 { margin-left: 0; }

    .upakram .upakram-img-wrap {
        position: relative;
        top: auto;
        left: auto;
        width: clamp(140px, 30vw, 200px);
        margin: 0 10px 0 auto;
        z-index: auto;
    }

    .upakram .upakram-img-wrap img { display: block; width: 100%; height: auto; }
    .upakram .position-relative { padding-top: 20px !important; padding-bottom: 0 !important; background: #ffb901; }
    .upakram .bg-yellow { padding-top: 16px !important; }
    .upakram .upakram-list,
    .upakram .navratra-upakram-list { float: none; width: 100%; margin: 0 0 30px; }
    .upakram .activity-list { width: 100%; }
}

@media (min-width: 768px) and (max-width: 1000px) {
    #cssmenu .button { top: 20px; }
    #cssmenu > ul { position: absolute; top: 91px; right: 0; }
}

@media (max-width: 767px) {
    .home-video-section { overflow: hidden; background: #000; }
    .home-video-section .youtube-full {
        position: relative;
        width: 100vw;
        width: 100dvw;
        height: auto;
        min-height: 200px;
        aspect-ratio: 16 / 9;
    }
    .home-video-section .youtube-full iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
    .upakram .activity-list { height: 300px; }
}

@media (max-width: 575px) {
    .mahalakshmi-mahiti .row > .col-md-4:nth-child(n + 2) { flex: 0 0 100%; max-width: 100%; }
    .wa-widget { right: 16px; bottom: 16px; }
    .wa-launcher { justify-content: center; width: 48px; height: 48px; min-height: 48px; padding: 0; }
    .wa-launcher span { display: none; }
    .wa-launcher .fa-whatsapp { width: auto; height: auto; background: none; font-size: 26px; }
    .music-toggle { right: 16px; bottom: 16px; width: 44px; height: 44px; }
    .has-music-control .scroll-top { bottom: 72px; right: 23px; }
    .has-whatsapp-widget .music-toggle { bottom: 78px; }
    .has-whatsapp-widget .scroll-top { bottom: 80px; right: 23px; }
    .has-whatsapp-widget.has-music-control .scroll-top { bottom: 136px; }
    body { padding-top: 110px; }
    header { height: 110px; }
    .header-top { padding: 4px 0; }
    .header-top p { font-size: 13px; line-height: 18px; }
    .header-top .header-tools { flex-direction: row; align-items: center; gap: 4px; }
    .header-top .social-bx ul { gap: 6px; }
    .header-top .social-bx ul li { font-size: 14px; }
    .header-top .social-bx a { min-width: 18px; min-height: 18px; }
    .language-switch { padding: 1px 4px; font-size: 11px; }
    .logo { min-width: 90px; max-width: 90px; }
    #photo-viewer { width: calc(100vw - 24px); }
}

@media (max-width: 349px) {
    body { padding-top: 135px; }
    header { height: 135px; }
    .header-top .header-tools { flex-direction: column; align-items: flex-end; gap: 2px; }
}
