/* archive.css */
/* Flipcard Styles */
.flipcard-grid {
  display: grid;
  grid-template-columns: auto auto auto; /* auto per column */
  gap: 1rem; /* Slightly reduced gap */
  padding: 0.5rem 1rem; /* Less padding around the grid */
  justify-items: center;
  justify-content: center; /* Center the grid itself */
}

.polaroid {
  width: 100%;
  max-width: 250px;
  margin-bottom: 1.5rem; /* Adds spacing below each card */
}

.flipcard {
  width: 250px;
  height: 350px;
  perspective: 1000px;
  padding: 0.5rem;
}

.flipcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flipcard:hover .flipcard-inner {
  transform: rotateY(180deg);
}

.flipcard-front, .flipcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-sizing: border-box;
}

.flipcard-front {
  background-color: #e6f0ff;
}

.flipcard-back {
  transform: rotateY(180deg);
  background-color: #fff;
}

/* Hamburger Menu */
.menu-row {
  display: flex;
  justify-content: center;
  background-color: #f1f1f1;
  padding: 0.5rem;
  overflow: hidden;
  visibility: hidden;
  height: 0;
  transition: height 0.3s ease;
}

.menu-row ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.menu-row a {
  text-decoration: none;
  color: #004c97;
  font-weight: bold;
}

.menu-row.expanded {
  visibility: visible;
  height: auto;
}

/* 🪄 Mobile Responsiveness */
@media (max-width: 768px) and (max-width: 1024px) {
  .flipcard-grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }
}