/* Hand Coded With Love by We Unfuck */
/* ============================================================
   Gallery page styles
   ============================================================ */

/* ---------- Hero ---------- */
.ghero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  background: var(--c-ink-900);
  margin-top: -128px;
  padding: 208px 16px 32px;
  z-index: 99;
  overflow: hidden;
}
.ghero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/WeUnf_Lion2_v2.webp") no-repeat fixed 100% 100% / 465px auto;
  pointer-events: none;
}
.ghero__inner { position: relative; width: 100%; max-width: 1140px; margin: 0 auto; }
.ghero__title {
  font-family: var(--f-display);
  font-size: 60px;
  font-weight: 400;
  line-height: 1.1em;
  letter-spacing: -1.3px;
  color: #fff;
  margin: 16px 0 32px;
  max-width: 684px;
}
.ghero__title b { font-weight: 700; }
.ghero__sub {
  font-family: var(--f-text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1em;
  letter-spacing: -0.2px;
  color: #fff;
  margin: 0;
  max-width: 684px;
}
.ghero__btn { margin-top: 32px; }
@media (max-width: 1024px) {
  .ghero { margin-top: -88px; }
  .ghero::before { background-size: 50% auto; }
}
@media (max-width: 767px) {
  .ghero { padding: 144px 16px 48px; }
  .ghero::before { background-size: 70% auto; opacity: 0.5; }
  .ghero__title { font-size: 36px; }
  .ghero__sub { font-size: 18px; line-height: 1.2em; }
}

/* ---------- Brand wall (logo gallery grid) ---------- */
.gwall { background: var(--c-gray-150); padding: 0 32px; }
.gwall__inner { max-width: 1140px; margin: 0 auto; padding: 64px 0 96px; }
.gwall__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.gwall__item {
  position: relative;
  display: block;
  overflow: hidden;
}
.gwall__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  filter: opacity(0);
  transform: scale(.5);
  transition: filter .8s, transform .8s;
}
.gwall__img.is-loaded { filter: none; transform: none; }
.no-js .gwall__img { filter: none; transform: none; }
@media (max-width: 1024px) {
  .gwall__grid { gap: 0; }
}
@media (max-width: 767px) {
  .gwall { padding: 0 16px; }
  .gwall__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Website mockups ---------- */
.gmock { background: var(--c-gray-150); padding: 0 32px; }
.gmock__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gmock__inner img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) {
  .gmock { padding: 0 32px; }
}

/* ---------- Lightbox ---------- */
.glb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.glb.is-open { opacity: 1; }
.glb__img {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  display: block;
  user-select: none;
}
.glb__counter {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: var(--f-text);
  font-size: 15px;
  color: #fff;
}
.glb__close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  padding: 8px;
  opacity: .85;
  transition: opacity .2s;
}
.glb__prev, .glb__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  padding: 16px 12px;
  opacity: .8;
  transition: opacity .2s;
}
.glb__prev { left: 12px; }
.glb__next { right: 12px; }
.glb__close:hover, .glb__prev:hover, .glb__next:hover { opacity: 1; }
.glb__prev svg, .glb__next svg { width: 28px; height: 44px; display: block; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 767px) {
  .glb__img { max-width: calc(100vw - 32px); }
  .glb__prev, .glb__next { display: none; }
}
