@font-face {
  font-display: swap;
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  src: url('/meta/fonts/anton-latin-regular.woff2') format('woff2'),
       url('/meta/fonts/anton-latin-regular.ttf') format('truetype');
}


:root{
    --wheat: #fff0d7;
    --dk-blue: #001745;
    --accent-color: #0ebde4;
    --display-font: anton;
    --body-font: Arial, Helvetica, sans-serif;
}

body{
    padding:0;margin:0;
    /* background-color: black; */
    font-family:var(--body-font);
    font-size: clamp(20px, 0.75rem + 0.8vw, 24px);
}

h1,h2,h3,h4,h5,h6{
    margin:0;
    font-family:var(--display-font);
}

ol,ul{margin-top:0;}
a{text-decoration:none;color:inherit;}
p{margin-top:0;}
p > a { text-decoration:underline; }
p:last-child,ol:last-child,ul:last-child{
    margin-bottom:0;
}

hr.clear{
    margin:0;
    border:0;
    clear:both;
}

ul li {list-style-type:"★ ";}
ul > *:nth-child(2n){list-style-type:"✮ ";}

span.dont-break {display:inline-block;}

blockquote {
    margin-left: 0.5rem;
    border-left: 3px solid var(--accent-color);
    padding: 1rem;
}

.outline, .outline-hover:hover {
    --color:white;
    --width:2px;
    --width-negative: -2px; 
    filter:
    drop-shadow(var(--width)0 0 var(--color))
    drop-shadow(var(--width-negative) 0 0 var(--color))
    drop-shadow(0 var(--width)0 var(--color))
    drop-shadow(0 var(--width-negative) 0 var(--color));
}

.justified-gallery {
    --space: 5px;
    --min-height: 200px;
}

.justified-gallery {
    display: flex;
    flex-wrap: wrap;
    grid-gap: var(--space);
    list-style: none;
}

.justified-gallery > *{
    width:100%;
    flex-grow: calc(var(--width) * (100000 / var(--height)));
    flex-basis: calc(var(--min-height) * (var(--width) / var(--height)));
    aspect-ratio: var(--width) / var(--height);
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.justified-gallery > * > img {
    top: 0; left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
}

.yt-embed {
    --embed-thumb: unset;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
}

.yt-embed > iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.yt-embed > button {
    transition: 0.5s;
    content: "";
    display: block;
    z-index: 100;
    position: absolute;
    top:0;
    background-image: var(--embed-thumb);
    background-color: unset;
    background-size: 100%;
    background-position: center;
    border: 0;
    padding: 0;
    width: 100%;
    height: 100%;

    &::after {
        content: var(--embed-title);
        position: absolute;
        display: block;
        color: white;
        font-family: var(--display-font);
        font-size: 1.5rem;
        left: 0.5rem;
        bottom: 0.5rem;
        --color:black;
        --width:2px;
        filter:drop-shadow(var(--width)0 0 var(--color))drop-shadow(calc(-1*var(--width))0 0 var(--color))drop-shadow(0 var(--width)0 var(--color))drop-shadow(0 calc(-1*var(--width)) 0 var(--color))
    }

    &:hover { background-size: 110%; }
}

.float-right{float:right;margin-left:1rem;margin-bottom:1rem;display:block;}
.float-left{float:left;margin-right:1rem;margin-bottom:1rem;display:block;}

@media only screen and (max-width: 450px) {
.float-right,.float-left{float:none;margin:1rem auto;}
}

@media only screen and (min-width: 450px) {
    .db-list{columns:2;}
}

.txt-left{text-align: left;}
.txt-center{text-align: center;}
.txt-right{text-align: right;}
    
.checklist > li { list-style-type: "□ "; }

.x { 
    text-decoration: line-through;
    list-style-type: "■ "!important;
}

::selection{
    background-color: var(--accent-color);
    color: black;
}


.flex {
    display: flex;
    gap: 0.5rem;
}

@media only screen and (max-width: 600px) {
    .flex { display: block;}
    .flex > * { margin-bottom: 1rem;}
}


.cute-links p > a {
    text-decoration: none;
    display: inline-block;
    font-family: var(--display-font);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.cute-links p > a::after {
    content: "☐";
    display: inline-block;
    color: #00000000;
    margin-left: 0.2rem;
    background-image: url(/meta/svg/outlink.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.cute-links p > a::before{
  z-index: -1;
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  background-color: var(--accent-color);
  width: 100%;
  height: 0;
  transition: 0.2s;
}

.cute-links p > a:hover::before{ height: 1rem; }



#lightbox {
    --time: 0.4s;
    --default-height: 100vh;
    --default-color:rgba(0, 0, 0, 0.8);
    --default-img: calc(100vh - 4rem);
    top:0;
    position: fixed;
    width: 100vw;
    height: 0;
    overflow: hidden;
    text-align: center;
    transition: var(--time);
    z-index: 100;
}

#lightbox-content {
    margin-top: 1rem;
    position: relative;
    display: inline-block;
    padding: 0.5rem;
    background-color: white;
    top: 50%;
    transform: translateY(calc(-50% - 1.5rem));

    img {
        display: block;
        transition: 1s;
        max-height: 0;
        width: 100%;
        object-fit: cover;
    }

    svg {
        height: 15%;
        position: absolute;
        padding: 1rem;
        top: 50%;
        transform: translateY(-50%);
            --color:rgba(255, 255, 255, 0.5);
        --width:2px;
        filter:drop-shadow(var(--width)0 0 var(--color))drop-shadow(calc(-1*var(--width))0 0 var(--color))drop-shadow(0 var(--width)0 var(--color))drop-shadow(0 calc(-1*var(--width)) 0 var(--color))
    }
}

#lightbox-content > button {
    display: block;
    position: absolute;
    height: 100%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--time);
    background-color: unset;
    border: unset;

    &:hover { opacity:1; }
    &#lightbox-prev {
        width: 40%;
        background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.5), #0000);
        left: 0;
        > svg { left: 1rem; }
    }

    &#lightbox-next {
        width: 40%;
        background-image: linear-gradient(90deg, #0000, rgba(255, 255, 255, 0.5));
        right: 0;
        > svg { right: 1rem; }
    }
}

#lightbox-info {
    padding-left: 0.5rem;
    color: white;
    position: absolute;
    bottom: -1.5rem; left:0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    width: 95%;
    font-size: 1rem;
    
    > a { white-space: nowrap; }
    > a:hover { font-style: italic; }
}

.justified-gallery button {
    display: inline-block; border: unset;
    background-color: unset;
}