#single {
    padding: 60px 0;
    line-height: 1.7em;
    font-size: 17px;
}

.project-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

#single > .container {
    position: relative;
    z-index: 1;
}

.project-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, var(--background-color) 85%);
}

.project-banner-video {
    overflow: hidden;
}

.project-banner-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#single .title > h1 {
    opacity: 0.8;
    color: var(--text-color) !important;
}

#single .title small {
    opacity: 0.7;
}

#single .featured-image {
    padding: 1rem;
    padding-top: 0;
}

#single .featured-image img {
    border-radius: 1rem;
    box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
    margin-bottom: 1rem;
    background-color: var(--secondary-color);
}

#single .page-content img {
    max-width: 100%;
    border-radius: 1rem;
    cursor: zoom-in;
}

#single .page-content video {
    max-width: 100%;
    border-radius: 1rem;
    cursor: zoom-in;
}

#single .page-content a {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color) !important;
    position: relative;
}

#single .page-content a::before {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 5px 2px;
    background-repeat: repeat-x;
    z-index: 0;
}

#single .page-content a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    z-index: 1;
    transition: width 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

#single .page-content a:hover::after {
    width: 100%;
}

#single .page-content h1, #single .page-content h2, #single .page-content h3, #single .page-content h4, #single .page-content h5, #single .page-content h6 {
    color: var(--text-link-color) !important;
    margin-top: 1.4em;
    margin-bottom: 0.35em;
    opacity: 0.9;
}

#single .page-content h1 {
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--primary-color);
}

#single .page-content blockquote {
    padding: 20px 30px;
    border-left: 6px solid var(--primary-color) !important;
    color: var(--text-secondary-color) !important;
    font-weight: 600;
    font-size: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

#single .page-content blockquote, #single .page-content blockquote * {
    background-color: var(--secondary-color) !important;
}

/* table */
#single .page-content table {
    width: auto;
    border-radius: 5px;
    padding: 0.1rem;
    margin-bottom: 1.2em;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    opacity: 0.8;
}

#single .page-content table > tr {
    height: 40px !important;
}

#single .page-content table > thead > tr > th {
    padding: 0.5rem !important;
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border: 1px solid var(--secondary-color);
    opacity: 0.9;
}
#single .page-content table > tbody > tr > td {
    padding: 0.5rem !important;
    border: 1px solid var(--secondary-color);
    background-color: var(--secondary-color) !important;
    opacity: 0.9;
}

#single .page-content table > thead > tr {
    background-color: var(--secondary-color) !important;
    color: var(--secondary-color) !important;
}

/* code */

#single .page-content pre {
  border-radius: 0.7em !important;
  margin: 5px;
  margin-bottom: 2em;
  padding: 2em;
  background-color: var(--secondary-color) !important;
  color: var(--text-secondary-color) !important;
  max-height: 450px;
}

#single .page-content pre > code {
  color: var(--text-secondary-color) !important;
}

#single .page-content code {
  color: var(--primary-color) !important;
}

/* kbd and mark */

#single .page-content kbd {
  color: var(--primary-color) !important;
  background-color: var(--secondary-color) !important;
}

#single .page-content mark {
  color: var(--primary-color) !important;
  background-color: var(--secondary-color) !important;
}

/* list */

#single .page-content ol, #single .page-content ul {
    margin-bottom: 1.2em;
    padding-left: 1.5em;
    list-style-position: inside;
    opacity: 0.9;
}

#single .page-content ol li li, #single .page-content ul li li {
    margin-bottom: 0.5em;
    padding-left: 1.5em;
}

/* sidebar */

#single aside {
    background-color: var(--secondary-color);
    border-radius: .7rem;
    padding: .7rem 1rem;
    margin-bottom: 1em;
}

#single .sticky-sidebar {
  position: sticky;
}

#single .sticky-sidebar ::-webkit-scrollbar {
    height: 0px;
    width: 8px;
}

/* Tags */
#single aside.tags {
    max-height: 35vh;
    overflow: scroll;
}

#single aside.tags h5 {
    margin: .7em 0;
    margin-bottom: 1em;
}


#single aside.tags ul.tags-ul li a {
    padding: 5px 10px;
    margin-bottom: 2px;
    border-radius: 10px;
    background-color: var(--background-color);
    text-decoration: none;
    color: var(--text-link-color) !important;
}

#single aside.tags ul.tags-ul li {
    margin-bottom: 0.8rem;
}

#single aside.tags ul.tags-ul li:hover {
    opacity: 0.8;
}


/*TOC*/
#single aside.toc {
    padding: .7rem 1rem;
    max-height: 50vh;
    overflow: scroll;
}

#single aside.toc h5 {
    margin: .7em 0;
    margin-bottom: 1em;
    color: var(--text-color);
}

#single aside.toc .toc-content ol, #single aside.toc .toc-content ul {
    margin-bottom: 1em;
    padding-left: .5em;
    list-style: none;
    opacity: 0.9;
}

#single aside.toc .toc-content ol li a, #single aside.toc .toc-content ul li a {
    font-size: 16px;
    text-decoration: none;
    color: var(--text-link-color) !important;
    opacity: 0.9;
}

#single aside.toc .toc-content ol li a:hover, #single aside.toc .toc-content ul li a:hover {
    color: var(--primary-color);
    opacity: 1.2;
}

#single aside.toc .toc-content ol li li, #single aside.toc .toc-content ul li li {
    padding-left: .7em;
}

/* Social */

#single aside.social {
    padding: .7rem 1rem;
}

#single aside.social h5 {
    margin: .7em 0;
    margin-bottom: 1em;
    color: var(--text-color);
}

#single aside.social .social-content {
    margin-bottom: 1em;
    opacity: 0.9;
}

#single aside.social .social-content ul {
    margin-bottom: 1em;
    opacity: 0.9;
}

#single aside.social .social-content ul li a {
    border: 1px solid var(--primary-color);
    padding: .7rem;
    color: var(--text-link-color) !important;
    border-radius: 10px;
    overflow: hidden;
}

#single aside.social .social-content ul li {
    margin: .7rem .5rem;
    margin-left: 0;
}

#single aside.social .social-content ul li:hover a {
    opacity: .8;
    color: var(--text-link-color) !important;
}

/* Top scroll */

#single #topScroll {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 10px;
}

#single #topScroll:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transition: .5s;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

/* Singlepage scroll progress start */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--background-color);
    z-index: 999;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: width .2s;
}

/* Singlepage scroll progress end */

/* Badges */
#single .badge {
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
    margin: 0.2rem 0.2rem;
}

/* Credits */
.modal-content {
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
    font-family: 'Lora', serif !important;
    font-size: 17px !important;
    line-height: 1.7em !important;
}

.modal-body {
    font-family: 'Lora', serif !important;
    font-size: 17px !important;
    line-height: 1.7em !important;
    color: var(--text-color) !important;
    opacity: 0.9;
}

.modal-body li {
    font-family: 'Lora', serif !important;
    font-size: 17px !important;
    line-height: 1.7em !important;
    color: var(--text-color) !important;
    opacity: 0.9;
    margin-bottom: 0.5em;
}

.modal-body p {
    font-family: 'Lora', serif !important;
    font-size: 17px !important;
    line-height: 1.7em !important;
    color: var(--text-color) !important;
    opacity: 0.9;
}

.modal-body a {
    display: inline-block;
    text-decoration: none !important;
    color: var(--text-color) !important;
    position: relative;
}

.modal-body a::before {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 5px 2px;
    background-repeat: repeat-x;
    z-index: 0;
}

.modal-body a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    z-index: 1;
    transition: width 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.modal-body a:hover::after {
    width: 100%;
}

.modal-dialog {
    max-width: 700px !important;
    width: 90vw !important;
}

.credits-columns {
    columns: 2;
    column-gap: 2rem;
}

.credits-group {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.credits-discipline {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.scroll-animate.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes word-fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.word-shimmer {
    display: inline-block;
    opacity: 0;
    animation: word-fade-up 0.3s ease-out forwards;
    animation-play-state: paused;
}

.shimmer-ready .word-shimmer {
    animation-play-state: running;
}

.li-shimmer {
    opacity: 0;
    animation: word-fade-up 0.4s ease-out forwards;
    animation-play-state: paused;
}

.shimmer-ready .li-shimmer {
    animation-play-state: running;
}

.contributions-list {
    list-style: none;
    padding-left: 0 !important;
    margin: 0.75rem 0 1.5rem;
}

.contributions-list li {
    padding: 0.2rem 0;
    font-size: 1.05rem;
}

.contributions-list li::before {
    content: "› ";
    color: var(--primary-color);
    font-weight: 700;
}

.credits-trigger {
    display: inline-block;
    cursor: pointer;
    color: var(--text-color) !important;
    position: relative;
}

.credits-trigger::before {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 5px 2px;
    background-repeat: repeat-x;
    z-index: 0;
}

.credits-trigger::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    z-index: 1;
    transition: width 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.credits-trigger:hover::after {
    width: 100%;
}

.contribution-link {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
}

.contribution-link::before {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 5px 2px;
    background-repeat: repeat-x;
    z-index: 0;
}

.contribution-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    z-index: 1;
    transition: width 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.contribution-link:hover::after {
    width: 100%;
}

#lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: lightbox-fade-in 0.2s ease;
}

@keyframes lightbox-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 1rem;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.8));
    object-fit: contain;
    cursor: zoom-out;
}

#lightbox-overlay video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 1rem;
    object-fit: contain;
}