/* static/css/flipbox.css */

.image-flip-container {
  width: 150px;
  height: 150px;
  perspective: 1000px;
  margin: 0 auto;
}

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

.image-flip-container:hover .flip-inner {
  transform: rotateY(180deg);
}

.image-front,
.image-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #444;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-front img,
.image-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.image-back {
  transform: rotateY(180deg);
}

/* Optional: Styling for surrounding text box */
.info-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.info-box-media {
  margin-bottom: 1rem;
}

.info-box-text h2 {
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-box-text p {
  font-size: 1rem;
  max-width: 600px;
  text-align: center;
}
