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

:root {
  --footer-height: 0px;
}

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

body, html {
    height: 100%;
    font-family: "LyonDisplay", serif;
    font-optical-sizing: none;
    font-weight: 150;
    font-style: medium;
    font-size: 19px;
    color: #3e5f37;
    background-image: url("./media/noise.svg");
    overflow: hidden;   
}


span.spamprotection {display:none;}

.contacte {
    position: absolute;
    top: calc(60px + 1rem); /* header height */
    bottom: var(--footer-height); /* footer height */
    left: 10%;
    right: 200px; /* deixem espai pel menu */
    /* overflow: scroll; */
    display: block;
}

hr {
    height: 1px;
    color: #3e5f37;
    background: #3e5f37;
    font-size: 0;
    border: 0;
}

img {
    opacity: 80%;
}

ul {
    margin-left: 2em;
    margin-bottom: 1em;
    list-style:none;
}

ul > li {
  margin-bottom: 10px;
}

p {
    margin-bottom: 1em;
    hyphens: auto;
}


.row a, .row a:visited, .row a:link {
  color: #3e5f37;
  font-weight: bold;
  text-decoration: underline;

}

.general_title {
    font-size: 20pt;
    font-family: "Azeret Mono", monospace;
    /* font-family: "LyonDisplay", serif; */
    text-align: end;
    margin-top: 0em;
    margin-bottom: 1em;
    /* transform: rotate(3deg); */

}

.title {
    font-size: 9pt;
    font-family: "Azeret Mono", monospace;
}

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

.logo img {
  opacity: 1;
}

.footer, .footer-right {
  position: absolute;
  bottom: 10px;
  font-size: 11pt;
  color: #8a9e85;
}

.footer {
  left: 1rem;
  text-align: center;
  width: 100%;
}

.footer a, .footer a:visited, .footer a:link {
  color: #3e5f37;
  /* font-weight: bold; */
  text-decoration: underline;

}

.footer-right {
  text-align: right;
  right: 1em;
}

/*
   ______  _____ _______ _____  _    _  _____ _______ _    _ _____
  |  ____|/ ____|__   __|  __ \| |  | |/ ____|__   __| |  | |  __ \     /\
  | |__  | (___    | |  | |__) | |  | | |       | |  | |  | | |__) |   /  \
  |  __|  \___ \   | |  |  _  /| |  | | |       | |  | |  | |  _  /   / /\ \
  | |____ ____) |  | |  | | \ \| |__| | |____   | |  | |__| | | \ \  / ____ \
  |______|_____/   |_|  |_|  \_\\____/ \_____|  |_|   \____/|_|  \_\/_/    \_\
*/

.container {
    position: absolute;
    top: 60px; /* header height */
    bottom: var(--footer-height); /* footer height */
    left: 0;
    right: 200px; /* deixem espai pel menu */
    overflow: hidden;
    /* overflow: scroll; */
    display: flex;
}

.column {
    /* height: 100%;
    width: 50%; */
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.left-column {
    float: left;
    /* background-color: #f2f2f2; */
}

.left-column .row {
    display: grid;
    grid-template-columns: 10% 10% 30% 50%;
    grid-template-rows: auto auto;
    gap: 0px;
    margin: 0px 10px 0px 1em;
    /* top | right | bottom | left */
}

.slim-row {
    margin: 0;
}

.row img {
    max-width: 100%;
    height: auto;
    display: block;
    padding: 10px;
    opacity: 86%;
}

.row .first {
    grid-column: 1;
}

.row .title {
    grid-column: 1 / 3;
}

.row .title p {
  margin-bottom: 4px;
}

.row .second {
    grid-column: 2;
}

.row .first-half {
    grid-column: 1 / 4;
}

.row .second-half {
    grid-column: 4 / 5;
}

.row .par {
    grid-column: 3 / 5;
}

.row .full {
    grid-column: 1 / 5;
}

.right-column {
    float: left;
    margin-top: 0em;

    /* background-color: #e6e6ff; */
}

.right-column .row {
    display: grid;
    grid-template-columns: 10% 10% 30% 50%;
    grid-template-rows: auto auto;
    gap: 0px;
    margin: 10px;
}

.quote, .quote-author {
  font-family: "Azeret Mono", monospace;
  color: hsl(108, 11%, 57%);
}

.quote {
  text-align: center;
  font-size:larger;
  /* margin-top: 1.5em; */
  transform: rotate(-3deg);
  /* background-color: #3e5f37; */
}

.quote-author {
  text-align: end;
  margin-top: 10px;
  font-style: italic;
  font-size: 8pt;
}

/*
  _____          _      ______ _____  _____
 / ____|   /\   | |    |  ____|  __ \|_   _|   /\
| |  __   /  \  | |    | |__  | |__) | | |    /  \
| | |_ | / /\ \ | |    |  __| |  _  /  | |   / /\ \
| |__| |/ ____ \| |____| |____| | \ \ _| |_ / ____ \
 \_____/_/    \_\______|______|_|  \_\_____/_/    \_\

*/

#spacing1 {
  margin-top: calc(5rem - 10px)
}

.gal {
    display: grid;
    grid-template-columns: 40% 30% 30%;
    grid-template-rows: auto auto;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 9pt;
    font-family: "Azeret Mono", monospace;
    text-align: end;
    hyphens: auto;
    max-width: 98%; /* TODO: MIrar d'arreglar aquest nyap */
}

.gal .lloc {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
}

.gal .any {
    grid-column: 2;
    grid-row: 1;
}

.gal .image {
    grid-column: 1;
    grid-row: 2;
}

.gal .image-double {
    grid-column: 1 / 3;
    grid-row: 2;
}

.gal .image-full {
    grid-column: 1 / 4;
    grid-row: 2;
}

.gal .image-second {
    grid-column: 2 / 4;
    grid-row: 2;
}

.gal .image-third-only {
    grid-column: 3 / 4;
    grid-row: 2;
}

.gal .img-overlay {
    position: relative;
    max-width: 100%;
    height: auto;
    display: block;
}

.gal img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gal .peu {
  font-style: italic;
}

.gal .desc {
    grid-column: 1 / 4;
    grid-row: 4;
    text-align: left;
}

.gal .full-desc {
    grid-column: 1 / 4;
    grid-row: 2;
    text-align: left;
}

.gal .flexing {
  display: flex;
  flex-direction: column;
}

/*
 __  __  ____  _____          _
|  \/  |/ __ \|  __ \   /\   | |
| \  / | |  | | |  | | /  \  | |
| |\/| | |  | | |  | |/ /\ \ | |
| |  | | |__| | |__| / ____ \| |____
|_|  |_|\____/|_____/_/    \_\______|

*/

.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;
}

.modal {
  margin: 70px auto;
  padding: 20px;
  /* background: hsl(0, 0%, 90%) url("chrome://global/skin/media/imagedoc-lightnoise.png");*/
  background: white;
  border-radius: 5px;
  width: 30%;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.modal{
  position: relative;
  background: #c0b89d;
  border-radius: 0px;

  margin: 20px;
  width: 50%;
  max-width: 500px;
  margin: 10% auto;
  z-index: 11;
  /* box-shadow: 0 4px 15px rgba(0,0,0,0.3); */
  /* transition: transform 0.3s ease, opacity 0.3s ease; */
  /* transform: translateY(-20px); */
  transition: all 0.3s ease-in-out;
  opacity: 0;
  color: #000000;
}

.modal .modal-header {
  padding-bottom: 4em;
  padding-left: 1em;
  font-size: 25px;
}

.modal .content {
  padding: 1em;
  /* border: 1px solid black; */
}

/* Animate the modal itself when open */
.overlay:target .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  line-height: 20px;
  /* transition: all 200ms; */
  transition: all 0.3s ease-in-out;

  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #4b4b4b;
}
.modal .close:hover {
  color: #000000;
}
.modal .content {
  max-height: 30%;
  overflow: auto;
}

.modal ul {
  list-style-type: circle;
}

/*
 __  __ ______ _   _ _    _  _____
|  \/  |  ____| \ | | |  | |/ ____|
| \  / | |__  |  \| | |  | | (___
| |\/| |  __| | . ` | |  | |\___ \
| |  | | |____| |\  | |__| |____) |
|_|  |_|______|_| \_|\____/|_____/

*/

.nav-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 15px 0;
    text-align: center; /* centers inline items */
    white-space: nowrap;
    background: transparent;
}

.nav-bar a {
      display: inline-block;
      color:#8a9e85;
      text-decoration: none;
      font-size: 13px;
      margin: 0 3em; /* space between links */
      transition: color 0.3s;
      font-family: "Azeret Mono", monospace;
    }

.nav-bar a:hover, .nav-bar a.active {
  color:#3e5f37;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}



.side-menu {
  position: absolute;
  top: 60px; /* match header height */
  right: 0;
  bottom: 40px; /* match footer height */
  width: 200px;
  /* 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;
}


/*
 _____  _    _  ____ _______ ____  _   _ ______
|  __ \| |  | |/ __ \__   __/ __ \| \ | |  ____|
| |  | | |  | | |  | | | | | |  | |  \| | |__
| |  | | |  | | |  | | | | | |  | | . ` |  __|
| |__| | |__| | |__| | | | | |__| | |\  | |____
|_____/ \____/ \____/  |_|  \____/|_| \_|______|

*/

.duotone {
  position: relative;
  display: inline-block;      /* or block / responsive width as needed */
  overflow: hidden;
}

.duotone img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.8;
  filter: grayscale(1) brightness(0.9) contrast(1.2);  /* crucial: remove color so blend works */
  /* transition: filter 0.8s ease, opacity 0.8s ease; */
  transition:
    filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.duotone:hover img {
  /* filter: none; */
  filter: grayscale(0) brightness(1) contrast(1);
  opacity: 1;
}

.duotone:hover::before,
.duotone:hover::after {
  opacity: 0; /* fem que siguin totalment transparents en lloc de display:none */
}

.duotone::before,
.duotone::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;          /* ensures overlays don’t block hover */
}

.duotone::before {
  background-color: rgb(230, 193, 180);
  opacity: 0.8;             /* lighter overlay intensity */
  mix-blend-mode: multiply;
}

.duotone::after {
  background-color:  #3e5f37;
  opacity: 0.9;              /* control strength of dark tint */
  mix-blend-mode: screen;
}

img.front {
  position: relative;
  opacity: 0;
  transition-property: opacity;
  transition-duration: 1s;
}

img.front:hover {
  opacity: 1;
}

img.back {
  position: absolute;
}

/*  _____  _____ _____   ____  _      _      
   / ____|/ ____|  __ \ / __ \| |    | |     
  | (___ | |    | |__) | |  | | |    | |     
   \___ \| |    |  _  /| |  | | |    | |     
   ____) | |____| | \ \| |__| | |____| |____ 
  |_____/ \_____|_|  \_\\____/|______|______|
                                            */

/* En cas de navegadors sense webkit: */
/* @media screen and (-webkit-min-device-pixel-ratio:0) {
  body, html {
      scrollbar-width: thin;
      /* scrollbar-color: rgb(201, 206, 192) transparent; */
      /* scrollbar-color: rgb(231, 230, 225) transparent; */
      /* scrollbar-color: rgb(215, 216, 205) transparent; */
/*  }
} */

/* En cas de navegadors amb webkit */
::-webkit-scrollbar {
  width: 2px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #8a9e85;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #3e5f37;
}

 /* _____  ______  _____ _____   ____  _   _  _____ _______      ________ 
   |  __ \|  ____|/ ____|  __ \ / __ \| \ | |/ ____|_   _\ \    / /  ____|
   | |__) | |__  | (___ | |__) | |  | |  \| | (___   | |  \ \  / /| |__   
   |  _  /|  __|  \___ \|  ___/| |  | | . ` |\___ \  | |   \ \/ / |  __|  
   | | \ \| |____ ____) | |    | |__| | |\  |____) |_| |_   \  /  | |____ 
   |_|  \_\______|_____/|_|     \____/|_| \_|_____/|_____|   \/   |______| */


@media (max-width: 900px) {
  body, html {
    overflow: auto; /* allow scrolling on small screens */
  }

  .container {
    position: static;
    flex-direction: column; /* stack columns vertically */
    right: 0;
    height: auto;
  }

  .column {
    width: 100%;
    flex: none;
    overflow-y: visible;
    padding: 1rem;
  }

  .side-menu {
    position: static;
    width: 100%;
    order: 3; /* place menu after columns */
    text-align: center;
    flex-direction: row;
    justify-content: center;
    overflow: visible;
    border-top: 1px solid #ccc;
    padding: 0.5rem;
    margin-bottom: 3.75rem;
  }

  .menu-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer {
    position: relative;    
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .side-menu {
    font-size: 14px;
  }
}

