/*
Theme Name: DW Photography
Description: Theme for client website
Author: MY
Version: 1.1.0
*/

/* General styling */

*,
body,
html {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", serif;
  color: #5a4b57;
}

html,
body {
  height: 100%;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  margin: 0 !important;
  scroll-behavior: smooth;
}

ul {
  list-style-type: none;
}

h1 {
  font-weight: lighter;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  line-height: 2em;
}

h2 {
  line-height: 1.4em;
}

.container {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  flex: 1;
}

.full-width {
  width: 100vw;
  position: relative;
  margin-left: -50vw;
  left: 50%;
}

.short-text {
  max-width: 840px;
  margin: auto;
}

.medium-text {
  max-width: 1100px;
  margin: auto;
}

.grey-bg {
  background-color: #fafafa;
  padding: 50px;
}

.wp-block-button__link {
  background-color: var(--accent-theme-color);
  border-radius: 1px;
  transition: all 1s ease;
  padding: 10px 15px;
}

.wp-block-button__link:hover {
  opacity: 0.5;
}

.internal-link {
  transition: all 0.5s ease;
}

.internal-link:hover {
  transform: scale(1.2);
}

@media (hover: none) {
  img:not(.featherlight-content img):hover,
  div:not(.featherlight):hover,
  span:not(.featherlight):hover {
    transition: none !important;
    background-color: inherit !important;
    color: inherit !important;
    box-shadow: none !important;
  }
}

/* Variables */

:root {
  --primary-theme-color: #c29c7a;
  --accent-theme-color: #c29c7a;
}

/* WP Classes */

.brown-bg-color {
  background-color: #c29c7a;
}

.brown-bg-color p,
.brown-bg-color h1 {
  color: #fff;
}

.full-width .wp-block-cover__inner-container {
  max-width: 1400px;
}

.about-me-img {
  gap: 80px;
}

.about-me-img img {
  -webkit-box-shadow: 29px 28px 0px 0px rgba(250, 250, 250, 1);
  -moz-box-shadow: 29px 28px 0px 0px rgba(250, 250, 250, 1);
  box-shadow: 50px 50px 0px 0px rgb(243, 240, 240);
  filter: grayscale(0.5);
}

.featherlight {
  pointer-events: none;
}

.featherlight-content,
.featherlight-next,
.featherlight-previous {
  pointer-events: auto;
}

/* Animation Classes */

.fade-in {
  animation: fadeIn linear 2s;
  animation-timeline: view();
  animation-range: entry 0 cover 40%;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    scale: 0.5;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

.fade-up {
  animation: fadeUp linear 2s;
  animation-timeline: view();
  animation-range: entry 0;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(50%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up-instant {
  animation: fadeUpInstant linear 0.7s;
}

@keyframes fadeUpInstant {
  0% {
    opacity: 0;
    transform: translateY(50%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-right {
  animation: fadeRight linear 2s;
  animation-timeline: view();
  animation-range: entry 0 cover 30%;
}

@keyframes fadeRight {
  0% {
    opacity: 0;
    transform: translateX(-50%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Navigation */

header {
  width: 100%;
  position: sticky;
  z-index: 10;
  background-color: #fff;
}

.home header {
  background-color: transparent;
  position: absolute;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.menu-items-home a {
  color: #fff;
}

header .container img {
  width: 140px;
}

.nav-right li {
  display: inline-block;
  font-size: 16px;
  margin-left: 20px;
  transition: opacity 0.5s ease-out;
}

.nav-right li:hover {
  opacity: 0.5;
}

.social-icons {
  margin-top: 10px;
}

.social-icons li {
  display: inline-block;
}

.social-icons i {
  font-size: 20px;
  margin-right: 10px;
  transition: opacity 0.5s ease-out;
  color: #92877a;
}

.social-icons i:hover {
  opacity: 0.5;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  transition: left 0.3s ease-out;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-container {
  width: 80%;
  margin: 0 auto;
}

.mobile-nav .menu-items li {
  color: #92877a;
  margin-bottom: 20px;
  font-size: 20px;
}

.mobile-nav .menu-items {
  margin-top: 100px;
  text-align: center;
}

.hamburger {
  z-index: 9999999;
  display: none;
}

.hamburger .line {
  width: 40px;
  height: 1px;
  background-color: #92877a;
  display: block;
  margin: 8px auto;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.hamburger:hover {
  cursor: pointer;
}

#hamburger-6.is-active {
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  -webkit-transition-delay: 0.6s;
  -o-transition-delay: 0.6s;
  transition-delay: 0.6s;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#hamburger-6.is-active .line:nth-child(2) {
  width: 0px;
}

#hamburger-6.is-active .line:nth-child(1),
#hamburger-6.is-active .line:nth-child(3) {
  -webkit-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  transition-delay: 0.3s;
}

#hamburger-6.is-active .line:nth-child(1) {
  -webkit-transform: translateY(13px);
  -ms-transform: translateY(13px);
  -o-transform: translateY(13px);
  transform: translateY(9px);
}

#hamburger-6.is-active .line:nth-child(3) {
  -webkit-transform: translateY(-13px) rotate(90deg);
  -ms-transform: translateY(-13px) rotate(90deg);
  -o-transform: translateY(-13px) rotate(90deg);
  transform: translateY(-9px) rotate(90deg);
}

/* Instagram Slider */

.instagram-slider {
  padding: 0;
}

.instagram-slider .wp-block-columns {
  gap: 0;
  position: relative;
  cursor: pointer;
}

.instagram-slider .wp-block-image img {
  min-height: 650px;
  object-fit: cover;
}

.instagram-slider .wp-block-image {
  opacity: 0.7;
  transition: all 0.5s ease;
}

.instagram-slider .wp-block-image:hover {
  opacity: 1;
  transform: translateY(10px);
}

/* Gallery */

.main-gallery {
  gap: 0;
}

/* Blog */

.blog-title {
  width: 100%;
  font-size: 60px;
  text-align: center;
  margin-top: 50px;
}

.blog-intro-text {
  width: 100%;
}

.blog-intro-text p {
  max-width: 700px;
  font-size: 16px;
  margin: 0 auto;
}

.blog-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 40px 0;
  margin-bottom: 100px;
}

.posts-container {
  padding: 10px;
  width: 33%;
  margin-top: 50px;
  transition: scale 1s ease;
}

.posts-container:hover {
  scale: 1.03;
}

.home .blog-container {
  margin-bottom: 0;
}

.posts-container img {
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.post-details {
  background-color: #fafafa;
  margin-top: -5px;
  padding: 20px 0;
  min-height: 200px;
}

.post-title {
  margin-bottom: 5px;
}

.post-details a {
  transition: all 0.5s ease;
}

.post-details a:hover {
  opacity: 0.5;
}

.featured-blog-img {
  width: 100%;
}

.featured-blog-img img {
  width: 100%;
  object-fit: cover;
  height: 50vh;
  object-position: bottom;
  margin-bottom: 100px;
}

/* Footer */

footer {
  min-height: 150px;
  color: #000;
  padding: 50px 0 25px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.copyright {
  font-size: 12px;
}

.footer-email {
  font-size: 18px;
  transition: all 0.5s ease-out;
  margin-top: 10px;
  display: block;
}

.footer-nav ul {
  margin-bottom: 20px;
}

.footer-nav ul li {
  display: inline-block;
  margin-right: 30px;
  font-size: 18px;
  letter-spacing: 5px;
  transition: opacity 0.5s ease-out;
}

.footer-nav ul li:hover,
.footer-email:hover {
  opacity: 0.5;
}

/* Blog Footer */

.single-post footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Media Queries */
@media (max-width: 900px) {
  .nav-right {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .footer-nav ul li {
    font-size: 12px;
    margin-right: 10px;
  }

  .posts-container {
    padding: 10px;
    width: 100%;
  }

  .instagram-slider
    .wp-block-columns:not(.is-not-stacked-on-mobile)
    > .wp-block-column {
    flex-basis: 45% !important;
  }

  .instagram-slider .wp-block-image img {
    height: 200px !important;
    min-height: 0;
  }
}
