@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500&family=Young+Serif&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Fira Mono', monospace;
  background: #ffffff;
  color: #333;
  overflow-x: hidden;
}

/* Fixed Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  background: #ffffff;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-right: 1px solid #eee;
}

.logo {
  font-family: 'Young Serif', serif;
  font-size: 30px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
  margin-bottom: 50px;
  color: #c9531f;
  text-decoration: none;
}



.nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #c9531f;
}

.nav a.active {
  color: #111;
}

.social-link {
  margin-top: 30px;
}

.social-link a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.social-link a:hover {
  opacity: 0.7;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: #666;
  transition: fill 0.3s ease;
}

.social-link a:hover svg {
  fill: #c9531f;
}

/* Main Content */
.main {
  margin-left: 220px;
  min-height: 100vh;
}

/* Home Carousel */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.carousel-controls {
  position: absolute;
  bottom: 50px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
}

.carousel-controls button {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  font-family: 'Fira Mono', monospace;
  font-size: 12px;
  text-decoration: underline;
  transition: color 0.3s ease;
}

#carousel-pause {
  text-decoration: none;
  font-size: 10px;
  letter-spacing: -2px;
}

.carousel-controls button:hover {
  color: #c9531f;
}

.carousel-divider {
  color: #333;
}

.carousel-counter {
  color: #999;
  margin-left: 15px;
}

/* Grid Toggle Button */
.grid-toggle {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
  z-index: 10;
}

.grid-toggle:hover {
  color: #c9531f;
}

/* Grid View Overlay */
.grid-view {
  display: none;
  position: fixed;
  top: 0;
  left: 220px;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 500;
  overflow-y: auto;
  padding: 60px 40px 40px;
}

.grid-view.active {
  display: block;
}

.grid-close {
  position: fixed;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  z-index: 501;
  transition: color 0.3s ease;
}

.grid-close:hover {
  color: #c9531f;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
}

.grid-item {
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.grid-item img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

.grid-item:hover {
  opacity: 0.8;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 40px 120px 40px;
}

.slide.active {
  opacity: 1;
}

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

/* Gallery - CSS Grid */
.gallery {
  padding: 40px 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.gallery-sizer,
.gallery-gutter {
  display: none;
}

.gallery-item {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-spacer {
  height: 60px;
}

/* Page Title */
.page-title {
  display: none;
}

/* About Page */
.about {
  padding: 60px 40px;
  max-width: 700px;
}

.about h1 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 40px;
}

.about-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.contact-info {
  margin-top: 50px;
}

.contact-info h2 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 20px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-links a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: #c9531f;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 85%;
  max-height: calc(100% - 180px);
  object-fit: contain;
}

.lightbox-controls {
  position: absolute;
  bottom: 50px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: color 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  color: #c9531f;
}

.lightbox-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-nav button {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  font-family: 'Fira Mono', monospace;
  font-size: 12px;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.lightbox-nav button:hover {
  color: #c9531f;
}

.lightbox-divider {
  color: #333;
}

/* Mobile Responsive */
/* Back to Top Button */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(230, 230, 230, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top:hover {
  background: rgba(210, 210, 210, 0.9);
}

.back-to-top:hover svg path {
  stroke: #c9531f;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  position: absolute;
  top: 20px;
  right: 20px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .grid-view {
    left: 0;
    padding: 60px 20px 20px;
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-item img {
    max-height: 150px;
  }

  .grid-toggle {
    right: 20px;
  }

  .grid-close {
    right: 20px;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .logo {
    margin-bottom: 0;
  }

  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    width: 100%;
  }

  .nav.active {
    display: flex;
  }

  .social-link {
    display: none;
  }

  .social-link.active {
    display: block;
    margin-top: 20px;
  }

  .main {
    margin-left: 0;
  }

  .carousel {
    position: relative;
    height: auto;
    overflow: visible;
    padding: 20px 0;
  }

  .carousel-controls {
    display: none;
  }

  .grid-toggle {
    display: none;
  }

  .slide {
    position: relative;
    opacity: 1;
    padding: 0 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
  }

  .slide.active {
    opacity: 1;
  }

  .slide img {
    width: 100%;
    max-height: none;
    cursor: default;
  }

  .gallery {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item img {
    max-height: none;
  }

  .back-to-top {
    display: flex;
  }

  .back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .about {
    padding: 30px 20px;
  }

  .lightbox-controls {
    bottom: 20px;
    right: 20px;
  }

  .lightbox-close {
    right: 20px;
  }
}

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

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

  .carousel-controls {
    gap: 8px;
    font-size: 10px;
  }

  .carousel-controls button {
    font-size: 10px;
  }
}
