:root {
  --brand-color: #7e6200;
  --link-color: oklch(0.6 0.15 125.04);
  --link-color-hover: oklch(0.77 0.19 124.86);
  --nav-link-color: #3f464c;
  --transparent-black: rgba(0, 0, 0, 0.5);
  --border-color-light: oklch(0.8882 0.028 10.05 / 93.36%); 
  --navbar-height: 85px;
  --primary-underline-tint: oklch(from var(--mu-primary-underline) 75% c h);
  --primary-focus-tint: rgb(from var(--mu-primary-focus) r g b / 10%); 
  --narrow-font: "PT Sans Narrow", sans-serif;
  --heading-font: Montserrat, sans-serif;
  --mu-font-family: Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", sans-serif;
}
:root:not([data-theme=dark]), [data-theme=light] {
  --mu-primary: oklch(0.5 0.14 138.15);
  --mu-primary-background: oklch(0.5 0.14 138.15);
  --mu-secondary: oklch(0.54 0.03 135.78);
  --mu-secondary-background: oklch(0.9451 0.0148 146.88);
  --mu-background-color: oklch(0.951 0.0203 147.95);
  --mu-dropdown-color: oklch(0.52 0.13 125.04);
  --mu-primary-hover: oklch(0.77 0.19 124.86);
  --mu-primary-hover-underline: oklch(0.77 0.19 124.86);
  body {
    background: var(--mu-background-color);
  }
  body.gallery {
    background: var(--mu-background-color);
  }
}
html {
  scrollbar-gutter: stable;
}
body {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body>header {
  padding-top: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 400;
}
h1 {
  text-align:center; 
  border-bottom: 1px var(--border-color-light) solid;
}
article, blockquote, p {
    line-height: 1.5;
}
p {
  max-width: 75ch;
}
.right {
  text-align: right;
}
.center {
  text-align: center;
}
.left {
  text-align: left;
}
hr {
  border: none;
  height: 1px;
  background-color: var(--border-color-light);
}
ul.custom {
  padding-inline-start:1.3em;
  font-size: 0.875em;
}
ul.custom li::marker {
    color: oklch(from var(--mu-accent) l c h / 0.35);
    font-size: 1.4em;
}
:where(a:not([role="button"])), [role="link"] {
  color: var(--mu-accent);
}
.pagination .pagination-item a:hover, .pagination .pagination-item:hover h1, .pagination .pagination-item:hover h2, .pagination .pagination-item:hover h3, .pagination .pagination-item:hover h4, .pagination .pagination-item:hover h5, .pagination .pagination-item:hover h6, .pagination .pagination-item:hover p, .pagination .pagination-item:not(.selected):hover :not([disabled]):not(.disabled):not(.ellipses) {
  opacity: 1;
}
.callout, .callout p {
  text-align:center;
  max-width: 100%;
}
:focus:not(:focus-visible) { 
  outline: none;
  box-shadow: none;
}

header {
  position: relative;
  padding: 0;
}
header .logo {
  flex-shrink: 1;
}
header .current a, header .current a:hover {
  color: var(--mu-primary-hover);
}
a.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
.navbar-menu, .navbar-menu a, .navbar-menu details[open] > summary, .navbar-menu details.dropdown > summary {
  font-family: var(--narrow-font);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  color: var(--mu-accent);
  text-wrap: nowrap;
}
.navbar-menu .active, .navbar-menu details.dropdown > summary:has(+ ul li a.active), .navbar-menu details[open] > summary:has(+ ul li a.active)  {
    font-weight: 400;
    color: var(--mu-pop);
}

details.dropdown summary:not([role]), details.dropdown summary:not([role]):focus  {
  border: 0 none transparent;
  background-color: transparent;
  box-shadow: unset;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (max-width: 780px) {
    nav > .navbar-burger {
        display: block;
    }
    nav > .navbar-menu {
        display: none;
        z-index: 99;
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        min-width: fit-content;
        margin: 0;
        padding: 0;
        border: var(--mu-border-width) solid var(--mu-dropdown-border-color);
        border-radius: var(--mu-border-radius);
        background-color: var(--mu-dropdown-background-color);
        box-shadow: var(--mu-dropdown-box-shadow);
        color: var(--mu-dropdown-color);
        white-space: nowrap;
        list-style: none;
}
}
/* navbar end */
.bar {
  background-color: var(--nav-link-color);
  display: block;
  width: 23px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}

@media (min-width: 768px) {
  main .content.columns {
    columns: 2 auto;
  }
}

.home-gallery-image img {
  max-height: 65vh;
  margin: auto;
}

.grid-container {
  display: grid;
  /*   grid-template-columns: repeat(1, 1fr); */
  grid-template-columns: repeat(
    auto-fill,
    minmax(max(220px, 95%/4), 1fr)
  ); /* eliminates the need for media queries */
  grid-gap: 1rem;
}
@media only screen and (min-width: 500px) {
  .grid-container {
    /*     grid-template-columns: repeat(2, 1fr); */
  }
  .footer {
  border-top: 1px var(--border-color-light) solid;
  }
}
@media only screen and (min-width: 740px) {
  .grid-container {
    /*     grid-template-columns: repeat(3, 1fr); */
  }
}
@media only screen and (min-width: 1200px) {
  .grid-container {
    /*     grid-template-columns: repeat(4, 1fr); */
  }
}
.gallery-list-item {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
/*   aspect-ratio: 1 / 1; */
}
.gallery-list-item img {
  display:block;
  width: 100%; /* need to overwrite inline dimensions */
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}
/* Move figcaption over image */
.image-details {
  font-size: 1.5em;
  font-weight: unset;
  text-decoration: none;
  text-align: center;
  margin: 0;
  padding:0;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease-in;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(26, 26, 26, 0.7);
  z-index: 3;
}
.gallery-list-item:hover .image-details, .image-details:focus {
  opacity: 1;
}
.image-details:focus {
    box-shadow: unset;
}
.image-details :last-child {
  margin-bottom: 0;
}
 .piece-title {
    color: var(--mu-primary-hover);
    opacity: 0.85;
    font-weight: 700;
  }
/* Gallery SINGLE IMAGE PAGE */

.gallery-single-image {
  --img-min-width: 400px;
  --detail-min-width: 38%;
  --gap: 1rem;

  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
}

.gallery-single-image > * {
  flex-grow: 1;
}
.gallery-single-image > :first-child {
  flex-grow: 999;
  flex-basis: calc(
    (
      (var(--img-min-width) - (100% - var(--detail-min-width) - var(--gap))) *
        9999
    )
  );
}
.gallery-single-image > :last-child {
  flex-basis: var(--detail-min-width);
}

.single-image-details {
  display:flex;
  flex-direction: column-reverse;
}
.custom-title h1 {
  font-weight: 300;
  border-bottom: 0 none;
}
.custom-title span {
  margin: 0 1rem 1rem 0;
}
.image-info {
  display: flex;
  justify-content:center;
}
@media (min-width: 768px) {
  .single-image-details {
    flex-direction: column;
  }
  .custom-title h1 {
    text-align: left;
  }
  .custom-title span {
    display: block;
  }
  .image-info {
    display: block;
  }
}
.pagination {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px var(--border-color-light) solid;
    width: 100%;
}
.pagination-item {
    /* flex: 1 0 50%; */
    margin: 0;
    transition: .3s;
}
.pagination-item a {
    cursor: pointer;
    text-decoration: none;
    font-family: var(--narrow-font);
    font-weight: 400;
    font-style: normal;
    color: var(--mu-accent);
    font-size: 1em;
}
.pagination-item.pagination-prev {
    text-align: left;
}
.pagination-item.pagination-next {
    text-align: right;
}
.pagination-item span {
    display: block;
}
.pagination-item-direction {
    opacity: .7;
    margin: 0;
    color: var(--mu-pop);
    font-size: 0.9rem;
}
.pagination-item-subtitle {
    margin: 0;
    color: var(--mu-accent);
    font-size: 1.2rem;
}
  
/* for touch screen devices */
@media (hover: none) {
  .image-details {
    /*color: unset;*/
    background: transparent;
    height: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    opacity: 1;
    font-size: 1em;
    text-decoration: none;
    z-index: 1;
    text-align: center;
    padding: 0.5em;
    margin: 0;
  }
  .gallery-list-item img {
    height: auto;
  }
  .piece-title {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--link-color);
    font-family: var(--narrow-font);
    font-weight: 400;
  }
  .piece-title::after {
    content: "→";
    color: var(--link-color);
    margin-right: 12px;
    font-size: 1rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .piece-price {
    display: none;
  }
  .zoom-icon {
    position: relative;
  }
  .zoom-icon:after {
    content: url('assets/template/graphics/zoom-icon-green.svg');
    height: 24px;
    width: 24px;
    position: absolute;
    right: 5px;
    bottom: 5px;
  }
/*       nav > .navbar-burger {
  display: block;
  z-index: 1;
    }
    nav > .navbar-menu {
  display: none;
  z-index: 99;
  position: absolute;
  top: 100%;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  min-width: fit-content;
  margin: 0;
  padding: 0;
  border: var(--mu-border-width) solid var(--mu-dropdown-border-color);
  border-radius: var(--mu-border-radius);
  background-color: var(--mu-dropdown-background-color);
  box-shadow: var(--mu-dropdown-box-shadow);
  color: var(--mu-dropdown-color);
  white-space: nowrap;
  list-style: none;
} */
}

/* CSS image zoom */
.image-with-zoom {
  width: 100%;
}

.image-with-zoom label {
  position: relative;
  overflow: hidden;
}

.image-with-zoom input[type=checkbox] {
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 2;
}

.image-with-zoom img {
  height: auto;
  width: 100%;
  background-color: rgba(225,225,225,1);
  object-fit: contain;
  transition: transform 0.20s ease-out;
  cursor: zoom-in;
}

.image-with-zoom input[type=checkbox]:checked {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  cursor: zoom-out;
}

.image-with-zoom input[type=checkbox]:checked+img {
  position: fixed;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  z-index: 1;
  width: 100%;
  height:100%;
  padding:1em;
  background-color: rgba(225,225,225,0.9);
  object-fit: scale-down;
}
 /* Home page gallery image */
 section:has(figure) {
  display: grid;
}
figure {
    display: inline-block;
    margin: auto;
}
figure figcaption {
    display: flex;
    justify-content: space-around;
    font-size: smaller;
}

.content-image {
    max-width: fit-content;
    display: block;
    border-width: 1px;
    border-style: solid;
    border-color: var(--border-color-light);
    margin-inline: auto;
    margin-bottom: 1.5em;
}
.content-image img {
  display: block;
}

@media (min-width: 768px) {
.content-image{
    max-width: 50%;
}
.content-image.float-left {
    float: left;
    margin-right: 1em;
    margin-bottom: 2.5em;  
}
}


/* Footer */
.footer {
  background-color: transparent;
}
footer {
    align-self: flex-end;
    margin-top: auto;
}
footer p {
    color: var(--nav-link-color);
    text-align: center;
    max-width: 100%;
}

footer section {
  display: flex;
  justify-content: space-between;
}

/* Missing Tabs styles */
.tab-container.tabs--sm {
  font-size: 0.9em;
}
.tab-container ul {
  border-bottom: 0 none transparent;
}
.tab-container li a {
  background-color: transparent;
}
container li.selected a {
    border-bottom-color: #f03d4d;
    color: #f03d4d;
}