@page {
  size: A4;
  margin: 0;
}

* {
  box-sizing: border-box;
}

:root {
  --brand-red: #ff0000;
  --border-gray: #d8d8d8;
  --text-black: #000000;
  --ink-navy: #13273d;
  --text-soft: #4b5663;
  --paper-white: #fafafa;
  --paper-blue: #fafafa;
  --paper-screen: #ffffff;
  --type-title: 11.6pt;
  --type-subtitle: 9.2pt;
  --type-label: 7.7pt;
  --type-body: 7.1pt;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper-screen);
  color: var(--text-black);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  padding: 12mm 0;
}

.page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 8mm 18mm;
  background: #ffffff;
  box-shadow: 0 3mm 10mm rgba(21, 36, 55, 0.08);
  page-break-after: always;
}

.gallery-sheet {
  width: 174mm;
  height: 281mm;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 2.8mm;
  align-content: start;
}

.gallery-brand {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3.4mm;
  min-height: 13.8mm;
  padding: 1.1mm 2mm;
  border: 0.35mm solid var(--border-gray);
  background: var(--paper-white);
  border-radius: 3.2mm;
  overflow: hidden;
}

.gallery-brand::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1.1mm;
  background: linear-gradient(90deg, var(--brand-red) 0%, rgba(255, 0, 0, 0.8) 35%, rgba(255, 0, 0, 0.4) 70%, transparent 100%);
}

.gallery-brand__meta {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.6mm;
}

.gallery-brand__logos {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5mm;
}

.gallery-brand__logo {
  display: block;
  width: 10.5mm;
  height: auto;
  opacity: 0.95;
}

.gallery-brand__banner {
  display: block;
  width: 25mm;
  height: auto;
}

.gallery-brand__eyebrow {
  margin: 0;
  color: var(--brand-red);
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-brand__title {
  margin: 0;
  color: var(--ink-navy);
  font-size: var(--type-title);
  line-height: 1.06;
  font-weight: 700;
}

.gallery-brand__subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--type-body);
  line-height: 1.12;
  text-wrap: pretty;
}

.gallery-panel {
  min-height: 0;
  height: 100%;
}

.gallery-mosaic {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: 1.1mm;
}

.gallery-shot {
  margin: 0;
  min-height: 0;
  display: grid;
  border: 0.28mm solid rgba(19, 39, 61, 0.12);
  border-radius: 2.5mm;
  overflow: hidden;
  background: #fafafa;
  box-shadow: inset 0 0.25mm 0 rgba(255, 255, 255, 0.9);
}

.gallery-shot__media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #fafafa;
}

.gallery-shot__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-shot__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2mm;
  background: rgba(19, 39, 61, 0.12);
}

.gallery-shot__name {
  color: #ffffff;
  font-size: 6.1pt;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

@media print {
  body {
    background: white;
    padding: 0;
  }

  .page {
    min-height: 297mm;
    box-shadow: none;
  }
}
