@font-face {
  font-family: 'FS Industrie';
  src: url('/fonts/FS-Industrie-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: 'FS Industrie', Arial, Helvetica, sans-serif;
  font-display: swap;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  color: #333333;
  overflow-x: hidden;
}

@keyframes attention-pulse {
    0%, 20%, 60%, 100% { transform: scale(1); }
    40% { transform: scale(1.5); }
    80% { transform: scale(1.3); }
}





/* HEADER */
header {
  position: relative;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 85.5%;
  max-width: 2560px;
  margin: auto;

  position: relative;
  padding-top: 40px;
  padding-bottom: 15px; 
  border-bottom: 1px solid #dddddd;
}


/* LOGO */
.logo {
  display: flex;
  padding: 5px;
  font-size: 18px;
  text-decoration: none;
  color: inherit;
}

.logo:hover {
  background-color: #F8CA00;
}


/* HEADING */
.project-heading {
  display: flex;
  padding: 5px;
  font-size: 18px;
  gap: 4px;
}


/* FULLSCREEN TOGGLE */
.fullscreen-toggle {
  position: absolute;
  left: 50%;
  top: 52%;
  translate: -50% 0;
  background: none;
  border: none;
  cursor: pointer;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  color: #333;

  animation: attention-pulse 1.2s ease 1s 1; 
}


.fullscreen-toggle svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1px;
}

.expand-icon {
  display: block;
}
.shrink-icon {
  display: none;
}

.fullscreen-toggle.active .expand-icon {
  display: none;
}
.fullscreen-toggle.active .shrink-icon {
  display: block;
}

.fullscreen-toggle svg:hover {
  transform: scale(1.1);
  color: #F8CA00;
}

.fullscreen-toggle svg:active {
  transform: scale(0.5);
}


/* HEADER TRANSITIONS */
.fullscreen-toggle svg {
  transition: all 0.15s ease;
}





/* MAIN */
main {
  position: relative;
  width: 100%;
}

.main-container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 85%;
  max-width: 2560px;
  gap: 10px;
}

/* INTRO */
.project-intro {
  align-self: end;
  text-align: right;
  width: 33%;
  padding: 25px 0 50px 0;
}

.project-description {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px 0;
  font-weight: normal;
  color: #666;
}

.project-meta {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  font-size: 12px;
  color: #999;
}


/* IMAGE HANDLING */
.project-image {
  padding: 0;
  margin: 0;
}

.project-image img {
  width: 100%;
  max-height: 100%;
  max-height: 95vh;
  display: flex;
  object-fit: contain;
}

.project-image video {
  width: 100%;
  max-height: 100%;
  max-height: 95vh;
  display: block;
  object-fit: contain;
}


/* IMAGE GROUP TEMPLATES */
.project-images {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.project-images.one-landscape {
  grid-template-columns: 1fr;
}

.project-images.one-portrait {
  grid-template-columns: 1fr;
  align-self: end;
}

.project-images.two-portrait {
  grid-template-columns: 1fr 1fr;
  justify-items: center; 
  align-items: end;
}
.project-images.two-portrait .project-image:first-child {
  justify-self: start;
}
.project-images.two-portrait .project-image:last-child {
  justify-self: end; 
}

.project-images.two-portrait02 {
  grid-template-columns: 1fr 1fr;
  justify-items: center; 
  align-items: end;
}

.project-images.two-portrait02 .project-image:first-child {
  justify-self: center;
}
.project-images.two-portrait02 .project-image:last-child {
  justify-self: end; 
}

.project-images.three-portrait {
  grid-template-columns: repeat(3, 1fr);
}

.project-images.two-square {
  grid-template-columns: repeat(2, 1fr);
}

.project-images.mixed {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-images.five-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.629fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
}

.project-images.five-grid .project-image:nth-child(1) { grid-column: 1; grid-row: 1; }
.project-images.five-grid .project-image:nth-child(2) { grid-column: 2; grid-row: 1; }
.project-images.five-grid .project-image:nth-child(3) { grid-column: 1; grid-row: 2; }
.project-images.five-grid .project-image:nth-child(4) { grid-column: 2; grid-row: 2; }
.project-images.five-grid .project-image:nth-child(5) { 
  grid-column: 3; 
  grid-row: 1 / span 2; 
}


/* TEXT CAPTIONS */
.project-text {
  width: 33%;
  align-self: end;
  text-align: right;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 50px 0;
  color: #666;
}

.project-text.center {
  align-self: center;
  text-align: center;
}


/* FOOTER */
footer {
  display: flex;  
  justify-content: center;        
  align-items: center;    
  overflow: hidden;
  width: 100%;
  background-color: #F8CA00;
}

.footer-links {
  display: flex;
  justify-content: center;
  width: 1000px;
  gap: 15%;
  padding: 50px;
  overflow: show;
}

.footer-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  color: #111111;
  background-color: #F8CA00;                        
  border: 2px solid #111111;
  border-radius: 10%;
}

.footer-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-icon:hover {
  transform: scale(0.95);
  border-radius: 50%;    
  background-color: #FFFFFF;                        
}

.footer-icon:active {
  transform: scale(0.5);
  color: #FFFFFF;
  background-color: #FFFFFF;
}

/* FOOTER TRANSITIONS */
.footer-links {
  transition: gap 0.2s ease;
}

.footer-icon {
  transition: transform 0.1s ease, border-radius 0.35s ease;
}





/* MOBILE PORTRAIT */
@media (max-width: 650px) {
  .fullscreen-toggle {
    pointer-events: none;
    opacity: 0;
  }
  .project-heading {
    text-align: right;
  }
  .project-intro {
    width: 100%;
  }
  .project-text {
    width: 100%;
    text-align: center;
    font-size: 12px;
  }
  .footer-links {
    gap: 5%;
  }
  .project-images.five-grid {
    grid-template-columns: 1fr 1fr 1.75fr;
  }
}

/* MOBILE LANDSCAPE */
@media (max-height: 650px) and (orientation: landscape) {
  .fullscreen-toggle {
    pointer-events: none;
    opacity: 0;
  }
  .project-intro {
    width: 100%;
  }
  .project-text {
    width: 85%;
    align-self: center;
    text-align: center;
    font-size: 12px;
  }
  .project-images.five-grid {
    grid-template-columns: 1fr 1fr 1.88fr;
  }
}

/* DEBUG */
/* header, .header-container {
  background: rgba(255, 0, 0, 0.1);
} */
/* main, .main-container {
  background: rgba(255, 0, 0, 0.1);
} */