:root {
    --lightcolor: 35%;
    --lightback: 90%;
    --chroma: 0.10;
    --hue: 0;
    --border-color: var(--foreground);
    --siurblio: solid 0.3rem var(--border-color);
    --tag-border: solid 0.2rem var(--border-color);
    --tag-shadow: 0.3rem 0.3rem var(--border-color);
    --link-accent: hsl(35 100% 50%);
}

:root {
    --general-background: oklch(1 0 0);
    --foreground: oklch(0.2 0 0);
    --to-invert-filter: 0;
    --to-invert-border: 0;
    --img-filter-brightness: 100%;
    --darken-border: 0;
    --link-accent: hsl(35 100% 50%);
    --shadow: 0.5rem 0.5rem var(--border-color);
    --transition: 0.5s;
}

@media (prefers-color-scheme: dark) {
    :root {
        --general-background: oklch(0 0 0);
        --foreground: oklch(0.85 0 0);
        --border-color: oklch(0.4 0 0);
        --to-invert-filter: 1;
        --to-invert-border: 0.38;
        --img-filter-brightness: 80%;
        --darken-border: 0.067;
    }
}

/* body { */
/*     background: black; */
/*     color: white; */
/* } */

html, body {
    padding: 0;
    margin: 0;
    /* overflow: hidden; */
    /* margin: 0 0.7em 0.6em 0; */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html, body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

html, body {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    background-color: var(--general-background);
}

.coiny {
    font-family: "Coiny", sans-serif;
    font-style: normal;
}

.nunito {
    font-family: "Nunito", sans-serif;
    font-style: normal;
}

.nunito-sans {
    font-family: "Nunito Sans", sans-serif;
    font-style: normal;
}

img, video {
    filter: brightness(var(--img-filter-brightness));
}

header {
    position: sticky;
    top: -2.9em;
    z-index: 2;
    background-color: var(--general-background);
    border-bottom: var(--siurblio);
    /* box-shadow: 0.5em 0.5em black; */
    margin: 0;
    padding: 3em 0.3em 0 0;
}

/* .filterDiv { */
/*     display: none; */
/* } */
/* .show { */
/*     display: grid; */
/* } */

.closebtn {
    display: none;
}
.openbtn {
    display: none;
}

.ulheader {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    /* padding: 0 0 0 2.5em; */
    /* margin: 1em 0; */
    padding: 0.2em;
    margin: 0;
}

.ulheader {
    display: run-in;
}

.logo-home {
    float: left;
}

.header-tags {
    float: right;
}

.sect-galerija {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 0.7em;
    /* grid-auto-rows: 10px; */

    /* flex-direction: column; */
    /* flex-wrap: wrap; */
    /* height: 100vh; */
}

.span-1 {
    grid-column: span 1;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.bento-ivadas {
    z-index: 1;
    position: absolute;
    /* top: 0; */
    /* left: 0; */
    border: var(--siurblio);
    background-color: var(--general-background);
    /* width: min-content; */
    /* padding: 2em */
    box-shadow: var(--shadow);
    margin: 0.7em 0.7em 0.6em 0.7em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    /* width: calc(50vw - 30px); */
    height: var(--blank-height);
    /* height: auto; */
}

.ivado-tekstas p {
    color: var(--foreground);
    display: block;
    margin: 0 auto 1rem;
    font-weight: 500;
        /* text-align: justify; */
        /* text-justify: inter-word; */
}

.artcl-postas {
    position: relative;
    border: var(--siurblio);
    /* width: min-content; */
    /* padding: 2em */
    box-shadow: var(--shadow);
    margin: 0.7rem 0.7rem 0.6rem;
}

.blank {
    border: solid 0.3rem transparent;
    box-shadow: none;
    height: var(--blank-height);
    visibility: hidden;
    pointer-events: none;
}

time {
    font-size: 1.1em;
    font-weight: 600;
    position: absolute;
    top: 0;
    right: 0;
    color: var(--foreground);
    background: var(--general-background);
    border-left: var(--siurblio);
    border-bottom: var(--siurblio);
    padding: 0.6em 0.8em;
    /* width: 6em; */
    z-index: 1;
}

.zvaigzdute,
.gelyte {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.5em;
    height: 2.83rem;
    aspect-ratio: 1/1;
    background: white;
    border-right: var(--siurblio);
    border-bottom: var(--siurblio);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.zvaigzdute img,
.gelyte img {
    height: 100%;
    width: auto;
    display: block;
    border-bottom: none;
}

figure {
    padding: 0;
    margin: 0;
}

figcaption {
    font-size: 1.4em;
    font-weight: 800;
    padding: 0 0 0.2em 0.4em;
    margin: 0;
}

.img-normal {
    opacity: 1;

}

.img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

picture:hover source {
    opacity: 0;
}

picture:hover .img-hover {
    opacity: 1;
}

.ar {
    /* aspect-ratio: 3/4; */
    /* display: block; */
    /* height: auto; */
    width: 100%;
    border-bottom: var(--siurblio);
}

.ar-1610 {
    aspect-ratio: 16/10;
}

.ar-a4 {
    aspect-ratio: 1/sqrt(2);
}

.ar-43 {
    aspect-ratio: 4/3;
}

.ar-34 {
    aspect-ratio: 3/4;
}

.ar-11 {
    aspect-ratio: 1/1;
}

.artcl-postas a:link,
.artcl-postas a:visited,
.artcl-postas a:hover,
.artcl-postas a:active {
    text-decoration: none;
}

a:link,
a:visited,
a:hover,
a:active {
    color: var(--foreground);
}

a:link.linkas {
    color: var(--foreground);
    text-decoration-color: var(--link-accent);
    text-decoration-thickness: 0.1rem;
    text-underline-offset: 0.28rem;
    text-decoration-skip-ink: none;
}

a:visited.linkas {
    color: var(--foreground);
    text-decoration-color: var(--link-accent);
}

a:hover.linkas {
    color: var(--foreground);
    text-decoration-color: var(--link-accent);
    text-decoration-thickness: 0.5rem;
    text-underline-offset: -0.14rem;
    text-decoration-skip-ink: none;
}

.starlink {
    text-decoration: none;
    /* border-radius: 1em; */
    /* background: oklch(85% 0.15 var(--hue)); */
    color: var(--foreground);
    font-size: 1em;
    padding: 0.4em 0.2em;
    border: var(--tag-border);
    /* border-radius: 100vh; */
    box-shadow: var(--tag-shadow);
}

.starlink img {
    position: relative;
    top: 0.4rem;
    margin-top: -0.75rem;
    height: 1.5rem;
}

.tagai {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    list-style-type: none;
    /* padding: 0 0 0 2.5em; */
    /* margin: 1em 0; */
    /* padding: 0; */
    padding: 0.2em;
    margin: 0;
    margin-top: auto;
}

.tagas {
    text-decoration: none;
    /* border-radius: 1em; */
    /* background: oklch(85% 0.15 var(--hue)); */
    color: var(--foreground);
    font-size: 1em;
    font-weight: 500;
    padding: 0.4em 0.6em;
    border: var(--tag-border);
    /* border-radius: 100vh; */
    box-shadow: var(--tag-shadow);
}

li {
    padding: 0.8em 0.5em 1.25em 0.3em;
}

/* footer { */
/*     background-color: white; */
/*     border-top: var(--siurblio); */
/*     margin: 0; */
/*     padding: 6em 0.3em 0 0; */
/* } */

 /* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .artcl-postas {
        width: calc(100vw - 2.5rem);
    }
    .bento-ivadas {
        /* width: calc(100vw - 30px); */
        width: calc(100vw - 2.5em - 1em);
        height: calc(var(--blank-mobile-height) + 0.6em + 0.7em + 0.5em);
    }

    .blank {
        border: solid 0.3rem transparent;
        height: calc(var(--blank-mobile-height) / 2);
    }

    header {
        position: fixed;
        height: 100vh;
        width: 0;
        top: 0;
        left: 0;
        z-index: 2;
        background-color: red;
        /* border-inline-end: var(--siurblio); */
        outline: solid 0.3rem green;
        outline-offset: -0.3rem;
        /* box-shadow: 0.5em 0.5em black; */
        margin: 0;
        padding: 0;
        transition: 0.5s;
    }

    .closebtn {
        position: absolute;
        top: 0;
        right: 10vw;
        display: block;
        margin-bottom: 10vw;
    }
    .openbtn {
        display: block;
    }

    .ulheader {
        display: block;
        /* flex-direction: column; */
    }
}

@media only screen and (min-width: 600px) {
    .artcl-postas {
        width: calc(50vw - 30px);
    }
    .bento-ivadas {
        width: calc(100vw - 32px - 1em);
    }
}

@media only screen and (min-width: 1000px) {
    .artcl-postas {
        width: calc(33.3333vw - 30px);
    }
    .bento-ivadas {
        width: calc(66.6667vw - 32px - 1em);
    }
}

@media only screen and (min-width: 1400px) {
    .artcl-postas {
        width: calc(25vw - 30px);
    }
    .bento-ivadas {
        width: calc(50vw - 32px - 1em);
    }
} 

@media only screen and (min-width: 2000px) {
    .artcl-postas {
        width: calc(20vw - 30px);
    }
    .bento-ivadas {
        width: calc(40vw - 32px - 1em);
    }
} 

@media only screen and (min-width: 2500px) {
    .artcl-postas {
        width: calc(16.6667vw - 30px);
    }
    .bento-ivadas {
        width: calc(33.3333vw - 32px - 1em);
    }
} 

@media only screen and (min-width: 3000px) {
    .artcl-postas {
        width: calc(14.2857vw - 30px);
    }
    .bento-ivadas {
        width: calc(28.5714vw - 32px - 1em);
    }
} 

@media only screen and (min-width: 3500px) {
    .artcl-postas {
        width: calc(12.5vw - 30px);
    }
    .bento-ivadas {
        width: calc(25vw - 32px - 1em);
    }
} 

@media only screen and (min-width: 4000px) {
    .artcl-postas {
        width: calc(11.1111vw - 30px);
    }
    .bento-ivadas {
        width: calc(22.2222vw - 32px - 1em);
    }
} 

@media only screen and (min-width: 4500px) {
    .artcl-postas {
        width: calc(10vw - 30px);
    }
    .bento-ivadas {
        width: calc(20vw - 32px - 1em);
    }
} 

@media only screen and (min-width: 5000px) {
    .artcl-postas {
        width: calc(9.0909vw - 30px);
    }
    .bento-ivadas {
        width: calc(18.1818vw - 32px - 1em);
    }
} 

@media only screen and (min-width: 5500px) {
    .artcl-postas {
        width: calc(8.3333vw - 30px);
    }
    .bento-ivadas {
        width: calc(16.6667vw - 32px - 1em);
    }
} 

@media only screen and (min-width: 6000px) {
    .artcl-postas {
        width: calc(7.6923vw - 30px);
    }
    .bento-ivadas {
        width: calc(15.3846vw - 32px - 1em);
    }
} 
