:root {
  /* Change these URLs to your own images when ready */
  --small-image: url("https://placehold.co/600x420/dcf5ff/88a50c?text=Your+Image");
  --hero-image: url("https://placehold.co/1200x520/dcf5ff/88a50c?text=Landscape+Image");
  --side-image: url("https://placehold.co/600x520/dcf5ff/88a50c?text=Your+Image");

  --card: #f7f6f3;
  --ink: #0e0e0e;
  --dash: #777;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(40px, 6vw, 64px);

  color: var(--ink);
  font-family: "Courier New", Courier, monospace;

  background-color: #080808;
  background-image:
    radial-gradient(#737373 1.15px, transparent 1.3px),
    radial-gradient(#3e3e3e 1.15px, transparent 1.3px);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
}

.frame {
  max-width: 1210px;
  margin: auto;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.45) inset;
}

.page {
  position: relative;
  max-width: 1090px;
  margin: auto;
  padding: 68px clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px);
  border-radius: 18px;
  background: linear-gradient(135deg, #cbcbcb, #f1f1f1 55%, #d8d8d8);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Top navigation tabs */
.tabs {
  position: absolute;
  top: -17px;
  left: clamp(16px, 2vw, 28px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.tab {
  padding: 11px 18px 10px;
  border: 2px dashed var(--dash);
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  background: #d6d6d6;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
}

.tab:hover,
.tab.active {
  background: var(--card);
}

.layout {
  display: grid;
  grid-template-columns: 39% 1fr;
  gap: clamp(16px, 2.2vw, 32px);
}

.column {
  min-width: 0;
  padding: clamp(12px, 1.5vw, 18px);
  border: 3px dashed var(--dash);
  border-radius: 17px;
}

.left {
  border-color: #777;
}

.right {
  border-color: #786d6d;
}

.left-top {
  display: grid;
  grid-template-columns: 39% 1fr;
  gap: 14px;
}

.image {
  min-height: 120px;
  border-radius: 14px;
  background-color: #cfeeff;
  background-position: center;
  background-size: cover;
}

.small-image {
  background-image: var(--small-image);
}

.link-list {
  display: grid;
  align-content: center;
  gap: 13px;
  margin: 0;
  padding: 18px 24px;
  border-radius: 14px;
  background: var(--card);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.link-list a {
  color: var(--ink);
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.intro {
  min-height: 250px;
  margin: 14px 0 0;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #cccccc, #f8f8f8 85%);
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.75;
}

.hero {
  min-height: 150px;
  background-image: var(--hero-image);
}

.content-row {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 14px;
  margin-top: 14px;
}

.side-image {
  min-height: 145px;
  background-image: var(--side-image);
}

.copy {
  min-height: 145px;
  margin: 0;
  padding: 15px;
  border-radius: 14px;
  background: var(--card);
  font-size: clamp(12px, 1.08vw, 15px);
  line-height: 1.55;
}

.bottom-cards {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 0.9fr;
  gap: 14px;
  margin-top: 24px;
}

.bottom-cards div {
  min-height: 122px;
  border-radius: 14px;
  background: var(--card);
}

@media (max-width: 760px) {
  body {
    padding: 40px 16px 16px;
  }
  .page {
    padding-top: 88px;
  }
  .tabs {
    top: -24px;
    gap: 5px;
  }
  .tab {
    padding: 9px 11px 8px;
    font-size: 12px;
  }
  .layout,
  .left-top,
  .content-row,
  .bottom-cards {
    grid-template-columns: 1fr;
  }
  .hero,
  .image {
    min-height: 170px;
  }
  .intro,
  .copy {
    min-height: auto;
  }
}

.gallery-page {
  position: relative;
  margin-top: 42px;
}

/* Gallery navigation tabs */
.gallery-page .tabs {
  position: absolute;
  top: -36px;
  left: 28px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.gallery-page .tab {
  display: block;
  min-width: 72px;
  padding: 10px 15px 9px;
  border: 2px dashed #777;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: #a8a8a8;
  color: #111;
  box-shadow: 0 -3px 5px rgba(0, 0, 0, 0.18);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.gallery-page .tab:hover {
  background: #d8d8d8;
  transform: translateY(-2px);
}

.gallery-page .tab.active {
  position: relative;
  padding-bottom: 11px;
  background: #eeeeee;
  z-index: 2;
}

@media (max-width: 800px) {
  .gallery-page {
    margin-top: 56px;
  }

  .gallery-page .tabs {
    top: -40px;
    left: 14px;
    gap: 3px;
  }

  .gallery-page .tab {
    min-width: 0;
    padding: 9px 10px 8px;
    font-size: 11px;
  }
}