@font-face {
  font-family:LyonDisplay;
  src:url(./media/LyonDisplay-Light.woff2) format("woff2");
  font-weight:300;
  font-style:normal;
  font-display:swap
}

:root {
    --gap-size: 20px;
    --img-radius: 0px;
    --menu-width: 200px;
    --header-height: 60px;
    --footer-height: 0px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    /* font-family: "EB Garamond", serif; */
    font-family: "LyonDisplay", serif;
    font-optical-sizing: none;
    font-weight: 150;
    font-style: medium;
    font-size: 19px;
    color: #3e5f37;
    /* color: rgb(119, 61, 56); */
    /* background: hsl(0, 0%, 90%) url("chrome://global/skin/media/imagedoc-lightnoise.png"); */
    background-image: url("./media/noise.svg");
    margin-bottom: var(--footer-height);
    /* scrollbar-color: rgb(231, 230, 225) transparent; */
    /* scrollbar-color: rgb(201, 206, 192) transparent; */
    scrollbar-color: rgb(215, 216, 205) transparent;
    scrollbar-width: thin;
}

body {
    overflow: auto;
}

.grid-container {
    columns: 7 200px;
    gap: var(--gap-size);
    margin: var(--gap-size);
    width: calc(100% - var(--menu-width)) ;
    margin-top: calc(1rem + var(--header-height));
    margin-bottom: var(--footer-height);
    font-family: "Azeret Mono", monospace;
    font-optical-sizing: auto;
    font-size: 10pt;
}
.grid-container div {
    margin: 0 0rem 0rem 0;
    display: inline-block;
    width: 100%;
    flex: 1;
    margin-bottom: 40px;
    border-bottom: solid;
    border-color: darkgrey;
    border-width: 1px;
    /* border-radius: var(--img-radius); */
}
.grid-container div img {
    width: 100%;
    opacity: 85%;
    border-radius: var(--img-radius);
}

.grid-container div p {
    margin: 5px;
    text-align: left;

}

.data, .lloc {
    color: gray;
    font-size: 8pt;
}

.description {
}

.especies {
  font-style: italic;
  font-size: 8pt;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(73, 73, 73, 0.7);
  /* transition: opacity 500ms; */
  visibility: hidden;
  opacity: 0;
  /* transition: opacity 0.4s ease, visibility 0.4s ease; */
  transition: all 0.3s ease-in-out;
  z-index: 10;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.overlay-close {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  z-index: 11;
}

.modal-img {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1002;      /* above overlay-close so it’s visible */
  pointer-events: none; /* this ensures clicks go to overlay-close */
}

.modal-img img {
  display: block;
  max-width: 80vw;   /* width limit */
  max-height: 80vh;  /* height limit */
  width: auto;
  height: auto;
  object-fit: contain; /* keeps aspect ratio */
  opacity: 1;
}


.side-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: var(--footer-height); 
  width: var(--menu-width);
  /* background-color: #f5f5f5; */
  /* border: 1px solid #ddd; */
  /* top | right | bottom | left */
  padding: 1rem 1rem 0 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;  /* allows top and bottom sections */
  justify-content: space-between; /* pushes bottom item to bottom */
  font-family: "Azeret Mono", monospace;
  font-size: 15px;
  text-align: end;

}

.side-menu .nav-bottom {
    margin: 0;
}

.side-menu a {
  display: block;
  color:#8a9e85;
  text-decoration: none;
  padding: 0 0.75rem 1em;
}

.side-menu a.active {
  color: #3e5f37;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.side-menu a:hover {
  color: #3e5f37;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.logo {
    position: fixed;
    bottom: 1.5em;
    right: 5px;
    transform: rotate(5deg);
}

.footer {
    position: fixed;
    bottom: 0;
    height: var(--footer-height);
    width: 100%;
    background-color: #edece2;
}
