.ifb {
  display: block;
  width: 100%;
  perspective: 1000px;
  overflow: hidden;
  height: 500px;
   box-shadow: 15px 15px 38px 0 rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 15px 15px 38px 0 rgba(0, 0, 0, 0.2);
}

.ifb__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--ifb-duration, 1s) cubic-bezier(.22,.61,.36,1);
  will-change: transform; /* hint the browser for smoother frames */
}

.ifb__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.ifb__front img {
  width: 100%;
  height: 100%;
  display: block;
}

.ifb__back {
  transform: rotateY(180deg);
  text-align: center;
  padding: clamp(16px, 4vw, 28px);
  color: #fff;
  background: #00B7DB0A;
}

.ifb__title {
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(16px, 2.6vw, 24px);
}

.ifb__btn{
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  color: #111827;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}



.ifb__btn:hover, .ifb__btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.2);
  outline: none;
}

/* Hover flip (desktop) */

.ifb:hover .ifb__inner,
.ifb.is-flipped .ifb__inner {
  transform: rotateY(180deg);
}

