html {
  scroll-behavior: smooth;
}

body {
  font-family: "Tenor Sans", sans-serif;
  animation: smoothLoad;
  animation-duration: 3s;
  background-color: white;
}

@keyframes smoothLoad {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

header {
  color: #181818;
  background-color: #fff7ed;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 20px;
  align-items: center;
  transition: all 0.1s ease-in-out;
}

header img {
  margin-right: 150px;
  position: relative;
  z-index: 1000;
  width: 150px;
  height: auto;
  cursor: pointer;
}

.scrolled {
  opacity: 0;
}

.logo-burger-container {
  background-color: transparent;
}

header .burger .burger-line {
  height: 3px;
  width: 100%;
  background-color: #181818;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

header .burger .burger-line:nth-child(1) {
  width: 100%;
}

header .burger .burger-line:nth-child(2) {
  width: 100%;
}

header .burger {
  height: 40px;
  position: relative;
  z-index: 2000;
  width: 40px;
  cursor: pointer;
}

header.open-burger .burger .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

header.open-burger .burger .burger-line:nth-child(2) {
  transform: rotate(-45deg) translate(-2px, 2px);
}

header.open-burger .burger .burger-line:nth-child(3) {
  background-color: transparent;
}

nav {
  background-color: #fff7ed;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  z-index: 200;
  padding-top: 45%;
  padding-bottom: 30px;
}

.navigation {
  color: #181818;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  padding: 30px;
  text-align: start;
}

.nav-img {
  display: none;
}

.navigation li {
  margin-right: 45px;
  color: #181818;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 25px;
  margin-bottom: 30px;
}

.mobile-menu {
  text-align: center;
}

.mobile-menu-height {
  height: 100vh;
  animation: smoothLoad 0.5s ease-in-out;
}

/**/

.main-title {
  font-size: 38px;
  line-height: 40px;
  margin-bottom: 30px;
}

.video {
  height: 100%;
  position: relative;
  pointer-events: none;
}

.video__main {
  position: relative;
  z-index: 0;
  overflow-y: hidden;
  overflow: hidden;
  height: 86vh;
  height: calc(var(--vh, 1vh) * 88);
  pointer-events: none;
}

.video-main iframe {
  display: none;
  pointer-events: none;
}

.video__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__button {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 150px;
  width: 100%;
}

.video__text {
  background-color: white;
  color: #181818;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 35px;
  padding-bottom: 35px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.video__svg {
  height: 80px;
  max-width: 30px;
  position: absolute;
  bottom: 5%;
  left: calc(50% - 20px);
  cursor: pointer;
}

.chevron {
  fill: #fff;
  fill-opacity: 1;
  position: relative;
  z-index: 10000;
}

#TopChevron {
  animation: topChevron 2s infinite;
}

#MiddleChevron {
  animation: middleChevron 2s infinite;
}

#BottomChevron {
  animation: bottomChevron 2s infinite;
}

@keyframes topChevron {
  0% {
    fill-opacity: 0;
  }
  5% {
    fill-opacity: 1;
  }
  70% {
    fill-opacity: 1;
  }
  75% {
    fill-opacity: 0;
  }
  100% {
    fill-opacity: 0;
  }
}

@keyframes middleChevron {
  0% {
    fill-opacity: 0;
  }
  5% {
    fill-opacity: 0;
  }
  10% {
    fill-opacity: 1;
  }
  75% {
    fill-opacity: 1;
  }
  80% {
    fill-opacity: 0;
  }
  100% {
    fill-opacity: 0;
  }
}

@keyframes bottomChevron {
  0% {
    fill-opacity: 0;
  }
  10% {
    fill-opacity: 0;
  }
  15% {
    fill-opacity: 1;
  }
  80% {
    fill-opacity: 1;
  }
  85% {
    fill-opacity: 0;
  }
}

/*.video__main iframe {
  width: 100vw;
  width: 100%;
  overflow: auto;
  object-fit: cover;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  position: relative;
}*/

.video__text h2 {
  margin-bottom: 20px;
}

.video__text p {
  font-size: 18px;
  margin-bottom: 20px;
}

.video__text .btn {
  font-size: 18px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 20px;
  padding-right: 20px;
  border: 1px solid white;
  color: white;
  background-color: #181818;
  transition: all 0.2s ease-in-out;
  display: block;
  width: 50%;
  text-align: center;
  background-color: #c4bcb5;
  background-color: #878482;
}

.video__text .btn:hover {
  background-color: #181818;
  color: white;
}

.social img {
  margin-right: 10px;
}

.social li {
  height: 25px;
  margin-top: 10px;
}

.social a {
  display: flex;
  align-items: center;
}

.social h2 {
  text-transform: uppercase;
  margin-right: 20px;
}

/*footer*/

footer {
  position: relative;
}

.footer-box {
  color: #181818;
  background-color: white;
  background-color: #c4bcb5;
  background-color: #ddd4bf;
  background-color: #fff7ed;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.footer-box h2 {
  text-transform: uppercase;
  margin-bottom: 5px;
}

.footer-box .logo img {
  margin-right: 150px;
  height: 84px;
}

.footer-box__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 30px;
}

#official {
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: white;
  padding-left: 20px;
  padding-right: 20px;
}

.official-box {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.official-item {
  border: 1px solid black;
  padding: 25px;
  display: inline-block;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  width: 100%;
  border-radius: 5px;
  margin-bottom: 20px;
  /*justify-content: space-between;*/
}

.official-item h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.official-item a {
  color: #777;
  cursor: pointer;
}

#about {
  background-color: white;
}

.about-text {
  padding: 30px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.about-img img {
  height: 350px;
  width: 100%;
  object-fit: cover;
}

.contact-text {
  color: #181818;
}

.gallery {
  padding-top: 50px;
  color: #181818;
  background-color: white;
  animation: smoothLoad;
  position: relative;
}

.contact-box {
  padding: 30px;
}

.contact-box h2 {
  text-transform: uppercase;
}

.contact-img img {
  height: 350px;
  width: 100%;
  object-fit: cover;
}

.events {
  padding-top: 50px;
  padding-bottom: 60px;
  background-color: white;
  padding-left: 20px;
  padding-right: 20px;
}

.events h3 {
  font-size: 30px;
}

.event-item:nth-child(odd) .event-text {
  padding-right: 0px;
}

.event-item:nth-child(even) {
  flex-direction: row-reverse;
}

.event-item:nth-child(even) .event-text {
  margin-right: 40px;
  margin-left: 0;
  padding-left: 0;
}

.event-item:nth-child(odd) .event-img {
  margin: 0;
}

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

#gallery {
  padding-left: 20px;
  padding-right: 20px;
}

.back-to-top-button {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  cursor: pointer;
  background-image: url("../img/button.svg");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 30px 30px;
  height: 55px;
  width: 55px;
  transform: rotateY(0deg) rotate(-90deg);
  background-color: #878482;
  border-radius: 50%;
  transition: all 1s;
}

.back-to-top-button:hover {
  background-color: #181818;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 22000;
  overflow: hidden;
  transition: 0.5s;
  opacity: 0;
}

/*gallery popup*/

.popup.active .close-btn,
.popup.active .index,
.popup.active .large-image,
.popup.active .arrow-btn {
  opacity: 1;
  transition: opacity 0.5s;
  transition-delay: 0.5s;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  color: #fff;
  text-align: center;
  line-height: 50px;
  font-weight: 300;
}

.image-name {
  opacity: 0;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-image: url("../img/close.svg");
  background-position: center;
}

.arrow-btn {
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
  transform: translateY(-50%) rotate(180deg);
}

.arrow-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.index {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 80px;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
}

.large-image {
  width: 90%;
  height: 80%;
  object-fit: contain;
  opacity: 0;
}

@media only screen and (min-width: 1024px) {
  nav {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    width: 100%;
    z-index: 200;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    justify-content: space-between;
  }

  .nav-img {
    display: block;
    width: 40%;
    height: 100%;
    object-fit: cover;
    background-color: #777;
    opacity: 0.8;
  }

  .nav-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .navigation {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 60%;
    padding-top: 10%;
    padding-bottom: 10%;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .navigation__box {
    width: 50%;
    text-align: left;
    padding-left: 15%;
    margin: 0 auto;
  }

  .navigation__box li {
    margin-top: 40px;
  }

  .navigation__box li:last-child {
    margin-top: 100px;
  }

  @keyframes loadNavigationLine {
    0% {
      width: 0%;
    }
    15% {
      width: 0%;
    }
    100% {
      width: 100%;
    }
  }

  header {
    justify-content: flex-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 20000;
  }

  header img {
    width: 180px;
  }

  .navigation li {
    font-size: 24px;
    margin-right: 30px;
  }

  .video__main {
    height: 100vh;
  }

  .events h2 {
    font-size: 52px;
    margin-bottom: 40px;
  }

  .event-img img {
    width: 600px;
    height: 400px;
  }

  .popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  .footer-box {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding-top: 70px;
    align-items: end;
    padding-bottom: 70px;
  }

  .footer-box__item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 30px;
    min-height: 150px;
    margin-right: 50px;
  }

  .event-text {
    width: 600px;
  }

  .gallery {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .video__text {
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .video__text p {
    width: 50%;
    margin-bottom: auto;
  }

  .video__text h2 {
    font-size: 52px;
  }

  .gallery h2 {
    font-size: 52px;
    margin-bottom: 40px;
  }

  .event-item:nth-child(odd) .event-text {
    padding-right: 0px;
    margin-left: 10px;
  }

  .video__text .btn {
    max-width: 200px;
  }

  #official {
    height: 100vh;
    padding-top: 180px;
  }

  .official-item {
    width: 300px;
    margin-right: 20px;
    margin-bottom: 20px;
  }

  #contact {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: white;
    color: #181818;
    height: 100vh;
    overflow: hidden;
  }

  .contact-img {
    width: 40%;
    height: auto;
    width: 40%;
  }

  .contact-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .contact-text {
    width: 60%;
    opacity: 1;
    color: #181818;
    background-color: white;
  }

  .contact-box {
    padding-top: 80px;
  }

  #about {
    display: flex;
    height: 100%;
    position: relative;
    height: 100vh;
  }

  .about-text {
    width: 60%;
    padding: 45px;
    padding-top: 200px;
    font-size: 18px;
    overflow: scroll;
  }

  .about-img {
    width: 40%;
    height: auto;
  }

  .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 22000;
    overflow: hidden;
    transition: 0.5s;
    opacity: 0;
  }
}

@media only screen and (min-width: 1200px) {
  .video__main {
    animation-duration: 6s;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0;
  }

  .video__main iframe {
    border: 0;
    height: 100%;
    height: 110vh;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  .video__button {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .video__main img {
    display: none;
  }

  .footer-box {
    background-image: url("/img/desktop-background-bottom.svg");
    background-repeat: no-repeat;
    background-position: 100% 0%;
    background-size: contain;
  }
}

/*masonry for gallery section*/

.masonry img {
  width: 100%;
  border-radius: 5px;
}

.masonry {
  column-count: 3;
  column-gap: 24px;
}

.masonry .mItem {
  display: inline-block;
  margin-bottom: 24px;
  width: 100%;
}

@media (max-width: 1199px) {
  .masonry {
    column-count: 3;
  }
}

@media (max-width: 991px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 767px) {
  .masonry {
    column-count: 1;
  }
}
#Homepage .events .event-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
