/* janewhang.com - Pixel-Perfect Clone
   Measured from original Squarespace site */

/* Google Fonts loaded via <link> in HTML:
   - Playfair Display (logo - high contrast serif like original)
   - Source Sans 3 (body - clean sans-serif like proxima-nova) */

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
  color: rgb(119, 119, 119);
  background-color: rgb(252, 252, 252);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Site Wrapper */
.site-wrapper {
  margin: 10px 0;
  padding: 75px;
}

/* Mobile-only elements - hidden by default */
.mobile-menu-wrapper {
  display: none;
}

.mobile-nav {
  display: none;
}

.divider-mobile {
  display: none;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 763px;
  height: 55px;
  margin-bottom: 40px;
}

/* Logo - Jost is closest Google Fonts match to futura-pt */
.logo {
  font-family: "Jost", "Futura", "Century Gothic", sans-serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 55.2px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: rgb(34, 34, 34);
  display: inline-block;
}

.logo a {
  color: rgb(34, 34, 34);
}

/* Navigation - matches original exactly */
.nav {
  font-family: "Source Sans 3", -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
  letter-spacing: normal;
  text-transform: none;
}

.nav a {
  display: inline-block;
  padding: 14.6px 0;
  color: rgb(153, 153, 153);
  margin-left: 29px;
}

.nav a:first-child {
  margin-left: 0;
}

.nav a:hover,
.nav a.active {
  color: rgb(17, 17, 17);
}

/* Divider */
.divider {
  width: 763px;
  height: 1px;
  border: none;
  border-bottom: 1px solid rgb(221, 221, 221);
  margin: 0;
}

/* Main Content */
.main-content {
  width: 763px;
  padding: 50px 0;
}

/* Index Gallery Grid (Homepage/3D page) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
  margin-top: 0;
}

.gallery-item {
  width: 100%;
}

.gallery-item a {
  display: block;
  color: rgb(17, 17, 17);
}

.gallery-item .thumb-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgb(240, 240, 240);
}

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

.gallery-item .thumb-title {
  font-family: "Source Sans 3", -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgb(112, 112, 112);
  text-align: center;
  padding-top: 7px;
  line-height: 19px;
}

/* Gallery Page (Slideshow) */
.gallery-slideshow {
  text-align: center;
}

.slideshow-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  margin-bottom: 20px;
}

.slideshow-main img {
  max-width: 100%;
  max-height: 500px;
  height: auto;
  cursor: pointer;
}

.slideshow-thumbnails {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 40px;
}

.slideshow-thumbnails .thumb {
  width: 30px;
  height: 20px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.slideshow-thumbnails .thumb.active,
.slideshow-thumbnails .thumb:hover {
  opacity: 1;
}

.slideshow-thumbnails .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer divider on gallery pages */
.gallery-footer {
  margin-top: 40px;
}

/* ========================
   RESPONSIVE STYLES
   ======================== */

@media (max-width: 960px) {
  .site-wrapper {
    padding: 40px;
  }
  
  .header,
  .divider,
  .main-content {
    width: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .site-wrapper {
    padding: 20px;
  }
  
  /* Mobile navigation - hidden by default, shown when open */
  .mobile-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }
  
  .mobile-nav.open {
    display: flex;
  }
  
  .mobile-nav a {
    font-family: "Source Sans 3", -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(153, 153, 153);
    text-decoration: none;
    padding: 8px 0;
  }
  
  .mobile-nav a.active {
    color: rgb(17, 17, 17);
  }
  
  /* Show mobile menu wrapper */
  .mobile-menu-wrapper {
    display: block;
    text-align: center;
  }
  
  .mobile-menu {
    display: inline-block;
    font-family: "Source Sans 3", -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgb(153, 153, 153);
    text-decoration: none;
    padding: 10px 0;
  }
  
  /* Mobile dividers */
  .divider-mobile {
    display: block;
    width: 100%;
    height: 1px;
    border: none;
    border-bottom: 1px solid rgb(221, 221, 221);
    margin: 0;
  }
  
  /* Mobile: center layout */
  .header {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 10px;
  }
  
  .nav {
    display: none; /* Hide desktop nav on mobile */
  }
  
  .logo {
    font-size: 46px;
    line-height: 55px;
    text-align: center;
  }
  
  /* Mobile: 2-column grid (matching original) */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  /* Smaller thumbnails on mobile */
  .gallery-item .thumb-title {
    font-size: 11px;
  }
}
