/* ---- fonts ------ */

@import url(https://fonts.googleapis.com/css?family=Righteous);

@font-face {
  font-family: 'Title';
  src: url(../sharing-photo/fonts/BebasNeue-Regular.ttf);
}

@font-face {
  font-family: 'Subtitle';
  src: url(../sharing-photo/fonts/springsteel-lig.otf);
}


@font-face {
  font-family: 'Richard';
  src: url(../sharing-photo/fonts/RichardSamuels.otf);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Richard', sans-serif;
}



/* ----- header ------*/



#blurry-filter {
  width: 100%;
  height: 15vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='1'/%3E%3C/filter%3E%3Crect width='100' height='100' style='filter:url(%23f)' opacity='.2'/%3E%3C/svg%3E");
  mask: linear-gradient(black 7rem, transparent);
  -webkit-mask: linear-gradient(black 7rem, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
  touch-action: none;
}

h1 {
  position: relative; /* Add this line */
  display: inline-block;
  color: white;
  font-family: 'Righteous', serif;
  font-size: 8vh;
  text-shadow: .03em .03em 0 rgba(119, 60, 9, 0.697);
}

h1:after {
  
  content: attr(data-shadow);
  position: absolute;
  top: .07em; 
  left: .07em;
  z-index: -1;
  text-shadow: none;
  background-image: linear-gradient(
    45deg,
    transparent 45%,
    hsla(48, 20%, 90%, 1) 45%,
    hsla(48, 20%, 90%, 1) 55%,
    transparent 0
  );
  background-size: .05em .05em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: shad-anim 50s linear infinite;
}

@keyframes shad-anim {
  0% {
    background-position: 0 0
  }

  0% {
    background-position: 100% -100%
  }
}

header {
  width: 100%;
  height: 10vh;
  position: sticky;
  top: 0;
  z-index: 1;
  margin-top: 5vh;
}


header>div {
  width: calc(100% - 3rem);
  max-width: 800px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

#title {
  width: 100%;
  text-align: center;
  /* Add this line to center the text */
}




#title .parent {
  line-height: 0em;
  color: #e6c507;
  /* #c2d81a;*/
  font-size: 2.5vh;
  font-family: 'Subtitle', sans-serif;
}



#reference {
  display: flex;
}

#reference>a {
  color: #444;
}

#reference>a+a {
  display: none;
}


.grid-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  grid-gap: 20px;
}

.grid-gallery .grid-item {
  position: relative;
  background-color: #efefef;
  overflow: hidden;
}

.grid-gallery .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0.5em solid rgba(255, 255, 255, 0.967);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.grid-gallery .grid-item:hover img {
  transform: scale(1.1);
}

.grid-gallery .grid-item a {
  cursor: hand;
}

.grid-gallery .grid-item:nth-child(3n - 2) {
  grid-column: span 2;
  grid-row: span 2;
}



/* ------------ footer start------------------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
}

.footer {
  padding: 40px 0;
  background-color: #000000;
  color: #ffffff;
  text-align: center;
}

.footer .social {
  padding-bottom: 25px;
}

.footer .social a {
  font-size: 24px;
  color: inherit;
  width: 24px;
  height: 24px;
  line-height: 24px;
  display: inline-block;
  text-align: center;
  margin: 0 8px;
  opacity: 0.75;
}

.footer .social a:hover {
  opacity: 0.9;
}

.footer ul {
  margin-top: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer ul a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.8;
}

.footer ul li {
  display: inline-block;
  padding: 0 15px;
}

.footer ul a:hover {
  opacity: 1;
}

.footer .copyright {
  margin-top: 15px;
  font-size: 13px;
  color: #aaa;
}


/* Let's make it responsive */
@media (max-width: 768px) {
  .grid-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 150px;
  }

  .grid-gallery .grid-item:nth-child(3n - 2) {
    grid-column: unset;
    grid-row: unset;
  }
  
.grid-gallery .grid-item img {
  border: 0.2em solid rgba(255, 255, 255, 0.967);

}

}