/* Inter for body text */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@300;400;500&display=swap");


/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  background: #fff;
  color: #111;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.4;
}

/* Layout wrapper */
.wrap{
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header{
  padding: 36px 0 18px;
}
.site-title{
  margin: 0 0 8px 0;
  font-family: "Lexend Exa", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: 0.04em;
}


/* Inside pages: smaller, quieter title */
.page-inner .site-title{
  font-size: 1.3em;   
  color: #000;
}


.site-intro{
  margin: 0;
  font-size: 15px;
  max-width: 80ch;
  color: #808080;
}


/* Home page category grid */

.categories{
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ALWAYS 2 columns on desktop */
  gap: 22px;
  padding: 22px 0 44px;
}


/* Default gallery grid (all pages) */
.grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Landscape Architecture gallery only */
.page-landscape .grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Photography gallery only */
.page-photography .grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Photography thumbnails only: taller, more square */
.page-photography .thumb{
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.page-photography .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* HOME PAGE: force equal-sized category boxes */
.page-home .cat-thumb{
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
}


/* Mobile: all galleries stack */
@media (max-width: 700px){
  .grid{
    grid-template-columns: 1fr;
  }
}


/* Each card is ONE link, styled like a card */
.cat-card{
  display: block;
  color: inherit;
  text-decoration: none;
  border: 0;
  outline: none;
}
.cat-card:focus-visible{
  outline: 2px solid #111;
  outline-offset: 4px;
}

/* Square placeholder “image” */

.cat-thumb{
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #f3f3f3;
  border: 1px solid #e2e2e2;
  display: grid;
  place-items: center;
}

.cat-thumb span{
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #666;
  text-transform: uppercase;
}

/* Label below placeholder */
.cat-label{
  margin-top: 6px;
  font-size: 14px;      /* smaller */
  font-weight: 300;    /* not bold */
  color: #333;
}


@media (max-width:700px){
  .page-home .cat-card{
    flex-direction:column;
    align-items:flex-start;
    min-height:180px;
    padding:32px;
  }
  .page-home .cat-label{ margin-top:8px; }
}


/* Subpages header bits */
/* Inner page section title (Landscape Architecture, Art, etc.) */
.page-title{
  margin-top: 6px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #808080;
}





/* Back to Categories link */
.backlink{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #808080;

  text-decoration: none;
}

/* Arrow */
.backlink::before{
  content: "←";
  font-size: 14px;
  line-height: 1;
  color: #888;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Text underline drawn separately */
.backlink::after{
  content: "";
  position: absolute;
  left: 19px;          /* starts after arrow */
  bottom: 0px;
  width: calc(100% - 20px);
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Hover effects */
.backlink:hover::before{
  transform: translateX(-3px);   /* slide left */
  color: #5b7fa6;                /* soft blue */
}

.backlink:hover::after{
  opacity: 1;                    /* underline appears */
}

/* Backlink variant without arrow */
.backlink--plain::before{
  content: none;
}

.backlink--plain::after{
  left: 0;
  width: 100%;
}


/* Mobile */
@media (max-width: 600px){
  .backlink{
    font-size: 13px;
  }
  .backlink::before{
    font-size: 13px;
  }
  .backlink::after{
    left: 18px;
    width: calc(100% - 18px);
  }
}



/* Image grids on subpages */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
  padding: 10px 0 44px;
}
.card{ margin: 0; }
.thumb{
  display: block;
  text-decoration: none;
  border: 0;
  outline: none;
}
.thumb img{
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  outline: 0;
}

/* Captions */
.caption{
  padding-top: 10px;
}
/* Image caption titles (Landscape Architecture, Art, etc.) */
.cap-title{
  font-size: 14px;
  font-weight: 300;
  color: #333;
  margin-bottom: 2px;
}
.cap-text{
  font-size: 13px;
  color: #777;
}




/* Lightbox */
.no-scroll{ overflow: hidden; }

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  z-index: 9999;
  padding: 24px;
}

.lightbox-stage{
  height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

/* Wrap image + close so the button can sit near the image */
.lightbox-content{
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
}

.lightbox-img{
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Close button near image (desktop) */
.lightbox-close{
  position: absolute;
  top: -14px;
  right: -14px;

  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 36px;
  text-align: center;

  background: #fff;
  border: 1px solid #000;
  cursor: pointer;
}


/* Mobile: keep it obvious and easy to tap */
@media (max-width: 600px){
  .lightbox{
    padding: 16px;
  }

  .lightbox-stage{
    height: calc(100vh - 32px);
  }

  .lightbox-close{
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 44px;
  }
}


/* Mobile tweaks */
@media (max-width: 560px){
  .wrap{ width: calc(100% - 28px); }
  .site-header{ padding: 26px 0 12px; }
  .site-intro{ font-size: 18px; }
  .categories{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
}

/* Category titles: quieter */
.categories .cat-label{
  font-size: 15px;
  font-weight: 400;
  color: #333;
}

.cap-title{
  display: none;
}
.caption{
  padding-top: 6px;
}
.cat-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}




/* HOME ONLY: 3-over-2 smaller grid */
.page-home .categories{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 22px 0 44px;
}

@media (max-width: 700px){
  .page-home .categories{
    grid-template-columns: 1fr;
  }
}
/* POSTERS */
.posters-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 900px){
  .posters-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .posters-grid{ grid-template-columns: 1fr; }
}

/* Force equal poster tile size */
.poster-thumb{
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.poster-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

