@font-face {
  font-family: 'Inter';
  src: url('/files/inter_font.ttf') format("truetype-variations");
  font-weight: 1 999;
  font-display: swap;
}

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

html {
  background-color: #111518;
}

body {
  font-family: "Inter", Sans-Serif;
  font-size: 1rem;
  color: #9b9b9b;
  background: url('/assets/img/home-bg.jpg') #0f1418 repeat top left;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  padding: 20px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav {
  display: flex;
  gap: 20px;
  text-transform: uppercase;
  color: white;
}

.hero {
  padding: 240px 20px 80px 20px;
  text-align: left;
}

.hero small {
  display: block;
  padding-top: 40px;
}

.hero-content p {
  font-size: 1.8rem;
  line-height: 2rem;
}

.hero-content span {
  color: #ffffff;
  font-weight: 600;
}

.hero-title {
  font-size: 3.5rem;
  color: #ffffff;
  margin-top: 2rem;
}

.partners > div {
  margin: 0 auto;
  max-width: 1300px;
}
.partners {
  padding: 40px 20px;
  background: rgba(0,0,0,.2);
  width: 100%;
  margin: 0;
  max-width: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
}

.services, .portfolio {
  padding: 60px 20px;
}

.services h2, .portfolio h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #ffffff;
}

.flex-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.flex-grid > * {
  max-width: 280px;
  width: 100%;
}
@media (max-width: 450px) {
    .flex-grid > * {
	max-width: none;
    }
}

.card h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  font-weight: normal;
  color: #fff;
}

.portfolio-item h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: normal;
  color: #fff;
  margin-top: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: #c4c4c4;
}

.portfolio-item img {
  margin-bottom: 15px;
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}

.footer {
  background-color: rgba(15, 20, 24, 0.5);
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 60px;
  text-align: center;  
  line-height: 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-content .logo {
  margin-bottom: 10px;
  max-width: 250px;
}

.reading-width {
  width: 60ch;
}

p.center {
  margin: 0 auto;
}

h1 {
  text-align: right;
  margin-bottom: 2rem;
  font-size: 3rem;
  font-weight: normal;
  line-height: 4rem;
}

@media (min-width: 720px) {
    h1 {
	    padding-left: 30%;
    }
}

h2 {
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #8B8B8B;
  font-weight: 600;
}
@media (max-width: 768px) {
  .nav-container {
    gap: 15px;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

main.project {
  color: white;
}
.project-meta {
  float: right;
}
.project-meta td {
  padding: 1rem 2rem;
}
main ul, main ol {
  padding: 1rem 0 0 0;
  list-style-position: inside;
}
main.project p {
  padding: 2rem 0 0 0;
}
main.project .img-full img {
  width: 100%;
}
main.project .img-full {
  padding: 2rem 0 0 0;
}
main.project .img-row {
  display: flex;
  gap: 30px;
  padding: 2rem 0 0 0;
  flex-wrap: wrap;
}
main.project .img-row img {
  max-width: 280px;
}
main.project .gallery {
  display: flex;
  gap: 30px;
  padding: 2rem 0 0 0;
  flex-wrap: wrap;
}
main.project .gallery img[data-original] {
  cursor: pointer;
}
main.project .gallery img {
  max-width: 280px;
  max-width: 280px;
  object-fit: cover;
  aspect-ratio: 1/1;
}

#gallery-viewer {
  height: 100%;
  outline: none;
  border-radius: 0;
  background: transparent;
  margin: 0 auto;
  border: none;
  outline: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: 100%;

  transform: translateY(0);
  opacity: 1;

  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 0.6s ease, 
              display 0.6s allow-discrete;
}

#gallery-viewer img {
  max-width: 70%;
  display: block;
  margin: 0 auto;
}

@starting-style {
  #gallery-viewer[open] {
    transform: translateY(-150%);
    opacity: 0;
  }
}

#gallery-viewer:not([open]) {
  transform: translateY(-150%);
  opacity: 0;
}


#gallery-viewer::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  
  transform: translateY(0);
  opacity: 1;
  
  transition: transform 0.5s ease-out, 
              opacity 0.5s ease-out, 
              display 0.5s allow-discrete;
}

@starting-style {
  #gallery-viewer[open]::backdrop {
    transform: translateY(100%);
    opacity: 0;
  }
}

#gallery-viewer:not([open])::backdrop {
  transform: translateY(100%);
  opacity: 0;
}

#gallery-viewer[open] .right-arrow,
#gallery-viewer[open] .left-arrow {
  position: absolute;
  color: white;
  font-size: 10rem;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-weight: 100;
}

#gallery-viewer[open] {
  align-items: center;
  justify-content: center;
}

#gallery-viewer[open] .left-arrow {
  right: auto;
  left: 5%;
}

.no-scroll {
  overflow: hidden;
}

#gallery-viewer[open] .close-btn {
  display: none;
}
@media (max-width:720px) {
  #gallery-viewer img {
    max-width: 100%;
  }

  #gallery-viewer[open] .close-btn {
    display: inline-block;
    background: rgba(0,0,0,.4);
    font-size: 1.5rem;
    border-radius: 2.5rem;
    line-height: 1;
    height: 3.5rem;
    width: 3.5rem;
    padding: 1rem;
    top: 3%;
    position: absolute;
    right: 3%;
    color: white;
    font-weight: 100;
    text-align: center;
    cursor: pointer;
    vertical-align: middle;
  }
  #gallery-viewer[open] .right-arrow,
  #gallery-viewer[open] .left-arrow {
    background: rgba(0,0,0,.4);
    font-size: 3rem;
    padding: 1rem;
    bottom: 5%;
    left: 52%;
    top: auto;
    right: auto;
    line-height: 1;
    height: 5rem;
    width: 5rem;
    text-align: center;
  }

  #gallery-viewer[open] .left-arrow {
    left: auto;
    right: 52%;
  }

  .hero {
    padding: 50px 20px 50px 20px;
    text-align: left;
  }

  .hero-content p {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  h1 {
    text-align: right;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 3rem;
  }
}