* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: white;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  padding: 28px 0 0 36px;
  margin: 0;
  z-index: 10;
}

.logo,
.page-heading {
  display: block;
  width: fit-content;
  color: #111;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -1px;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;

  position: fixed;
  top: 115px;
  left: 36px;
  z-index: 10;
}

nav a {
  color: #111;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

nav a:hover {
  opacity: 0.5;
}

nav a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* --- SERIES HOMEPAGE --- */

.series-page {
  width: 75%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 162px;
}

.photo-series {
  margin-bottom: 200px;
}

.series-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 34px;
}

.series-pair img {
  width: 100%;
  max-width: 650px;
  height: auto;
  display: block;
}

.series-item {
  flex: 1;
}

.series-title {
  margin: 12px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #111;
}

/* Mobile */

@media (max-width: 700px) {
  .series-page {
    width: calc(100% - 36px);
  }

  .photo-series {
    margin-bottom: 100px;
  }
}

@media (max-width: 900px) {
  .gallery {
    columns: 2;
  }
}

@media (max-width: 700px) {
  .gallery {
    width: calc(100% - 36px);
    display: block;
  }

  .column {
    width: 100%;
  }
}

.portrait-gallery .portrait-small-item .series-title {
  position: relative !important;
  left: -6% !important;
  transform: none !important;

  width: 70% !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;

  text-align: left !important;
}
/* HOMEPAGE DATE SPACING */
.series-title em {
  display: inline-block;
  margin-bottom: 8px;
}
  /* navigation controlled by main nav styles above */

  .gallery {
    width: calc(100% - 36px);
    columns: 1;
  }

  /* --- Nadav Kander-inspired typography --- */

.logo {
  color: #111;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -1px;
}

nav a {
  color: #111;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

/* --- Footer --- */

footer {
  width: 100vw;
  position: relative;
  left: 50%;
  margin: 100px 0 0 -50vw;
  padding: 16px 36px 22px;
  border-top: 2px solid #55585f;
  background: #22242a;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

footer a {
  color: #d7d7d7;
  text-decoration: none;
}

footer a:hover {
  color: #111;
}

footer p {
  margin: 0;
  color: #bdbdbd;
}

.series-item {
  width: 30%;
  max-width: 430px;
}

.series-item img {
  width: 100%;
  height: auto;
  display: block;
}

.series-title {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 400;
}

.series-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 34px;
  width: 100%;
}

.series-item {
  width: 25%;
  max-width: 380px;
}

.series-item img {
  width: 100%;
  height: auto;
  display: block;
}

.single-photo-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.single-photo-item {
  width: 47%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 212px;
}

.single-photo-item img {
  width: 100%;
  height: auto;
  display: block;
}

.athletics-pair {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.athletics-item {
  flex: 0 0 auto;
}

.athletics-item img {
  height: 450px;
  width: auto;
  display: block;
}

/* --- CATEGORY PAGES --- */

.category-gallery {
  width: 60%;
  max-width: 900px;
  margin: 0 auto 260px;
  padding-top: 172px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 140px;
}

/* --- ABOUT PAGE --- */

.about-page {
  width: 60%;
  max-width: 1000px;
margin: 0 auto 260px;
  padding-top: 172px;

  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 70px;
}

.about-text {
  flex: 1;
  max-width: 460px;
}

.about-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.about-photo {
  flex: 0 0 auto;
  width: 320px;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}




/* --- FINE CARS PAGE --- */

.fine-cars-gallery {
  width: 48%;
  max-width: 720px;
  gap: 110px;
}

.fine-cars-gallery img {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
}
.fine-cars-gallery .captioned-item:nth-child(4) .series-title {
  position: relative;
  left: 6%;
}
/* --- LANDSCAPE PAGE --- */

.landscape-gallery {
  width: 65%;
  max-width: 1000px;
}

.landscape-solo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landscape-solo img {
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 560px;
  display: block;
}

.landscape-solo .series-title {
  width: 72%;
  margin: 10px 0 0;
}


.landscape-pair {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

.landscape-pair-item {
  width: calc(50% - 15px);
}

.landscape-pair-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 560px;
  display: block;
}

.landscape-pair-item .series-title {
  width: 100%;
  margin: 10px 0 0;
}

/* --- WILDLIFE PAGE --- */

.wildlife-gallery {
  width: 42%;
  max-width: 650px;
  gap: 120px;
}

.wildlife-item {
  width: 100%;
}

.wildlife-item img {
  width: 100%;
  height: auto;
  display: block;
}

.wildlife-item .series-title {
  width: 100%;
  margin: 10px 0 0;
}

/* --- KEEP FOOTER AT BOTTOM ON SHORT PAGES --- */

.footer-bottom-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer-bottom-page main {
  flex: 1;
}

.footer-bottom-page footer {
  margin-top: auto;
}

/* --- ATHLETICS PAGE --- */

.athletics-gallery {
  width: 42%;
  max-width: 640px;
}

.athletics-gallery img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  display: block;
}

/* --- PORTRAIT PAGE --- */

.portrait-gallery {
  width: 42%;
  max-width: 640px;
  gap: 140px;
}

.portrait-tight-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portrait-tight-group img,
.portrait-standard {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
}

.portrait-caption-item {
  width: 100%;
}

.portrait-caption-item p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.portrait-small {
  width: 82%;
  height: auto;
  max-height: none;
  display: block;
}

/* --- CAPTIONS FOR CATEGORY PAGES --- */

.captioned-item {
  width: 100%;
}

.captioned-item .series-title,
.portrait-caption-item .series-title {
  width: 100%;
  margin: 10px 0 0;
}

.athletics-gallery .captioned-item img {
  width: 100%;
  height: auto;
  display: block;
}

.fine-cars-gallery .captioned-item img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.portrait-small-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- IMAGE LIGHTBOX --- */

.series-page img {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 30px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 700px) {
    /* all of our final mobile overrides will go here */
}

@media (max-width: 700px) {

  /* HEADER */

  header {
    position: static;
    width: 100%;
    padding: 22px 18px 0 18px;
  }

  .logo,
  .page-heading {
    font-size: 20px;
  }

  /* NAVIGATION */
nav {
  position: static;
  width: 100%;
  margin-top: 18px;

  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: start;
  column-gap: 14px;
  row-gap: 5px;
}

  nav a {
    font-size: 10px;
    line-height: 1.3;
    padding: 4px 0;
    white-space: nowrap;
  }

  /* MAIN PAGE WIDTH */

  .series-page,
  .category-gallery,
  .about-page {
    width: calc(100% - 36px);
    max-width: none;
    margin: 0 auto;
    padding-top: 42px;
  }

  /* MOBILE CAPTION TEXT */

  .series-title {
    font-size: 10px;
  }

  /* HOMEPAGE PHOTO PAIRS */

  .series-pair {
    width: 100%;
    gap: 14px;
  }

  .series-item {
    width: auto;
    max-width: none;
    flex: 1 1 0;
  }

  .series-pair img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* HOMEPAGE OSPREY */

  .single-photo-item {
    width: 100%;
    max-width: none;
  }

  .single-photo-item img {
    width: 100%;
    height: auto;
  }

  /* HOMEPAGE ATHLETICS PAIR */

/* HOMEPAGE ATHLETICS PAIR */

.homepage-athletics {
  width: 100%;
}

.homepage-athletics .athletics-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.homepage-athletics .athletics-item {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.homepage-athletics .athletics-item img {
  height: 210px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
}


  /* CATEGORY PAGES
     Wildlife, Athletics, Portrait and Fine Cars
     all use the same mobile width */

  .athletics-gallery,
.wildlife-gallery,
.fine-cars-gallery,
.portrait-gallery {
  width: calc(100% - 44px);
  max-width: 386px;
  margin-left: auto;
  margin-right: auto;
}

.landscape-gallery {
  width: calc(100% - 36px);
  max-width: none;
}

.landscape-solo {
  width: calc(100% - 8px);
  max-width: 386px;
  margin-left: auto;
  margin-right: auto;
}

.landscape-solo img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

  .athletics-gallery .captioned-item,
  .wildlife-gallery .wildlife-item,
  .fine-cars-gallery .captioned-item,
  .portrait-gallery .captioned-item {
    width: 100%;
  }

  .athletics-gallery .captioned-item img,
  .wildlife-gallery .wildlife-item img,
  .fine-cars-gallery .captioned-item img,
  .portrait-gallery .captioned-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* SMALL / VERTICAL PORTRAIT */

/* SHAY — mobile */

.portrait-gallery .portrait-small-item {
  width: 50% !important;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 90px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.portrait-gallery .portrait-small-item .portrait-small {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  margin: 0 !important;
  display: block;
}

.portrait-gallery .portrait-small-item .series-title {
  width: 100% !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
  text-align: left;
  align-self: flex-start;
}

  /* ABOUT PAGE */

  .about-page {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 28px;
  }

.about-photo {
  width: 50%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

  .about-photo img {
    width: 100%;
    height: auto;
    display: block;
  }

  .about-text {
    width: 100%;
    max-width: none;
  }

  .about-text p {
    width: 100%;
    margin: 0 0 22px 0;
    font-size: 13px;
    line-height: 1.6;
  }



  /* FOOTER */

  footer {
    padding-left: 18px;
    padding-right: 18px;
    font-size: 10px;
  }

  .footer-links {
    gap: 18px;
  }
}

@media (max-width: 700px) {

  /* LANDSCAPE — keep captions directly under image, aligned left */
  .landscape-solo {
    align-items: flex-start;
  }

  .landscape-solo img,
  .landscape-solo .series-title {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .landscape-solo .series-title {
    text-align: left;
    font-size: 10px;
  }


  /* PORTRAIT — make all normal captions uniform */
  .portrait-gallery .series-title,
  .portrait-caption-item p {
    font-size: 10px;
    line-height: 1.3;
  }




  /* ABOUT — make text match rest of mobile site */
  .about-text {
    width: 100%;
  }

  .about-text p {
    font-size: 10px;
    line-height: 1.4;
    margin: 0 0 18px 0;
  }

}