/* Import Montserrat Google Font
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');
*/

/* 
:root { */
  /* Montserrat Typographic Stack */

  /* 
  --font-primary: "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --color-text: #1a1a1a;
  --color-muted: #777777;
  --color-bg: #ffffff;
  --grid-gap: 36px 30px;
}
*/

@import url('variables.css');

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 4%;
}

/* ==========================================================================
   HEADER & NAVIGATION (DESKTOP)
   ========================================================================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  position: relative;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}

.site-logo {
  height: 120px;
  width: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

.site-title {
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  color: var(--color-text);
  line-height: 1;
}

/* Desktop Navigation (Direct <a> tag layout) */
.site-nav,
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav ul,
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a,
.nav-menu a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.nav-menu a:hover {
  opacity: 0.5;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}

/* ==========================================================================
   PORTFOLIO GRID
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2.5;
  overflow: hidden;
  background-color: #f4f4f4;
  border-radius: 5px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
  border-radius: 5px;
}

.gallery-item:hover .image-wrapper img {
  opacity: 0.75;
}

.item-meta {
  margin-top: 12px;
}

.item-title {
  display: block;
  font-weight: 500;
  font-size: 0.925rem;
  line-height: 1.25;
  color: var(--color-text);
}

.item-category {
  display: block;
  font-size: 0.825rem;
  color: var(--color-muted);
  margin-top: 3px;
  font-weight: 400;
}

.pswp__img {
  border-radius: 8px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 100px;
  padding-top: 20px;
  font-size: 1.0rem;
  color: var(--color-muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & NAVIGATION (768px and below)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .site-logo {
    height: 60px;
    max-height: 60px;
  }

  .site-title {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .brand-link {
    gap: 8px;
  }

  .site-wrapper {
    padding: 24px 20px;
  }

  .site-header {
    margin-bottom: 36px;
  }

  /* Make footer text slightly smaller on mobile */
  .site-footer {
    font-size: 0.7rem;
    margin-top: 60px; /* Reduces spacing above footer on small screens */
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
  }

  /* Hamburger Button */
  .mobile-menu-toggle {
    display: block !important;
    position: relative;
    z-index: 1001;
  }

  /* Default Hidden Mobile Nav Drawer */
  .site-nav,
  .nav-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background-color: var(--color-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  /* Active State Triggered by JS */
  .site-nav.active,
  .nav-menu.active {
    display: flex !important;
  }

  .site-nav ul,
  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .site-nav li,
  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .site-nav a,
  .nav-menu a {
    display: block;
    padding: 16px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  /* Animated Hamburger Bars to 'X' */
  .mobile-menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* ==========================================================================
   TEXT CONTENT CONTAINER (About, Contact, and Text Pages)
   ========================================================================== */
.content-container {
  display: block;
  width: 100%;
  /* max-width = WIDTH OF SECTION CONTAINING GALLERY AND TEXT */
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.content-container p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.content-container ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-container li {
  margin-bottom: 0.5rem;
}

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

@media (max-width: 600px) {
  .content-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ==========================================================================
   CONTACT PAGE STYLING
   ========================================================================== */
.contact-section {
  padding: 2rem 0;
}

.contact-intro {
  margin-bottom: 2rem;
  color: #555;
  line-height: 1.6;
}

.contact-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.25rem;
}

.contact-link {
  font-size: 1.1rem;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.content-container a.bold-link {
  font-weight: bold;
}

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