@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --desktop-columns: 5;
  --tablet-columns: 3;
  --mobile-columns: 1;
  --gray-text: #525252;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:focus:not(:focus-visible) {
  outline: none;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

a,
label,
button,
select,
[type="radio"],
[type="submit"],
[type="checkbox"] {
  cursor: pointer;
  text-decoration: none;
}

body {
  font-family: "Noto Serif", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  background-color: #fafafa;
}

.navbar {
  background: #fafafa;
  padding: 1.25rem;
}

.navbar__title {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: 2.5rem;
  color: #0a0a0a;
  margin-bottom: 0.25rem;
}

.navbar__subtitle {
  font-family: "Noto Serif", serif;
  color: var(--gray-text);
  font-size: 1.45rem;
  font-weight: 100;
}

@media only screen and (max-width: 499px) {
  .navbar__title {
    font-size: 2rem;
  }
  .navbar__subtitle {
    font-size: 1.25rem;
  }
}

.gallery {
  display: grid;
  gap: 0.125rem;
  width: fit-content;
  margin: auto;
}

.gallery__item {
  width: 100%;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: 1.5s;
}

.gallery__item img:hover {
  opacity: 0.875;
  transform: scale(1.05);
}

@media only screen and (max-width: 499px) {
  .gallery__item {
    width: 100%;
    height: calc(100vw / var(--mobile-columns));
  }
  .gallery {
    grid-template-columns: repeat(var(--mobile-columns), 1fr);
  }
}

@media only screen and (min-width: 500px) and (max-width: 1199px) {
  .gallery__item {
    height: calc(100vw / var(--tablet-columns));
  }
  .gallery {
    grid-template-columns: repeat(var(--tablet-columns), 1fr);
  }
}

@media only screen and (min-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(var(--desktop-columns), 1fr);
  }

  .gallery__item {
    height: calc(100vw / var(--desktop-columns));
  }
}

.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0, 0.25);
  z-index: 99;
}

.modal__blur {
  top: 0;
  left: 0;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
}

.modal__body {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal__body button {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fafafa;
  transition: 0.75s;
}

.modal__body button:hover {
  transform: scale(0.9);
}

.modal__body img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  width: 95%;
  max-width: 1000px;
  max-height: calc(100vh - 6rem);
  padding: 0.25rem;
  background-color: #fafafa;
  border-radius: 1rem;
  z-index: 100;
}

@media only screen and (max-width: 499px) {
  .modal__body button {
    font-size: 2.25rem;
  }
}

footer {
  padding: 3rem 2rem 3rem;
}

.footer__pattern {
  width: 175px;
  fill: none;
  stroke: var(--gray-text);
  stroke-width: 0.5;
  margin-bottom: 1.25rem;
  opacity: 0.5;
}

.footer__contact {
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--gray-text);
}
