*,
::before,
::after {
  box-sizing: border-box;
}

:root {
  --c-white: hsl(0, 0%, 100%);
  --c-40gray: hsl(0, 0%, 60%);
  --c-50gray: hsl(0, 0%, 50%);
  --c-60gray: hsl(0, 0%, 40%);
  --c-70gray: hsl(0, 0%, 30%);
  --c-ivory: hsl(0, 100%, 91%);
  --c-black: hsl(0, 0%, 0%);
  --color-white: var(--c-white);
  --color-banner-bg: var(--c-40gray);
  --color-showcase-bg: var(--c-50gray);
  --color-info-bg: var(--c-60gray);
  --color-choices-bg: var(--c-70gray);
  --color-black: var(--c-black);
  --color-ivory: var(--c-ivory);
}

body {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Times New Roman", "Atkinson Hyperlegible", Times, serif,
    system-ui, sans-serif;
  font-size: 16px;
}

/*
the admin bar
h1 {
  font-size: clamp(3rem, 2.7273rem + 1.0909vw, 3.6rem);
}
h2 {
  font-size: clamp(2.25rem, 2.0455rem + 0.8182vw, 2.7rem);
}
h3 {
  font-size: clamp(1.875rem, 1.7045rem + 0.6818vw, 2.25rem);
}
h4 {
  font-size: clamp(1.5rem, 1.3636rem + 0.5455vw, 1.8rem);
}
p {
  font-size: clamp(0.8333rem, 0.7576rem + 0.303vw, 1rem);
} */

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

a {
  text-decoration: none;
  color: #fff;
}

ul {
  list-style: none;
  padding: 0;
}

/* Banner Area */

.banner {
  background-color: var(--color-banner-bg);
  background-image: url(./images/bgimages/bgpattern2wh8.png);
  padding: 1rem 0;
}

.banner-container {
  max-width: 75rem;
  width: 95%;
  margin: 0 auto;
  /* border: solid white 1px; */
  position: relative;
}

.bannerlogo {
  width: 6rem;
  position: absolute;
  bottom: 20%;
  left: 7%;
}

.bannertext {
  position: absolute;
  top: 65%;
  left: 45%;
  text-align: right;
  font-size: calc(0.65rem + 1.9vw);
}

.logo {
  height: 35px;
  width: auto;
}

/* Navbar */
nav {
  position: sticky;
  top: 0px;
  background-color: var(--c-black);
  opacity: 0.8;
  height: 8vh;
  z-index: 100;
}

nav ul {
  display: flex;
  list-style: none;
}

nav a {
  text-decoration: none;
  padding: 10px;
  margin: 0 5px;
}

nav a:hover {
  border-bottom: 3px #fff solid;
}

.nav-container {
  max-width: 75rem;
  width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;

  @media (max-width: 700px) {
    justify-content: space-evenly;
    text-transform: uppercase;
    padding: 0 0.25rem;

    .logo {
      display: none;
    }
  }
}

/* Showcase Area */

.showcase {
  background-color: var(--color-showcase-bg);
  background-image: url(./images/bgimages/bgpattern2wh8.png);
  padding: 1rem 0;
}

.showcase-container {
  max-width: 75rem;
  width: 95%;
  margin: 0 auto;
  border: solid white 1px;
  position: relative;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  gap: 0.5rem;
  position: absolute;
  top: 25%;
  left: 10%;
  font-size: calc(0.55rem + 1.1vw);
}

.showcase-content li {
  text-align: right;
  padding: 0.15rem 0;
}

/* Info display */

.info-display {
  background-color: var(--color-info-bg);
  background-image: url(./images/bgimages/bgpattern2wh8.png);
  text-align: justify;

  padding: 1rem 0;
}

.info-container {
  background-color: var(--color-ivory);
  /* opacity: 0.4; */
  max-width: 75rem;
  width: 95%;
  margin: 0 auto;
  padding: 1rem 2rem;
  border: solid white 1px;

  color: black;
  text-align: center;
}

.info-images {
  display: grid;
  grid-template-columns: 1fr;

  @media (width >= 700px) {
    grid-template-columns: 1fr 1fr;
  }
}

/* Choices Area */

.choices {
  background-color: var(--color-choices-bg);
  background-image: url(./images/bgimages/bgpattern2wh8.png);
  text-align: center;
  padding: 1rem 0;
}

.choices-container {
  background-color: var(--color-choices-bg);
  max-width: 75rem;
  width: 95%;
  margin: 0 auto;
  padding-bottom: 1rem;
  border: solid white 1px;
}

.choices-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  /* width: 95%; */
  padding: 1rem;
  /* margin: 0 auto; */
  gap: 1rem;

  @media (max-width: 700px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* box galleries */

/* Dovetails */

.dovetails {
  background-color: #666;
  width: 48px;
  height: 16px;
  clip-path: polygon(
    10% 100%,
    0% 0%,
    45% 0,
    35% 100%,
    65% 100%,
    55% 0,
    100% 0,
    90% 100%
  );
  position: absolute;
  display: block;
  right: 50px;
  bottom: 0px;
}

.light {
  background-color: #999;
}

.dark {
  background-color: #222;
}

.black {
  background-color: #111;
}

/* Box Gallery Pages - Shell/Trinket/Ring/Urn*/

.gallerytext {
  padding: 5px 10px;
}

/* .wrapper {
  margin: 0 20px;
} */

.outline {
  border: solid #fff 1px;
}

.boxgalleries {
  background-color: var(--c-70gray);
  background-image: url(./images/bgimages/bgpattern2wh8.png);
}

.gallery-wrapper {
  max-width: 75rem;
  width: 95%;
  margin: 0 auto;
  padding: 0.5rem 0 0 0;
}

.details {
  position: relative;
  background-color: #222;
}

.gallery-image {
  width: 100%;
  height: 100%;
  overflow: qclip;
  object-fit: cover;
}

.threecol-equal {
  grid-template-columns: 1fr;
}

/* Gallery - square / rectangle / square */
.wrapper-srs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-bottom: 10px;
}

/* Gallery - square / rectangle  */
.wrapper-sr {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-bottom: 10px;
}

/* Gallery - rectangle  */
.wrapper-r {
  display: grid;
  grid-template-columns: 1fr;
  padding-bottom: 10px;
  gap: 6px;
}

.gallery-descr {
  display: grid;
  align-content: center;
  justify-items: center;
  /* background-color: rgb(238, 222, 222); */
  background-color: var(--color-ivory);
  opacity: 0.9;
  height: 100%;
  width: 100%;
  text-align: center;
  font-size: 0.9;
  padding: 0 5px;
  /* font-size: calc(0.45rem + 1.3vw); */
  text-wrap: balance;
  color: black;
}

.detail-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (width >= 600px) {
  .wrapper-srs {
    grid-template-columns: 2fr 3fr;
  }

  .wrapper-sr,
  .wrapper-r {
    grid-template-columns: 2fr 3fr;
  }

  .center-sr {
    grid-column: 1 / -1;
    /* background-color: blue; */
  }

  .detail-images {
    grid-template-columns: 1fr 1fr;
  }

  .wrapper-srs {
    grid-template-columns: 2fr 3fr;
  }
}

@media (width >= 1180px) {
  .center-srs {
    grid-column: 1 / -1;
  }

  .wrapper-srs {
    grid-template-columns: 2fr 3fr 2fr;
  }
}

/* Woods Gallery */

/* Lightbox */

.title {
  margin: 1rem 2rem;
}
.gallery {
  max-width: 75rem;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1.6fr));
  /* grid-auto-rows: 25rem; */
  gap: 1rem;
  padding: 1rem;
}
.gallery:hover {
  cursor: pointer;
}

input {
  display: none;
}

.image-holder {
  max-width: 60dvh;
}
.gallery-item:hover {
  cursor: pointer;
}

.lightbox,
.image-holder {
  transition: ease-in-out 0.5s;
}
.image-text {
  display: none;
}

input:checked ~ .lightbox {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

input:checked ~ .lightbox .image-holder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

input:checked ~ .lightbox .image-text {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  text-align: left;
  line-height: 1.2;
  background: #777;
  padding: 5px;
}

/* External link */

.ext-link {
  text-decoration: none;
}

.ext-link a {
  color: rgb(122, 122, 221);
  padding-bottom: 2px;
  margin: 0 2px;
}

.ext-link a:hover {
  color: white;
  border-bottom: 3px #fff solid;
}

/* Footer */

footer {
  padding: 1rem 0;
  background-color: var(--color-black);
  background-image: url(./images/bgimages/bgpattern2wh8.png);
  background-repeat: repeat;
}

.footer-container {
  max-width: 75rem;
  width: 95%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  border: solid white 1px;
  /* padding-top: 1rem; */

  @media (max-width: 700px) {
    grid-template-columns: 1fr;
  }
}

.contact,
.additional {
  text-align: center;
}

.additional li {
  padding-bottom: 1rem;
}
.additional li a {
  text-decoration: none;
}

.additional a:hover {
  color: yellow;
  border-bottom: 2px solid blue;
}

footer h4 {
  text-align: center;
  padding-bottom: 1rem;
}

/* Japan 2024 */
