:root {
  --body-max-width: 44rem;
  --main-img-width: calc(var(--body-max-width) / 4);
  --main-img-height: calc(var(--body-max-width) / 6);
}

html {
  height: 100%;
}

body {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main {
  margin: 0 auto;
  width: calc(100% - var(--space-sm) * 2);
}

@media (min-width: 768px) {
  main {
    max-width: var(--body-max-width);
    width: unset;
    --main-img-height: calc(var(--body-max-width) / 4);
  }
}



:root {
  --space-sm: 0.75rem;  /* 12px */
  --space-md: 2.25rem;  /* 36px */
  --space-lg: 3.75rem;  /* 60px */
  --space-xl: 6.75rem;  /* 108px */

  --border-width: calc(var(--space-sm) / 6);

  --bar-height: 4rem;
  --bar-line-height: 2.5rem;
  --img-stack-size: 26vw;
  --img-stack-horizontal-offset: calc(var(--img-stack-size) * 0.75);

  --box-title-bg-color1: #f0fff2;
  --box-title-bg-color2: #bfeef2;
}

@media (min-width: 400px) {
  :root {
    --img-stack-size: var(--space-xl);
  }
}

html, html a, html .navbar details {
  
}

html {
    
    background-image: url("https://s3.us-east-005.backblazeb2.com/cows-lover-us-east/sites/meso-lect/bg-tiles/1000007053.png");
    background-size: 64.0px;
    background-repeat: repeat;
    

    font-family: Anuphan;
}

@media (max-width: 768px) {
  html .page-album-img {
    max-height: 30rem;
  }
}

html main {
  padding: var(--space-sm);
  padding-bottom: var(--space-lg);
  color: #555;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  html main {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }
}

html p {
  margin: var(--space-sm) 0;
}

html h1, html h2, html h3 {
    font-family: "VHSGothic";
    color: #9d174d;
}

html ol {
    list-style: decimal;
}

html ul {
    list-style: disc;
}

html a {
    color: #0000ee;
}

html a:hover {
    filter: brightness(115%);
}

html .navbar-items-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(var(--space-md) - var(--border-width));
  background: #ffffff;
  flex-wrap: wrap;
  row-gap: calc(var(--space-sm) / 2);
  column-gap: calc(var(--space-sm) * 2);
  padding-top: calc(var(--space-sm) / 2);
  padding-bottom: calc(var(--space-sm) / 2);

  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}


@media (min-width: 768px) {
  html .navbar-items-container {
    width: 100%;
  }
}


html .navbar-item:hover {
  text-shadow: 0 0 5px color-mix(in srgb, #f0fff2 30%, #b2ed00);
}

html .navbar-item {
    text-decoration: none;
    font-family: "Monda";
    color: #b2ed00;
    white-space: nowrap;
    
}

html .link-with-no-underline {
  text-decoration: none;
  

  &.-picless {
    width: 100%;
  }
}

html .transparent {
  opacity: 0;
}

html .navbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  html .navbar {
    flex-direction: row;
    justify-content: end;
    flex-wrap: wrap;
  }
}

html .navbar details {
  
  text-align: end;
  justify-content: end;
  width: 100%;
  min-height: var(--bar-line-height);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  html .navbar details {
    flex-direction: row;
  }
}

html .navbar details summary {
  line-height: var(--bar-line-height);
  list-style: none; /* Removes the default marker */
  color: #b2ed00;
  font-family: "Monda";
}

@media (max-width: 768px) {
  html .navbar details summary {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

html .navbar details summary::marker,
html .navbar details summary::-webkit-details-marker {
    display: none; /* Hides the default marker across browsers */
}

html .navbar a {
  font-size: 1.1rem;
  text-align: end;
}

@media (min-width: 768px) {
  html .navbar a {
    display: flex;
    align-items: center;
    line-height: var(--bar-line-height);
  }
}

html .cows--header {
  margin-bottom: var(--space-sm);

  border-width: var(--border-width);
  border-style: solid;
  border-color: #ffffff;
}

@media (min-width: 768px) {
  html .cows--header {
    width: 100%;
  }
}

html .navbar--logo-and-site-title {
  background: linear-gradient(
    to bottom,
    var(--box-title-bg-color1),
    var(--box-title-bg-color2)
  );

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);

  min-height: var(--space-lg);

  width: 100%;
  justify-content: center;
}

html .site-title {
  margin: 0;
  font-size: 2rem;
  font-family: RetroGaming;
  font-weight: normal;
  line-height: var(--bar-line-height);
  color: #2895e9;
  text-align: center;
  padding: calc(var(--space-sm) / 2);
}

@media (min-width: 768px) {
  html .site-title {
    padding: unset;
  }
}

html .navbar-logo {
  height: 2rem;
}

html .box {
  background: #ffffff;
  border-color: #ffffff;
  border-width: var(--border-width);
  border-style: solid;
  margin-bottom: var(--space-sm);

  &.-picless-box {
    display: flex;
    flex-direction: row;
    min-height: var(--space-lg);
    text-decoration: none;
  }
}

html .box-title {
  margin: 0;
  padding: 0;
  background: linear-gradient(
    to bottom,
    var(--box-title-bg-color1),
    var(--box-title-bg-color2)
  );
  padding-inline-start: var(--space-sm);
  font-size: 1.3rem;
  font-weight: normal;
  min-height: var(--space-md);
  display: flex;
  align-items: center;

  &.-picless {
    display: flex;
    justify-content: center;
    height: 100%;
  }
}

html .picless-box-title-text {
  margin-bottom: 3px;
}

html .box-text {
  padding-inline-start: var(--space-sm);
  padding-inline-end: var(--space-sm);
  margin-bottom: 0.5rem;
}

html .homepage--socials-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

@media (min-width: 768px) {
  html .homepage--socials-list {
    width: fit-content;
    flex-direction: row;
    gap: var(--space-md);
  }
}

html .homepage--socials-icon {
  width: 1.5rem;
  height: 1.5rem;
}

html .homepage--socials-item {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
}

html .album {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm);
}

@media (min-width: 768px) {
  html .album {
    padding-bottom: var(--hacky-extra-padding-bottom-fixing-fucking-album-overflow);
  }
}

.main-box--content {
  display: flow-root;
}

@media (min-width: 768px) {
  .main-box--content {
    margin-bottom: var(--negative-content-margin-offset);
  }
}

html .child--intro-img-container {
  float: right;
  max-width: var(--main-img-width);
  padding: var(--space-sm);
  box-sizing: border-box;
}

html .child--intro-img {
  max-height: var(--main-img-height);
  object-fit: contain;
  width: 100%;
}

html .page-album-img {
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

html .page-album-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

html .image-page-link {
  display: flex;
  justify-content: center;
  padding: var(--space-sm);
}

html .image-page-image {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
}

html .image-page-title {
  margin-top: 0;
  margin-bottom: 0;
}

html .image-page-desc {
  padding-top: var(--space-sm);
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

html .image-page-nav {
  display: flex;
  flex-direction: row;
  height: var(--space-lg);
  background: linear-gradient(
    to bottom,
    var(--box-title-bg-color1),
    var(--box-title-bg-color2)
  );
  color: #2895e9;
  justify-content: space-between;
  padding: var(--space-sm);

  border-width: var(--border-width);
  border-style: solid;
  border-color: #ffffff;
}

html .image-page--back-to-album {
  display: flex;
  align-items: center;
}

html .gallery-album {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
}

html .img-stack {
  width: calc(
    var(--img-stack-horizontal-offset) * 2
    + var(--img-stack-size)
    + var(--border-width) * 2
  );
  height: calc(var(--img-stack-size) + var(--border-width) * 2);
  position: relative;
  display: flex;
  justify-content: center;
}

html .img-stack-container {
  padding: var(--space-sm);
  height: calc(var(--img-stack-size) + var(--border-width) * 2);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--space-sm);
}

html .nav-arrow {
  height: 100%;
  display: flex;
  align-items: center;

  &.-padded {
    padding-inline-start: var(--space-sm);
  }

  &.-picless {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
    height: var(--space-lg);
    background: linear-gradient(
      to bottom,
      var(--box-title-bg-color1),
      var(--box-title-bg-color2)
    );
  }
}

@media (min-width: 768px) {
  html .nav-arrow {
    &.-picless {
      height: unset;
    }
  }
}

html .nav-arrow svg {
  height: 2.25rem;
  color: #0000ee;
}

html .img-in-stack {
  position: absolute;
  border-style: solid;
  border-color: white;
  border-width: 3px;
  height: var(--img-stack-size);
  width: var(--img-stack-size);
  object-fit: cover;
}

html footer {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  padding: var(--space-sm);
}

@media (min-width: 768px) {
  html footer {
    flex-direction: row;
    justify-content: center;
  }
}

html .inline-pdf {
  width: 100%;
  height: 40rem;
}


@media (min-width: 768px) {
  html .desktop-home-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-sm);
  }
}

/* utility classes */

html .flex-1 {
  flex: 1;
}

html .w-full {
  width: 100%;
}

html .justify-center {
  display: flex;
  justify-content: center;
}

html .height-sm {
  height: var(--space-sm);
}

html .display-none {
  display: none;
}

