@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/roboto-v51-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  src: url("/fonts/roboto-v51-latin-500.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --ink: #10100f;
  --muted: #6f6d68;
  --line: #e4e0d8;
  --soft: #f6f4ef;
  --accent: #bd8d40;
  --accent-strong: #8f6423;
  --sidebar: 286px;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.55;
}

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

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

button {
  font: inherit;
}

.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  max-width: calc(var(--max) + var(--sidebar));
  min-height: 100vh;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 54px 30px 34px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 64px;
  text-align: right;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand span {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 500;
  max-width: 150px;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
}

.site-nav a,
.video-card a {
  color: var(--muted);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-nav a {
  font-size: 15px;
  text-align: right;
}

.site-nav a:hover,
.site-nav a.active,
.view-tools button:hover,
.view-tools button.active {
  color: var(--ink);
}

.site-nav a.active {
  color: var(--accent-strong);
}

.sidebar-footer {
  margin-top: auto;
}

.icon-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.icon-link svg {
  width: 22px;
  height: 22px;
  fill: var(--ink);
}

.content {
  min-width: 0;
  padding: 42px 42px 72px;
}

h1,
h2,
p {
  margin-top: 0;
}

.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gallery-grid {
  column-count: 3;
  column-gap: 18px;
}

.gallery-item {
  position: relative;
  width: 100%;
  margin: 0 0 18px;
  border: 0;
  padding: 0;
  display: inline-block;
  background: var(--soft);
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 700ms ease, opacity 220ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 15, 0);
  transition: background 220ms ease;
}

.gallery-item:hover::after {
  background: rgba(16, 16, 15, 0.18);
}

.contact-panel,
.video-panel {
  max-width: 720px;
}

.contact-panel h2 {
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 500;
}

.contact-panel p {
  color: var(--muted);
  font-size: 18px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
}

.video-panel {
  max-width: 1040px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.video-card {
  border: 1px solid var(--line);
  background: #fff;
}

.video-card a {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.video-card a:hover {
  color: var(--accent-strong);
}

.video-thumb {
  aspect-ratio: 16 / 9;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.video-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
}

.empty-note {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.lightbox {
  width: min(94vw, 1320px);
  max-width: none;
  height: min(94vh, 880px);
  border: 0;
  padding: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.36);
  padding: 9px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .site-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 24px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }

  .brand {
    margin-bottom: 24px;
  }

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
  }

  .site-nav a {
    text-align: left;
  }

  .sidebar-footer {
    margin-top: 18px;
  }

  .content {
    padding: 24px 22px 58px;
  }

  .gallery-grid {
    column-count: 2;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand span {
    font-size: 20px;
  }

  .gallery-grid {
    column-count: 1;
  }
}
