* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Libre Franklin", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
}

/* Navbar Styles */

.navbar {
  background: black;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  height: 80px;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

#navbar__logo {
  color: white;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.75rem;
}

.fa-square {
  margin-right: 0.3rem;
  color: yellow;
  padding-top: 3px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  text-align: center;
}

.navbar__item {
  height: 80px;
}

.navbar__links {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 1rem;
  height: 100%;
}

.navbar__links:hover {
  color: gray;
  transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
  .navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0;
  }

  .navbar__menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 0;
    transition: all 0.5s ease;
    height: 60vh;
    z-index: -1;
    background: #131313;
  }

  .navbar__menu.active {
    background: #131313;
    top: 100%;
    opacity: 0.9;
    transition: all 0.5s ease;
    z-index: 99;
    height: 60vh;
    font-size: 1.3rem;
  }

  #navbar__logo {
    padding-left: 20px;
  }

  .navbar__toggle .bar {
    width: 23px;
    height: 2px;
    margin: 4px auto;
    transition: all 0.3s ease-in-out;
    background: #fff;
  }

  .navbar__item {
    width: 100%;
  }

  .navbar__links {
    text-align: center;
    padding: 1rem;
    width: 100%;
    display: table;
  }

  #mobile-menu {
    position: absolute;
    top: 30%;
    right: 5%;
    transform: translate(5%, 20%);
  }

  .navbar__toggle .bar {
    display: block;
    cursor: pointer;
  }

  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* Main Section Styles */

.main {
  background-color: white;
  flex: 1 0 auto;
}

.main__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-self: center;
  margin: 0 auto;
  height: 75vh;
  background-color: white;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  padding: 50px 60px;
}

.main__content h1 {
  font-size: 2rem;
}

.main__content h2 {
  font-size: 1.5rem;
}

.main__content p {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 300;
  color: gray;
  margin-right: 100px;
}

.main__img--container {
  text-align: center;
}

#main__img {
  height: 100%;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .main__container {
    display: grid;
    grid-template-columns: auto;
    align-items: center;
    justify-self: center;
    width: 100%;
    margin: 0 auto;
    min-height: 110vh;
    padding: 30px 20px;
  }

  .main__content {
    text-align: center;
    /* margin-bottom: 2rem; */
  }

  .main__content p {
    margin-right: 0px;
  }
}

/* Footer Styles */

.footer__container {
  display: flex;
  justify-content: space-between;
  height: 40px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: auto;
}

.footer__socials a {
  color: black;
  font-size: 1.5rem;
  text-decoration: none;
}

.footer__socials a:hover {
  color: #e1306c;
}

@media (max-width: 500px) {
  .footer__container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-bottom: 75px;
  }
}

/* Gallery Styles */

.hidden {
  display: none !important;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 15px;
}

.thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.thumb:hover {
  transform: scale(1.05);
}

.carousel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(128, 128, 128, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.carousel-wrapper {
  width: 80%;
  max-width: 1200px; /* controls the width of carousel images */
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.nav-btn,
.close-btn {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 30px 30px;
}

.prev {
  left: 5%;
  top: 40%;
}
.next {
  right: 5%;
  top: 40%;
}
.close-btn {
  top: 20px;
  right: 5px;
  font-size: 1.5rem;
}

.caption-container {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  color: white;
}

#imageCaption {
  font-size: 1.2rem;
  display: inline-block;
  padding: 5px 15px;
  border-radius: 4px;
}

.gallery-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 15px;
}

.gallery-section-header {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  color: #333;
  margin: 2rem 0 1.5rem 0;
  padding: 0 15px;
}

.gallery-section-header:first-of-type {
  margin-top: 1rem;
}

@media screen and (max-width: 768px) {
  .gallery-section-header {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
  }
}

@media screen and (max-width: 768px) {
  .carousel-overlay {
    background: rgba(128, 128, 128, 0.95);
    align-items: center;
    padding: 0;
  }

  .carousel-wrapper {
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-slides {
    height: 100%;
    align-items: center;
  }

  .slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }

  .slide img {
    width: 95%; /* controls the size of width of images on mobile */
    height: 90%;
    max-height: 80vh;
    object-fit: contain;
    cursor: pointer;
  }

  .nav-btn {
    display: none;
  }

  .close-btn {
    display: block;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    z-index: 1001;
    width: 25px;
    height: 25px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .caption-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px;
    background: rgba(128, 128, 128, 1);
  }

  #imageCaption {
    font-size: 1rem;
  }
}
