.tilted-card {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 0;
  outline: none;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  height: auto;
  min-height: 100%;
  perspective: 800px;
}
.tilted-card[data-active] { z-index: 2; }
.tilted-card__shadow {
  position: absolute;
  inset: 8% 6% 4%;
  margin: auto;
  background: var(--tc-shadow-color, rgba(0, 0, 0, 0.55));
  filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  border-radius: var(--tc-radius, 15px);
}
.tilted-card__body {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilted-card__face {
  position: relative;
  overflow: hidden;
  border-radius: var(--tc-radius, 15px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: #fff;
  width: 100%;
  min-height: 100%;
}
.tilted-card__photo {
  position: relative;
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 250 / 313;
  overflow: hidden;
  background: #efe7e0;
}
.tilted-card__img {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
}
.tilted-card__layer { position: relative; }
.tilted-card__img,
.tilted-card__layer {
  transform: translate3d(
    calc(var(--tc-px, 0) * var(--tc-depth, 0) * 1px),
    calc(var(--tc-py, 0) * var(--tc-depth, 0) * 1px),
    0
  );
}
.tilted-card__caption-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 8px 10px 10px;
  background: linear-gradient(180deg, #fff 0%, #fbf6f2 100%);
  z-index: 2;
}
.tilted-card__glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(
    farthest-corner circle at var(--tc-gx, 50%) var(--tc-gy, 50%),
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.34)) 0%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.331)) 9%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.285)) 18%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.202)) 27%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.108)) 36%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.035)) 45%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.003)) 54%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), 0) 60%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}
.tilted-card__rim {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--tc-rim-color, rgba(255, 255, 255, 0.08)),
    inset 0 1px 0 var(--tc-rim-light, rgba(255, 255, 255, 0.12));
  pointer-events: none;
}
.tilted-card__edge {
  position: absolute;
  inset: 0;
  z-index: 7;
  box-sizing: border-box;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(
    farthest-side circle at var(--tc-gx, 50%) var(--tc-gy, 50%),
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.85)) 0%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.71)) 18%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.43)) 36%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.16)) 54%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), calc(var(--tc-glare, 0) * 0.02)) 72%,
    rgba(var(--tc-glare-rgb, 255, 255, 255), 0) 85%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.tilted-card__caption {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  margin: 16px 0 0 14px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(24, 24, 27, 0.08), 0 8px 18px -8px rgba(0, 0, 0, 0.45);
  color: #18181b;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform, opacity;
}

#itemContainer,
#itemContainer .col-sm-4,
#itemContainer .col-md-3,
#itemContainer .thumbnail.boxes {
  overflow: visible;
}
#itemContainer .thumbnail.boxes {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px 8px 12px !important;
}
#itemContainer .thumbnail.boxes .tilted-card {
  flex: 1 1 auto;
}
#itemContainer .thumbnail.boxes > p { display: none; }
#itemContainer .thumbnail.boxes img.img-thumbnail,
#itemContainer .tilted-card__img {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  height: calc(100% + 12px) !important;
  width: calc(100% + 12px) !important;
  aspect-ratio: auto !important;
  object-fit: cover;
  object-position: top center;
}
#itemContainer .thumbnail.boxes .caption h3,
#itemContainer .tilted-card__caption-panel h3 {
  text-align: center !important;
  width: 100%;
  margin: 0 0 8px !important;
  min-height: 0 !important;
  color: #245269 !important;
}
#itemContainer .thumbnail.boxes .caption h4,
#itemContainer .tilted-card__caption-panel h4 {
  text-align: center !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 auto !important;
  min-height: 0 !important;
  display: inline-block;
  padding: 6px 12px;
  background: #933306;
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.25;
  box-sizing: border-box;
}
