/* =============================================================
   SITENAME.COM — TEMPLATE STYLES (variant 2: no buttons)
   Lightweight, no framework, pure CSS (Grid/Flexbox only).
   Mobile-first. Desktop grid caps out around 540px wide,
   which is 3 columns of 180px images + gaps + borders.
   ============================================================= */

:root {
  --color-bg: #000000;       /* plain black background */
  --color-border: #999999;   /* pale grey image border */
  --color-border-hover: #ffffff; /* border color on hover (desktop) */
  --color-text: #ffffff;     /* text / links color */
  --image-w: 180px;
  --image-h: 240px;
  --gap: 8px;
  --wrapper-max: 560px; /* ~540px content + a little side padding */
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps 3:4 ratio while filling the box */
}

a {
  text-decoration: none;
}

/* Page wrapper: centers everything, caps width on desktop */
.wrapper {
  max-width: var(--wrapper-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* =============================================================
   BLOCK: HEADER / TITLE
   ============================================================= */
.site-header {
  text-align: center;
  padding: 20px 10px 16px;
}

.site-title {
  margin: 0;
  color: var(--color-text);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =============================================================
   BLOCK: IMAGE GRID (3 per row)
   Repeat this block markup as many times as needed.
   Images auto-resize to device width, ratio stays 3:4 (180x240).
   ============================================================= */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 0 0 var(--gap);
}

.image-item {
  display: block;
  aspect-ratio: 3 / 4;   /* keeps 180x240 proportion at any width */
  border: 2px solid var(--color-border);
  background: #111111;
  overflow: hidden;
}

/* Hover effect only on devices with a real mouse (desktop) */
@media (hover: hover) and (pointer: fine) {
  .image-item:hover {
    border-color: var(--color-border-hover);
  }
}

/* =============================================================
   BLOCK: TEXT
   ============================================================= */
.text-block {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
  padding: 16px 4px;
}

.text-block p {
  margin: 0 0 14px;
}

.text-block p:last-child {
  margin-bottom: 0;
}

/* =============================================================
   BLOCK: LINKS (bottom list, white, separated by " | ")
   ============================================================= */
.links-block {
  text-align: center;
  padding: 10px 4px 30px;
  font-size: 14px;
  font-weight: 700;
}

.links-block a {
  color: var(--color-text);
}

.links-block .sep {
  color: var(--color-text);
  padding: 0 6px;
  font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
  .links-block a:hover {
    text-decoration: underline;
  }
}

/* =============================================================
   Small screens: tighten side padding a bit further
   ============================================================= */
@media (max-width: 380px) {
  :root {
    --gap: 6px;
  }
  .site-title {
    font-size: 22px;
  }
}
