.farmi-gallery-block .gallery-area {
  position: relative;
  z-index: inherit;
  padding: 120px 0;
}

.atf-section-title h5 {
  margin-top: 0.5rem;
  font-size: 14px;
  color: var(--color-primary);
  letter-spacing: 1.8px;
}

.atf-section-title h2{
  font-size: 40px;
  line-height: 1.2;
    font-weight: 700;
}
.col-12,.col-md-4,.col-xl-auto {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 7px;
    padding-left: 30px;
}

button {
  font-size: 13px;
  margin: 0 15px 20px 0;
  overflow: hidden;
  display: inline-block;
  padding: 8px 15px;
  transition: 0.4s;
  outline: none;
  -webkit-transition: 0.4s;
  -ms-transition: 0.4s;
  border-radius: var(--button-radius);
  font-weight: 500;
  letter-spacing: 0.4px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
}

button:hover,
button.active {
  color: #fff;

    background: var(--btn-hover);
}

@media (max-width: 767px) {
  .farmi-gallery-block .gallery-area {
    padding: 30px 0;
  }
}
.farmi-gallery-block .gallery-area .fixed-shape {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0.03;
}
.farmi-gallery-block .gallery-area .gallery-items {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
}
@media (max-width: 991px) {
  .farmi-gallery-block .gallery-area .gallery-items {
    justify-content: center;
    align-items: center;
  }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item {
  position: relative;
  flex: 0 0 33.33%;
  padding: 15px;
}
@media (max-width: 991px) {
  .farmi-gallery-block .gallery-area .gallery-items .pf-item {
    flex: none;
    width: 100%;
    padding: 15px 0px;
  }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(1) .item,
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(6) .item,
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(5) .item {
  height: auto;
}
@media (max-width: 991px) {
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(1) .item,
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(6) .item,
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(5) .item {
    height: auto;
  }
}
@media (max-width: 767px) {
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(1) .item,
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(6) .item,
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(5) .item {
    height: auto;
  }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(2) .item,
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(3) .item,
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(4) .item {
  height:auto;
}
@media (max-width: 991px) {
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(2) .item,
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(3) .item,
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(4) .item {
    height: auto;
  }
}
@media (max-width: 767px) {
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(2) .item,
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(3) .item,
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(4) .item {
    height:auto;
  }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(n + 7),
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(8),
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(9) {
  /*top: -88px;*/
}
@media (max-width: 991px) {
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(n + 7),
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(8),
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(9) {
    top: 0;
  }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(4) {
  /*top: -88px;*/
}
@media (max-width: 991px) {
  .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(4) {
    top: 0;
  }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item {
  width: 100%;
  position: relative;
  overflow: hidden;
    border-radius: 15px;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item::after {
  position: absolute;
  left: 0;
  top: 0;
  background: #000000;
  content: "";
  transition: all 0.25s ease-in-out;
  opacity: 0;
  height: 100%;
  width: 100%;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb {
  height: 100%;
  width: 100%;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .info {
  padding: 30px 45px;
  position: absolute;
  bottom: -30px;
  left: 0;
  display: flex;
  align-items: center;
  transition: all 0.35s ease-in-out;
  opacity: 0;
  z-index: 1;
  right: 0;
  text-align: center;
  justify-content: center;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .info h4 {
  margin: 0;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .info h4 a {
  color: #fff;
  position: relative;
}
@media (max-width: 767px) {
  .farmi-gallery-block .gallery-area .gallery-items .pf-item .item .info h4 a .a-text {
    font-size: 24px !important;
  }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .info h4 a .image {
  position: absolute;
  bottom: -10px;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb a {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 60px;
  width: 60px;
  background: var(--color-primary);
  z-index: 1;
  text-align: center;
  line-height: 60px;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.35s ease-in-out;
  text-decoration: none;
  transform: translate(-50%, -50px);
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb a::after {
  display: none;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb a .iconfont {
  color: #000;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb a:hover {
  background: var(--btn-hover);
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb img {
  -webkit-transition: all 0.35s ease-in-out;
  -moz-transition: all 0.35s ease-in-out;
  -ms-transition: all 0.35s ease-in-out;
  -o-transition: all 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item:hover .info {
  opacity: 1;
  bottom: 0;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item:hover::after {
  opacity: 0.6;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item:hover .thumb a {
  transform: translate(-50%, -50%);
  opacity: 1;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item:hover .thumb img {
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  transform: scale(1.2);
}
.farmi-gallery-block .gallery-area .site-heading {
  margin-bottom: 60px;
  margin-top: -5px;
}
.farmi-gallery-block .gallery-area .site-heading h2 {
  display: block;
  font-weight: 600;
  padding-bottom: 20px;
  margin-bottom: 0;
  position: relative;
  line-height: 1.4;
  font-size: 40px;
}
@media (max-width: 767px) {
    button {
    width: 150px;
  }
    .text-right {
    text-align: left!important;
}
  .farmi-gallery-block .gallery-area .site-heading h2 {
    font-size: 30px;

  }
  .align-items-center h2{margin-bottom:10px;}
}
.farmi-gallery-block .gallery-area .site-heading h2::before {
  background: var(--color-primary) none repeat scroll 0 0;
  bottom: 0;
  content: "";
  height: 2px;
  left: 50%;
  margin-left: -25px;
  position: absolute;
  width: 40px;
}
.farmi-gallery-block .gallery-area .site-heading h2::after {
  background: var(--color-primary) none repeat scroll 0 0;
  bottom: 0;
  content: "";
  height: 2px;
  left: 50%;
  margin-left: 20px;
  position: absolute;
  width: 5px;
}
.farmi-gallery-block .gallery-area .site-heading h4 {
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 20px;
  display: inline-block;
  position: relative;
  overflow: inherit;
}
