.portfolio .buba-text {
  font-size: 36px;
  /* width: 200px; */
  margin: auto;
  height: 36px;
  line-height: 36px;
  margin-top: 123px;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
  color: #f3450f;
  opacity: 0; }
.portfolio p {
  font-size: 14px;
  text-transform: none;
  width: 400px;
  margin: auto;
  opacity: 0;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
  text-align: center; }
.portfolio a {
  z-index: 2; }
.portfolio .buba {
  width: 300px;
  height: 300px;
  margin: auto;
  background: url("./img/2.jpg");
  background-size: cover;
  position: relative;
  text-align: center;
  cursor: pointer; }
.portfolio .buba:hover .fon {
  background: #f3450f;
  opacity: 0.9;
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transition: all 0.35s;
  transition: all 0.35s; }
.portfolio .buba .buba-hover {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden; }
.portfolio .buba-hover {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0; }
  .portfolio .buba-hover a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0; }
.portfolio .buba {
  background: #9e5406 url("./img/2.jpg");
  -webkit-transition: all 0.35s;
  transition: all 0.35s; }
.portfolio .buba:hover {
  opacity: 1; }
.portfolio .buba:hover .buba-text {
  color: #ffffff;
  margin-top: 87px;
  opacity: 1; }
.portfolio .buba:hover p {
  color: #ffffff;
  margin-top: 87px;
  opacity: 1; }
.portfolio .buba:hover p {
  color: #ffffff;
  margin-top: 40px;
  opacity: 1; }
.portfolio .buba .buba-hover::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 30px;
  bottom: 30px;
  left: 30px;
  opacity: 0;
  -webkit-transition: opacity 1s, -webkit-transform 1s;
  transition: opacity 1s, -webkit-transform 1s;
  transition: opacity 1s, transform 1s;
  transition: opacity 1s, transform 1s, -webkit-transform 1s;
  /*transition: opacity 0.35s, transform 0.35s */ }
.portfolio .buba .buba-hover {
  /*transition: opacity 0.35s, transform 0.35s */ }
  .portfolio .buba .buba-hover::after {
    content: "";
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    opacity: 0;
    -webkit-transition: opacity 1s, -webkit-transform 1s;
    transition: opacity 1s, -webkit-transform 1s;
    transition: opacity 1s, transform 1s;
    transition: opacity 1s, transform 1s, -webkit-transform 1s; }
.portfolio .buba .buba-hover::before {
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  -webkit-transform: scale(0, 1);
          transform: scale(0, 1); }
.portfolio .buba .buba-hover::after {
  border-right: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  -webkit-transform: scale(1, 0);
          transform: scale(1, 0); }
.portfolio .buba:hover .buba-hover::before {
  opacity: 1;
  -webkit-transform: scale(1);
          transform: scale(1); }
.portfolio .buba:hover .buba-hover::after {
  opacity: 1;
  -webkit-transform: scale(1);
          transform: scale(1); }
