/* ######################## */
/* ####### COLORS ######### */
/* ######################## */

:root {
    --green-50: #dfffe3;
    --green-100: #99ff29;
    --green-200: #74ea13;
    --green-300: #4ed50e;
    --green-400: #12be02;
    --green-500: #00ac00;
    --green-600: #068736;
    --green-700: #03622e;
    --green-800: #063d1f;
    --green-900: #011f0e;

    --gold-50: #fef4de;
    --gold-100: #ffd8a5;
    --gold-200: #ffba4a;
    --gold-300: #e7a50e;
    --gold-400: #c99304;
    --gold-500: #b08400;
    --gold-600: #8b6c05;
    --gold-700: #624e08;
    --gold-800: #3c3005;
    --gold-900: #1f1800;

    --red-50: #fff2f0;
    --red-100: #fed3c7;
    --red-200: #feb4a1;
    --red-300: #fe907b;
    --red-400: #ff6355;
    --red-500: #ff022a;
    --red-600: #d2002e;
    --red-700: #990027;
    --red-800: #62001a;
    --red-900: #35000f;

    --violet-50: #fff0fe;
    --violet-100: #eed2ff;
    --violet-200: #e8afff;
    --violet-300: #e686ff;
    --violet-400: #e256f8;
    --violet-500: #d80ee5;
    --violet-600: #b600b8;
    --violet-700: #870080;
    --violet-800: #57004e;
    --violet-900: #2f0029;


    --blue-50: #f0f5ff;
    --blue-100: #c8e0fe;
    --blue-200: #a3cafe;
    --blue-300: #80b2fe;
    --blue-400: #6098ff;
    --blue-500: #467bff;
    --blue-600: #3152fe;
    --blue-700: #2c09e2;
    --blue-800: #200092;
    --blue-900: #0e0152;

    --grey-50: #f5f5f5;
    --grey-100: #dedede;
    --grey-200: #c9c9c9;
    --grey-300: #b3b3b3;
    --grey-400: #9e9e9e;
    --grey-500: #898989;
    --grey-600: #707070;
    --grey-700: #505050;
    --grey-800: #313131;
    --grey-900: #181818;

    --black: #000;

    --surface: var(--black);
    --on-surface: var(--grey-50);

    --primary: var(--grey-50);
    --on-primary: var(--black);

    --skeleton2: var(--grey-50);
    --skeleton1: var(--grey-100);
}

/* ######################## */
/* ######## FONTS ######### */
/* ######################## */

@font-face {
  font-family: ztnature;
  src: url("/fonts/ZTNature-Regular.woff2");
  font-weight: normal;
}

@font-face {
  font-family: ztnature;
  src: url("/fonts/ZTNature-Bold.woff2");
  font-weight: bold;
}

@font-face {
  font-family: ztnature;
  src: url("/fonts/ZTNature-Italic.woff2");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: ztnature;
  src: url("/fonts/ZTNature-BoldItalic.woff2");
  font-weight: bold;
  font-style: italic;
}

/* ######################## */
/* ######### BASE ######### */
/* ######################## */

html {
    font-size: 16px;
    font-family: ztnature, Verdana, Geneva, Tahoma, sans-serif;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--surface);
    color: var(--on-surface);
    overflow-x: unset;
}

h1 {
    font-size: 52px;
}

h2 {
    font-size: 32px;
    font-weight: normal;
    text-transform: uppercase;
    margin: 0 16px;
}

p, li {
    font-size: 20px;
    margin: 16px;
}

a, button, label, input, select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 20px;
    text-decoration: none;
    border-radius: 4px;
}

a, button, select, option {
    cursor: pointer;
}

a:focus, a:hover, button:focus, button:hover, input:focus, input:hover {
    outline: var(--on-primary) 3px solid;
    outline-offset: -1px;
}

p.alert a:hover, p.alert a:focus {
    outline-color: var(--red-300);
}

p a {
    padding: 2px;
    margin-left: -2px;
    color: inherit;
    text-decoration: underline;
}

p a:hover {
    text-decoration: none;
}

b {
    font-weight: bold;
}

i {
    font-style: italic;
}

sc {
    font-variant: small-caps;
}

em {
    font-style: normal;
}

doubletitle h1 {
    margin-bottom: 0 !important;
}

doubletitle p {
    text-align: center !important;
    text-align-last: center !important;
    font-style: italic;
    margin-bottom: 52px;
    margin-top: 8px;
}

img {
    text-align: end;
    font-size: 16px;
    display: block;
}

ul {
    list-style: none;
}

li {
    position: relative;
}

li::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-image: url("/images/common/komos-embroidery.png");
    background-size: contain;
    background-repeat: no-repeat;
    image-rendering: pixelated;
}

hr {
    border: none;
}

hr::after {
    background-image: url("/images/common/komos-embroidery.png");
    background-position: center;
    display: block;
    height: 20px;
    content: "";
    background-repeat: repeat-x;
    background-size: auto 100%;
    image-rendering: pixelated;
    margin: 16px;
    border-radius: 8px;
}

::selection {
    color: var(--grey-100);
    background: var(--blue-400);
}

.redContainer {
    background-color: var(--red-400);
    color: var(--black);
}

.violetContainer {
    background-color: var(--violet-400);
    color: var(--black);
}

.blueContainer {
    background-color: var(--blue-300);
    color: var(--black);
}

.greenContainer {
    background-color: var(--green-200);
    color: var(--black);
}

.goldContainer {
    background-color: var(--gold-300);
    color: var(--black);
}

.redText {
    color: var(--red-400);
    outline-color: var(--red-400) !important;
    border-color: var(--red-400);
}

.blueText {
    color: var(--blue-400);
    outline-color: var(--blue-400) !important;
    border-color: var(--blue-400);
}

.violetText {
    color: var(--violet-300);
    outline-color: var(--violet-300) !important;
    border-color: var(--violet-300);
}

.greenText {
    color: var(--green-200);
    outline-color: var(--green-200) !important;
    border-color: var(--green-200);
}

.goldText {
    color: var(--gold-300);
    outline-color: var(--gold-300) !important;
    border-color: var(--gold-300);
}

/* ######################## */
/* ####### HEADER ######### */
/* ######################## */

header {
    position: fixed;
    width: 100%;
    background-color: transparent;
    color: var(--primary);
    fill: var(--primary);
    stroke: var(--primary);
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    z-index: 10;
    transition: width 0.2s linear;
}

.header.solid, .header:hover {
    background-color: var(--primary);
    color: var(--on-primary);
    fill: var(--on-primary);
    stroke: var(--on-primary);
    border-bottom: var(--on-primary) 3px solid;
}

.header a {
    display: block;
}

.mainHeading {
    width: 100%;
    margin: 0;
    max-width: 538px;
}

.headerIcon {
    height: 24px;
    width: 24px;
    padding: 16px;
    font-size: 24px;
    color: inherit;
    display: block;
    flex-shrink: 0;
}

/* ######################## */
/* #### SCREEN DIMMER ##### */
/* ######################## */

.screenDimmer{
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0;
    position: fixed;
    z-index: 5;
    transition: 0.2s;
    display: none;
}

/* ######################## */
/* ##### MENU SHEET ####### */
/* ######################## */

.menuSheet {
    position: fixed;
    height: 100vh;
    height: 100dvh;
    width: 0;
    top: 0;
    overflow: hidden;
    background-color: var(--primary);
    color: var(--on-primary);
    transition: all 0.2s linear;
    z-index: 9;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.menuSheet.open {
    width: 300px;
    border-right: var(--on-primary) 3px solid;
}

.menuSheetButtonGroup {
    display: flex;
    flex-direction: column;
    margin-top: 128px;
}

.menuSheetButton {
    font-size: 32px;
    padding: 12px 16px;
    color: inherit;
}

.closeSheetButton {
    position: absolute;
    top: 5%;
    right: 5%;
    height: 24px;
    aspect-ratio: 1/1;
    background-color: var(--on-primary);
    color: var(--primary);
    border-radius: 100%;
}

/* ######################## */
/* ####### FOOTER ######### */
/* ######################## */

footer {
    padding: 24px 0;
    background: var(--primary);
    color: var(--on-primary);
    stroke: var(--on-primary);
}

.footerLinks {
    display: flex;
    max-width: 512px;
    margin: 0 auto;
    padding: 0 16px;
    overflow: hidden;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footerLinks p {
    margin: 2px;
    line-height: 28px;
    width: 252px;
}

.footerLinks a {
    outline-color: var(--on-primary);
}

.footerLogo {
    width: 100%;
    height: auto;
    fill: var(--on-primary);
    stroke: var(--on-primary);
}

@media screen and (min-width: 1060px) {
    .footerLinks {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        max-width: 1024px;
    }
}

/* ######################## */
/* ### PORTRAIT SECTION ### */
/* ######################## */

.portrait {
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

.halfPortrait {
    width: 100%;
    height: 50vh;
}

.portraitImage {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.portraitOverlay {
    position: relative;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%, -100%);
    color: var(--on-surface);
    padding: 0 14px;
    max-width: 512px;
}

.portraitText {
    text-align: center;
}

.portraitButton {
    margin: 8px 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 0;
    width: 100%;
    max-width: 512px;
    background-color: var(--primary);
    color: var(--on-primary);
    text-transform: uppercase;
    border-radius: 4px;
    display: block;
    text-align: center;
}

@media screen and (min-width: 1060px) {
    .portraitOverlay {
        max-width: 1024px;
    }
}

/* ######################## */
/* ##### TITLE SECTION #### */
/* ######################## */

.title {
    margin: 48px auto;
    max-width: 544px;
}

.title > p {
    text-align: justify;
    text-align-last: right;
}

@media screen and (min-width: 1060px) {
    .title {
        max-width: 1056px;
    }
}

/* ######################## */
/* ### SKELLETON LOADER ### */
/* ######################## */

.skeleton {
    border-radius: 4px;
    background: linear-gradient( 111deg, var(--skeleton2) 30%, var(--skeleton1) 50%, var(--skeleton2) 70% );
    background-size: auto;
    background-size: 400%;
    animation: skeleton 2s infinite linear;
}

@keyframes skeleton {
	0% {
		background-position: 100% 100%;
	}
	100% {
		background-position: 0 0;
	}
}

/* ######################## */
/* #### IMAGE GALLERY ##### */
/* ######################## */

#mediaGallery {
    margin: 24px 16px;
    overflow: hidden;
}

#mediaGallery > h2 {
    margin: 0 auto;
    max-width: 512px;
    margin-bottom: 8px;
}

.mediaGalleryScrollerWrapper {
    display: flex;
    max-width: 532px;
    width: 100%;
    margin: 0 auto;
}

.mediaGalleryContainer {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    border-radius: 4px;
    padding: 2px;
    align-items: flex-start;
}

.galleryMediaContainer {
    padding: 8px !important;
}

.galleryMedia {
    height: 248px;
    width: auto;
    border-radius: 4px;
    display: block;
    margin-bottom: 4px;
}

.galleryMediaContainer .galleryNote {
    margin: 0;
    text-align: left;
    text-align-last: left;
    font-size: 14px;
    line-height: 16px;
    color: var(--primary);
    text-wrap-style: balance;
}

.galleryMediaContainer:hover, .galleryMediaContainer:focus {
    outline: var(--primary) 3px solid;
    outline-offset: -1px;
}

@media screen and (min-width: 1060px) {
    .mediaGalleryScrollerWrapper {
        max-width: 1044px;
    }
    #mediaGallery > h2 {
        max-width: 1024px;
    }
}

/* ######################## */
/* ## FULLSCREEN GALLERY ## */
/* ######################## */

#screenDimmerGallery {
    top: 0;
    left: 0;
    z-index: 10;
}

.fullscreenGalleryWrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    display: none;
    padding: 16px;
}

.fullscreenGallery {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fullscreenImage {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh-32px);
    max-width: calc(100vw - 32px);
    min-width: 100%;
    min-height: 100%;
    border-radius: 4px;
}

.galleryButton {
    width: 100%;
    min-width: 48px;
    padding: 12px 4px;
    font-size: 20px;
    border-radius: 4px;
    background-color: var(--primary);
    color: var(--on-primary);
    text-align: center;
    border: none;
    cursor: pointer;
}

.galleryButton:hover, .galleryButton:focus {
    outline: var(--on-primary) 3px solid;
    outline-offset: -1px;
}

.galleryButtonGroupWrapper {
    z-index: 12;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 512px;
}

.galleryButtonGroup {
    display: flex;
    gap: 4px;
    padding: 0 16px;
}

.fullscreenGalleryNote {
    font-size: 14px;
    background: var(--black);
    border-radius: 4px;
    width: fit-content;
    margin: 4px auto;
    padding: 2px 8px;
}

/* ######################## */
/* ######### TAGS ######### */
/* ######################## */

.tagSelection {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 6px;
    background-color: var(--primary);
    max-width: 500px;
    margin: 16px auto;
    border-radius: 4px;
}

.tag {
    background-color: var(--primary);
    color: var(--on-primary);
    border: var(--on-primary) 2px solid;
    border-radius: 16px;
    font-size: 20px;
    padding: 2px 8px;
    margin: 2px;
    text-transform: capitalize;
}

.tag.selected {
    background-color: var(--on-primary);
    color: var(--primary);
}

#reverseIcon {
    width: 13px; 
    height: auto;
}

@media screen and (min-width: 1060px) {
    .tagSelection {
        max-width: 1012px;
    }
}

/* ######################## */
/* #### BLOG POST HERO #### */
/* ######################## */

.portraitOverlay.centered {
    top: -50%;
    transform: translate(-50%, -50%);
}

.portraitOverlay.centered h1 {
    text-align: center;
    text-transform: uppercase;
}

.portraitOverlay.centered p {
    text-align: center;
    font-style: italic;
    margin: 0;
}

@media screen and (min-width: 1060px) {
    .portraitOverlay.centered {
        max-width: 1028px;
    }
}

/* ######################## */
/*  BLOG POST AUTHOR HEADER */
/* ######################## */

.authorRow p, .authorRow a {
    font-style: italic;
}

.infoRow {
    padding: 24px 16px;
}

.infoRow p, .infoRow a {
    margin: auto;
    
    max-width: 512px;
    text-align: justify;
    text-align-last: right;
    font-size: 16px;
}

.authorRow {
    background-color: var(--primary);
    color: var(--on-primary);
}

.infoText {
    font-size: 16px;
    margin: 0 16px;
}

@media screen and (min-width: 1060px) {
    .infoRow p {
        max-width: 1024px;
    }
}

/* ######################## */
/* ###### BLOG POST #######  */
/* ######################## */

.blogPost {
    margin: 24px auto;
    max-width: 544px;
}

.blogPost p {
    line-height: 28px;
    text-align: justify;
    text-align-last: right;
}

.blogPost li {
    line-height: 28px;
    text-align: justify;
    text-align-last: left;
}

.blogPost h1 {
    margin: 52px 16px;
    text-align: center;
}

.blogPost h2 {
    margin: 32px 16px;
    text-transform: unset;
}

.blogPost a {
    outline-color: var(--on-surface);
}

info {
    border: var(--primary) 3px solid;
    border-radius: 16px;
    font-size: 16px;
    height: 10px;
    padding: 1px 4px 7px 4px;
    display: inline-flex;
    justify-content: center;
    min-width: 11px;
    width: fit-content;
    line-height: 1;
    margin-right: 8px;
}

.quote {
    display: block;
    margin: 32px 16px;
    border-left: var(--on-surface) 4px solid;
    border-radius: 4px;
    padding-left: 8px;
}

.quote p {
    text-align: justify;
    text-align-last: left;
    margin: 0;
}

.floatingText {
    padding: 16px;
    max-width: 512px;
    display: block;
    margin: 0 auto;
}

@media screen and (min-width: 1060px) {
    .blogPost {
        max-width: 1056px;
    }
    .floatingText {
        max-width: 1024px;
    }
}

/* ######################## */
/* #### BLOG POST LIST ####  */
/* ######################## */

.blogPostList {
    margin: 24px 16px;
}

.blogPostListEntry {
    display: flex;
    overflow: hidden;
    padding: 8px;
    background-color: var(--primary);
    max-width: 496px;
    margin: 0 auto;
    border-radius: 0;
}

.blogPostListEntry:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.blogPostListEntry:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border: none;
}

.blogPostListImage {
    min-width: 64px;
    width: 64px;
}

.blogPostListImage img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.blogPostListText {
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 0 20px;
    width: 100%;
}

.blogPostListText p {
    margin: 0;
    font-style: italic;
}

.blogPostListText h2 {
    margin: 0 0 8px 0;
}

.blogPostTagGroup {
    width: 100%;
    display: none;
}

.blogPostTag {
    border-radius: 4px;
    padding: 0 4px;
    text-transform: uppercase;
    margin-right: 8px;
}

.blogPostTag:first-child {
    margin-left: -4px;
}

@media screen and (min-width: 1060px) {
    .blogPostListEntry {
        max-width: 1008px;
    }
}
@media screen and (min-width: 420px) {
    .blogPostTagGroup {
        display: block;
    }
}

