.wrapper {
  margin-top: 30px;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.main-container {
  display: flex;
  justify-content: center;
  margin: 150px;
  margin-top: 40px;
}

#loader {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loader img {
  width: 50%;
}

#contact-page {
  margin: auto;
  margin-top: 25px;
  width: 550px;
  height: 300px;
}

#contact-page-instagram {
  width: 100%;
  height: 70px;
  margin-bottom: 40px;
  background: url("../images/buttons/instagram.png") center no-repeat;
  background-size: contain;
}

#contact-page-instagram:hover {
  background: url("../images/buttons/instagram_hover.png") center no-repeat;
  background-size: contain;
}

#contact-page-email {
  width: 100%;
  height: 70px;
  background: url("../images/buttons/email.png") center no-repeat;
  background-size: contain;
}

#contact-page-email:hover {
  background: url("../images/buttons/email_hover.png") center no-repeat;
  background-size: contain;
}

.title {
  width: 520px;
  height: 230px;
  background: url("../images/buttons/title.png") no-repeat;
  background-size: contain;
}

.button {
  width: 120px;
  height: 30px;

  margin-left: 12px;
  margin-right: 12px;
  text-align: center;
  cursor: pointer;
}

.button svg {
  width: 100%;
  height: auto;
  display: block;
}

.button-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.masonry-container {
  column-count: 3;
  column-gap: 8px;
  display: none;
}

.thumbnail-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  grid-gap: 10px;
}

.thumbnail {
  position: relative;
  break-inside: avoid-column;
  cursor: pointer;
  margin-bottom: 8px;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: filter 500ms linear;
}

.blur {
  filter: blur(8px);
}

.video-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.video-container {
  position: relative;
}

iframe {
  width: 100%;
  aspect-ratio: 1.77;
}

.photo-frame {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8);
}

.photo {
  max-width: 80%;
  max-height: 80%;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
}

.loupe {
  cursor: none;
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  display: none;
  width: 250px;
  height: 250px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  background-repeat: no-repeat;
}

/* Add a reflective effect over the content of the loupe */
.loupe::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(330deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 2%, rgba(255,255,255,0.15) 100%);
  top: 0;
  left: 0;
  pointer-events: none;
}

.selected {
  pointer-events: none;
}

#photo-button:hover {
  fill: #e272aa;
}
#photo-button.selected {
  fill: #e272aa;
}

#design-button:hover {
  fill: #ff9307;
}
#design-button.selected {
  fill: #ff9307;
}

#misc-button:hover {
  fill: #6fcee4;
}
#misc-button.selected {
  fill: #6fcee4;
}

#contact-button:hover {
  fill: #ab2cd5;
}
#contact-button.selected {
  fill: #ab2cd5;
}

#video-button:hover {
  fill: #6fcee4;
}
#video-button.selected {
  fill: #6fcee4;
}

@media (max-width: 600px) {
  .main-container {
    margin: auto;
    margin-top: 20px;
  }
  .title {
    height: 170px;
  }
}
