.main-content{
padding: 20px;
}

.main-content > .ytc {
    position: relative;
	z-index: 0;
	width: 100%;
    max-width: 320px;
    height: 265px;
    background: #ccc;
    padding: 85px 15px 10px;
    box-shadow: 0 4px 3px -2px #333;
	margin-bottom: 20px;
}

.rib3 {
    position: absolute;
	font: bold 1.1em/2 Georgia;
    width: calc(100% + 1em);
    top: 10px;
    left: -.5em;
	color: #CC181E;
    background: currentColor;
    border-top-right-radius: 100% 20px;
    border-top-left-radius: 100% 20px;
    box-shadow: 0 -2px 2px -2px #888;
}

.rib3:before, .rib3:after {
    display: block;
    position: absolute;
    z-index: -1;
    content: "";
    width: 0;
    height: 0;
    left: -1.4em;
    top: 15px;
	color: #CC181E;
    border: 1em solid currentColor;
    border-left-color: transparent;
    -webkit-transform: rotate(-10deg);
    transform: rotate(-10deg);
	transform-origin: 100% 100%;
}

.rib3:after {
    left: calc(100% - 0.5em);
    top: 15px;
    border-left-color: currentColor;
    border-right-color: transparent;
    -webkit-transform: rotate(10deg);
    transform: rotate(10deg);
	transform-origin: 0% 100%;
}

.rib3 span:first-child {
    display: block;
    color: #fff;
    text-align: center;
    text-transform: capitalize;
    text-shadow: 1px 0 0 #333,0 1px 0 #333;
    padding-bottom: 5px;
}

.rib3 span:first-child:before,
.rib3 span:first-child:after {
    display: block;
    position: absolute;
    content: "";
    width: .5em;
    height: 10px;
    left: 0;
    bottom: -10px;
    background: -webkit-linear-gradient(45deg,transparent 50%,rgba(0,0,0,0.4) 0);
    background: linear-gradient(45deg,transparent 50%,rgba(0,0,0,0.4) 0);
}

.rib3 span:first-child:after {
    left: calc(100% - 0.5em);
    background: -webkit-linear-gradient(135deg,transparent 50%,rgba(0,0,0,0.4) 0);
    background: linear-gradient(-45deg,transparent 50%,rgba(0,0,0,0.4) 0);
}

.rib3 span:nth-child(2) {
    display: block;
    position: absolute;
    content: "";
    width: calc(100% - 1em);
    height: 10px;
    left: .5em;
    bottom: 0;
    background: #ccc;
    border-top-right-radius: 100% 20px;
    border-top-left-radius: 100% 20px;
    box-shadow: 0 -2px 2px -1px #888;
}


figure {
  position: relative;
  width: 100%;
  max-width: 290px;
  height: 200px;
  top: -30px;
  border-radius: 3px;
  box-shadow: 0 0 3px #333;
  overflow: hidden;
}

figure img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: scale(1);
  transition: all 300ms ease-in-out;
}

figure figcaption {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.65);
}

figure figcaption > * {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  font-family: "Palatino Linotype", Georgia;
}

figure figcaption h1 {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 20%;
      -ms-flex: 0 0 20%;
          flex: 0 0 20%;
  font-size: 17px;
  font-weight: bold;
}

figure figcaption p {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 50%;
      -ms-flex: 0 0 50%;
          flex: 0 0 50%;
  text-align: center;
  line-height: 1.2;
  background: rgba(0,0,0,0.5);
  padding: 0 5px;
}

figure figcaption .links {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 30%;
      -ms-flex: 0 0 30%;
          flex: 0 0 30%;
}

figure figcaption .links i {
  color: #fff;
  background-color: #CC181E;
  padding: 5px;
  margin-right: 5px;
  border: 1px solid #fff;
  -webkit-transition: all 500ms;
          transition: all 500ms;
}

figure figcaption .links i:hover {
  background-color: transparent;
  -webkit-transform: translateY(2px);
      -ms-transform: translateY(2px);
          transform: translateY(2px);
}

.effect2 figcaption {
  opacity: 0;
  top: 100%;
  -webkit-transition: all 0.4s linear;
          transition: all 0.4s linear;
}

.effect2:hover img{
  transform: scale(1.2);
}

.effect2:hover figcaption {
  opacity: 1;
  top: 0;
}