@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Playfair+Display:ital,wght@1,600;1,700&family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* --- Reset & Base Layout --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background-color: #ffffff;
  color: #333333;
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #111111;
  text-decoration: none;
}

a:hover {
  color: #555555;
}

/* --- Top Navigation Bar --- */
.top-nav {
  background-color: #000000;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-menu {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.main-menu li {
  display: flex;
  align-items: center;
}

.main-menu li:not(:last-child)::after {
  content: "•";
  color: #777777;
  margin-left: 18px;
  font-size: 11px;
}

.nav-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}

.nav-btn:hover,
.nav-btn.active {
  color: #ffffff;
  opacity: 0.65;
}

/* --- Framed Logo Header --- */
.site-header {
  background-color: #f7f7f7;
  padding: 50px 20px;
  text-align: center;
  border-bottom: 1px solid #eeeeee;
}

.logo-box {
  display: inline-block;
  border: 4px solid #000000;
  padding: 12px 28px;
  cursor: pointer;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #000000;
  text-transform: uppercase;
  line-height: 1.1;
}

/* --- Main Viewport Area --- */
.site-main {
  flex: 1 0 auto;
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.page-view {
  display: none;
}

.page-view.active-view {
  display: block;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  color: #333333;
  margin-bottom: 44px;
}

/* --- Gallery Grid (Clean 3-Column Layout Matching Screenshot 2) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.thumb-frame {
  width: 100%;
  height: 160px;
  background-color: #fbfbfb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
}

.gallery-item:hover .thumb-frame {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #7b858e;
  margin-top: 8px;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.gallery-item:hover .item-caption {
  color: #111111;
}

/* --- Bio & Artist Statement --- */
.text-container {
  max-width: 780px;
  margin: 0 auto;
}

.statement-block {
  margin-bottom: 36px;
}

.statement-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 14px;
}

.statement-text {
  font-size: 15.5px;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 16px;
}

/* --- Contact Page --- */
.contact-container {
  text-align: center;
  padding: 40px 20px;
}

.contact-email {
  font-size: 17px;
  font-weight: 600;
}

/* --- Sticky Footer --- */
.site-footer {
  flex-shrink: 0;
  background-color: #000000;
  color: #888888;
  padding: 24px 20px;
  font-size: 12px;
  text-align: center;
  width: 100%;
}

/* =========================================================
   NEXTGEN GALLERY REPLICA LIGHTBOX
   ========================================================= */
.ng-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 9999;
  flex-direction: column;
  justify-content: space-between;
}

.ng-lightbox.active {
  display: flex;
}

/* Top Filmstrip Ribbon */
.ng-ribbon-container {
  position: relative;
  width: 100%;
  height: 48px;
  background-color: #0c0c0c;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
}

.ng-ribbon {
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 3px;
  padding: 0 45px 0 6px;
  height: 100%;
  width: 100%;
  scrollbar-width: none; /* Hide default scrollbar */
}

.ng-ribbon::-webkit-scrollbar {
  display: none;
}

.ng-ribbon-thumb {
  width: 44px;
  height: 34px;
  flex-shrink: 0;
  background-color: #e5e5e5;
  border: 1px solid #777777;
  padding: 1px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.ng-ribbon-thumb:hover {
  opacity: 0.9;
}

.ng-ribbon-thumb.active {
  opacity: 1;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.ng-ribbon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ng-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888888;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.ng-close:hover {
  color: #ffffff;
}

/* Main Display Stage */
.ng-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ng-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
}

.ng-zone-prev {
  left: 0;
  cursor: w-resize;
}

.ng-zone-next {
  right: 0;
  cursor: e-resize;
}

.ng-image-wrapper {
  position: relative;
  max-width: 85vw;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.ng-main-image {
  max-width: 85vw;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
  user-select: none;
}

.ng-caption-toast {
  margin-top: 10px;
  color: #cccccc;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Bottom Toolbar */
.ng-toolbar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 6px;
}

.ng-tb-btn {
  background: none;
  border: none;
  color: #888888;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.ng-tb-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}

.ng-tb-btn:hover {
  color: #ffffff;
}

/* --- Responsive Rules --- */
@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .main-menu li:not(:last-child)::after {
    display: none;
  }
  .main-menu {
    gap: 8px 14px;
  }
  .logo-text {
    font-size: 20px;
  }
}