/*
=========================================
=========================================
synthcoder style template
=========================================
========================================= 
*/

/*
=====================
FONT IMPORTS
=====================
*/
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Cutive+Mono&family=Josefin+Slab:ital,wght@0,100..700;1,100..700&display=swap');

/*
=====================
VARIABLES
=====================
*/
:root {
  --text-color:  #919191;
  --text-color-dark: #747474;
  --text-color-darker: #3f3f3f;
  --text-color-faded: #313131b7;

  --border-light: solid 1px #24242481;
  --border-light-hover: solid 1px #2c2c2c86;
  --border-default: 1px solid rgb(34, 34, 34);
  --border-default-hover: solid 1px #383838d3;
  --border-heavy: 1px solid rgb(51, 51, 51);
  --border-heavy-hover: 1px solid rgb(75, 75, 75);
  --border-xheavy: 1px solid rgb(100, 100, 100);
  --border-xheavy-hover: 1px solid rgb(125, 125, 125);
  --border-radius-s: clamp(2px, 0.4vw, 4px);
  --border-radius: clamp(3px, 0.5vw, 5px);
  --border-radius-l: clamp(5px, 0.65vw, 8px);
  --border-radius-xl: clamp(8px, 1.5vw, 12px);
  --markdown-margin: clamp(12px, 2vw, 20px);
  --markdown-image-margin: 1%;
  --text-size-s: clamp(8px, 1.0vw, 14px);
  --text-size: clamp(12px, 3vw, 16px);

}

/*
=====================
GENERAL
=====================
*/
*, ::after, ::before {
  box-sizing: border-box;
}
html {
  background-color: #000000;
  scrollbar-width: none;
}
body {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  font-family: "Courier Prime", Courier, monospace;
  font-weight: 100;
  font-size: 16px;
  line-height: 1.4;
  background-color: #000000;
  color: var(--text-color);
  overflow: auto;
  scrollbar-width: none;
}
::-webkit-scrollbar {
  display: none;
}
body.no-scroll {
  overflow: hidden;
}

#canvas{
  position: absolute;
  display: block;
  opacity: 0;
  background-color: #000000;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin-left: 0%;
  mix-blend-mode: screen;
  z-index: 2;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/noise.gif'); 
  background-position: left;
  background-repeat: repeat;
  background-size: cover;
  background-attachment: fixed;
  z-index: 1;
}
#bg-scatter {
  width: 100%;
  height: 100%;
  background-image: url('../img/comb.gif'); 
  background-position: left;
  background-repeat: repeat;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.5;
}


#ornament-left {
  background-image: url('../img/ornament-left.gif'); 
  background-position: top left;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: fixed;
  width: 1562px;
  height: 1440px;
  top: -25px;
  left: -72px;
  opacity: 0.15;
  pointer-events: none;
  background-color: #00000000;
  image-rendering: pixelated;
  transition: none;
  z-index: 5;
}

#ornament-right {
  background-image: url('../img/ornament-right-trans.gif'); 
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: absolute;
  width: 673px;
  height: 640px;
  bottom: 0px;
  right: -110px;
  opacity: 0.15;
  z-index: 20;
  pointer-events: none;
  image-rendering: pixelated;

  transition: opacity ease-in-out 0.2s;
}
#ornament-right.fit {
  left: -587px;
}

.deco-frame{
  position: absolute;
  bottom: 25px;
  left: 190px;
  right: 24px;
  top: 0px;
  border: var(--border-light);
  border-radius: 25px;
  clip-path: polygon(0px 1300px, 100% 200px, 100% 100%, 0% 100%);
  transition: border linear 0.7s;
  z-index: 10;
}
.deco-frame .deco-frame{
  top: 0px;
  left: 30px;
  border-radius: 20px;
  clip-path: polygon(0px 1400px, 100% 300px, 100% 100%, 0% 100%);
}





button {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a {
  color: #b4b4b4;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
a:hover,
a:focus {
  color: #838383;
}
a:focus {
  color: #adadad;
  outline: none;
  outline-offset: 5px;
}

img {
  width: 100%;
  border: none;
  background-color: #00000000;
}
hr {
  opacity: 0.3;
  margin: 0;
  border: 0;
  height: 1px;
  width: 100%;
  margin-top: 2px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgb(82, 82, 82);
}
section {
  position: relative;
  padding-top: 90px;
  padding-bottom: 90px;
}




#site-heading {
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 77px;
  top: 0px;
  left: -15px;
  background-image: url('../img/header.gif'); 
  background-position: top left;
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: screen;
  image-rendering: pixelated;
}
#site-heading-bg {
  position: fixed;
  width: 100%;
  height: 58px;
  top: 0px;
  left: 0px;
  padding: 0px;
  background: rgb(0, 0, 0);
  z-index: 200;
}

#site-heading::before {
  content: "";
  opacity: 0.5;
  background: linear-gradient(90deg, rgba(167,167,167,1) 24%, rgba(0,0,0,0) 100%);
  position: absolute;
  top: 14px;
  left: 0px;
  height: 1px;
  width: 80%;
}
#site-heading::after {
  content: "";
  opacity: 1;
  background: linear-gradient(90deg, rgba(167,167,167,1) 24%, rgba(0,0,0,0) 100%);
  position: absolute;
  bottom: 18px;
  left: 0px;
  height: 2px;
  width: 100%;
}
#site-heading a {
  position: absolute;
  display: block;
  margin: 0px;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.banner{
  display: none;
  position: fixed;
  top: 12.6vw;
  left: 0;
  width: 100vw;
  height: 0;
  padding-top: 10.667%;
  background-image: url('../img/banner.gif'); 
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: screen;
  image-rendering: pixelated;
  margin-top: -7vw;
  margin-bottom: 19vw;
}

#diamond{
  display: none;
  width: 100%;
  height: 15vw;
  background-image: url('../img/diamond.gif'); 
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  image-rendering: pixelated;
  opacity: 0.3;
  margin-top: -7vw;
  margin-bottom: -4vw;
  z-index: 1550;
}





.glass-panel {
  position: relative;
  background-color: #000000b0;
  padding: 10px;
  border: solid 1px #3333336b;
  border-radius: clamp(8px, 1vw, 10px);
  padding-bottom: 40px;
  overflow: hidden;
} 
.glass-panel::after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: '';
  margin: -5px;
  pointer-events: none;
  border-image: url("../img/glow-inset.png") 14 / 24px / 0px;
  border-radius: clamp(8px, 1vw, 10px);
  opacity: 0.04;
}
.glass-panel .glass-panel {
  background-color: #00000080;
  border: solid 1px #33333380;
  border-radius: clamp(1px, 1.5vw, 8px);
}
.glass-panel .glass-panel::after {
  opacity: 0.02;
}
.glass-panel .glass-panel .glass-panel{
  background-color: #0000005d;
  border: solid 1px #eeeeee8f;
}





/* border presets */
.border, .border-light, button{
  border: var(--border-default);
  border-radius: var(--border-radius);
  transition: border 0.5s ease;
}
.border:hover, button:hover{
  border: var(--border-default-hover);
  transition: none;
}
.border-light {
  border: var(--border-light);
  transition: none;
}



.borderbox {
  position: relative;
  padding: clamp(2px, 1.0%, 6px);
  border: var(--border-light);
  border-radius: var(--border-radius);
  margin-bottom: var(--markdown-margin);
}

.no-box {
  padding: 0;
  margin: 0;
  border: none;
}

.no-border, .no-border > * {
  border: none;
}
.no-border:hover, .no-border > *:hover {
  border: none;
}


.sticky {
  position: sticky;
  top: 0;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
}

#site-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/*
=====================
MAIN COLUMN
=====================
*/

#main-column {
  position: relative;
  padding-top: 90px;
  height: 100%;
  width: 100%;
  max-width: 1300px;
  z-index: 100;
}
#main-column.xl {
  max-width: 2000px;
}
#main-column.home {
  position: unset;
}



/*
=====================
CONTENT COLUMN
=====================
*/

#content-column {
  position: relative;
  width: 100%;
  padding: 0px 50px 90px 25px;
}
#content-column a{
  text-decoration: dotted underline;
}

.content-column-bg {
  position: relative;
}

.content-column-content {
  padding: 35px 60px 60px 40px;
  height: 100%;
  /* min-height: calc(100vh - 270px); */
  font-size: 0;
}
.content-column-content hr {
  margin-top: var(--markdown-margin);
  margin-bottom: var(--markdown-margin);
}
.content-column-content ul li {
  list-style-type:square;
}

.content-column-content.list-content {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 2%;
}


.content-column-content {
  p {
    padding: 0;
    padding-right: 1%;
    padding-left: 1%;
    margin: 0;
    margin-bottom: var(--markdown-margin);
    font-size: var(--text-size);
  }
  p:empty {
    display: none;
  }
  .p-wrapper {
    margin-bottom: var(--markdown-margin);
  }
  .p-wrapper p{
    margin: 0;
    padding-bottom: calc(var(--markdown-margin) * 0.5);
  }
}

.content-column-content > :first-child {
  margin-top: 0 !important;
}

.page-list {
  margin-top: var(--markdown-margin) !important;
  margin-bottom: calc(var(--markdown-margin) * 2) !important;
}

.date {
  position: relative;
  width: fit-content;

  left: 1%;
  padding: 0;
  margin-top: calc(var(--markdown-margin) * -0.5);
  margin-bottom: calc(var(--markdown-margin) * 1);
  padding-bottom: calc(var(--markdown-margin) * 0.3);
  padding-right: 15vw;


  font-size: calc(var(--text-size) * 0.8);
  color: var(--text-color-darker);
  text-align: left;
}
.date::before {
  content: "::   ";
}



/*
=====================
SECONDARY COLUMN
=====================
*/

#secondary-column {
  position: sticky;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  flex-grow: 1;
  top: 0;
}

/*
=====================
SIDEBAR
=====================
*/

#nav-column {
  position: sticky;
  top: 90px;
  height: 100%;
  z-index: 500;
}

#sidebar {
  position: relative;
  margin-left: 50px;
  margin-right: 25px;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  background-color: #000000d0;
  overflow: hidden;
  box-shadow: 0px 0px 30px 10px rgba(0, 0, 0, 0.288);
  padding: 10px;
  width: 275px;
  height: 650px;
}

.sidebar-content .ridges {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  height: 3%;
}

.sidebar-content .bottom {
  height: 12%;
}

/*DESCRIPTION*/
.sidebar-description {
  display: none;
  padding-top: 20px;
  padding-bottom: 10px;
}
.sidebar-p {
  color: var(--text-color);
  font-size: 14px;
  padding-left: 15px;
}

/*NAVIGATION*/
.sidebar-menu {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  list-style-type: none;
  padding: 5%;
  padding-left: 20%;
  height: 50%;
}
.sidebar-menu li {
  position: relative;
  letter-spacing: 5px;
  /* margin-bottom: 50px; */
  font-size: 18px;
}
.sidebar-menu li.indent {
  margin-left: 12px;
  letter-spacing: 6px;
  font-size: 16px;
}
.sidebar-menu li a {
  display: block;
  color: #919191;
  transition: 0.5s;
  width: 100%;
  font-style: italic;
}
.sidebar-menu li a::after {
  position: absolute;
  content: "";
  top: 49%;
  left: -5px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(167,167,167,1) 24%, rgba(0,0,0,0) 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s;
}
.sidebar-menu li:hover a::after {
  transform: scaleX(1);
  transform-origin: left;
}
.sidebar-menu li:hover {
  letter-spacing: 7px;
}
.sidebar-menu li::before {
  position: absolute;
  left: 0;
  content: '>';
  margin-left: -25px;
  color: #999999;
  transform: scaleY(1) scaleX(1.4) translateX(0px);
  transform-origin: center;
  transition: transform 0.2s;
}
.sidebar-menu li.indent::before {
  content: '| ';
  margin: 0 5px 0 -25px;
  color: #999999;
}
.sidebar-menu li.indent:hover::before {
  content: ' >';
}
.sidebar-menu li.active a {
  color: #fff;
  font-weight: bold;
}
.sidebar-menu li.active::before {
  color: #fff;
}
.sidebar-menu a:hover {
  text-decoration: none;
  color: #fff;
}
.sidebar-menu li:hover::before {
  color: #fff;
  animation: rotate 0.8s alternate infinite ease-in-out;
}
@keyframes rotate {
  to { transform: scaleY(0.1) scaleX(1.4) translateX(3px); transform-origin: center;}
}

/*
=====================
SOCIALS
=====================
*/
.brand-logo {
  display: inline-block;
  opacity: 0.25;
  background-size: 45%;
  background-repeat: no-repeat;
  background-position: center;
}
.bluesky {
  background-image: url('../svg/bluesky.svg');
}
.twitter {
  background-image: url('../svg/twitter.svg');
}
.instagram {
  background-image: url('../svg/instagram.svg');
}
.youtube {
  background-image: url('../svg/youtube.svg');
}
.rss {
  background-image: url('../svg/rss.svg');
}


p.social {
  color: #444444;
  margin: 0px;
  padding-left: 10px;
  padding-right: 10px;
  max-height: 50px;
  display: flex;
  justify-content: space-evenly;
}
p.social a {
  margin: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: var(--border-xheavy);
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}
p.social a:hover {
  border: var(--border-heavy);
  opacity: 0.6;
}

.email-box {
  text-align: center;
}
.email-text {
  color: #696969;
  font-size: 13px;
  padding: 0px;
  margin: 0px;
}

/*DRAWER SOCIALS*/

.drawer-socials {
  padding: 4vw;
  padding-top: 0;
  padding-bottom: 2vw;
}
.drawer-socials .social {
  justify-content: space-around;
  padding-top: 3vw;
  border-top: 1px dotted #2e2e2e;
  max-height: unset;
}
.drawer-socials .brand-logo {
  opacity: 0.4;
  width: 8vw;
  height: 7vw;
  border: var(--border-heavy);
  background-size: 45%;
  border-radius: 1.5vw;
}

.drawer-email {
  padding: 0vw 4vw 0vw 4vw;
}

.drawer-email .email-box {
  width: 100%;
  height: 100%;
  padding: 2vw;
  border-top: 1px dotted #2e2e2e;
  display: flex;
  justify-content: center;
}

.drawer-email .email-box .email-text{
  font-size: clamp(9px, 2.5vw, 16px);
  letter-spacing: clamp(2px, 1vw, 14px);
}

/*COPYRIGHT*/
.copyright {
  color: #4e4e4e;
  font-size: 13px;
  padding: 0px;
}
.copyright p{
  color: #4e4e4e;
  font-size: 13px;
  padding: 30px 20px 30px;
  margin-bottom: 0px;
}

/*
=====================
DRAWER
=====================
*/

#drawer {
  display: none;
  position: fixed;
  bottom: 0;
  width: 98vw;
  left: 1vw;
  margin: 0;
  padding: clamp(3px, 2vw, 10px);
  z-index: 1000;
  transition: all 0.1s;
  background-color: #000000f5;
  border: var(--border-heavy);
  border-radius: var(--border-radius-xl);
  box-shadow: inset 0px 0px 70px 0px rgba(80, 80, 80, 0.212);
  transform: translateY(calc(100% - 20px - 10vw))
}

#drawer.active {
  transition: all 0.2s;
}

#drawer-toggle-checkbox {
  display: none;
}
#drawer-toggle-checkbox:checked + #drawer {
  top: unset;
  transform: translateY(2vw); 
  transition: all 0.1s;
}
.drawer-toggle-label {
  pointer-events: all;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; 
  transform: scaleX(3) scaleY(1.2) translate(1vw, -0.5vw);
  cursor: s-resize;
}


/*TOGGLE ICON*/
#drawer-toggle-icon-box {
  position: absolute; 
  left: 0; 
  right: 0; 
  pointer-events: none;
  margin-inline: auto; 
  display: flex;
  justify-content: space-between;
  top: -7vw;
  left: -1vw;
  width: 5vw;
  font-weight: 100;
  color: #acacac;
  font-size: 8vw;
  letter-spacing: -1.5vw;
  transform: rotate(90deg) scaleY(.9);
  text-shadow: 0px 0px 30px #ffffff75, 0px 0px 3px #ffffff96;
}
#drawer-status::after{
  position: relative;
  content: "+";
}
#drawer-toggle-checkbox:checked + #drawer #drawer-status::after{
  display: block;
  content: "//7";
  position: relative;
  letter-spacing: -3vw;
  transform: scaleX(.4);
}
#drawer-toggle-arrow-up{
  transform: scaleX(-1) translateX(-2.2vw) translateY(-0.2vw) rotate(10deg);  
}
#drawer-toggle-arrow-down{
  color: #b9b9b91a;
  text-shadow: none;
  font-weight: 100;
}
#drawer-toggle-checkbox:checked + #drawer #drawer-toggle-arrow-down{
  color: inherit;
  text-shadow: inherit;
  font-weight: inherit;
  display: none;
}
#drawer-toggle-checkbox:checked + #drawer #drawer-toggle-arrow-up{
  display: none;
}
#drawer-toggle-checkbox:checked + #drawer #drawer-toggle-icon-box{
  top: -3.8vw;
  transform: rotate(90deg) scaleY(1.0);
}

/*CONTENT*/
.drawer-content {
  padding: 0;
  padding-bottom: 2vw;
  margin: 0px;
  height: 100%;
}
#drawer hr {
  margin-top: 0;
  margin-bottom: 1px;
}

/*DESCRIPTION*/
.drawer-description {
  display: none;
  padding-top: 20px;
  padding-bottom: 10px;
}
.drawer-p {
  color: #999999;
  font-size: 14px;
  padding-left: 15px;
}

/*NAVIGATION*/
.drawer-menu {
  display: flex;
  justify-content: space-evenly;
  list-style-type: none;
  flex-wrap: wrap;
  padding: 3vw;
  padding-top: 2vw;
  padding-bottom: 0;
  margin-bottom: 0;
}
#drawer-toggle-checkbox:checked + #drawer .drawer-menu{
  padding-top: 4vw;
  transition: all 0.02s;
}

.drawer-menu a {
  position: relative;
  order: 10;
  letter-spacing: 1.1vw;
  font-size: clamp(10px, 3.0vw, 18px);
  margin-bottom: 4vw;
  display: block;
  color: #919191;
  transition: 0.5s;
  width: auto;
  font-style: italic;
  margin-left: 4.5vw;
  margin-right: 1vw;
}
.drawer-menu a::after {
  position: absolute;
  content: "";
  top: 45%;
  left: -1vw;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(167,167,167,1) 24%, rgba(0,0,0,0) 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s;
}
.drawer-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  letter-spacing: 1.3vw;
}
.drawer-menu a::before {
  position: absolute;
  top: -0vw;
  left: -3.5vw;
  content: '>';
  margin-left: 0;
  color: #999999;
  transform: scaleY(1) scaleX(1.4) translateX(0px);
  transform-origin: center;
  transition: transform 0.2s;
}

.drawer-menu a.active {
  color: #fff;
  font-weight: bold;
}
.drawer-menu a.active::before {
  color: #fff;
}


.drawer-menu a.static {
  order: 0;
  margin-bottom: 4vw;
  margin-right: auto;
  font-size: clamp(10px, 3.5vw, 22px);
}
.drawer-menu a.priority {
  order: 2;
  font-size: clamp(10px, 3.5vw, 22px);
  margin-bottom: 4vw;
  margin-left: auto;
  margin-right: 0;
}

/* 
.drawer-menu a.active:not(.static) {
  order: 0; 
}
.drawer-menu a.priority.active {
  order: 0;
}
.drawer-menu.home a.priority {
  order: 0;
}
.drawer-menu.home a.static {
  order: 1;
}
.drawer-menu a.static.active {
  order: 3;
} */

.drawer-menu a:hover {
  text-decoration: none;
  color: #fff;
}
.drawer-menu a:hover::before {
  color: #fff;
  animation: rotate 0.8s alternate infinite ease-in-out;
}
@keyframes rotate {
  to { transform: scaleY(0.1) scaleX(1.4) translateX(3px); transform-origin: center;}
}



/*
=====================
GALLERY
=====================
*/

.gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  overflow: hidden;
  gap: 4px
}
.gallery.row {
  flex-wrap: nowrap;
  align-items: stretch;
}
.gallery.column {
  flex-wrap: wrap;
}

.gallery-item {
  flex: 1 1 auto;
  position: relative;
  display: inline-block;
  width: 45%;
  height: auto;
}
.gallery-item.l {
  width: 100%;
}
.gallery-item.s {
  width: 25%;
}

.gallery.row .gallery-item{
  width: auto;
  flex: 1 1 auto;
}

.img-caption {
  overflow: hidden;
  background-color: #000000cc;
  padding: 1%;
  font-size: var(--text-size-s);
  color: var(--text-color-dark);
}

.gallery-img {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  vertical-align: middle;
  cursor: pointer;
}







/* STACK GALLERY */

.stack-container {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  align-items: stretch;
  flex-direction: row;
  flex-wrap: nowrap;
  padding-right: 0;
  overflow: hidden;
  pointer-events: none;
}

.stack-item {
  position: relative;
  padding: 0;
  flex-shrink: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: unset;
  transform: scale(1);
  transition: all ease .9s;
  background-color: #000000;
  pointer-events: all;
}
.stack-item.clear {
  background: #00000000;
}
.stack-item:before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100%;
  background-color: #000000;
}
.stack-item.clear::before {
  display: none;
}

.stack-item:last-child {
  margin-right: 0%;
}
.stack-item:first-child {
  flex-shrink: 0;
  width: 70%;
}
.stack-item:first-child .stack-item-img-box {
  position: relative;
}
.stack-item img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
}
.stack-item.clear img {
  border: var(--border-light);
}

.stack-item:first-child img {
  position: relative;
  width: 100%;
  height: auto;
}


.stack-container:hover > *{
  overflow: initial;
  left: -60%;
  transform: scaleY(1.05);
  transition: all ease 0.5s;
}
.stack-item:hover ~ .stack-item, .stack-item:hover {
  left: 0;
  transform: scale(1);
  transition: all ease 0.9s;
}
 

@media (hover: none) {
  .stack-item {
    display: none;
    overflow: hidden;
  }
  .stack-item:nth-child(-n + 10) {
    display: block;
  }
}


/* LIGHTBOX */

#lightbox {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}


#lightbox .buffering-icon {
  display: block;
}
#lightbox.loading .buffering-icon {
  opacity: 1;
  transition: all ease 1s;
}


.lightbox-image-box{
  width: 100%;
  max-width: 100%;
  height: 100%;         /* Set max height for the container */
  max-height: 100%;
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}
img.lightbox-image {
  width: 100%;   
  height: 100%;       
  object-fit: contain; 
}


.close {
  position: absolute;
  top: 0;
  right: 0;
  margin: 20px;
  font-size: 50px;
  height: 50px;
  line-height: 40px;
  color: white;
  cursor: pointer;
  z-index: 200;
}

.lightbox-nav-box{
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  font-size: clamp(20px, 5vw, 60px);
  color: rgb(209, 209, 209);
  padding: 30px;
  user-select: none;
  z-index: 200;
  text-shadow: 0 0 10px black;
}
#lightbox .prev:hover, #lightbox .next:hover {
  color: rgb(255, 255, 255);
  transform: scale(1.02);
}
#lightbox.single .prev, #lightbox.single .next{
  display: none;
}

.prev { 
  left: 0;
  justify-content: left;
}
.next { 
  right: 0;
  justify-content: right;
}

/*
=====================
VIDEO PLAYER
=====================
*/

.video-player {
  position: relative;
  width: 100%;
  padding: 0.5%;
  overflow: hidden;
  cursor: pointer;
}
.video-player:fullscreen {
  border: none; 
}


video {
  width: 100%;
  height: 100%;
  display: block;
}

.video-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-controls-bar {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.795);
  opacity: 0;
  z-index: 5;
  border-radius: 0 0 5px 5px;
  /* box-shadow: 0 0 20px 5px #000000f3; */
  pointer-events: all;
  transition: none;
}
.video-player.started .video-controls-bar{
  opacity: 1;
}

/* CAPTION TITLE & INFO */
.video-caption {
  position: absolute;
  width: 100%;
  opacity: 1;
  top: 0;
  left: 0;
  padding: clamp(3px, 1.5%, 10px);
  padding-left: clamp(5px, 2.5%, 15px);
  background-color: rgba(0, 0, 0, 0.795);
  /* box-shadow: 0 0 20px 5px #000000f3; */
  border-radius: var(--border-radius);
  z-index: 1000;
  opacity: 1;
  transition: none;
  pointer-events: all;
}
.video-player.started .video-caption {
  opacity: 1;
}
.video-player.hide-controls .video-caption {
  opacity: 0;
}
.video-player:hover .video-caption {
  opacity: 1;
  transition: none;
}

.video-title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}
.video-caption h4 {
  width: 100%;
  margin: 0;
  margin-right: clamp(5px, 3%, 20px);
}

#info-toggle {
  display: none;
}
.info-toggle-btn {
  position: relative;
  padding-left: var(--text-size-s);
  padding-right: clamp(5px, 2%, 15px);
  padding-top: 3px;
  display: block;
  color: rgb(190, 190, 190);
  cursor: pointer;
  border-radius: 5px;
  user-select: none;
  font-size: calc(var(--text-size));
}
.info-toggle-btn::before {
  content: ">";
  position: absolute;
  left: 0;
}
.info-toggle-btn.active::before {
  transform: rotate(90deg) translateX(-1px);
}
.info-toggle-btn:hover {
  color: white;
}

.video-description-content {
  display: none;
  margin: 0 !important;
  margin-top: 1% !important;
  font-size: var(--text-size) !important;
}
.video-description-content.active {
  display: block;
}


/* BUTTONS */
.thumb-button{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 40px;
  z-index: 1;
  pointer-events: inherit;
  cursor: pointer;
}
#controls-toggle {
  z-index: 3;
  display: none;
}
#maxi-play-button{
  z-index: 2;
  display: block;
}

.maxi-play{
  position: absolute;
  top: calc(50% - 25px);
  left: calc(50% - 25px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  opacity: 0.5;
  color: rgba(0, 0, 0, 0);
  background-color: #000000ef;
  pointer-events: none;
  box-shadow: 0 0 5px 2px #0000007a;
}
.maxi-play::after{
  display: block;
  position: absolute;
  content: "";
  top: 12px;
  left: 14px;
  width: 26px;
  height: 26px;
  opacity: 0.8;
  background-image: url('../img/play.png'); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.video-player:hover .maxi-play {
  opacity: 0.8;
  transform: scale(1.1);
}
.video-player.started .maxi-play{
  opacity: 0;
  transform: scale(1.3);
  transition: all 0.5s;
}
.video-player.ended .maxi-play{
  opacity: 1;
}

.buffering-icon {
  display: none;
  opacity: 0;
  position: absolute;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.795);
  background-color: #0000009f;
  animation: spin 1s linear infinite;
  pointer-events: none;
  transition: opacity none;
}
.video-player.waiting .buffering-icon{
  display: block;
  opacity: 1;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.video-player.hide-controls .video-controls-bar {
  opacity: 0;
  pointer-events: none;
  transition: 0.7s;
}
.video-player.hide-controls .video-caption {
  opacity: 0;
  pointer-events: none;
  transition: 0.7s;
}

@media (hover: none) {
  .video-player.started.hide-controls #controls-toggle {
    display: block;
  }
  .video-player.started.hide-controls #maxi-play-button {
    display: none;
  }
}


/* SEEKBAR */

.video-controls-bar input {
  flex-grow: 1;
}
.slider {
  position: relative;
  -webkit-appearance: none;  
  appearance: none;
  padding: 0;
  margin: 0;
  width: 100%; 
  height: 100%; 
  background: #00000000; 
  opacity: 0.7; 
  -webkit-transition: .2s; 
  transition: opacity .2s;
  cursor: pointer;
  z-index: 10;
}
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 40px;
  padding: 0px;
  margin:  0 10px 0 10px;
}
.slider-wrapper::after {
  position: absolute;
  left: 0;
  right: 0;
  top: 19px;
  height: 1px;
  content: '';
  border-top: 2px solid rgb(75, 75, 75); 
  z-index: 0;
  pointer-events: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1px; 
  height: 6px; 
  background: rgb(230, 230, 230);
  border-radius: 0;
  box-shadow: 0 0 5px 0px white, 0 0 10px 0px white, 0 0 20px 0px white;
}
.slider::-moz-range-thumb {
  transform: scaleX(0.5) translateX(-1px);
  width: 0px; 
  height: 6px; 
  background: rgb(240, 240, 240);
  border: 1px solid rgb(240, 240, 240);
  box-shadow: 0 0 5px 0px white, 0 0 10px 0px white, 0 0 20px 0px white;
}
#elapsed-time-bar {
  position: absolute;
  left: 0;
  width: 0;
  top: 19px;
  height: 1px;
  content: '';
  border-top: 2px solid rgb(230, 230, 230); 
  z-index: 5;
  pointer-events: none;
}

/* CONTROLS BAR BUTTONS & ICONS */

.video-controls-bar button{
  position: relative;
  margin: 0;
  height: 100%;
  width: 40px;
  min-width: 30px;
  background: #00000000;
  border: none;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
}

button:hover .icon{
  opacity: 1;
}
.icon{
  position: absolute;
  top: calc(50% - 8px);
  left: calc(50% - 7px);
  width: 14px;
  height: 14px;
  color: #00000000;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
}
.icon:hover {
  opacity: 1;
}
.play{
  background-image: url('../img/play.png'); 
}
.pause{
  background-image: url('../img/pause.png'); 
}
.mute{
  background-image: url('../img/mute.png');
  height: 16px;
  width: 16px; 
  top: calc(50% - 9px);
  left: calc(50% - 8px);
}
.unmute{
  background-image: url('../img/sound.png'); 
  height: 16px;
  width: 16px; 
  top: calc(50% - 9px);
  left: calc(50% - 8px);
}
.fullscreen{
  background-image: url('../img/fullscreen.png'); 
  left: calc(50% - 6px);
}
.exitfs{
  background-image: url('../img/exitfs.png'); 
  left: calc(50% - 6px);
}


/*
=====================
CAROUSEL
=====================
*/


.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin-bottom: var(--markdown-margin);
}
.carousel-container .borderbox {
  margin: 0;
}

.carousel-window {
  position: relative;
  width: 100%;
  padding: 8px;
  padding-left: clamp(10px, 3%, 50px);
  padding-right: clamp(10px, 3%, 50px);
  overflow: hidden;
  border: var(--border-default);
  border-top: none;
  border-bottom: none;
  border-radius: 6px;
}

.carousel {
  position: relative;
  display: flex;
  left: 0;
  transition: left 0.3s ease-in-out;
  width: 100%;
}

.carousel-item {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 100%;
  padding-left: 0.5%;
  padding-right: 0.5%;
  pointer-events: none;
}
.carousel-item.active {
  pointer-events: all;
}

.carousel-item .video-controls {
  opacity: 0;
  transition: 0.3s;
}
.carousel-item.active .video-controls {
  opacity: 1;
  transition: 0.3s;
}



.carousel-item:first-child::before {
  content: "";
  position: absolute;
  right: 100%;
  height: 100%;
  min-width: 100%;
  margin-right: 0.5%;
  border: var(--border-default);
  border-radius: var(--border-radius);
  /* box-shadow: 0 0 15px 0px rgba(82, 82, 82, 0.295); */
}
.carousel-item:last-child::before {
  content: "";
  position: absolute;
  left: 100%;
  height: 100%;
  min-width: 100%;
  margin-left: 0.5%;
  border: var(--border-default);
  border-radius: var(--border-radius);
  /* box-shadow: 0 0 15px 0px rgba(82, 82, 82, 0.295); */
}

.carousel-item img {
  height: unset;
  width: 100%;
  display: block;
}

.carousel-button {
  cursor: pointer !important;
  width: 5% !important;
  min-width: 25px;
  max-width: 50px;
  height: 100%;
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  padding: 8px;
  color: var(--text-color-dark);
}
.carousel-button:hover{
  color: white;
}

.carousel-button-borderbox {
  background-color: #000000;
  box-shadow: 0 0 5px 1px black;
  border-radius: var(--border-radius);
  border: var(--border-default);
  padding: clamp(1px, 0.5vw, 5px);
}
.carousel-button-inner {
  transform: scaleX(0.6);
  font-size: 50%;
  line-height: 1.7;
}


@media (hover: none) {
  .carousel-button {
    display: none;
  }
}

.carousel-button.prev {
  left: clamp(-20px, -2vw, -12px);
  padding-right: clamp(5px, 2%, 15px);
  text-align: left;
}
.carousel-button.next {
  right: clamp(-20px, -2vw, -12px);
  padding-left: clamp(5px, 2%, 15px);
  text-align: right;
}
.carousel-button.prev .carousel-button-borderbox {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}
.carousel-button.next .carousel-button-borderbox {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}




.carousel-bullets {
  display: flex;
  justify-content: center;
  margin-top: clamp(2px, 0.5vw, 8px);
  padding-left: 5%;
  padding-right: 5%;
}
.carousel-bullets button {
  width: 4%;
  min-width: 4px;
  height: 2px;
  margin: 0 0.5px;
  border: none;
  background-color: #4d4d4da2;
  cursor: pointer;
}
.carousel-bullets button.active {
  background-color: #b1b1b1d3;
}

/*
=====================
MARKDOWN 
=====================
*/

.center {
  display: block !important;
  width: fit-content;
  margin-left: auto !important;
  margin-right: auto !important;
}
.right {
  display: block !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}
.float-right {
  float: right;
}
.float-left {
  float: left;
}

.dark {
  color: var(--text-color-dark) !important;
}
.darker {
  color: var(--text-color-darker) !important;
}
.faded {
  color: var(--text-color-faded) !important;
}

.md-image-box {
  width: 100%;
  cursor: pointer;
}
.md-image-link {
  display: block;
}

.half {
  display: inline-block;
  vertical-align: top;
  width: calc(50% - var(--markdown-image-margin) / 2) !important;
}
.half:nth-child(odd of .half) {
  margin-right: var(--markdown-image-margin);
}


.third {
  display: inline-block;
  vertical-align: top;
  width: calc((100% / 3) - var(--markdown-image-margin) * 2 / 3);
}
.third:nth-child(3n-2 of .third) {
  margin-right: var(--markdown-image-margin);
}
.third:nth-child(3n of .third) {
  margin-left: var(--markdown-image-margin);
}


.quarter {
  display: inline-block;
  vertical-align: top;
  width: calc((25%) - var(--markdown-image-margin) * 3 / 4);
}
.quarter:nth-child(4n-3 of .quarter) {
  margin-right: var(--markdown-image-margin);
}
.quarter:nth-child(4n-2 of .quarter) {
  margin-right: var(--markdown-image-margin);
}
.quarter:nth-child(4n of .quarter) {
  margin-left: var(--markdown-image-margin);
}




/*
=====================
EMBEDS / SHORTCODES
=====================
*/


.trim {
  overflow: hidden;
}
.trim > * {
  width: calc(100% + 2px);
  margin: -1px;
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
}
.itchio iframe{
  height: 167px;
}

.bandcamp{
  max-width: 700px;
}
.bc-arrow{
  max-width: 700px;
  margin-left: 20%;
  padding-right: auto;
}
.bc-arrow::before{
  position: absolute;
  font-size: 130px;
  left: clamp(60px, calc((100% - 700px)/2 - 8%), 100%);
  content: "⮣";
  font-family: serif;
  font-weight: 100;
  opacity: 0.1;
  transform: translateY(-30px) scaleY(-1);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  background-color: #000000;
}
.video-container iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1px;
  margin: 0;
}


.citation{
  position: relative;
  padding: 5px;
  padding-top: 15px;
  padding-bottom: 50px;
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: var(--text-size);
  overflow: visible;
}
blockquote{
  margin-left: 20px;
  margin-bottom: 15px;
  padding-left: 20px;
  line-height: 1.8;
  font-style: italic;
  border-left: 1px solid rgb(51, 51, 51);
  transition: all 0.5s ease;
}
blockquote:hover{
  color: #b3b3b3;
  transition: none;
}
.citation blockquote::before {
  content: "“"; 
  font-size: 330px;
  font-style: normal;
  font-family: 'Times New Roman', Times, serif;
  color: #ccc;
  position: absolute;
  top: -50px; 
  left: -15px;
  line-height: 1; 
  opacity: 0.1;
  transform: scaleX(0.9);
}
cite{
  position: absolute;
  right: 30px;
  padding-left: 30%;
  font-size: 18px;
  color: #474747;
  text-align: right;
}

.spacer{
  width: 100%;
  height: clamp(20px, 5vw, 100px);
}
.spacer.s{
  height: clamp(4px, 2vw, 20px);
}
.spacer.m{
  height: clamp(10px, 5vw, 50px);
}
.spacer.l{
  height: clamp(20px, 10vw, 100px);
}
.spacer.xl{
  height: clamp(40px, 20vw, 200px);
}





/*
=====================
MASONRY
=====================
*/

.masonry-container {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: start;
  padding: 0;
  width: unset;
  transition: none;
  margin: -2px;
}

.masonry-item {
  padding: 2px;
  width: 50%;
}

.masonry-spacer {
  position: absolute;
  width: 50%;
  opacity: 1;
  transition: 0.1s ease-in-out all;
}
.masonry-spacer-inner {
  position: absolute;
  top: clamp(2px, 0.35vw, 5px);
  left: clamp(2px, 0.35vw, 5px);
  right: clamp(2px, 0.35vw, 5px);
  bottom: clamp(2px, 0.35vw, 5px);
  width: calc(100% - clamp(2px, 0.35vw, 5px) * 2);
  height: calc(100% - clamp(2px, 0.35vw, 5px) * 2);
  border: var(--border-default);
  border-style: dashed;
  border-radius: clamp(5px, 2%, 8px);;
  color: #1a1a1adc;
  shape-rendering: geometricPrecision;
}

.hide {
  opacity: 0 !important;
  transition: none;
}
.masonry-spacer.collapse {
  height: 0 !important;
  transition: 0.2s ease-in-out all;
}


/*
=====================
CARDS
=====================
*/

.cards-container {
  margin: clamp(-5px, -0.3vw, -2px);
}

.card-box {
  position: relative;
  padding: clamp(2px, 0.3vw, 5px);
  z-index: 5;
}
.card-box::before {
  content: '';
  border-image: url("../img/glow.png") 12 / 24px / 8px;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 0.01;
}
.card-box:hover::before {
  opacity: 0.04;
}
.card-box:hover {
  transform: scale(1.005);
  transform-origin: center;
  z-index: 1;
}

.card {
  position: relative;
  border: var(--border-default);
  border-radius: var(--border-radius-l);
  background-color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border linear 0.7s;
}
.card:hover {
  border: var(--border-heavy-hover);
  color: white;
}


.card-inset {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  height: 100%;
  pointer-events: none;
  border-image: url("../img/glow-inset.png") 14 / 64px / 0px;
  opacity: 0.01; 
  z-index: 20;
  overflow: hidden;
}
.card:hover .card-inset {
  opacity: 0.03;
}

.card-header {
  color: rgb(201, 201, 201);
  font-size: clamp(15px, 3vw, 25px);
  line-height: 1.2;
  padding-left: 3px;
  padding-bottom: 6px;
  margin: 0;
  border-bottom: 1px solid #2e2e2e7c;
  font-weight: 100;
  font-family: "Cutive Mono", Courier, monospace;
  letter-spacing: 4px;
}
.card-header::after {
  display: block;
  position: relative;
  left: -3px;
  top: 6px;
  content: "";
  width: 100%;
  height: 1px;
  background: #757575;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s;
}
.card:hover .card-header {
  transition: 0.5s color ease;
  color: white;
}
.card:hover .card-header::after {
  transform: scaleX(1);
  transform-origin: left;
}

.card-text {
  position: relative;
  padding: 20px 30px 30px 25px;
  border-top: 1px solid rgba(24, 24, 24, 0.788);
}
.card-text::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: '';
  opacity: 0.01;
  pointer-events: none;
  border-image: url("../img/glow-inset.png") 12 / 64px / 0px;
}

.card-description p {
  color: #999999b2;
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 5px;
  padding-left: 4px;
}
.card:hover .card-description p {
  transition: 0.5s color ease;
  color: rgb(180, 180, 180);
}

.card-hover-text-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.card .card-hover-text-header p{
  color: rgb(180, 180, 180);
}
.card:hover .card-hover-text-header {
  opacity: 1;
  background-color: #000000ad;
}

.card h2:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.card-image {
  min-height: 50px;
  background: #000000;
  image-rendering: auto;
}

.card-image-border {
  overflow: hidden;
  border: 5px solid rgb(0, 0, 0);
  border-radius: var(--border-radius-dynamic);
}


.card a {
  text-decoration: none !important;
}

/*
=====================
LIST CARD
=====================
*/

.card-content.list-card {
  display: flex;
  flex-direction: row;
  max-height: 200px;

}

.card-image-border.list-card {
  width: 40%;
}

.list-card-image {
  max-width: 30%;
  object-fit: cover;
  border: 2px solid rgb(0, 0, 0);
}

.card-header.list-card {
  letter-spacing: -0.5px;
  padding-right: clamp(5px, 2vw, 10px);
}

.card-text.list-card {
  flex: 1;
  border-right: 1px solid rgba(24, 24, 24, 0.788);
  border-top: none;
  padding: 20px 20px 20px 25px;

}

.card-description.list-card p { 
  margin-top: 10px;
}







/*
=====================
SQUARE LAYOUT
=====================
*/

@media (min-width: 768px) and (max-width: 1200px) {
  #main-column {
    padding-top: 8vw;
  }
  #site-heading {
    left: -2vw;
    height: 7vw;
  }
  #site-heading-bg {
    height: 5.4vw;
  }
  #site-heading::before {
    top: 1vw;
    width: 100vw;
  }
  #site-heading::after {
    width: 120vw;
    bottom: 1.5vw;
  }
  .glass-panel{
    padding: clamp(2px, .5vw, 8px);
    padding-bottom: clamp(20px, 5vw, 40px);
  }
  .glass-panel .glass-panel{
    padding: clamp(2px, .5vw, 8px);
    padding-bottom: clamp(20px, 5vw, 40px);
  }
  #nav-column {
    top: 8vw;
  }
  #sidebar {
    margin-left: 2vw;
    margin-right: 1vw;
  }
  .sidebar-content {
    padding: 1vw;
    width: 24vw;
    height: 51vw;
  }
  .sidebar-content hr {
    margin-top: 0.1vw;
    margin-bottom: 0.1vw;
    height: 0.1vw;
  }
  .sidebar-menu {
    font-size: 1.6vw;
  }
  .sidebar-menu li {
    letter-spacing: 0.4vw;
    margin-left: 0.2vw;
    font-size: unset;
  }
  .sidebar-menu li::before {
    margin-left: -2.2vw;
  }
  .sidebar-menu li.indent {
    margin-left: 1.0vw;
    letter-spacing: 0.4vw;
    font-size: unset;
  }
  .sidebar-menu li:hover {
    letter-spacing: 0.5vw;
  }
  .sidebar-menu li.indent::before{
    margin-left: -2.2vw;
  }
  .email-text{
    font-size: 1.1vw;
  }
  p.social{
    padding-left: 1vw;
    padding-right: 1vw;
  }
  p.social a{
    font-size: 1.5vw;
    line-height: 3.6vw;
    width: 3.5vw;
    height: 3.5vw;
  }
  #ornament-left {
    top: -1vw;
    left: -6.8vw;
    height: 110.5vw;
    width: 125vw;
  }
  #ornament-right {
    position: fixed;
    background-image: url('../img/ornament-left.png'); 
    right: -38vw !important;
    left: unset !important;
    bottom: -6.5vw;
    width: 142vw;
    height: 105vw;
    transform: rotate(180deg);
  }
  #content-column  {
    padding-left: 1vw;
    padding-right: 2vw;
  }
  .content-column-content {
    padding: 3vw;
  }
  .cards-container{
    margin: clamp(-4px, -0.25vw, -2px);
  }
  .card-box{
    padding: clamp(2px, 0.25vw, 4px);
  }
  .card-header {
    font-size: clamp(15px, 4vw, 22px);
  }
  .card-text {
    padding: clamp(15px, 4vw, 25px);
    padding-top: clamp(12px, 3vw, 20px);
  }
  .card-description p { 
    margin-top: clamp(12px, 2vw, 20px);
  }
  .card-hover-text-header {
    padding: clamp(15px, 5vw, 30px);
  }
  .card-header.list-card {
    font-size: clamp(12px, 3vw, 20px);
  }
  .card-text.list-card {
    padding: clamp(15px, 2vw, 20px);
  }
  .card-description.list-card p { 
    margin-top: clamp(10px, 1vw, 15px);
  }
  .deco-frame{
    left: 17vw;
    right: 1vw;
    top: 0px;
    bottom: 2vw;
    border-radius: 3vw;
    clip-path: polygon(0px 100vw, 100% 200px, 100% 100%, 0% 100%);
  }
  .deco-frame .deco-frame{
    top: 0px;
    bottom: 2vw;
    left: 2.5vw;
    right: 2vw;
    border-radius: 2vw;
    clip-path: polygon(0px 110vw, 100% 300px, 100% 100%, 0% 100%);
  }
  .deco-frame.home{
    right: 2vw;
  }

  .citation{
    padding: 5px;
    padding-top: 2vw;
    padding-bottom: 5vw;
    margin-top: 5vw;
    margin-bottom: 5vw;
  }
  blockquote{
    margin-left: 2vw;
    margin-bottom: 3vw;
    margin-right: 5vw;
    padding-left: clamp(5px, 4vw, 20px);
    line-height: 1.5;
  }
  blockquote::before {
    font-size: clamp(100px, 30vw, 300px);
    top: -3vw; 
    left: -1vw;
  }
  cite{
    right: 4vw;
    font-size: clamp(13px, 1.3vw, 23px);
    text-align: right;
  }
  
  .bc-arrow{
    padding: 0;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
  }
  .bc-arrow::before{
    display: none;
  }
}

/*
=====================
VERTICAL LAYOUT
=====================
*/


@media screen and (max-width: 767px) {
  #main-column {
    padding-top: 12vw;
  }
  #content-column {
    padding-bottom: 30vw;
    padding-left: 4vw;
    padding-right: 4vw;
    width: 100vw;
  }
  .content-column-content {
    padding: 4vw 2vw 5vw 2vw;
  }
  #site-heading {
    top: -0.2vw;
    width: 117vw;
    left: -9.2vw;
    height: 16vw;
    transform: scaleY(1.2) translateY(-1.2vw);
    transform-origin: top;
  }
  #site-heading::before {
    display: none;
  }
  #site-heading::after {
    height: clamp(1px, 0.2vw, 2px);
    background: linear-gradient(90deg, rgba(167, 167, 167, 1) 14%, rgba(0, 0, 0, 0) 110vw);
    top: 10.4vw;
    display: none;
  }
  #site-heading-bg {
    height: 6vw;
    top: 0vw;
    box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.5);
  }
  .banner{
    display: block;
    opacity: .15;
  }
  #drawer {
    display: block;
  }
  #sidebar {
    display: none;
  }
  #ornament-left {
    background-image: url('../img/ornament-left-grid.gif'); 
    width: 435vw;
    height: 400vw;
    position: absolute;
    top: -7vw;
    left: -22.6vw;
    transition: all 0.05s ease;
  }
  #ornament-left.home {
    background-image: url('../img/ornament-left.gif'); 
    top: -14.7vw;
    left: -29vw;
    width: 475vw;
    height: 395vw;
    transition: all 0.05s ease;
  }
  #ornament-right {
    display: none;
  }
  #diamond{
    display: block;
  }
  .glass-panel{
    padding: 1.2vw;
    padding-bottom: clamp(20px, 5vw, 40px);
  }

  .card-box{
    padding: 0.6vw;
  }
  .cards-container{
    margin: -0.6vw;
  }
  .deco-frame{
    display: none;
  }
  .card-header {
    font-size: clamp(15px, 4vw, 25px);
  }
  .card-text {
    padding: clamp(15px, 5vw, 30px);
  }
  .card-hover-text-header {
    padding: clamp(15px, 5vw, 30px);
  }
  .card-description p { 
    font-size: clamp(12px, 2vw, 14px);
    margin-top: clamp(12px, 2vw, 20px);
  }
  .card-header.list-card {
    font-size: clamp(16px, 4vw, 20px);
    padding-bottom: clamp(3px, 1vw, 15px);
  }
  .card-text.list-card {
    padding: clamp(5px, 2vw, 20px);
  }
  .card-description.list-card p { 
    margin-top: clamp(5px, 1vw, 15px);
  }

  #lightbox .prev, #lightbox .next {
    font-size: 8vw;
    padding: 3vw;
  }

  .citation{
    padding: 5px;
    padding-top: 2vw;
    padding-bottom: 10vw;
    margin-top: 5vw;
    margin-bottom: 5vw;
  }
  blockquote{
    margin-left: 2vw;
    margin-bottom: 3vw;
    margin-right: 5vw;
    padding-left: clamp(5px, 4vw, 20px);
    line-height: 1.5;
  }
  blockquote::before {
    font-size: clamp(200px, 60vw, 300px);
    top: clamp(-50px, -8vw, -20px); 
    left: -3vw;
  }
  cite{
    right: 4vw;
    font-size: clamp(13px, 2vw, 23px);
    text-align: right;
  }
  
  .bc-arrow{
    padding: 0;
    margin: 0;
  }
  .bc-arrow::before{
    display: none;
  }
  
}



/* Breakpoints */
@media (max-width: 1400px) { /* Extra extra large screens (xxl) */
  .masonry-item{
    width: 50%;
  }
}

@media (max-width: 1200px) { /* Extra large screens (xl) */
  .masonry-item{
    width: 50%;
  }
}

@media (max-width: 992px) { /* Large screens (lg) */
  .masonry-item{
    width: 50%;
    padding-bottom: clamp(3px, 0.3vw, 5px);
  }
  .gallery-item-box{
    width: 100%;
  }
}

@media (max-width: 768px) { /* Medium screens (md) */
  .masonry-item{
    width: 100%;
  }
}

@media (max-width: 300px) { /* xtra small screens (xs) */
  .list-card-image {
    display: none;
  }
}




.no-hover, .no-hover * {
  pointer-events: none !important;
  cursor: unset !important;
  animation: none !important;
}


/* responsive utilities */

.img-responsive {
  margin: 0;
  width: 100%;
  height: auto;
  opacity: 1;
  transition: 0.5s ease all;
  vertical-align: middle;
}





/* type */


ul {
  margin: 0;
  font-size: var(--text-size);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  margin: 0;
  padding-left: 0.5%;
  line-height: 1.4;
  margin-top: calc(var(--markdown-margin) * 2);
  margin-bottom: var(--markdown-margin);
  font-weight: 500;
  color: white;
  font-family: "Cutive Mono", Courier, monospace;
  letter-spacing: clamp(1px, 0.3vw, 5px);
  border-bottom: solid 1px rgba(184, 184, 184, 0.568);
  text-wrap: balance;
}
h1,
.h1 {
  font-size: var(--dyn-h1-size, clamp(28px, 7vw, 38px));
  line-height: 1;
  padding-bottom: clamp(6px, 1.5vw, 12px);
  margin-top: 0;
}
h2,
.h2 {
  font-size: clamp(25px, 5.5vw, 30px);
}
h3,
.h3 {
  font-size: clamp(16px, 4.5vw, 25px);
}
h4,
.h4 {
  font-size: clamp(14px, 3.5vw, 22px);
}
h5,
.h5 {
  font-size: clamp(12px, 3vw, 20px);
}
h6,
.h6 {
  font-size: clamp(8px, 2vw, 16px);
}








video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}