/* Typography shared with the CV. */
@font-face {
  font-family: 'Overused Grotesk';
  src: url('fonts/OverusedGrotesk-Light.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Overused Grotesk';
  src: url('fonts/OverusedGrotesk-Roman.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* RESET */
/* Native controls and visible keyboard focus. */
button { font: inherit; color: inherit; border: 0; background: transparent; }
button, [role="button"] { cursor: pointer; }
:focus-visible { outline: 3px solid #245bb0; outline-offset: 5px; }
.contact h1 { font-size: 24px; margin-bottom: 24px; }
.contact-intro { color: #666; }
.contact-links { display: grid; gap: 28px; margin-top: 36px; }
.contact-detail { display: grid; gap: 8px; justify-items: start; }
.contact-label { color: #777; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.contact-detail a { font-size: 13px; font-weight: 400; text-decoration: none; transition: color .2s; }
.contact-detail a:hover { color: #666; }
.item .title { max-width: calc(100% - 24px); padding: 5px 7px; background: rgba(0,0,0,.55); letter-spacing: .6px; }
@media (max-width: 480px) {
  .gallery, .gallery.video { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .item .title { font-size: 10px; }
  .lightbox-img { max-width: calc(100% - 80px); max-height: 85vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

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

/* BODY */
body {
  background: #f2f2f2;
  font-family: 'Overused Grotesk', Arial, sans-serif;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* LINK RESET */
a {
  color: inherit;
  text-decoration: none;
}

/* ========================= */
/* SIDEBAR */
/* ========================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  padding: 40px;
}

.logo {
  width: 120px;
  margin-bottom: 30px;
  shape-rendering: geometricPrecision;
}

.sidebar nav a {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.sidebar nav .active {
  font-weight: 400;
}

.socials {
  margin-top: 20px;
}

main {
  flex: 1;
}
/* ========================= */
/* GALLERY */
/* ========================= */

.gallery {
  margin-left: 240px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* ITEMS */

.item {
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}

.item:hover {
  transform: scale(1.03);
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================= */
/* CONTACT */
/* ========================= */

.contact {
  margin-left: 240px;
  padding: 60px;
}

.contact p {
  margin-bottom: 10px;
  font-size: 14px;
}

/* ========================= */
/* LIGHTBOX */
/* ========================= */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-img {
  max-width: 85%;
  max-height: 85%;
  transition: 0.3s;
}

/* CLOSE */

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  cursor: pointer;
}

/* ARROWS */

.prev, .next {
  position: absolute;
  top: 50%;
  font-size: 40px;
  cursor: pointer;
  transform: translateY(-50%);
}

.prev { left: 20px; }
.next { right: 20px; }

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .logo {
    width: 100px;
    margin-bottom: 15px;
  }

  .sidebar nav {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
  }

  .sidebar nav a {
    margin-bottom: 0;
    font-size: 12px;
  }

  .gallery {
    margin-left: 0;
    grid-template-columns: repeat(3, 1fr);
    padding: 15px;
    gap: 10px;
  }

  .contact {
    margin-left: 0;
    padding: 30px 20px;
  }

}
/* VIDEO GRID */
.gallery.video {
  margin-left: 240px;
  max-width: 900px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* VIDEO ITEM */
.video-item {
  position: relative;
}

.video-item::after {
  content: "▶";
  position: absolute;
  top: 10px;
  right: 10px;

  font-size: 12px;
  color: white;

  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}
.video-item {
  display: flex;
  justify-content: center;
  cursor: pointer;
}

/* 9:16 */
.video-item .thumb {
  width: 100%;
  aspect-ratio: 9/16;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* VIDEO LIGHTBOX */
.video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-video {
  max-width: 90%;
  max-height: 90%;
}

/* MOBILE */
@media (max-width: 768px) {

  .gallery.video {
    margin-left: 0;
    grid-template-columns: repeat(3, 1fr);
    padding: 15px;
  }

}
/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .sidebar nav {
    display: none;
    flex-direction: column;
    margin-top: 20px;
  }

  .sidebar.active nav {
    display: flex;
  }

}
/* FOOTER */
.footer {
  margin-left: 240px;
  padding: 30px;

  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {

  .footer {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

}
.progress-bars {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  
  display: flex;
  gap: 6px;
  width: 80%;
}

.progress-bars span {
  flex: 1;
  height: 3px;
  background: rgba(0,0,0,0.2);
  overflow: hidden;
  border-radius: 2px;
}

.progress-bars span::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: black;
  transition: width 0.3s;
}

.progress-bars span.active::after {
  width: 100%;
}

.clients {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.clients img {
  width: 100%;
  max-height: 60px;
  object-fit: contain;
  opacity: 0.7;
  transition: 0.3s;
}

.clients img:hover {
  opacity: 1;
}

/* PLACEHOLDER */
.item.placeholder {
  background: #d0d0d0;
  cursor: default;
}

/* TITLE ON TILE */
.item {
  position: relative;
}

.item .title {
  position: absolute;
  bottom: 12px;
  right: 12px;

  color: white;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  z-index: 2;
}

/* Keep these overrides after the base gallery rules. */
@media (max-width: 480px) {
  .gallery, .gallery.video { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item .title { font-size: 10px; letter-spacing: .6px; }
}

/* Regular for headings and project names, Light for body text. */
h1, h2, h3, h4, h5, h6, .item .title, .contact-label {
  font-weight: 400;
}

@media (max-width: 768px) {
  .contact-detail a { font-size: 12px; }
}

@media (max-width: 480px) {
  .item .title { background: transparent; padding: 0; color: white; }
}

/* Straight, square-ended menu bars. */
.hamburger i { display: none; }
.hamburger::before {
  content: "";
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 0;
  background: linear-gradient(to bottom,
    currentColor 0 2px, transparent 2px 7px,
    currentColor 7px 9px, transparent 9px 14px,
    currentColor 14px 16px);
}
