/* Mary Anderson (maryanderson.nyc) - Clean Static Rebuild Stylesheet */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #fcfcfc;
  color: #575757;
  font-family: "proxima-nova", "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8em;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}

a, a:visited {
  color: #111;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #444;
}

a:focus {
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "futura-pt", "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1em 0 0.5em;
  font-style: normal;
}

h1 {
  color: #222;
  font-weight: 300;
  font-size: 2em;
  line-height: 1.5em;
}

h1 em, h2 em {
  font-style: italic;
}

h2 {
  color: #222;
  font-weight: 300;
  font-size: 1.6em;
  line-height: 1.2em;
}

h3 {
  color: #d1d1d1;
  font-weight: 400;
  font-size: 1.3em;
  line-height: 1.2em;
}

p {
  margin: 0 0 1em;
}

.text-align-center {
  text-align: center;
}

/* Main Canvas */
#canvas {
  max-width: 1120px;
  margin: 10px auto;
  padding: 80px;
}

/* Header & Navigation */
#header {
  margin-bottom: 46px;
  text-align: center;
}

#logo {
  width: 100%;
  text-align: center;
}

h1.logo {
  margin: 0;
  font-family: "futura-pt", "Jost", Oswald, Arial, sans-serif;
  font-weight: 300;
  font-size: 42px;
  text-transform: capitalize;
  letter-spacing: 1px;
  line-height: 1.2em;
  display: inline-block;
}

h1.logo a,
h1.logo a:visited {
  color: #222;
  text-decoration: none;
}

h1.logo a:hover {
  color: #444;
}

#topNav {
  width: 100%;
  text-align: center;
  margin-top: 23px;
}

#topNav nav,
#topNav ul {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
}

#topNav li {
  display: inline-block;
  margin-right: 30px;
}

#topNav li:last-child {
  margin-right: 0;
}

#topNav a {
  font-family: "futura-pt", "Jost", Georgia, sans-serif;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.6em;
  color: #999;
  display: inline-block;
}

#topNav .active-link > a,
#topNav a:hover {
  color: #111;
}

/* Mobile Nav */
#mobileMenuLink {
  display: none;
  text-align: center;
  margin: 15px 0 0;
}

#mobileMenuLink a {
  font-family: "futura-pt", "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  color: #999;
  cursor: pointer;
}

#mobileNav {
  display: none;
  margin: 0 0 15px;
  padding-bottom: 1em;
  border-bottom: 1px solid #ddd;
}

#mobileNav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#mobileNav li {
  text-align: center;
}

#mobileNav a {
  font-family: "futura-pt", "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  line-height: 2.5em;
  color: rgba(153, 153, 153, 0.7);
  display: block;
}

#mobileNav .active-link a {
  color: #999;
}

/* Page Content */
#page {
  padding: 41px 0;
  position: relative;
}

.content-block {
  padding-bottom: 17px;
  padding-top: 17px;
}

hr.section-divider {
  border: none;
  color: #bbb;
  background-color: #bbb;
  height: 1px;
  margin: 34px 0;
}

/* Slideshow Gallery */
.gallery-slideshow-wrapper {
  margin: 17px 0 34px;
}

.gallery-stage {
  position: relative;
  width: 100%;
  height: 640px;
  background-color: rgba(175, 175, 175, 0.1);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-stage.aspect-landscape {
  height: 620px;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

/* Subtle Previous / Next Click Zones & Controls */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.gallery-stage:hover .gallery-nav-btn {
  opacity: 1;
}

.gallery-nav-btn:hover {
  background: rgba(0, 0, 0, 0.45);
}

.gallery-nav-prev {
  left: 0;
}

.gallery-nav-next {
  right: 0;
}

/* Thumbnail Strip */
.gallery-thumbnails-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.gallery-thumbnails-wrapper::-webkit-scrollbar {
  height: 5px;
}

.gallery-thumbnails-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.gallery-thumbnails-strip {
  display: inline-flex;
  align-items: center;
}

.gallery-thumb {
  flex: 0 0 auto;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  background: rgba(0, 0, 0, 0.03);
}

.gallery-thumb:hover {
  opacity: 0.8;
}

.gallery-thumb.active {
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video Embeds (/media and /mediafull) */
.video-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  margin-bottom: 24px;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Grid System for Multi-Column Pages (/mediafull, /about-1) */
.grid-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -17px;
  margin-right: -17px;
}

.grid-col-6 {
  width: 50%;
  padding: 0 17px;
}

.grid-col-8 {
  width: 66.6667%;
  padding: 0 17px;
}

.grid-col-4 {
  width: 33.3333%;
  padding: 0 17px;
}

/* About Page Styles */
.about-portrait {
  float: left;
  width: 37.5%;
  margin: 0 28px 18px 0;
}

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

.contact-form .form-field {
  margin-bottom: 18px;
}

.contact-form label,
.contact-form legend {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #575757;
}

.contact-form .name-row {
  display: flex;
  gap: 12px;
}

.contact-form .name-col {
  flex: 1;
}

.contact-form .sub-label {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  background: #fafafa;
  font-family: inherit;
  font-size: 14px;
  color: #222;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #222;
  background: #fff;
}

.contact-form button[type="submit"] {
  background: #222;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-family: "proxima-nova", "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  background: #444;
}

/* Work Index Page (/marys-work) */
.project-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.project-card {
  cursor: pointer;
  display: block;
}

.project-card-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  background: #eee;
  overflow: hidden;
  margin-bottom: 10px;
}

.project-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.14s ease-out;
}

.project-card:hover .project-card-image img {
  opacity: 0.8;
}

.project-card-title {
  font-family: "futura-pt", "Jost", sans-serif;
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  color: #404040;
}

.project-detail-view {
  display: none;
  margin-bottom: 48px;
}

.project-detail-view.active {
  display: block;
}

.project-detail-view .image-list img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

.project-controls {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #eee;
  margin-bottom: 40px;
  font-size: 13px;
}

.project-controls span {
  cursor: pointer;
  color: #111;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* Footer */
#footer {
  margin-top: 53px;
}

#footerBlock {
  min-height: 34px;
}

/* Responsive Breakpoints */
@media only screen and (max-width: 750px) {
  #canvas {
    margin: 0;
    padding: 30px;
  }

  #topNav {
    display: none;
  }

  #mobileMenuLink {
    display: block;
  }

  #mobileNav.open {
    display: block;
  }

  .gallery-stage,
  .gallery-stage.aspect-landscape {
    height: 380px;
  }

  .grid-col-6,
  .grid-col-8,
  .grid-col-4 {
    width: 100%;
  }

  .about-portrait {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }

  .project-thumbs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 480px) {
  #canvas {
    padding: 20px;
  }

  h1.logo {
    font-size: 32px;
  }

  .gallery-stage,
  .gallery-stage.aspect-landscape {
    height: 280px;
  }

  .project-thumbs-grid {
    grid-template-columns: 1fr;
  }
}
