/* ============================================================
   VUT — "Project details / Galery" section (Figma 439:47509)
   Dark section, light app-screenshot cards, masonry-style grid.
   Self-contained (.vut-gallery*) so it never clashes with the
   light .theme-vut overrides applied to .proj-projects.
   ============================================================ */

.vut-gallery {
  background-color: var(--color-fg);   /* #1d1d1f */
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.vut-gallery__inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding: 125px var(--page-padding) 125px;
}

/* --- Header: heading left, subline right --- */
.vut-gallery__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.vut-gallery__heading {
  font-size: clamp(36px, 3.57vw, 54px);
  font-weight: 500;
  letter-spacing: -2.16px;
  line-height: var(--leading-tight);
  margin: 0;
  flex-shrink: 0;
}

.vut-gallery__subline {
  font-size: var(--text-body-l);
  font-weight: 400;
  letter-spacing: var(--tracking-body-l);
  line-height: var(--leading-normal);
  color: #ffffff;
  max-width: 436px;
  margin: 5px 0 0 0;
}

.vut-gallery__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-left: calc(100% - 436px - var(--page-padding) - var(--page-padding));
  margin-top: 20px;
}

/* --- Tabs (Galery / Case study) --- */
.vut-gallery__tabs {
  display: flex;
  gap: 0;
  margin-top: 54px;
  margin-bottom: 46px;
}

.vut-gallery__tab {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 50px;
  color: #86868c;
  font-family: var(--font-display);
  transition: color var(--duration-fast) var(--ease-out);
}

.vut-gallery__tab.is-active { color: #ffffff; }
.vut-gallery__tab:hover { color: rgba(255, 255, 255, 0.8); }

.vut-gallery__tab-name {
  font-size: clamp(24px, 2.38vw, 36px);
  font-weight: 500;
  letter-spacing: -0.72px;
  line-height: 1;
}

.vut-gallery__tab-count {
  font-size: var(--text-body);
  font-weight: 400;
  letter-spacing: -0.32px;
  line-height: 1;
  opacity: 0.7;
}

/* --- Masonry-style grid: 4 columns, items span 1 / 2 / 4 --- */
.vut-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 22px;
  row-gap: 44px;
  align-items: start;
}

.vut-gallery__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.vut-gallery__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f5f5f7;
}

.vut-gallery__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.vut-gallery__item:hover .vut-gallery__card img { transform: scale(1.03); }

.vut-gallery__label-title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h3);             /* 24.64px */
  font-weight: 500;
  letter-spacing: var(--tracking-h3);
  line-height: 1.2;
  color: #ffffff;
}

.vut-gallery__label-sub {
  display: block;
  margin-top: 6px;
  font-size: var(--text-body);
  font-weight: 400;
  letter-spacing: var(--tracking-body-l);
  line-height: var(--leading-normal);
  color: #86868c;
  max-width: 460px;
}

/* --- Spans + aspect ratios (match Figma card sizes) --- */
.vut-gallery__item--span2 { grid-column: span 2; }
.vut-gallery__item--wide  { grid-column: 1 / -1; }

.vut-gallery__card--create   { aspect-ratio: 703 / 468; }
.vut-gallery__card--schedule { aspect-ratio: 341 / 605; }
.vut-gallery__card--controls { aspect-ratio: 341 / 425; }
.vut-gallery__card--poll     { aspect-ratio: 1428 / 714; }
.vut-gallery__card--square   { aspect-ratio: 1 / 1; }

/* --- Responsive --- */
@media (max-width: 1023px) {
  .vut-gallery__inner { padding: var(--space-20) var(--page-padding); }
  .vut-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 32px;
  }
  .vut-gallery__item--span2,
  .vut-gallery__item--wide { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .vut-gallery__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .vut-gallery__item,
  .vut-gallery__item--span2,
  .vut-gallery__item--wide { grid-column: 1 / -1; }
  .vut-gallery__header { flex-direction: column; gap: 16px; }
  .vut-gallery__divider { margin-left: 0; }
}

/* ============================================================
   VUT — HERO (Figma 439:28881)
   Sticky behaviour identical to Spider/Ranketta (reuses .proj-hero):
   monitor image scrolls, title + tags + CTA stay pinned, then release.
   Dark gradient + white 112px title. Stacks below 1023px (inherited
   from .proj-hero responsive rules in project.css).
   ============================================================ */

.vut-hero { background: linear-gradient(180deg, #2b2c34 0%, #000000 100%); }

/* tag chips — pinned bottom-left inside the sticky stage (same as other projects) */
.vut-hero__tags {
  position: absolute;
  bottom: 54px;
  left: var(--page-padding);
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  max-width: 60%;
  z-index: 3;
  pointer-events: none;
}

.vut-hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.1;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: auto;
}

/* "See the work" — white pill, pinned bottom-right (same as other projects) */
.vut-hero .proj-hero__cta {
  top: auto;
  bottom: 54px;
  left: auto;
  right: var(--page-padding);
  background-color: #ffffff;
  color: #1d1d1f;
}
.vut-hero .proj-hero__cta:hover {
  background-color: #ffffff;
  color: #1d1d1f;
  transform: translateY(-2px);
}

@media (max-width: 1023px) {
  /* sticky hero falls back to static stack (proj-hero rules) — tags/CTA flow */
  .vut-hero__tags { position: static; margin: 16px 0 0; flex-wrap: wrap; }
  .vut-hero .proj-hero__cta { position: static; margin-top: 16px; }
}
