/* ==========================================================
   05-pages.css
   Page Template Styles
   
   PAGE TEMPLATES:
   1. News date (.top-block-p)
   2. Blog single post (.single-post-content)
   3. Gallery page (.gallery-block, .pop-up, .fancybox)
   4. Gallery header (.gallery-top)
   5. Projects grid (.index-block)
   6. Pagination (.nav-links)
   7. Single post template (.single-block-box)
   8. Single post hero (.single-thumbnail)
   ========================================================== */

/* ==========================================================
   1. NEWS DATE
   ========================================================== */
.top-block-p .news-items-top-text-date {
  color: #757575;
  text-transform: uppercase;
  display: block;
  margin-bottom: 35px;
  font-family: "Roboto";
  font-weight: 400;
}

/* ==========================================================
   2. BLOG SINGLE POST
   ========================================================== */
.single-post-content {
  padding: 85px 0;
}
.single-post-content .flex {
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
}
.single-post-content .content-text {
  flex-basis: 70%;
  max-width: 70%;
}
@media (max-width: 1024px) {
  .single-post-content .content-text {
    flex-basis: 100%;
    max-width: 100%;
  }
}
.single-post-content .content-text .post-bottom {
  border-top: 1px solid #dddddd;
  padding: 25px 0;
}
.single-post-content .content-text .post-bottom .post-info {
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-gap: 25px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  flex-direction: row;
  margin-bottom: 30px;
}
.single-post-content .content-text .post-bottom .post-info img {
  margin-right: 10px;
}
.single-post-content .content-text .post-bottom .post-info span,
.single-post-content .content-text .post-bottom .post-info a {
  color: #000;
  font-size: 14px;
  text-transform: capitalize;
}
.single-post-content .content-text .post-bottom .post-info .post_tags {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  flex-direction: row;
}
.single-post-content .content-text .post-bottom .post-info .post_category span {
  margin-right: 5px;
}
.single-post-content .content-text .post-bottom .post-info .clipboard {
  cursor: pointer;
}
.single-post-content .content-text .post-bottom .navigate-btns {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
}
.single-post-content .content-text .post-bottom .navigate-btns > div {
  flex-basis: 49%;
  max-width: 49%;
}
.single-post-content .content-text .post-bottom .navigate-btns > div a {
  color: #000;
  font-weight: 700;
}
.single-post-content .content-text .post-bottom .navigate-btns > div.prev-btn {
  text-align: left;
}
.single-post-content .content-text .post-bottom .navigate-btns > div.next-btn {
  text-align: right;
}
.single-post-content .sidebar {
  flex-basis: 25%;
  max-width: 25%;
}
@media (max-width: 1024px) {
  .single-post-content .sidebar {
    flex-basis: 100%;
    max-width: 100%;
  }
}
.single-post-content .sidebar aside .top-aside {
  margin-bottom: 40px;
}
.single-post-content .sidebar aside .top-aside .subscribe-block {
  margin-bottom: 10px;
}
.single-post-content .sidebar aside .top-aside .subscribe-block > .btn {
  cursor: pointer;
  width: 100%;
}
@media (max-width: 1024px) {
  .single-post-content .sidebar aside .top-aside .subscribe-block > .btn {
    width: auto;
  }
}
.single-post-content .sidebar aside .top-aside .subscribe-block > .btn:hover {
  border: 1px solid #fcbf00;
  color: #fcbf00;
}
.single-post-content .sidebar aside .top-aside .subscribe-block .subscribe-form form input[type="email"] {
  color: #000;
  height: 40px;
  border: 1px solid #e2e2e2;
  padding: 10px 0 10px 10px;
}
.single-post-content .sidebar aside .top-aside .subscribe-block .subscribe-form form input[type="submit"] {
  margin: 5px 0;
  padding: 15px 30px;
  background: #fcbf00;
}
.single-post-content .sidebar aside .top-aside .subscribe-block .subscribe-form form input[type="submit"]:hover {
  color: #fcbf00;
  background: #fff;
  border-color: #fcbf00;
}
.single-post-content .sidebar aside .top-aside .searchform input[type="text"] {
  background: #e4e4e4;
  color: #000;
  height: 40px;
}
.single-post-content .sidebar aside .top-aside .searchform .searchsubmit {
  background: #3370de;
  height: 40px;
}
.single-post-content .sidebar aside .top-aside .searchform .searchsubmit:before {
  color: #fff;
}
.single-post-content .sidebar aside .aside-box > h4 {
  text-transform: uppercase;
}
.single-post-content .sidebar aside .aside-box .posts li,
.single-post-content .sidebar aside .aside-box .cats li {
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 20px;
  margin-bottom: 0;
}
.single-post-content .sidebar aside .aside-box .posts li:before,
.single-post-content .sidebar aside .aside-box .cats li:before {
  top: 15px;
}
.single-post-content .sidebar aside .aside-box .posts li a,
.single-post-content .sidebar aside .aside-box .cats li a {
  color: var(--color-accent);
}
.single-post-content .sidebar aside .aside-box .tags {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  flex-direction: row;
}
.single-post-content .sidebar aside .aside-box .tags li {
  border: 1px solid #7e8286;
  padding: 7px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
}
.single-post-content .sidebar aside .aside-box .tags li a {
  display: inline-block;
  color: #7e8286;
  text-transform: uppercase;
  font-size: 11px;
}
.single-post-content .recent-posts-wrapper {
  flex-basis: 100%;
  max-width: 100%;
  padding: 60px 0;
}
.single-post-content .recent-posts-wrapper > h4 {
  margin-bottom: 30px;
}
.single-post-content .recent-posts-wrapper .posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
}
@media (max-width: 768px) {
  .single-post-content .recent-posts-wrapper .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .single-post-content .recent-posts-wrapper .posts {
    grid-template-columns: repeat(1, 1fr);
  }
}
.single-post-content .recent-posts-wrapper .posts .post .thumbnail {
  height: 285px;
  margin-bottom: 25px;
}
.single-post-content .recent-posts-wrapper .posts .post .thumbnail img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.single-post-content .recent-posts-wrapper .posts .post .date {
  margin-bottom: 25px;
}
.single-post-content .recent-posts-wrapper .posts .post .date span {
  font-size: 16px;
  color: #757575;
}
.single-post-content .recent-posts-wrapper .posts .post .title {
  color: #000;
  font-weight: 700;
  font-size: 20px;
}

/* ==========================================================
   3. GALLERY PAGE
   ========================================================== */
.gallery-block .row {
  width: 1920px;
  max-width: 100%;
}
.gallery-block .gallery-item {
  height: 513px;
  display: block;
  flex-basis: 33.2%;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
@media (max-width: 1440px) {
  .gallery-block .gallery-item {
    height: 500px;
  }
}
@media (max-width: 1240px) {
  .gallery-block .gallery-item {
    height: 330px;
  }
}
@media (max-width: 1024px) {
  .gallery-block .gallery-item {
    flex-basis: 49.8%;
  }
}
@media (max-width: 600px) {
  .gallery-block .gallery-item {
    flex-basis: 100%;
    height: 300px;
  }
}
.gallery-block .gallery-item:before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  transition: all 0.3s ease;
  background: transparent;
}
.gallery-block .gallery-item:hover:before {
  background: rgba(34, 34, 34, 0.7);
}
.gallery-block .gallery-item:hover .gallery-item-info {
  opacity: 1;
}
.gallery-block .gallery-item .gallery-item-image {
  line-height: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  display: block;
}
.gallery-block .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-block .gallery-item .gallery-item-info {
  position: absolute;
  z-index: 1;
  bottom: 0;
  padding: 40px 38px;
  max-width: 280px;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
}
@media (max-width: 1024px) {
  .gallery-block .gallery-item .gallery-item-info {
    opacity: 1;
  }
}
.gallery-block .gallery-item .gallery-item-info span {
  display: block;
}
.gallery-block .gallery-item .gallery-item-info .gallery-item-title {
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--color-accent);
  font-weight: 300;
  line-height: 1.2;
  text-transform: capitalize;
  margin-bottom: 10px;
}
.gallery-block .gallery-item .gallery-item-info .gallery-item-sub {
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Pop-up lightbox */
.pop-up {
  display: none;
  background: transparent;
  text-align: center;
}
.pop-up .gallery-item-image {
  text-align: center;
  margin: 0 auto 30px;
  max-width: 50%;
  position: relative;
}
@media (max-width: 768px) {
  .pop-up .gallery-item-image {
    max-width: 80%;
    margin: 0 auto 0;
  }
}
.pop-up .gallery-item-image .t-title {
  display: none;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  bottom: 20px;
}
.pop-up .gallery-item-image .t-title span {
  display: block;
  text-align: center;
}
@media (max-width: 767px) {
  .pop-up .gallery-item-image .t-title {
    display: block;
  }
}
.pop-up .gallery-item-image img {
  object-fit: cover;
  height: 100%;
}
.pop-up .tu-title {
  margin: 15px 0 0;
}
@media (max-width: 767px) {
  .pop-up .tu-title {
    display: none;
  }
}
.pop-up .tu-title span {
  display: block;
}
.pop-up .gallery-item-title {
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
  font-weight: 300;
  line-height: 1.2;
  text-transform: capitalize;
}
.pop-up .gallery-item-sub {
  font-size: 14px;
  color: #fff;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Fancybox overrides */
.fancybox__slide {
  background: rgba(0, 0, 0, 0.8);
}
.f-thumbs__viewport {
  display: none;
}

/* ==========================================================
   4. GALLERY HEADER
   ========================================================== */
.gallery-top {
  margin-top: 200px;
  margin-bottom: 60px;
}
@media (max-width: 1240px) {
  .gallery-top {
    margin-top: 160px;
    margin-bottom: 50px;
  }
}
@media (max-width: 1024px) {
  .gallery-top {
    margin-top: 100px;
    margin-bottom: 35px;
  }
}
@media (max-width: 768px) {
  .gallery-top {
    margin-top: 50px;
    margin-bottom: 20px;
  }
}
.gallery-top .row {
  width: 1800px;
}
.gallery-top h1 {
  font-size: 85px;
  padding-bottom: 0;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 0;
}

/* ==========================================================
   5. PROJECTS GRID
   ========================================================== */
.index-block .row {
  width: 1920px;
  max-width: 100%;
}
.index-block .index-block-item {
  height: 513px;
  display: block;
  flex-basis: 33.2%;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
@media (max-width: 1440px) {
  .index-block .index-block-item {
    height: 500px;
  }
}
@media (max-width: 1240px) {
  .index-block .index-block-item {
    height: 330px;
  }
}
@media (max-width: 1024px) {
  .index-block .index-block-item {
    flex-basis: 49.8%;
  }
}
@media (max-width: 600px) {
  .index-block .index-block-item {
    flex-basis: 100%;
    height: 300px;
  }
}
.index-block .index-block-item:before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  transition: all 0.3s ease;
  background: transparent;
}
.index-block .index-block-item:hover:before {
  background: rgba(34, 34, 34, 0.7);
}
.index-block .index-block-item:hover .index-block-item-info {
  opacity: 1;
}
.index-block .index-block-item .index-block-item-image {
  line-height: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  display: block;
}
.index-block .index-block-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.index-block .index-block-item .index-block-item-info {
  position: absolute;
  z-index: 1;
  bottom: 0;
  padding: 40px 38px;
  max-width: 280px;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
}
@media (max-width: 1024px) {
  .index-block .index-block-item .index-block-item-info {
    opacity: 1;
  }
}
.index-block .index-block-item .index-block-item-info span {
  display: block;
}
.index-block .index-block-item .index-block-item-info .index-block-title {
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--color-accent);
  font-weight: 300;
  line-height: 1.2;
  text-transform: capitalize;
  margin-bottom: 10px;
}
.index-block .index-block-item .index-block-item-info .gallery-item-sub {
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* ==========================================================
   6. PAGINATION
   ========================================================== */
.nav-links {
  margin: 30px auto 0;
  text-align: center;
}
.nav-links .page-numbers {
  padding: 5px 14px;
  font-size: 16px;
  vertical-align: top;
  background: var(--color-footer-bg);
  color: #000;
  display: inline-block;
  transition: all 0.3s ease;
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  color: #fff;
}

/* ==========================================================
   7. SINGLE POST TEMPLATE
   ========================================================== */
.single-block-box {
  padding: 90px 60px 60px;
}
@media (max-width: 1240px) {
  .single-block-box {
    padding: 90px 60px 60px;
  }
}
@media (max-width: 1024px) {
  .single-block-box {
    padding: 70px 40px 40px;
  }
}
@media (max-width: 768px) {
  .single-block-box {
    padding: 50px 30px 30px;
  }
}
.single-block-box h1 {
  padding-bottom: 35px;
}
@media (max-width: 1024px) {
  .single-block-box h1 {
    padding-bottom: 30px;
  }
}
@media (max-width: 768px) {
  .single-block-box h1 {
    padding-bottom: 25px;
  }
}
.single-block-box .row {
  width: 1800px;
}
.single-block-box .wp-caption {
  margin-bottom: 20px;
  max-width: 100%;
}

/* ==========================================================
   8. SINGLE POST HERO
   ========================================================== */
.single-thumbnail {
  height: 700px;
  display: block;
  position: relative;
  overflow: hidden;
  line-height: 0;
}
@media (max-width: 1440px) {
  .single-thumbnail {
    height: 500px;
  }
}
@media (max-width: 1240px) {
  .single-thumbnail {
    height: 330px;
  }
}
@media (max-width: 600px) {
  .single-thumbnail {
    height: 300px;
  }
}
.single-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}