/* Animations */
@keyframes slideUp {
  0% {
    transform: translateY(-500%);
  }

  100% {
    transform: translateY(0);
  }
}

/* Global Styles */

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  background-color: black;
  /* overflow: hidden; */
}

::-webkit-scrollbar {
  display: none;
}

.info-wrapper {
  padding-top: 12pt;
  padding-bottom: 24pt;
  width: 100%;
  height: auto;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 0;
}

.info-wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-wrapper li {
  color: red;
  padding: 0;
  margin: 0;
  border-left: 1pt solid black;
}

dd,
dt {
  margin-inline-start: 12pt;
  margin-inline-end: 12pt;
  margin-bottom: 4pt;
}

dt {
  border-bottom: 1pt solid black;
  font-size: 12pt;
  background-color: darkgray;
  padding-left: 2pt;
  color: black;
  text-transform: uppercase;
}

dd {
  padding-left: 2pt;
  font-weight: bold;
}

.info-mobile {
  display: none;
}

.image-wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 6pt;

  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

figure {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;

  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

figure:last-of-type {
  margin-right: 0;
}

figure img {
  height: 500px;
  width: auto;
  display: block;
}

.blur-load {
  filter: blur(16px);

  transition:
    filter 0.35s ease-out,
    opacity 0.35s ease-out;

  opacity: 0.85;

  will-change: opacity;

  backface-visibility: hidden;

  transform: translateZ(0);
}

.blur-load.loaded {
  filter: blur(0);

  opacity: 1;
}

figcaption {
  padding-right: 32pt;
  padding-top: 2pt;
  padding-left: 4pt;

  min-width: 25%;
  max-width: 25%;

  height: 500px;

  margin: 0;
  margin-left: 12pt;

  background-color: white;
  position: relative;
}

figcaption::after {
  content: "";

  width: 94%;
  height: 94%;

  position: absolute;
  inset: 0;

  border-right: dotted 8pt rgb(0, 0, 0);

  filter: drop-shadow(-2px -1px 1px rgba(63, 63, 63, 0.5));

  z-index: 10;
}

.metallic-panel-desktop {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -1;
}

.foreground_wire {
  pointer-events: none;
  width: 100%;
  height: auto;
  max-width: 100%;
  position: fixed;
  z-index: 1;
  transform: rotate(180deg);
  top: -25%;
}

.foreground_panel {
  pointer-events: none;
  width: 100%;
  height: auto;
  max-width: 100%;
  position: fixed;
  z-index: 1;
  bottom: 0;
}

p {
  margin: 0;
  padding: 0;
  font-size: 12pt;
  line-height: 16pt;
  padding-left: 2pt;
}

p span {
  color: gray;
}

.cart-feedback {
  position: relative;
  display: inline;
  font-size: inherit;
  display: inline-block;
  padding: 4pt 0;
  color: black;
  border: none;
  cursor: pointer;
  z-index: 20;
  border-top: 1pt solid black;
  width: 100%;
  border-bottom: 1pt solid black;
  margin-top: 12pt;
  margin-bottom: 12pt;
}

.add-to-cart-button {
  padding: 4pt 0;
  background-color: inherit;
  border: none;
  padding: 0;
  margin: 0;
  font-size: inherit;
  color: red;
}

figcaption form {
  margin: 0;
}

@media screen and (min-width: 375px) and (max-width: 768px) {

html,
body {
  overflow-x: hidden;
  overflow-y: auto;

  touch-action: pan-y;
}

  main {
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0;
  }

  p {
    font-size: 9pt;
  }

  .screw {
    width: 5px;
  }

  .foreground_wire,
  .foreground_panel {
    max-width: 150%;
    display: none;
    width: 150%;
  }

  .foreground_wire {
    top: -15%;
  }

  .info-wrapper {
    /* top: auto; */
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0;
  }

  .info-wrapper p {
    border-bottom: 0.5pt solid black;
    border-left: 0.5pt solid black;
  }

  .info-wrapper p:nth-of-type(1) {
    grid-column: 1/3;
    text-align: center;
  }

  .info-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .info-mobile p:nth-of-type(1) {
    grid-column: 1/3;
    text-align: center;
    text-decoration: underline;
    border-bottom: none;
    font-size: 12pt;
    margin-bottom: 12pt;
  }

  .info-mobile p {
    padding-bottom: 4pt;
    border-bottom: 0.5pt solid black;
  }

.image-wrapper {
  height: auto;

  display: flex;
  flex-direction: column;
  align-items: center;

  overflow-x: hidden;
  overflow-y: visible;

  -webkit-overflow-scrolling: auto;
  scroll-behavior: auto;

  touch-action: pan-y;

  gap: 24pt;
}

  figcaption {
    margin: 36pt 0 0 0;
    max-width: 90%;
    width: 90%;
    box-sizing: border-box;

    padding-left: 4pt;
    padding-right: 4pt;
    padding-bottom: 24pt;
    padding-top: 18pt;
  }

  figcaption::after {
    /* display: none; */
    margin-left: auto;
    margin-right: auto;
    border-right: 0;
    border-top: 8pt dashed black;
  }

  figure {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  figure:last-of-type {
    margin-right: 0;
    margin-bottom: 20vh;
  }

  figure img {
    width: 90%;
    max-width: 90%;
    height: auto !important;
    max-height: none;
    object-fit: contain;
  }

  .image-info-line:nth-of-type(even) {
    display: none;
  }
}