/* ----------------------------------------------------
   45th22.css — RESTORED Gallery + ONLY About/Blog Larger Images
---------------------------------------------------- */

/* ---------- Theme ---------- */
:root{
  --page-bg: #000000;
  --wrapper-bg: #050505;
  --wrapper-border: #1a1a1a;

  --text-main: #f5f5f5;
  --text-muted: #9a9a9a;

  --underline: #ffffff;
  --radius: 10px;

  /* About/Blog image size ONLY */
  --aboutblog-img-min: 420px;
  --aboutblog-img-max: 795px;
}

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

html, body{
  margin: 0;
  padding: 0;
}

body{
  background: var(--page-bg);
  color: var(--text-main);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* Safe global media defaults (won’t distort layouts) */
img{
  max-width: 100%;
  height: auto;
  display: block;
}

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

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: #ffffff;
  color: #000000;
  z-index: 9999;
  text-decoration: none;
  border-radius: 6px;
}

.skip-link:focus-visible{
  left: 16px;
  top: 16px;
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* ---------- Wrapper ---------- */
.page-wrapper{
  max-width: 1300px;
  margin: 24px auto;
  padding: 24px;
  background: var(--wrapper-bg);
  border: 1px solid var(--wrapper-border);
  border-radius: var(--radius);
}

/* ---------- Header / Nav ---------- */
.site-header{
  margin-bottom: 40px;
}

.main-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-right{
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-right a,
.nav-right a:visited{
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-right a:hover,
.nav-right a:focus-visible{
  border-bottom-color: var(--underline);
}

.nav-right a:focus-visible{
  outline: 2px solid var(--underline);
  outline-offset: 3px;
}

.nav-right a.is-current{
  border-bottom-color: var(--underline);
}

/* ----------------------------------------------------
   RESTORED Gallery Grid (Photography / Graphic Design / Websites)
---------------------------------------------------- */

.photo-section{
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

/* Gallery grid */
.photo-grid{
  display: grid;
  grid-template-columns: 1fr;   /* mobile-first */
  gap: 12px;
  width: 100%;
  justify-content: center;
}

/* Thumb wrapper */
.photo-thumb{
  margin: 0;
  text-align: center;
}

/* Button wrapper */
.photo-thumb-btn{
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.photo-thumb-btn:focus{
  outline: none;
}

.photo-thumb-btn:focus-visible{
  outline: 2px solid var(--underline);
  outline-offset: 4px;
}

/* Actual thumbnail */
.photo-thumb-img{
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4 / 3;         /* default tile shape */
  transition: transform 0.18s ease-out;
}

.photo-thumb:hover .photo-thumb-img,
.photo-thumb-btn:hover .photo-thumb-img{
  transform: scale(1.06);
}

/* Captions (Websites page) */
.thumb-caption{
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .photo-thumb-img{ transition: none; }
}

/* ----------------------------------------------------
   About/Blog Content Layout
   (ONLY these pages get the larger image size)
---------------------------------------------------- */

.blog-section{
  max-width: 800px;
  margin: 0 auto;
}

.page-figure{
  margin: 0 0 25px 0;
  text-align: center;
}

/* Center any .page-image without sizing it globally */
.page-image{
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
}

/* ONLY About + Blog pages get the larger image size */
.page-about .page-image,
.page-blog  .page-image{
  width: clamp(var(--aboutblog-img-min), 60vw, var(--aboutblog-img-max));
}

/* Date + text */
.page-date{
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 0;
}

.page-text{
  line-height: 1.6;
  margin-top: 10px;
}

/* Photographer list */
.photog-list{
  margin-top: 20px;
  padding-left: 20px;
  list-style-type: disc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Photographer links (keep white even when visited) */
.photog-link,
.photog-link:visited{
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  display: inline-block;
}

.photog-link:hover,
.photog-link:focus-visible{
  border-bottom-color: var(--underline);
}

.photog-link:focus-visible{
  outline: 2px solid var(--underline);
  outline-offset: 4px;
}

/* Keep About/Blog images reasonable on small phones */
@media (max-width: 700px){
  .page-about .page-image,
  .page-blog  .page-image{
    width: clamp(280px, 85vw, 520px);
  }
}

/* ---------- Footer ---------- */
.site-footer{
  text-align: center;
  margin-top: 40px;
  padding-top: 10px;
}

.site-footer p{
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Responsive Breakpoints ---------- */
@media (min-width: 480px){
  .photo-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .photo-thumb-img{
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 768px){
  .page-wrapper{
    margin: 40px auto;
    padding: 40px;
  }
  .photo-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .photo-thumb-img{
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 1024px){
  .photo-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 1280px){
  .photo-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
  }
}

/* Nav stacking */
@media (max-width: 700px){
  .main-nav{
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nav-right{
    justify-content: center;
    gap: 16px;
  }

  .brand{
    font-size: 1.15rem;
  }

  .nav-right a{
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 390px){
  .brand{
    font-size: 1.05rem;
  }

  .nav-right{
    gap: 12px;
  }

  .nav-right a{
    font-size: 0.65rem;
  }
}
