/* page title */
section.pagetitle {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #000000;
  width: 100%;
  margin: auto;
  max-width: 1000px;
  padding: 2%;
}

* {
  margin: 0;
  padding: 0;
  list-style-type: none;
  box-sizing: border-box;
}

body {
  background: #ffffff;
  margin: 0;
  min-height: 100vh;
}

/* intro */
.intro_section {
  padding-top: 1%;
  text-align: center;
}

/* nav */
ul {
  display: flex;
  width: 100%;
  margin: auto;
  max-width: 1000px;
  justify-content: space-between;
  text-align: center;
}

li {
  padding: 1rem 2rem 1.15rem;
  text-transform: uppercase;
  cursor: pointer;
  color: #000000;
  min-width: 80px;
  margin: auto;
}

li:hover {
  background-image: url('https://scottyzen.sirv.com/Images/v/button.png');
  background-size: 100% 100%;
  color: #27262c;
  animation: spring 300ms ease-out;
  text-shadow: 0 -1px 0 #ff8103;
  font-weight: bold;
}

li:active {
  transform: translateY(4px);
}

@keyframes spring {
  15% {
    transform-origin: center center;
    transform: scale(1.2, 1.1);
  }
  40% {
    transform-origin: center center;
    transform: scale(0.95, 0.95);
  }
  75% {
    transform-origin: center center;
    transform: scale(1.05, 1);
  }
  100% {
    transform-origin: center center;
    transform: scale(1, 1);
  }
}

/*.preview-title {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #000000;
  width: 100%;
  margin: auto;
  max-width: 1000px;
  padding-top: 5px;
Not currently using
}*/

.gallery-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: nowrap;   /* prevents stacking */
  width: 100%;
  max-width: 1800px;
  margin: 100px auto;
  padding-bottom: 5%;
}

.gallery-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  padding: 100px;
}

.gallery-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1%;
  padding:5%;
}

.gallery {
  --size: 115px;
  display: grid;
  grid-template-columns: repeat(6, var(--size));
  grid-auto-rows: var(--size);
  gap: 0;
}

.gallery:has(img:hover) img:not(:hover),
.gallery:has(img:focus) img:not(:focus) {
  filter: brightness(0.5) contrast(0.5);
}

.gallery img {
  object-fit: cover;
  width: calc(var(--size) * 2);
  height: calc(var(--size) * 2);
  grid-column: auto / span 2;
  display: block;
  border-radius: 0;
  transition: clip-path 0.35s ease, filter 0.35s ease;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.gallery img:nth-child(5n - 1) {
  grid-column: 2 / span 2;
}

.gallery img:hover,
.gallery img:focus {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  position: relative;
  z-index: 2;
}

.gallery img:focus {
  outline: 1px dashed black;
  outline-offset: -5px;
}

@media (max-width: 1200px) {
  .gallery {
    --size: 105px;
  }
}

@media (max-width: 900px) {
  .gallery {
    --size: 85px;
  }

  .gallery-row {
    gap: 20px;
  }
}