/* Theme customizations: sidebar width and spacing */

:root {
    --sidebar-left-width: 250px !important;
}

.wy-nav-content {
    max-width: 75% !important;
}

.wy-menu .caption, .sidebar .caption, .bd-sidebar .sidebar-section-title {
    margin-top: 2em !important;
    margin-bottom: 1em !important;
}

/* Space between toctree blocks */
.cs-nav-toc ul {
    margin-bottom: 16px !important;
}
.cs-nav-toc ul ul {
    margin-left: 1.5em;
    padding-left: 0;
}
/* To fix the margin-left for expanded menu */
*[style*="display: initial;"] {
    display: block !important;
}

/* Reset */
.wy-menu-vertical li > a {
  font-weight: normal;
}

/* Sphinx current */
.wy-menu-vertical li.current > a,
.wy-menu-vertical li.active > a,
.wy-menu-vertical li.active li > a,
.wy-menu-vertical a[aria-current="page"] {
  font-weight: 600;
}

/* Force bold for rewritten '#' links */
.wy-menu-vertical a[href="#"] {
  font-weight: 600;
}

.cs-nav-toc li.current > a.current,
.cs-nav-toc li.active > a.active {
  font-weight: 600 !important;
}

/* Polaroid styling for images - restore original light theme only */
.polaroid {
    width: 80%;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin: 2em auto;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.polaroid img {
    width: 100%;
    display: block;
    margin: 0;
}
.polaroid .container {
    text-align: center;
    padding: 10px 20px;
}

.polaroid img.align-center {
    margin: 0 !important;
    display: block !important;
}