/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/* ------ Gallery ----------- */
.image-mosaic {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 240px;
}

.mcard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #FFF;
  font-size: 3rem;
  color: #fff;
  box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  transition: all 500ms;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  margin: 0;
}

@media screen and (min-width: 600px) {
  .mcard-tall {
    grid-row: span 2 / auto;
  }

  .mcard-wide {
    grid-column: span 2 / auto;
  }
}

/* ------ News ----------- */
a.box_contents {
  margin: 0 10px 45px 10px;
  display: block;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
}
a.box_contents .wrapper {
  padding: 20px 40px 50px 60px;
  position: relative;
}
a.box_contents figure {
  position: relative;
  overflow: hidden;
  transition: all 0.7s ease;
}
a.box_contents figure img {
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
a.box_contents figure em {
  position: absolute;
  z-index: 4;
  bottom: 0;
  left: 10px;
  background-color: #24262d;
  color: #fff;
  padding: 10px 15px;
  line-height: 1;
  text-transform: uppercase;
  font-style: normal;
  font-size: 12px;
  font-size: 0.75rem;
}
a.box_contents small {
  font-weight: 600;
  color: #ddd;
  text-transform: uppercase;
  position: absolute;
  top: 5px;
  left: 40px;
  display: block;
  width: 150%;
  transform: rotate(90deg);
  transform-origin: 0 0;
  white-space: nowrap;
  position: absolute;
  letter-spacing: 2px;
}
a.box_contents small:after {
  background-color: #eee;
  width: 100%;
  height: 1px;
  content: "";
  display: inline-block;
  margin: 4px;
}
a.box_contents h2 {
  font-size: 24px;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
}
a.box_contents em {
  font-style: normal;
  font-weight: 600;
  position: relative;
}
a.box_contents em:before {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 10px;
  height: 2px;
  content: "";
  transition: width 500ms ease;
  background-color: #978667;
}

a.box_contents:hover em:before {
  width: 100%;
  background-color: #333;
}

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

.home a.box_contents {
  margin: 0 0 25px 0;
}

#comments {
  margin-bottom: 25px;
}
#comments ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
#comments ul li {
  padding: 25px 0 0 0;
  list-style: none;
}
#comments .replied-to {
  margin-left: 35px;
}
@media (max-width: 767px) {
  #comments .replied-to {
    margin-left: 20px;
  }
}

.avatar {
  float: left;
  margin-right: 25px;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 50%;
  position: relative;
}
@media (max-width: 767px) {
  .avatar {
    float: none;
    margin: 0 0 5px 0;
  }
}
.avatar img {
  width: 68px;
  height: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.comment_right {
  display: table;
  background-color: #f7f7f7;
  border-radius: 3px;
  padding: 20px 20px 0 20px;
  position: relative;
}

.comment_right:after,
.comment_right:before {
  right: 100%;
  top: 30px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-radius: 3px;
}

.comment_right:after {
  background-color: rgba(0, 0, 0, 0);
  border-right-color: #f7f7f7;
  border-width: 15px;
  margin-top: -15px;
}

.comment_right:before {
  border-color: rgba(0, 0, 0, 0);
  border-width: 16px;
  margin-top: -16px;
}

.comment_info {
  padding-bottom: 7px;
}
.comment_info span {
  padding: 0 10px;
}

/*-------- Image layout --------*/
.img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.img-left {
  display: block;
  margin-left: 0;
  margin-right: auto;
  width: 50%;
}

.img-2col-left {
  display: block;
  margin-left: 10;
  margin-right: auto;
  width: 90%;
}

.img-2col-right {
  display: block;
  margin-left: auto;
  margin-right: 10;
  width: 90%;
}

/*-------- Pagination --------*/
.clear:after, .pagination:after, .clear:before, .pagination:before {
  content: "";
  display: table;
}
.clear:after, .pagination:after {
  clear: both;
}

.pagination__wrapper {
  height: 50px;
  padding-top: 30px;
  margin-bottom: 30px;
  position: relative;
  text-align: center;
  width: 100%;
}
.pagination__wrapper:before {
  top: -1px;
}
.pagination__wrapper:after {
  bottom: -1px;
}

@keyframes hoverAnimation {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.pagination {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination li {
  display: block;
  float: left;
  padding: 5px;
}
.pagination li:first-child {
  border: none;
}
.pagination a,
.pagination span {
  background: none;
  border: none;
  border-radius: 50%;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.6);
  display: block;
  font-size: 16px;
  height: 40px;
  line-height: 40px;
  min-width: 40px;
  padding: 0;
}
.pagination a {
  outline: none;
  position: relative;
  transition: all 170ms linear;
}
.pagination a:before {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  content: "";
  cursor: pointer;
  height: 0;
  left: 50%;
  opacity: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: all 270ms linear;
  top: 50%;
  width: 0;
}
.pagination a:hover:not(.active) {
  color: rgb(0, 0, 0);
}
.pagination a:hover:not(.active):before {
  animation: hoverAnimation 810ms linear forwards;
  height: 40px;
  width: 40px;
}
.pagination a.active {
  background: #24262d;
  color: rgb(255, 255, 255);
  cursor: default;
}
.pagination .prev,
.pagination .next {
  font-size: 28px;
}
