/* Custom Site Styles */

:root {
    --white-rgb: 255,255,255;
    --white: #ffffff;
    --darkgray-rgb: 39,40,49;
}

.content {
    grid-template-areas: "main sidebar";
    gap: 3rem;
}

/* Larger screens: sidebar left, main right */
@media (min-width: 992px) { /* Bootstrap's lg breakpoint */
  .content {
    grid-template-columns: 1.15fr 3fr;
    grid-template-areas: "sidebar main";
  }
}

.sidebar {
  grid-area: sidebar;
}

.main {
  grid-area: main;
}

.bd-navbar {
    padding: 0;
    background-image: linear-gradient(rgba(var(--white-rgb), 1), rgba(var(--white-rgb), 0.95));
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15),inset 0 -1px 0 rgba(255,255,255,0.15);
}

[data-bs-theme=dark] .bd-navbar {
    background-image: linear-gradient(rgba(var(--darkgray-rgb), 1), rgba(var(--darkgray-rgb), 0.95));
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
}

.navbar-nav .nav-link.active {
    font-weight: 600;
}

.sidebar .sidebar-img {
    max-width: 25%;   /* keep it small in row layout */
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

@media (min-width: 992px) { /* lg and up */
  .sidebar .sidebar-img {
    max-width: 100%;
    margin-top: 40px;
    /* let it expand when stacked */
  }
}

.sidebar .sidebar-desc {
    font-size: smaller;
    color: #4a4a4a;
}

.sidebar .alert {
    font-size: smaller;
}

.sidebar > div:first-child{
    position: -webkit-sticky;
    position: sticky;
    top: 66px;
}

.link-primary {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1)) !important;
    text-decoration: none;
}

.carousel-item {
    border-radius: 10px;
}

.carousel-inner {
    border-radius: 10px;
}

.carousel-caption {
    position: absolute;
    bottom: 0px;
    z-index: 10;
    right: 0px;
    left: 0px;
    color: #fff;
    padding: 20px;
    padding-bottom: 40px;
    text-align: left;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 80%);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.carousel-item-appicon {
    float: left;
    margin-right: 14px;
    width: 64px;
    filter: drop-shadow(rgba(0, 0, 0, 0.4) 2px 2px 6px);
    
}

.carousel-caption h5 {
    margin-bottom: 0;
    padding-top: 8px;
}

[data-bs-theme=dark] .carousel-caption h5 {
    color: white;
}

.carousel-caption .lead {
    margin-bottom: 0;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 120px;
}

[data-bs-theme=dark] .carousel-caption .lead {
    color: white;
}

.carousel-caption .btn {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(rgba(0, 0, 0, 0.4) 2px 2px 6px);
    text-shadow: none;
}

.btn {
    font-weight: 500;
}

.card-header img {
    float: left;
    width: 26px;
    margin-right: 6px;
    border-radius: 4px;
}

.card-body {
    padding: 0px;
    font-size: 0.9rem;
}

.card-body img {
    border-radius: 0px;
}

.project-card {
    margin-bottom: 12px;
    margin-top: 12px;
}

.blog-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.blog-list li {
    margin-bottom: 10px;
}

.blog-list-item-subtitle {
    color: #848484;
    font-size: smaller;
    display: block;
    line-height: 24px;
}

.blog-list a {
    font-weight: bold;
}

.blog-list-item-subtitle img {
    height: 24px;
    margin-right: 4px;
    display: inline-block;
    float: left;
}

[data-bs-theme=dark] .blog-list-item-subtitle {
    color: #efefef;
}

[data-bs-theme=dark] .sidebar .sidebar-desc {
    color: #efefef;
}

.breadcrumb {
    display: flex;
    width: fit-content;
    padding: .25rem .5rem;
    margin-bottom: 1rem;
    list-style: none;
    border-radius: .25rem;
    font-size: 0.8rem;
}

hr {
    margin: 3rem 0;
}

h4 {
    margin-top: 2rem;
}

blockquote {
    margin: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: 20px;
    
    border-left: 4px solid lightgrey;
    padding-left: 20px;
    color: #4a4a4a;
    font-size: smaller;
}

[data-bs-theme=dark] blockquote {
    color: #efefef;
}

.posts-container img {
    border-radius: 10px;
}
