/* Examples page only — does not affect the rest of the site */

.portfolio-hero {
  background:
    linear-gradient(rgba(92, 64, 51, 0.75), rgba(92, 64, 51, 0.85)),
    image-set(
      url('../img/blah_blah.webp') type('image/webp'),
      url('../img/blah_blah.jpg') type('image/jpeg')
    ) center / cover no-repeat;
  padding: 5rem 0 4rem;
  color: white;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.filter-btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.4rem;
  border: 2px solid #e0d0c8;
  border-radius: 50px;
  background: white;
  color: #5c4033;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: #b89778;
  color: #b89778;
}

.filter-btn.active {
  background: #5c4033;
  border-color: #5c4033;
  color: white;
}

.portfolio-gallery {
  columns: 3;
  column-gap: 1.25rem;
}

@media (max-width: 992px) {
  .portfolio-gallery { columns: 2; }
}

@media (max-width: 576px) {
  .portfolio-gallery { columns: 1; }
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(92, 64, 51, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(92, 64, 51, 0.15);
}

.gallery-item.hidden {
  display: none;
}

.gallery-item picture,
.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 1rem;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(92, 64, 51, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 1rem;
}

.gallery-overlay i {
  font-size: 1.75rem;
  color: white;
}

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

.gallery-pair {
  display: flex;
  gap: 0.35rem;
  background: white;
  padding: 0.35rem;
}

.gallery-pair .pair-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.gallery-pair .pair-card picture,
.gallery-pair .pair-card img {
  border-radius: 0.75rem;
}

.pair-label {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(92, 64, 51, 0.8);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

.cta-strip {
  background: linear-gradient(135deg, #5c4033, #8B6F47);
  color: white;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 12, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem 3rem;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: calc(100vw - 9rem);
  max-height: calc(100dvh - 7rem);
  text-align: center;
  overflow: hidden;
}

.lightbox-content img,
#lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-pair {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: calc(100vw - 9rem);
  max-height: calc(100dvh - 9rem);
  overflow: hidden;
}

.lightbox-pair-side {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc((100vw - 11rem) / 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-pair-side img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-pair-side span {
  display: block;
  margin-top: 0.5rem;
  color: #f8e8e8;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.lightbox-caption {
  color: #d4c4bc;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  flex-shrink: 0;
}

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #a09088;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 1;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lightbox {
    padding: 3rem 1rem 2.5rem;
  }

  .lightbox-content {
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 6rem);
  }

  .lightbox-content img,
  #lightbox-img {
    max-height: calc(100dvh - 7rem);
  }

  .lightbox-pair {
    flex-direction: column;
    max-height: calc(100dvh - 7rem);
    gap: 0.75rem;
  }

  .lightbox-pair-side {
    max-width: calc(100vw - 2rem);
  }

  .lightbox-pair-side img {
    max-height: calc((100dvh - 10rem) / 2);
  }
}

@media (max-width: 576px) {
  .lightbox-nav { width: 40px; height: 40px; }
}