/* igal2 modern template — dark / Nike-orange
   Compatible with standard igal2 generated markup
*/

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #f0f0f0;
  --muted: #777;
  --orange: #FA5400;
  --orange-dim: #e04a00;
  --border: #222;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  line-height: 1.5;
  min-height: 100vh;
}

/* Links */
a:link,
a:visited {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--orange);
  text-decoration: none;
}

/* Utility */
.center {
  text-align: center;
}

.center table {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border-collapse: separate;
  border-spacing: 0.75rem;
}

.small {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3rem;
  text-align: center;
}

.small a {
  color: var(--muted);
}

.small a:hover {
  color: var(--orange);
}

.large {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 1.5rem;
}

.large a {
  color: var(--muted);
}

.large a:hover {
  color: var(--orange);
}

/* Thumbnail cells generated by igal2 */
.tiled {
  background: transparent !important;
  background-image: none !important;
  height: 0 !important;
  padding: 0 !important;
  line-height: 0;
  font-size: 0;
}

.thumb {
  background-color: var(--surface);
  text-align: center;
  vertical-align: middle;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 !important;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease;
}

.thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.thumb a {
  display: block;
  line-height: 0;
}

.thumb img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: var(--radius);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.thumb:hover img {
  transform: scale(1.04);
}

/* Slide page */
.slide {
  background-color: transparent;
  text-align: center;
  vertical-align: middle;
  padding: 0;
}

.slide img,
.slide video {
  max-width: min(100%, 1200px);
  max-height: 80vh;
  height: auto;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Navigation on slide pages */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--orange);
  background: rgba(250, 84, 0, 0.08);
}

/* Caption + EXIF */
.caption {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

#exifinfo {
  display: none;
  padding-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

#exifinfo > table,
#exifinfo td {
  border-collapse: collapse;
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
}

/* Directory list */
.directories {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.directories .large {
  margin-bottom: 0.75rem;
}

.directories ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.directories li a {
  display: block;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.directories li a:hover {
  background: #1c1c1c;
  color: var(--orange);
}

/* Pagination */
.pagination {
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pagination a {
  color: var(--muted);
  margin: 0 0.35rem;
}

.pagination a:hover {
  color: var(--orange);
}

/* Responsive tables from old generator */
@media (max-width: 600px) {
  body {
    padding: 1.5rem 0.75rem 3rem;
  }

  .center table {
    border-spacing: 0.5rem;
  }
}
