/* Container for each flip card */
.yac-card {
  background-color: transparent;
  width: 100%;
  height: 400px;
  perspective: 1000px;
  border-radius: 16px;
}

/* Inner wrapper that flips */
.yac-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 16px;
}

/* Flip on hover */
.yac-card:hover .yac-card-inner {
  transform: rotateY(180deg);
}

/* Front and back face of the card */
.yac-card-front,
.yac-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Front face */
.yac-card-front {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  position: relative;
}

.yac-card-front img {
  width: 100%;
  height: 75%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.yac-card-front h2 {
  font-size: 1.25rem;
  margin: 10px 0 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
}

/* Back face */
.yac-card-back {
  background: linear-gradient(135deg, #fcb045, #fd1d1d, #833ab4);
  color: #fff;
  transform: rotateY(180deg);
  padding: 20px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
}

.yac-card-back strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 8px;
  color: #ffe600;
}

.media--view-mode-media-photoswipe img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
