/*fonts*/
@font-face {
  font-family: "CedarvilleCursive";
  src: url("/fonts/CedarvilleCursive-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Lusitana";
  src: url("/fonts/Lusitana-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "SpaceMono";
  src: url("/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "IMFell";
  src: url("/fonts/IMFellGreatPrimer-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "IMFell";
  src: url("/fonts/IMFellGreatPrimer-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

/* header shiz*/
.header {
  display: flex;
  justify-content: flex-end;
  align-items: normal;

  width: 800px;
  height: 50px;
  padding: 20px;
}

.header-title {
  font-family: "Lusitana";
  font-size: 30px;
  color: white;
  filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px 1px 0 black)
    drop-shadow(1px -1px 0 black) drop-shadow(-1px -1px 0 black);
  z-index: 99;
}

.header-nav {
  display: flex;
  gap: 30px;
  position: relative;
  right: -435px;
  top: 60px;
}

.header-nav a {
  font-family: "IMFellIt";
  color: white;
  filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px 1px 0 black)
    drop-shadow(1px -1px 0 black) drop-shadow(-1px -1px 0 black);
  text-decoration: none;

  display: inline-block;
  transition: transform 0.2s ease;
}

.header-nav a:hover {
  transform: scale(1.05) rotate(-2deg);
  font-style: italic;
}

/* flex shiz*/
.parent-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  margin: 20px auto;
}

/* side containers */
.left-box {
  width: 40px;
  min-height: 700px;
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

/* main container */
.main-box {
  width: 1040px;
  flex-shrink: 0;
  z-index: 10;
  background-color: white;
}

/*photo gallery*/
body {
  background-color: #1f2039;
}
section {
  padding: 80px;
}
.grid {
  column-count: 4;
  column-gap: 15px;
}

.box-image img {
  display: block;
  width: 100%;
  height: auto;

  transition: transform 0.2s ease;
}

.box-image {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 15px;
  break-inside: avoid;
}

@media screen and (max-width: 996px) {
  .grid img {
    min-height: 350px;
    max-height: 350px;
  }

  .gallery {
    padding: 15px;
  }
}

.box-image button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
}

.box-image button img {
  display: block;
  width: 100%;
  height: auto;
}

.box-image > button > img {
  border: 5px solid white;
  box-shadow: 1px 4px 8px rgba(0, 0, 0, 0.35);
}

.box-image:hover img {
  transform: scale(1.05);
}

figure[popover] {
  border: none;
  padding: 20px;
  background: white;
  box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.5);

  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

figure[popover] img {
  display: block;
  max-width: 85vw;
  max-height: 85vh;
}

figure[popover] figcaption {
  font-family: "CedarvilleCursive";
  text-align: center;
  font-size: 1.5rem;
}

.stamp1,
.stamp2,
.stamp3,
.stamp4 {
  position: absolute;
  left: -90px;
  z-index: 999;
}

.stamp1 {
  top: 100px;
  transform: rotate(10deg);
}
.stamp2 {
  top: 250px;
  transform: rotate(-10deg);
}
.stamp3 {
  top: 385px;
  transform: rotate(3deg);
}
.stamp4 {
  top: 520px;
  transform: rotate(-10deg);
}

.stamp1 {
  --rot: 10deg;
  transform: rotate(var(--rot));
}
.stamp2 {
  --rot: -10deg;
  transform: rotate(var(--rot));
}
.stamp3 {
  --rot: 3deg;
  transform: rotate(var(--rot));
}
.stamp4 {
  --rot: -10deg;
  transform: rotate(var(--rot));
}

.stamp1,
.stamp2,
.stamp3,
.stamp4 {
  transition: transform 0.2s ease;
}

.stamp1:hover,
.stamp2:hover,
.stamp3:hover,
.stamp4:hover {
  transform: rotate(var(--rot)) translateY(-5px) scale(1.1);
}

.stamp1 img,
.stamp2 img,
.stamp3 img,
.stamp4 img {
  width: 120px;
  display: block;
}

.stamp1 span,
.stamp2 span,
.stamp3 span,
.stamp4 span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  color: white;
  white-space: nowrap;
  font-family: "Lusitana";
  font-size: 15px;

  filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px 1px 0 black)
    drop-shadow(1px -1px 0 black) drop-shadow(-1px -1px 0 black);

  transition: 0.2s;
}

.stamp1:hover span,
.stamp2:hover span,
.stamp3:hover span,
.stamp4:hover span {
  transform: translate(-50%, -50%) scale(1.1);
}

input[type="radio"]:checked + label span {
  color: #ffe87d;
}

.hidden {
  display: none !important;
}

.active-stamp {
  transform: scale(1.1);
  filter: brightness(1.15);
}
