html {
  font-size: 16px;
}

body {
  font-family: Cabin, Arial, Helvetica, sans-serif;
  margin: 0;
  background-color: #dddddd;
}

header {
  background-color: #c0c0c0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

.adding-to-cart {
  animation-duration: 0.5s;
  animation-name: pop;
}

@keyframes pop {
  0% {
    scale: 1;
  }

  33% {
    scale: 1.5;
  }

  100% {
    scale: 1;
  }
}

h1 {
  letter-spacing: 1rem;
  margin: 0;
  text-align: center;
  padding-block: 1rem;
}

h1>span {
  letter-spacing: normal;
}

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

.cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-block: 2rem;
}

footer {
  background-color: #c0c0c0;
}

img {
  width: 100%;
}

a {
  color: #333;
}

a:hover {
  color: black;
}

.nav-container {
  width: 100%;
  background-color: #dddddd;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
}

header a,
footer a {
  text-decoration: none;
}

header a:hover,
footer a:hover {
  text-decoration: underline;
}

nav {
  width: 100%;
  background-color: #dddddd;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-block: 0.5rem;
}

.nav-container .header-nav {
  grid-column-start: 2;
}

.shop-link {
  color: rgb(228, 67, 35);
  font-weight: bold;
}

.shop-grid {
  background-color: #dddddd;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.image-container h2 {
  text-align: center;
  margin-block-end: 0.5rem;
}

.most-recent {
  margin: auto;
}

.most-recent h2 {
  text-align: center;
  margin-block-end: 0.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.graphicstories-grid {
  align-items: center;
}

.home-grid p {
  padding-inline: 1.25rem;
  font-size: 1.25rem;
  color: #444;
}

.image-container {
  padding: 1rem;
  background-color: #dddddd;
}

img {
  object-fit: cover;
}

h2 {
  margin: 0;
}

h3 {
  margin: 0;
  color: #333;
  font-size: medium;
}

.exhibition-text {
  margin: 1rem;
}

.gallery-item {
  margin: 1rem;
}

.logo {
  display: block;
  margin: auto;
  height: 3rem;
  width: auto;
}

.h2-cards {
  text-align: center;
}

.shop-item {
  /* outline: 0.01em dotted black; */
  /* padding-bottom: 0.5rem; */
  margin-block-end: 0.5rem;
}

* {
  box-sizing: border-box;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

button,
input[type="submit"] {
  all: unset;
}

button:focus,
input[type="submit"]:focus {
  outline: 2px #04aa6d solid;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

.slideshow-container img {
  max-height: 75vh;
  object-fit: contain;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create four equal columns that sits next to each other */
.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

.scroll-container {
  display: flex;
  background-color: #333;
  overflow: auto;
  white-space: nowrap;
  padding: 10px;
}

.scroll-container img {
  height: 400px;
  padding: 10px;
  object-fit: contain;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 500px) {

  .home-grid,
  .shop-grid,
  .exhibitions-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 800px) {

  .home-grid,
  .shop-grid,
  .cart-grid {
    max-width: 50%;
    margin-inline: auto;
  }

  .scroll-container img {
    max-width: 50%;
    max-height: 100vh;
    object-fit: cover;
  }

  .most-recent {
    max-width: 50%;
    max-height: 100vh;
  }

  .slideshow-container {
    padding: 2rem;
    margin: auto;
  }
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }

  .cart-grid {
    margin-inline: 1rem;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }

  .cart-grid {
    margin-inline: 1rem;
  }
}

button,
input[type="submit"] {
  padding: 0.5rem;
  background-color: #333;
  color: #ddd;
  text-align: center;
}

input[type="submit"].buy-button {
  border: none;
  color: white;
  background-color: rgb(95, 95, 95);
  padding: 0.5rem 1.5rem;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 15px;
  display: block;
  margin: auto;
}

input[type="submit"].buy-button:hover,
button:hover {
  background-color: #04aa6d;
  color: white;
}

.button-cart-item {
  background-color: unset;
  color: #333;
  /* text-decoration: underline; */
  font-size: 0.75rem;
  border: #717171 1px solid;
  border-radius: 15px;
  cursor: pointer;
}

.cart-table-container {
  margin-block: 1rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: right;
}

th:first-child {
  text-align: left;
}

td:not(:first-child) {
  text-align: right;
}

tfoot {
  font-weight: bold;
}

td {
  /* border: #aaa 1px solid; */
  padding: 0.25rem;

  span {
    font-size: 0.75rem;
  }
}

.quantity-container {
  display: flex;
  justify-content: flex-end;

}

.quantity-container input {
  text-align: center;
  max-width: 3rem;
  margin-inline: 0.5rem;
}

.quantity-container button {
  width: 1rem;
}

.checkout-cluster {
  display: flex;
  justify-content: flex-end;
}

.checkout-cluster button {
  border-radius: 15px;
  cursor: pointer;
  padding-inline: 1rem;
}