body {
  font-family: 'Alegreya Sans', sans-serif;
  overflow-x: hidden;
}

.alegreya-sans-thin {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.alegreya-sans-light {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.alegreya-sans-regular {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.alegreya-sans-medium {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.alegreya-sans-bold {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.alegreya-sans-extrabold {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.alegreya-sans-black {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.alegreya-sans-thin-italic {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.alegreya-sans-light-italic {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.alegreya-sans-regular-italic {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.alegreya-sans-medium-italic {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.alegreya-sans-bold-italic {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.alegreya-sans-extrabold-italic {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.alegreya-sans-black-italic {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 900;
  font-style: italic;
}

.lato-thin {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.lato-light {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.lato-thin-italic {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: italic;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 360px;
  background-color: #ffffff;
  border-right: 1px solid #dee2e6;
  padding: 1rem;
  overflow-y: auto;
  padding: 50px 0 0 50px;
}

.content {
  margin-left: 360px;
  padding: 2rem;
}

.sidebar .nav-link {
  font-size: 16px;
  color: #000;
  /* transition: all 0.2s; */
  padding-left: 0;
  padding-bottom: 20px;
}

.sidebar .nav-link.active {
  color: red;
  background-color: transparent;
}


.sidebar .nav-link:hover {
  color: red;
  background-color: transparent;
}

.sidebar .collapse .nav-link {
  padding-left: 2rem;
}

.logo-title {
  font-size: 20px;
  font-weight: bold;
}

.logo-title a {
  text-decoration: none;
}

a[data-fancybox] img {
  transition: opacity .2s;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

a[data-fancybox] img:hover {
  opacity: 0.85;
  transition: 0.2s ease;
  cursor: pointer;
}



@media screen and (max-width: 768px) {
  .sidebar {
    display: none;
    width: 75%;
    padding: 12% 0 0 12%;
  }

  .content {
    width: 100%;
    margin-left: 0;
    padding: .5rem;
  }

  .mobile-menu .logo-title {
    font-size: 24px;
    margin: 0;
  }

  #toggleSidebar {
    color: #000;
    position: absolute;
    right: 20px;
    font-size: 20px;
  }

  #sidebar.collapsed {
    display: block;
  }
}

/* Masonry layout */
.container-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 150px;
  gap: 1rem;
  margin: 0 auto;
  transition: opacity 0.5s ease;
}

.container-masonry.visible {
  display: grid;
  opacity: 1;
}

.container-masonry>div {
  border-radius: 1rem;
  overflow: hidden;
}


.container-masonry img {
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

.container-masonry img.loaded {
  opacity: 1;
}


@media (max-width: 1024px) {
  .container-masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container-masonry {
    grid-template-columns: 1fr;
  }
}