/*
=============== 
Fonts
===============
*/
@import url("https://fonts.googleapis.com/css?family=Lato:400,700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Knewave&display=swap');

/*
=============== 
Variables
===============
*/
:root {
  /* dark shades of primary color*/
  --clr-primary-1: hsl(109, 91%, 17%);
  --clr-primary-2: hsl(110, 84%, 25%);
  --clr-primary-3: hsl(110, 81%, 29%);
  --clr-primary-4: hsl(109, 77%, 34%);
  /* primary/main color */
  --clr-primary-5: hsl(110, 62%, 45%);
  /* lighter shades of primary color */
  --clr-primary-6: hsl(110, 57%, 50%);
  --clr-primary-7: hsl(109, 65%, 59%);
  --clr-primary-8: hsl(109, 80%, 74%);
  --clr-primary-9: hsl(110, 94%, 87%);
  --clr-primary-10: hsl(111, 100%, 94%);
  /* darkest grey - used for headings */
  --clr-grey-1: hsl(209, 61%, 16%);
  --clr-grey-2: hsl(211, 39%, 23%);
  --clr-grey-3: hsl(209, 34%, 30%);
  --clr-grey-4: hsl(209, 28%, 39%);
  /* grey used for paragraphs/background */
  --clr-grey-5: hsl(210, 22%, 49%);
  --clr-grey-6: hsl(209, 23%, 60%);
  --clr-grey-7: hsl(211, 27%, 70%);
  --clr-grey-8: hsl(210, 31%, 80%);
  --clr-grey-9: hsl(212, 33%, 89%);
  --clr-grey-10: hsl(210, 36%, 96%);
  --clr-white: #fff;
  --ff-primary: "Lato", sans-serif;
  --transition: all 0.3s linear;
  --spacing: 0.25rem;
  --radius: 0.5rem;
  --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/*
=============== 
Global Styles
===============
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-primary);
  background: var(--clr-white);
  color: var(--clr-grey-1);
  line-height: 1.5;
  font-size: 1rem;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

img:not(.nav-logo) {
  width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  letter-spacing: var(--spacing);
  text-transform: capitalize;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 0.875rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--clr-grey-5);
}
@media screen and (min-width: 800px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1rem;
  }

  body {
    font-size: 1rem;
  }

  h1,
  h2,
  h3,
  h4 {
    line-height: 1;
  }
}
/*  global classes */

.btn {
  text-transform: uppercase;
  background: var(--clr-primary-5);
  color: var(--clr-white);
  padding: 0.375rem 0.75rem;
  letter-spacing: var(--spacing);
  display: inline-block;
  /* font-weight: 700; */
  transition: var(--transition);
  font-size: 0.875rem;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
}

.btn:hover {
  color: var(--clr-primary-1);
  background: var(--clr-primary-8);
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  text-transform: uppercase;
}

.section-title span {
  color: var(--clr-primary-5);
}

.section-center {
  width: 90%;
  margin: 0 auto;
  max-width: 1170px;
}

@media screen and (min-width: 992px) {
  .section-center {
    width: 95%;
  }
}


/*
=============== 
Navbar
===============
*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--clr-white);
  box-shadow: var(--dark-shadow);
  z-index: 2;
}

.nav-icons {
  display: none;
}

.nav-center {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-toggle {
  background: transparent;
  border: transparent;
  font-size: 1.5rem;
  color: var(--clr-primary-5);
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover {
  transform: scale(1.2);
}

.nav-link {
  display: block;
  padding: 1rem 2rem;
  text-transform: capitalize;
  letter-spacing: var(--spacing);
  transition: var(--transition);
  color: var(--clr-grey-1);
  cursor: pointer;
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--clr-primary-1);
  background: var(--clr-primary-8);
  padding-left: 2.25rem;
}

/* 280px */
.nav-links {
  height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.show-links {
  height: 280px;
}

@media screen and (min-width: 992px) {
  /* hide toggle button */
  .navbar {
    padding: 1rem 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* optional */
    flex-wrap: wrap;
  }

  .nav-links {
    height: auto;
    display: flex;
  }  

  .nav-header {
    padding: 0 0;
  }

  .nav-link {
    padding: 0 0;
    margin-right: 0.7rem;
  }

  .nav-link:hover {
    padding: 0;
    color: var(--clr-primary-5);
    background: transparent;
  }

  .nav-icons {
    display: flex;
  }


  .nav-icon {
    margin-right: 0.7rem;
    color: var(--clr-primary-5);
    font-size: 1.2rem;
  }
  .nav-icon:hover {
    color: var(--clr-primary-8);
  }
}

/*
=============== 
Hero
===============
*/
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(rgba(37,103,100,0.2),rgba(0,0,0,0.7)), url(../images/hero.jpg) center/cover no-repeat;
}

.hero-vid {
  position: absolute;
  z-index: -20;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner {
  text-align: center;
  color: var(--clr-white);
  padding: 0 3rem;
}

.hero-banner h1 {

  position: relative;
  text-transform: uppercase;
  font-family: "Knewave", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 7rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-banner h1 span {
  color: var(--clr-primary-5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--clr-primary-5);
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px var(--clr-primary-8), 0 0 40px var(--clr-primary-5);
  }
}

.hero-banner p {
  position: relative;
  max-width: 35rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--clr-white);
  letter-spacing: var(--spacing);
  font-family: 'Open Sans';
  font-size: 1.5rem;
}

.hero-btn {
  border-radius: var(--radius);
  position: relative;
  padding: 0.9rem 1.6rem;
  font-size: 1.25rem;
  background: var(--clr-white);
  color: var(--clr-primary-5)
}

.hero-btn:hover {
  background: transparent;
  color: var(--clr-white);
  border-color: var(--clr-white);
}
@media screen and (max-width:400px) {
  .hero-banner h1 {
    font-size: 4.5rem;
  }
}

@media screen and (min-width:768px) {
  .hero {
    height: 100vh;
    width: 100%;
  }

  .hero-banner {
    padding: 0;
  }

  .hero-banner h1 {
    position: relative;
    max-width: 35rem;
  }

  .hero-banner p {
    position: relative;
    max-width: 35rem;
  }

  .hero-btn {
    position: relative;
  }
}



@media screen and (min-width:1200px) {
  .hero {
    background: none;
    height: 100vh;
    width: 100%;
    margin-bottom: 4rem;
  }

  .hero-banner {
    padding: 0;
    position: relative;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
  }

  .hero-banner h1 {
    margin: 0;
    left: 200px;
    text-align: right;
    max-width: 600px;
    margin-left: auto;
    padding-right: 4rem;
  }

  .hero-banner p {
    margin: 0;
    left: 200px;
    text-align: right;
    max-width: 500px;
    margin-left: auto;
    padding-right: 4rem;
  }

  .hero-btn {
    left: 200px;
    margin-right: 4rem;
  }
}

@media screen and (min-width: 1778px) {
  .hero {
    background: none;
    height: 100vh;
    width: 100%;
    margin-bottom: 4rem;
  }

  .hero-banner {
    max-width: 1400px;
  }
}



@media screen and (min-width:1200px) {
  .hero {
    background: none;
    height: 100vh;
    width: 100%;
    margin-bottom: 4rem;
  }

  .hero-banner {
    padding: 0;
    position: relative;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
  }

  .hero-banner h1 {
    margin: 0;
    left: 200px;
    text-align: right;
    max-width: 600px;
    margin-left: auto;
    padding-right: 4rem;
  }

  .hero-banner p {
    margin: 0;
    left: 200px;
    text-align: right;
    max-width: 500px;
    margin-left: auto;
    padding-right: 4rem;
  }

  .hero-btn {
    left: 200px;
    margin-right: 4rem;
  }
}

/*
=============== 
About
===============
*/
/* section add to globals */
/* title add to globals */
/* section center add to globals */

.about-img, .about-info {
  margin-bottom: 2rem;
}

@media screen and (min-width: 992px) {
  .about-center {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .about-img, .about-info {
    flex: 0 0 calc(50% - 2rem);
    margin-bottom: 0;
    align-self: center;
  }
}

@media screen and (min-width: 1170px) {
  .about-img::before {
    content: "";
    position: absolute;
    border: 0.5rem solid var(--clr-primary-5);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    top: -1.5rem;
    left: -1.5rem;
  }

  .about-img {
    position: relative;
  }
}

.about-photo {
  position: relative;
}

/*
=============== 
About Specific Page
===============
*/
.about-title {
  text-align: center;
  margin: 2rem;
  margin-bottom: 4rem;
}

.about-title h4 {
  width: 100%;
  font-size: large;
  margin: 2rem 0;
  text-align: center;
  color: black;
}

.about-title h2 {
  text-transform: uppercase;
  color: black;
}

.about-title span {
  color: var(--clr-primary-5);
}

@media screen and (min-width: 992px) {
  .tab-center {
    display: grid;
    grid-template-rows: 1fr 1fr;
  }
}

.tab {
  background: var(--clr-grey-9);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr;
}

.tab-btn-container {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.tab-btn:nth-child(1) {
  border-top-left-radius: var(--radius);
}

.tab-btn:nth-child(3) {
  border-top-right-radius: var(--radius);
}

.tab-btn {
  color: #000;
  padding: 1rem 0;
  border: none;
  text-transform: capitalize;
  font-size: 1rem;
  display: block;
  background: var(--clr-grey-8);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: var(--spacing);
  font-size: large;
  font-weight: 900;
}

.tab-btn:hover:not(.active) {
  background: var(--clr-primary-10);
  color: var(--clr-primary-5);
}

.tab-content {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  padding: 2rem 1.5rem;
}

/* hide content */
.content {
  display: none;
}

.tab-btn.active {
  background: var(--clr-white);
}

.content.active {
  display: block;
}

.content h4 {
  font-size: large;
  text-align: center;
}

.content p {
  color: var(--clr-grey-1);
  font-size: large;
  word-spacing: var(--spacing);
}

/*
=============== 
Services
===============
*/
.services {
  background: var(--clr-grey-10);
}

.service {
  text-align: center;
  margin-bottom: 3rem;
}

.service-icon {
  background: var(--clr-primary-5);
  color: var(--clr-primary-1);
  padding: 0.5rem;
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-text {
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 576px) {
  .services-center {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }

.service {
  flex: 0 0 calc(50% - 1rem);
  margin-bottom: 1rem;
  }
}

@media screen and (min-width: 992px) {
.service {
  flex: 0 0 calc(33.333% - 1rem);
  }
}

@media screen and (min-width: 1170px) {
.service {
  display: flex;
  text-align: left;
  }

  .service-icon {
    align-self: start;
  }

  .service-info {
    padding-left: 1rem;
  }

  .service-title {
    margin-bottom: 0.5rem;
  }
}
/*
=============== 
Services Specific Page
===============
*/
.serviced-title {
  text-align: center;
  margin: 2rem;
  margin-bottom: -3rem;
  padding: 5rem;
}

.serviced-title h2 {
  text-transform: uppercase;
  color: black;
}

.serviced-title span {
  color: var(--clr-primary-5);
}

.serviced-title h4 {
  width: 100%;
  font-size: large;
  margin: 2rem 0;
  text-align: center;
}

.serviced {
  background: var(--clr-grey-9);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr;
}

.serviced-content {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  padding: 2rem 1.5rem;
}

.serviced.active {
  display: block;
}

.serviced h4 {
  font-size: large;
  text-align: center;
}

.serviced p {
  color: var(--clr-grey-1);
  font-size: large;
  word-spacing: var(--spacing);
}

.card {
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.card img {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-filter: brightness(0.5);
          filter: brightness(0.5);
}

.card-content {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 992px) {
  .serviced-center {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

@media screen and (max-width: 420px) {
.serviced-content {
  padding: 2rem 1.5rem;
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.serviced {
  background: var(--clr-grey-9);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr;
}

.serviced p {
  text-align: center;
  color: var(--clr-grey-1);
  font-size: 1rem;
  word-spacing: var(--spacing);
  width: 90vw;
}
}

@media screen and (max-width: 376px) {
  .serviced p {
  text-align: center;
  color: var(--clr-grey-1);
  font-size: 1rem;
  word-spacing: var(--spacing);
  width: 90vw;
  padding: 1rem;
}
}

@media screen and (max-width: 375px) {
  .serviced p {
  text-align: center;
  color: var(--clr-grey-1);
  font-size: 1rem;
  word-spacing: var(--spacing);
  width: 90vw;
  padding: 1rem 0.5rem;
}
}
/*
=============== 
Featured Products
===============
*/
.product-card {
  transition: var(--transition);
  background-color: var(--clr-grey-10);
  box-shadow: var(--light-shadow);
  margin-bottom: 2rem;
}

.product-card:hover {
  box-shadow: var(--dark-shadow);
  transform: scale(1.02);
}

.product-img-container {
  position: relative;
}

.product-img {
  height: 15rem;
  -o-object-fit: cover;
     object-fit: cover;
}

.product-date {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--clr-primary-8);
  margin-bottom: 0;
  color: var(--clr-primary-1);
  text-transform: capitalize;
  padding: 0.25rem 0.5rem;
}

.product-info {
  padding: 1.25rem 1.5rem;
}

/* extra css */
.product-title {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.product-title p, .product-title h4 {
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.product-title p {
  color: var(--clr-grey-7);
}

/* end of extra css */
.product-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.product-footer p {
  line-height: 0;
  margin-bottom: 0;
  text-transform: capitalize;
  color: var(--clr-primary-5);
}

.product-btn {
  text-align: center;
}

@media screen and (min-width: 768px) {
  .products-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .product-card {
  flex: 0 0 calc(50% - 2rem);
  }
}

@media screen and (min-width: 1170px) {
.product-card {
  flex: 0 0 calc(33.333% - 2rem);
  }
}

/*
=============== 
Products Menu
===============
*/
.menu {
  padding: 30rem 0;
  margin-top: -25rem;
}

.products-title {
  text-align: center;
  margin: 2rem;
}

.products-title h2{
  text-transform: uppercase;
  color: black;
}

.products-title span {
  color: var(--clr-primary-5);
}

.btn-container {
  margin-bottom: 4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border-color: var(--clr-primary-5);
  font-size: 1rem;
  text-transform: capitalize;
  margin: 0 0.5rem;
  letter-spacing: 1px;
  border-radius: var(--radius);
  padding: 0.375rem 0.75rem;
  color: var(--clr-primary-5);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--clr-primary-6);
  color: var(--clr-white);
}

.menu-center {
  width: 90vw;
  margin: 0 auto;
  max-width: 1170px;
  display: grid;
  gap: 3rem 2rem;
  justify-items: center;
}

.menu-item {
  display: grid;
  gap: 1rem 2rem;
  max-width: 25rem;
}

.photo {
  -o-object-fit: cover;
     object-fit: cover;
  height: 200px;
  border: 0.25rem solid var(--clr-primary-5);
  border-radius: var(--radius);
}

.item-info header {
  display: flex;
  justify-content: space-between;
  border-bottom: 0.5px dotted black;
}

.item-info h4 {
  margin-bottom: 0.5rem;
}

.item-info h4:nth-child(1) {
  color: black;
}

.price {
  color: var(--clr-primary-5);
}

.item-text {
  margin-bottom: 0;
  padding-top: 1rem;
  color: black;
}

@media screen and (min-width: 768px) {
  .menu-item {
    grid-template-columns: 225px 1fr;
    gap: 0 1.25rem;
    max-width: 40rem;
  }

  .photo {
    height: 175px;
  }
}

@media screen and (min-width: 1200px) {
  .menu-center {
    width: 95vw;
    grid-template-columns: 1fr 1fr;
  }

  .photo {
    height: 150px;
  }
}

/*
=============== 
Contact
===============
*/
.contact {
  background: var(--clr-primary-5);
}

.contact-title {
  color: var(--clr-white);
}

.contact-title p {
  color: var(--clr-primary-8);
}

.contact-form {
  display: flex;
  max-width: 28rem;
}

.form-control {
  flex: 1 1 auto;
  color: var(--clr-grey-5);
}

.form-control, .btn-submit {
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: var(--spacing);
  background: var(--clr-white);
  text-transform: capitalize;
  border: transparent;
  border-radius: var(--radius);
}

.form-control::-webkit-input-placeholder {
  color: inherit;
}

.form-control::-moz-placeholder {
  color: inherit;
}

.form-control:-ms-input-placeholder {
  color: inherit;
}

.form-control::-ms-input-placeholder {
  color: inherit;
}

.form-control::placeholder {
  color: inherit;
}

.btn-submit {
  font-family: var(--ff-primary);
  margin-left: 0.5rem;
  background: var(--clr-primary-8);
  color: var(--clr-primary-1);
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--clr-primary-1);
  color: var(--clr-primary-5);
}

@media screen and (min-width: 992px) {
  .contact-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

.contact-form {
  align-self: flex-start;
  flex: 1 1 auto;
  max-width: 100%;
  padding-left: 2rem;
  }
}

@media screen and (max-width: 420px) {
.form-control, .btn-submit {
  padding: 0.375rem 0.75rem;
  width: 80%;
}
}
/*
=============== 
Gallery
===============
*/
.gallery-img-container {
  position: relative;
  background: var(--clr-primary-5);
}

.gallery-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 40px;
  transform: translate(-50%, -50%);
  color: red;
  visibility: hidden;
}

.gallery-img {
  height: 17rem;
  -o-object-fit: cover;
     object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-img2 {
  height: 17rem;
  -o-object-fit: cover;
     object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-img3 {
  height: 17rem;
  -o-object-fit: cover;
     object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-img4 {
  height: 17rem;
  -o-object-fit: cover;
     object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-img5 {
  height: 17rem;
  -o-object-fit: cover;
     object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-img6 {
  height: 17rem;
  -o-object-fit: cover;
     object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-img7 {
  height: 17rem;
  -o-object-fit: cover;
     object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-img8 {
  height: 17rem;
  -o-object-fit: cover;
     object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-img-container:hover .gallery-img {
  opacity: 0.5;
}
.gallery-img-container:hover .gallery-img2 {
  opacity: 0.5;
}
.gallery-img-container:hover .gallery-img3 {
  opacity: 0.5;
}
.gallery-img-container:hover .gallery-img4 {
  opacity: 0.5;
}
.gallery-img-container:hover .gallery-img5{
  opacity: 0.5;
}
.gallery-img-container:hover .gallery-img6 {
  opacity: 0.5;
}
.gallery-img-container:hover .gallery-img7 {
  opacity: 0.5;
}
.gallery-img-container:hover .gallery-img8 {
  opacity: 0.5;
}
.gallery-img-container:hover .gallery-icon {
  opacity: 1;
}

@media screen and (min-width: 768px) {
  .gallery-center {
    display: flex;
    flex-wrap: wrap;
  }

  .gallery-img-container {
    flex: 0 0 50%;
  }
}

@media screen and (min-width: 992px) {
  .gallery-img-container {
    flex: 0 0 25%;
  }
}

.fa-heart.active {
  -webkit-animation: animate 1s linear;
          animation: animate 1s linear;
}

@-webkit-keyframes animate {
  to {
    visibility: visible;
    transform: translate(-50%, -50%) scale(7);
    opacity: 0;
    color: red;
  }
}

@keyframes animate {
  to {
    visibility: visible;
    transform: translate(-50%, -50%) scale(7);
    opacity: 0;
    color: red;
  }
}

/*
=============== 
Gallery Specific Page
===============
*/
.section2 {
  padding: .5rem 0;
  width: 80vw;
  margin: 2rem auto;
  max-width: 1170px;
  display: grid;
  gap: 2rem;
}



@media screen and (min-width: 992px) {
  .section2 {
    grid-template-columns: 1fr 1fr 1fr;
    width: 95vw;
  }

  .prev-btn {
    left: -4.5rem;
  }

  .next-btn {
    right: -4.5rem;
  }
}

.gallery-title {
  text-align: center;
  margin: 2rem;
  margin-bottom: 4rem;
}

.gallery-title h2 {
  text-transform: uppercase;
  color: black;
}

.gallery-title span {
  color: var(--clr-primary-5);
}

.gallery-photo {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--light-shadow);
  height: 15rem;
}

.gallery-photo:hover {
  box-shadow: var(--dark-shadow);
}

/*
=============== 
Modal
===============
*/

.modal {
  position: fixed;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0);
  transition: var(--transition);
  opacity: 0;
  min-height: 100vh;
  overflow: scroll;
}

.modal.open {
  opacity: 1;
  z-index: 999;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  color: var(--clr-white);
  background: transparent;
  border-color: transparent;
  cursor: pointer;
}

.next-btn,
.prev-btn {
  position: absolute;
  top: 10rem;
  transform: translateY(-50%);
  background: transparent;
  font-size: 2rem;
  color: var(--clr-white);
  border-color: transparent;
  cursor: pointer;
}

.prev-btn {
  left: -2.5rem;
}

.next-btn {
  right: -2.5rem;
}

@media screen and (min-width: 768px) {
  .prev-btn {
    left: -4rem;
  }

  .next-btn {
    right: -4rem;
  }
}

.modal-content {
  width: 80%;
  max-width: var(--max-width);
  margin: 0 auto;
  margin-top: 10rem;
  position: relative;
}

.main-img {
  width: 100%;
  height: 20rem;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: var(--radius);
}

.image-name {
  text-align: center;
  margin: 1rem 0 3rem;
  color: var(--clr-white);
}

.modal-images {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: 1rem;
}

.modal-img {
  width: 100%;
  height: 5rem;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.5;
  transition: var(--transition);
  cursor: pointer;
}

.modal-img:hover {
  opacity: 1;
}

.modal-img.selected {
  opacity: 1;
}


@media screen and (min-width: 768px) {
  .main-img {
  margin-top: -8rem;
  width: 100%;
  height: 40rem;
  -o-object-fit: contain;
     object-fit: contain;
}
}
/*
=============== 
Footer
===============
*/
.footer {
  background: var(--clr-primary-2);
  text-align: center;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-links, .footer-icons {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--clr-white);
  text-transform: capitalize;
  font-size: 1rem;
  margin-right: 1rem;
  letter-spacing: var(--spacing);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--clr-primary-5)
}

.footer-icon {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--clr-primary-8);
  transition: var(--transition);
}

.footer-icon:hover {
  color: var(--clr-primary-5);
}

.copyright {
  text-transform: capitalize;
  letter-spacing: var(--spacing);
  color: var(--clr-white);
}
