@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@900&family=Barlow+Condensed:wght@400;500&display=swap");

@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi_Complete/Fonts/TTF/Satoshi-Variable.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

:root {
  --red: #db1f26;
  --black: #000000;
  --white: #ffffff;
  --font-display: "Big Shoulders Display", sans-serif;
  --font-secondary: "Barlow Condensed", sans-serif;
  --font-body: "Satoshi", sans-serif;
}

html {
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 3px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 0;
}

html::-webkit-scrollbar-button {
  display: none;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0px 32px;
  background-color: var(--black);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition:
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}
nav.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
nav a {
  font-family: var(--font-secondary);
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
  text-transform: lowercase;
}

nav img {
  padding-top: 10px;
  padding-bottom: 10px;
  width: 80px;
  height: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 200px 32px;
  text-align: center;
}
/*load in animation*/
.hero {
  opacity: 0;
  animation: fadeIn 3s ease forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 128px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hero p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  margin-top: 16px;
  color: var(--white);
}

.section-label {
  font-family: var(--font-secondary);
  font-size: 24px;
  font-weight: 500;
  margin-left: 10px;
  padding-bottom: 30px;
}

/* fade in scroll animation*/
.section-label {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.section-label.visible {
  opacity: 1;
  transform: translateY(0);
}

/*GALLERY*/


.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 0 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 30px;
}

.poster {
  width: calc((100% - 32px * 2) / 3);
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

/*gallery grid scroll behaviour*/
.poster {
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.poster.visible {
  opacity: 1;
}
.poster img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

footer {
  font-family: var(--font-secondary);
  font-size: 20px;
  color: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 30px;
}

/* OVERLAY STYLING */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.overlay.active {
  display: flex;
  animation: fadeInOverlay 0.4s ease forwards;
}

.overlay-modal {
  background: #111;
  display: flex;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.overlay-modal.closing {
  animation: tvOff 0.4s ease-in forwards;
}

.overlay-poster {
  width: 50%;
  flex-shrink: 0;
}

.overlay-poster img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.overlay-info {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.overlay-label {
  font-family: var(--font-secondary);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #555;
  margin-bottom: 6px;
  display: block;
}

.overlay-info h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 28px;
}

.overlay-info a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 28px;
  display: inline-block;
  transition: color 0.2s ease;
}

.overlay-info a:hover {
  color: var(--red);
}

.overlay-info p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #aaa;
  line-height: 1.7;
}

.overlay-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #555;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition:
    color 0.2s ease,
    transform 0.3s ease;
}

@keyframes tvOff {
  0% {
    transform: scaleY(1) scaleX(1);
    opacity: 1;
    filter: brightness(1);
  }
  15% {
    transform: scaleY(1) scaleX(1);
    opacity: 1;
    filter: brightness(2);
  }
  40% {
    transform: scaleY(0.01) scaleX(1);
    opacity: 1;
    filter: brightness(3);
  }
  75% {
    transform: scaleY(0.01) scaleX(0.3);
    opacity: 1;
    filter: brightness(1);
  }
  100% {
    transform: scaleY(0.01) scaleX(0);
    opacity: 0;
    filter: brightness(0);
  }
}

.overlay-close:hover {
  color: var(--white);
  transform: rotate(90deg);
}

@media (max-width: 768px) {

  html::-webkit-scrollbar {
   display: none;
   }
  html {
    scrollbar-width: none;
  }
  .hero h1 {
    font-size: 56px;
  }

  .hero {
    text-align: center;
    padding: 0 24px;
    padding-bottom: 100px;
  }

  .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 16px;
}

.poster {
  width: 100%;
}

.poster:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: 50%;
  margin: 0 auto;
}

  .section-label {
    padding: 0 16px;
  }

  nav {
    padding: 12px 20px;
    position: fixed;
    top: 0;
    left:auto;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  nav a {
    font-size: 13px;
    letter-spacing: 0.06em;
  }
  nav img{
    width: 80px;
  }

  .overlay-modal {
  flex-direction: column;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  max-width: 100%;
  border-radius: 0;
  overflow: hidden;
}

.overlay-poster {
  width: 100%;
 /* aspect-ratio: 2 / 3; */
  flex-shrink: 0;
  position: sticky;
  top: 0;
}
.overlay-poster img {
  width: 100%;
  height: auto;
  object-fit:contain;
}

.overlay-info {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
}

.overlay-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #00000060;
  border-radius: 20%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}

}
