body {
  background-color: white;
}

.subpages > p {
  font-size: 1.2rem;
  width: fit-content;
  color: var(--color-secondary);
  margin: 0;
  padding: 0;
}

.subpage {
  width: fit-content;
  font-size: 1.2rem;
  margin: 0;
  padding: 0;
  color: var(--color-secondary);
  transition: color 0.3s ease-in-out;
}

.subpage.active {
  color: var(--color-theme-red);
}

.subpage:not(.active):hover {
  color: var(--color-theme-red-hover);
}

#gallery {
  margin: var(--base-spacing) auto;
}

.gallery-image {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--navbar-bg);
  cursor: pointer;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.gallery-image img {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1);
  transition: transform 0.4s ease-in-out, opacity 0.2s ease-in-out;
}

.gallery-image.loaded img {
  opacity: 1;
}

.gallery-image:hover img {
  transform: scale(1.1);
}

.hover-icon {
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--navbar-bg);
  transition: opacity 0.4s ease-in-out;
}

.hover-icon svg {
  color: white;
  width: 2rem;
  height: 2rem;
  transition: color 0.4s ease-in-out;
}

.gallery-image:hover .hover-icon {
  opacity: 0.7;
}

.overlay {
  width: 100%;
  height: 100%;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.5);
}

.overlay-image-container {
  z-index: 1;
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
}

#overlay-close {
  z-index: 3;
  position: absolute;
  top: -32px;
  right: 0;
  cursor: pointer;
}

#overlay-close > svg {
  font-size: 26px;
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.6);
  transition: color ease-in-out 0.3s;
}

#overlay-close:hover > svg {
  color: rgba(255, 255, 255, 1);
}

.overlay-image-nav {
  z-index: 3;
  position: fixed;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color ease-in-out 0.3s;
}

.overlay-image-nav:hover {
  background-color: rgba(0, 0, 0, 1);
}

.overlay-image-nav > svg {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: white;
  opacity: 1;
  transition: opacity ease-in-out 0.3s;
}

.overlay-image-nav:hover > svg {
  opacity: 0.8;
}

.overlay-image-next {
  right: 64px;
}

.overlay-image-previous {
  left: 64px;
}

.overlay-image {
  z-index: 2;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  object-position: center;
}

/* *-xl Bootstrap breakpoint */
@media screen and (max-width: 1199px) {
}

/* *-lg Bootstrap breakpoint */
@media (max-width: 991px) {
}

/* *-md Bootstrap breakpoint */
@media screen and (max-width: 767px) {
}

/* *-sm Bootstrap breakpoint */
@media screen and (max-width: 575px) {
}
