.right {
  flex: 1;
}

.middle {
  flex: 3;
}

.gallery, .featured, .announcement {
  background-color: white;
  padding: 15px;
}

.featured, .announcement {
  margin-bottom: 10px;
}

.filter-buttons {
  text-align: center;
}

.filter-buttons button {
  padding: 5px 16px;
  margin: 0 5px;
  font-size: 20px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: black;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  /* max-height: 75vh;
  overflow-y: auto; */
  align-content: flex-start;
  border: 2px solid black;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item {
  height: 250px;
  transition: transform 0.1s ease-in-out, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 0 10px white;
}

.announcement {
  text-align: center;
}

.filter-buttons button.current {
  background-color: white;
  color: black;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border: 2px solid black;
}

.feat-wrap {
  transform: skew(0deg, 10deg);
  display: inline-block;
  animation: float 2s ease-in-out infinite;
  transition: transform 0.3s ease;
  animation: float 1.5s ease-in-out infinite, flicker 10s infinite;
  margin-top: 7vh;
}

.feat-wrap img {
  box-sizing: border-box;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 2px solid black;
  width: 100%;
}

.feat-wrap p {
  box-sizing: border-box;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 2px solid black;
  background-color: white;
  padding: 5px;
  margin: 0;
  /* font-size: small; */
}

@keyframes float {
  0%, 100% { transform: translateY(0) skew(0deg, 10deg); }
  50% { transform: translateY(-8px) skew(0deg, 10deg); }
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 24%, 55% { opacity: 0.85; }
}

/* mobile wip */
@media (max-width: 1000px) {
  .three-column-layout {
    flex-direction: column;
  }

  .right, .middle {
    flex: 1;
  }

  .middle {
    order: 2;
  }

  .right {
    order: 1;
    width: 100%;
  }

  .feat-wrap {
    animation: none;
    transform: skew(0);
    width: 100%;
    margin-top: 10px;
  }

  .gallery-item {
    height: 200px;
  }
}
