html {
  scroll-behavior: smooth;
}
* {
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  overflow-x: hidden;
}
*::before,
*::after {
  box-sizing: border-box;
}

/* *****  GALLERIES ***** */

.gallery-wrapper {
  padding: 2rem 7rem;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: auto;
  grid-gap: 1rem;
  grid-auto-flow: dense;
}

/* Another way to do the same without declaring in the classes - remove h-x w-x from classes */

/* .gallery-wrapper {
    padding: 2rem 10rem;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(5, 300px);
    grid-auto-rows: 200px;
    grid-gap: 1rem;
    grid-auto-flow: dense;
  }
   */

.gallery-item {
  width: 100%;
  height: 100%;
  position: relative;
  filter: drop-shadow(2px 2px 3px #333);
}

.gallery-item .image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  cursor: pointer;
  transition: all 400ms ease-in;
  transform: scale(1);
}

.gallery-item .image img:hover {
  transform: scale(1.1);
}
@media (max-width:400px) {
  .gallery-item .image img {
    width: 250px;
    height: 350px;
  }
  .gallery-item .image  {
    width: 250px;
    height: 350px;
    transform: translateX(-48%);
  }
}
.w-1 {
  grid-column: span 1;
}
.w-2 {
  grid-column: span 2;
}
.w-3 {
  grid-column: span 3;
}
.w-4 {
  grid-column: span 4;
}
.w-5 {
  grid-column: span 5;
}

.h-1 {
  grid-row: span 1;
}
.h-2 {
  grid-row: span 2;
}
.h-3 {
  grid-row: span 3;
}
.h-4 {
  grid-row: span 4;
}
.h-5 {
  grid-row: span 5;
}

/* ***** LIGHTBOX EFFECT ***** */

#lightbox {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  display: none;
}

#lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  padding: 4px;
  /* border-radius: 1%; */
  /* background-color: white; */
  border: 0.2px solid silver;
}

/* Generic Styles */
:root {
  box-sizing: border-box;
}
#gallery h1 {
  text-align: center;
  color: #0066ff;
  font-weight: 800;
}
#gallery p {
    padding: 0.5vh 3vh 0;
    text-align: center;
    text-transform: capitalize;
}
@media only screen and (max-width: 800px) {
  .gallery-wrapper {
    grid-template-columns: repeat(2, 2fr);
    grid-template-rows: 1fr;
    grid-gap: 2;
    grid-auto-flow: dense;
  }
  .gallery-container:nth-child(3n + 2) {
    grid-column: 1 / span 2;
    grid-row-end: span 2;
  }

  .gallery-container:nth-child(4n + 3) {
    grid-column: 2 / span 1;
    grid-row-end: span 2;
  }

  /*  reseting the css for the class within the divs to show a different way to achieve grid control using the nth childs*/
  .w-1,
  .w-2,
  .w-3,
  .w-4,
  .w-5 {
    grid-column: span 1;
  }

  .h-1,
  .h-2,
  .h-3,
  .h-4,
  .h-5 {
    grid-row: span 1;
  }
}

@media only screen and (max-width: 400px) {
  /* An example to use combined with flex but could also be grids with different repetition of columns  */
  .gallery-wrapper {
    display: flex;
    flex-direction: column;
    flex: wrap;
    gap: 2.5rem;
    margin: 5rem;
  }
}
/* navbar */
.navbar {
  transition: all 400ms ease-in-out;
}

.navbar .nav-link {
  color: white !important;
}

.navbar-brand img {
  width: 160px;
  height: 40px;
}
.bg-dark {
  background: radial-gradient(
    circle at 4% 51.2%,
    rgb(255, 124, 0) 0%,
    rgb(255, 124, 0) 15.9%,
    rgb(255, 163, 77) 15.9%,
    rgb(255, 163, 77) 24.4%,
    rgb(11, 134, 210) 24.5%,
    rgb(12, 124, 194) 66%
  ) !important;
}
.form-check.form-switch {
  margin-top: 9px;
  margin-left: 10px;
}
.form-check.form-switch label {
  color: white !important;
  padding: 0 3px;
}
@media (max-width: 990px) {
  .navbar .nav-link {
    text-align: center;
  }
  .form-check.form-switch {
    justify-content: center;
    align-items: center;
    display: flex;
    margin-bottom: 30px;
  }
}
/* navbar end */
/* banner */
video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100vh;
  z-index: 0;
  object-fit: cover;
  transform: translateX(-50%) translateY(-50%);
}
.banner .carousel-item {
  height: 100vh;
  min-height: 300px;
}
.banner .carousel-caption {
  bottom: 300px;
  z-index: 2;
}
.banner .carousel-caption h5 {
  font-size: 45px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 25px;
  text-shadow: rgb(0, 0, 0) 1px 0px 0px, rgb(0, 0, 0) 0.540302px 0.841471px 0px,
    rgb(0, 0, 0) -0.416147px 0.909297px 0px,
    rgb(0, 0, 0) -0.989992px 0.14112px 0px,
    rgb(0, 0, 0) -0.653644px -0.756802px 0px,
    rgb(0, 0, 0) 0.283662px -0.958924px 0px,
    rgb(0, 0, 0) 0.96017px -0.279415px 0px;
}
.banner .carousel-caption p {
  width: 60%;
  margin: auto;
  font-size: 18px;
  line-height: 1.8;
  text-shadow: rgb(0, 0, 0) 1px 0px 0px, rgb(0, 0, 0) 0.540302px 0.841471px 0px,
    rgb(0, 0, 0) -0.416147px 0.909297px 0px,
    rgb(0, 0, 0) -0.989992px 0.14112px 0px,
    rgb(0, 0, 0) -0.653644px -0.756802px 0px,
    rgb(0, 0, 0) 0.283662px -0.958924px 0px,
    rgb(0, 0, 0) 0.96017px -0.279415px 0px;
}
.carousel-caption a {
  text-transform: uppercase;
  text-decoration: none;
  background: #0066ff;
  padding: 5px 20px;
  display: inline-block;
  color: #fff;
  margin-top: 15px;
  border-radius: 5px;
  text-shadow: none;
}
.banner .carousel-caption a:hover {
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0) !important;
  letter-spacing: 0.4px;
  color: white!important;
  border: 2px solid #fff !important;
}
.banner .carousel-inner:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
@media only screen and (max-width: 767px) {
  .carousel-caption {
    bottom: 280px;
  }
  .banner .carousel-caption h5 {
    font-size: 2rem;
  }
  .carousel-caption a {
    padding: 0 15px;
    font-size: 0.9rem;
  }
}
/* banner end */
/* darkmode */
body.darkmode {
  background-image: none;
  background: #0f2027; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to left,
    #2c5364,
    #203a43,
    #0f2027
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to left,
    #2c5364,
    #203a43,
    #0f2027
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.darkmode .bg-dark {
  background: radial-gradient(
    circle at 4% 51.2%,
    rgb(255, 124, 0) 0%,
    rgb(255, 124, 0) 15.9%,
    rgb(255, 163, 77) 15.9%,
    rgb(255, 163, 77) 24.4%,
    rgb(19, 30, 37) 24.5%,
    rgb(19, 30, 37) 66%
  ) !important;
}
.darkmode .carousel-caption a {
  background-color: aqua !important;
}
.darkmode #gallery h1 {
  color: aqua!important;
}
.darkmode #gallery p {
  color: whitesmoke!important;
}
.darkmode .contact-text,
.darkmode .contact-text a {
  color: whitesmoke;
}
.darkmode .section-header h1 {
  color: aqua !important;
}
.darkmode .section-header p {
  color: white;
}
.darkmode #contact .text-desc {
  color: whitesmoke !important;
}
.darkmode hr {
  border-top: 2px solid rgb(255, 255, 255) !important;
  opacity: 1;
}
.darkmode .contact-wrapper {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.darkmode .list-item {
  color: aqua;
}
.darkmode .copyright {
  color: whitesmoke;
}
.darkmode .alt-send-button,
.darkmode .send-button {
  background-color: aqua !important;
}
.darkmode .send-text {
  color: whitesmoke !important;
}
.darkmode .fa-paper-plane {
  color: whitesmoke  !important;
}
.darkmode .form-control,
textarea {
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
}
/* darkmode end */
/* contact */
#contact {
  width: 100%;
  height: 100%;
  padding: 10vh 0;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  -webkit-box-shadow-: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  background-size: cover;
}
.section-header {
  text-align: center;
  margin: 0 auto;
  padding: 40px 0;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
}
.section-header h1 {
  font-weight: bold;
  color: #0066ff !important;
}

.contact-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  max-width: 840px;
  border-radius: 20px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

/* Left contact page */
.form-horizontal {
  float: left;
  max-width: 300px;
  font-weight: 400;
}

.form-control,
textarea {
  max-width: 300px;
  background-color: white;
  color: black;
  letter-spacing: 1px;
}

.send-button {
  margin-top: 15px;
  height: 34px;
  width: 300px;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.alt-send-button {
  width: 280px;
  height: 34px;
  transition: all 0.2s ease-in-out;
}

.send-text {
  display: block;
  margin-top: 10px;
  font: 700 12px "Lato", sans-serif;
  letter-spacing: 2px;
}

.alt-send-button:hover {
  transform: translate3d(0px, -29px, 0px);
}

/* Begin Right Contact Page */
.direct-contact-container {
  max-width: 300px;
}

/* Location, Phone, Email Section */
.contact-list {
  list-style-type: none;
  margin-left: -30px;
  padding-right: 20px;
}

.list-item {
  line-height: 4;
  color: #0066ff;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
}

.contact-text {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 1.9px;
  color: #000;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
}

.place {
  margin-left: 30px;
}

.phone {
  margin-left: 23px;
}

.gmail {
  margin-left: 20px;
}

.contact-text a {
  color: #000;
  text-decoration: none;
  transition-duration: 0.2s;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
}

.contact-text a:hover {
  color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

/* Social Media Icons */

.copyright {
  font: 200 14px "Oswald", sans-serif;
  color: #555;
  letter-spacing: 1px;
  text-align: center;
}

hr {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Begin Media Queries*/
@media screen and (max-width: 850px) {
  .contact-wrapper {
    display: flex;
    flex-direction: column;
  }
  .direct-contact-container,
  .form-horizontal {
    margin: 0 auto;
  }

  .direct-contact-container {
    margin-top: 60px;
    max-width: 300px;
  }
  .social-media-list li {
    height: 60px;
    width: 60px;
    line-height: 60px;
  }
  .social-media-list li:after {
    width: 60px;
    height: 60px;
    line-height: 60px;
  }
}

@media screen and (max-width: 569px) {
  .direct-contact-container,
  .form-wrapper {
    float: none;
    margin: 0 auto;
  }
  .form-control,
  textarea {
    margin: 0 auto;
  }

  .name,
  .email,
  textarea {
    width: 280px;
  }

  .direct-contact-container {
    margin-top: 60px;
    max-width: 280px;
  }
  .social-media-list {
    left: 0;
  }
  .social-media-list li {
    height: 55px;
    width: 55px;
    line-height: 55px;
    font-size: 2rem;
  }
  .social-media-list li:after {
    width: 55px;
    height: 55px;
    line-height: 55px;
  }
}

@media screen and (max-width: 410px) {
  .send-button {
    width: 99%;
  }
}
/* contact end */