/*
 Theme Name:   Toddly Child
 Theme URI:    http://example.com/toddly-child
 Description:  Child theme for Toddly
 Author:       Atish
 Template:     toddly
 Version:      1.0
*/

/* Add your custom styles below. These will override Toddly's defaults. */

.vs-body,
html {
    scrollbar-width: none; /* Firefox */
}

.vs-body::-webkit-scrollbar,
html::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Extra-compact sticky header */
.vs-header .sticky-wrapper {
    min-height: 44px;
}

.vs-header .sticky-active {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
    background-color: var(--vs-white-color);
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.06);
    padding-top: 0;
    padding-bottom: 0;
}

/* Slim down header logo block to reduce overall header height */
.vs-header__logo {
    padding-top: 2px;
    padding-bottom: 2px;
    margin-left: -140px; /* shift logo slightly left */
}

.vs-header__logo img {
    max-height: 80px !important;
    height: auto;
    width: auto;
}

/* Adjust for WordPress admin bar when logged in */
body.admin-bar .vs-header .sticky-active {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .vs-header .sticky-active {
        top: 46px;
    }
}

.more-gallery-grid {
    row-gap: 30px;
    margin-bottom: 40px;
}

.more-gallery-grid .more-gallery-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 16px;
}

/* Hide breadcrumb title bar across the site */
.breadcrumb-wrapper {
    display: none !important;
}

/* Hide breadcrumb title bar on selected pages */
body.no-breadcrumb-bar .breadcrumb-wrapper {
    display: none;
}

/* Remove gallery hover overlay & zoom on Gallery page */
body.no-breadcrumb-bar .vs-gallery::after {
    opacity: 0 !important;
    transform: none !important;
    background: none !important;
}

body.no-breadcrumb-bar .vs-gallery__hover {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
}

body.no-breadcrumb-bar .vs-gallery__image,
body.no-breadcrumb-bar .vs-gallery:hover .vs-gallery__image {
    transform: none !important;
}

/* Remove gallery hover overlay & zoom on Home "Our Gallery For Kids" section */
body.home .vs-gallery--area .vs-gallery::before,
body.home .vs-gallery--area .vs-gallery::after,
body.page-id-25 .vs-gallery--area .vs-gallery::before,
body.page-id-25 .vs-gallery--area .vs-gallery::after {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    background: none !important;
    border-color: transparent !important;
}

body.home .vs-gallery--area .vs-gallery__hover,
body.page-id-25 .vs-gallery--area .vs-gallery__hover {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    pointer-events: none !important;
}

body.home .vs-gallery--area .vs-gallery__image,
body.home .vs-gallery--area .vs-gallery:hover .vs-gallery__image,
body.page-id-25 .vs-gallery--area .vs-gallery__image,
body.page-id-25 .vs-gallery--area .vs-gallery:hover .vs-gallery__image {
    transform: none !important;
}

/* Spacing and offset for "More Photos" (School Gallary) page */
.page-template-page-more-gallery .page-header {
    padding-top: 180px; /* push title well below sticky header */
    margin-bottom: 40px;
}

@media (max-width: 767px) {
    .page-template-page-more-gallery .page-header {
        padding-top: 140px;
    }
}

/* Simple lightbox for "More Photos" page */
.more-gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.more-gallery-lightbox.is-open {
    display: flex;
}

.more-gallery-lightbox__inner {
    position: relative;
    max-width: min(900px, 95vw);
}

.more-gallery-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 80px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

.more-gallery-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Admission amenities "Load More" modal */
.admission-amenities-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.admission-amenities-modal.is-open {
    display: flex;
}
.admission-amenities-modal__content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 520px;
    width: 90%;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    font-family: var(--vs-body-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}
.admission-amenities-modal__title {
    font-family: var(--vs-title-font, inherit);
    font-weight: 800;
    font-size: 22px;
    margin: 0 0 12px;
    color: var(--vs-title-color, #25283e);
}
.admission-amenities-modal__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admission-amenities-modal__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--vs-body-color, #5b5a7b);
}
.admission-amenities-modal__bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--vs-theme-color2, #D18109);
    margin-top: 7px;
}
.admission-amenities-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: var(--vs-title-color, #25283e);
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.admission-amenities-modal__close:hover {
    background: var(--vs-theme-color2, #D18109);
    color: #ffffff;
}

/* Extra safety: keep main header sticky at top */
.vs-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

body.admin-bar .vs-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .vs-header {
        top: 46px;
    }
}

/* Make Toddly "room" cards equal height on inner pages (not on Home) */
body.page:not(.home) .vs-room {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 280px;
}

/* Sidebar gallery: keep boxes fixed size and crop images (used in footer gallery) */
.sidebar-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sidebar-gallery .gallery-thumb {
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
}

.sidebar-gallery .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
    transition: none !important;
}

/* Remove all hover overlay/zoom effects for sidebar gallery */
.sidebar-gallery .gallery-thumb,
.sidebar-gallery .gallery-thumb::before,
.sidebar-gallery .gallery-thumb .gal-btn {
    transition: none !important;
}

.sidebar-gallery .gallery-thumb::before {
    opacity: 0 !important;
    visibility: hidden !important;
    background: transparent !important;
}

.sidebar-gallery .gallery-thumb .gal-btn {
    display: none !important;
}

.sidebar-gallery .gallery-thumb:hover,
.sidebar-gallery .gallery-thumb:hover::before,
.sidebar-gallery .gallery-thumb:hover .gal-btn,
.sidebar-gallery .gallery-thumb:hover img {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-color: inherit !important;
}

/* Disable dropdown / megamenu specifically for the Blog menu item */
.vs-menu li.sp-blog-no-dropdown .sub-menu,
.vs-menu li.sp-blog-no-dropdown .vs-megamenu,
.vs-menu li.sp-blog-no-dropdown .megamenu-wrapper,
.vs-menu li.sp-blog-no-dropdown:hover .sub-menu,
.vs-menu li.sp-blog-no-dropdown:hover .vs-megamenu,
.vs-menu li.sp-blog-no-dropdown:hover .megamenu-wrapper {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 1. Force the header content to a consistent centered width everywhere */
.vs-header .container.container--custom {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Make Franchise hero align with the same grid as the header */
.page-template-page-franchise #franchise-page section:first-of-type {
    padding-left: 0;
    padding-right: 0;
}
/* Target the inner hero wrapper div on the franchise page */
.page-template-page-franchise #franchise-page section:first-of-type > div.relative.z-20 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transform: none !important; /* keep hero text centered */
}

/* 3. Make Blog hero (or first section) align with the header as well */
.page-template-page-blog .blog-hero,
.page-template-page-blog .blog-root > section:first-of-type {
    padding-left: 0;
    padding-right: 0;
}
.page-template-page-blog .blog-hero > .container,
.page-template-page-blog .blog-root > section:first-of-type > .container.container--custom {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Franchise "Begin Your Journey" card icon */
.franchise-vision-icon {
    background-color: #a60c56 !important;
    border-radius: 18px;
}

.franchise-vision-icon .material-symbols-outlined {
    font-size: 32px;
    line-height: 1;
}

/* Final override: header logo size */
.vs-header__logo img.img-fluid.logo-img {
    max-height: none !important;
    height: auto;
    width: auto;
    transform: scale(1.2);
    transform-origin: left center;
}