:root {
  --gallery-primary: #b67b5a;
  --gallery-primary-hover: #9f6547;
  --gallery-ink: #201a17;
  --gallery-paper: #f8f4ee;
}

body {
  margin: 0;
  color: var(--gallery-ink);
  background: var(--gallery-paper);
}

.premium-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(248, 244, 238, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(32, 26, 23, 0.1);
}

.premium-nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.premium-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gallery-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  flex-shrink: 0;
  min-height: 76px;
}

.premium-nav-logo {
  height: 72px;
  width: auto;
  max-height: 76px;
  max-width: 420px;
  object-fit: contain;
  display: block;
}

@media (max-width: 1024px) {
  .premium-nav-brand {
    min-height: 64px;
  }

  .premium-nav-logo {
    height: 60px;
    max-height: 64px;
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .premium-nav-brand {
    min-height: 52px;
  }

  .premium-nav-logo {
    height: 48px;
    max-height: 52px;
    max-width: 240px;
  }
}

.premium-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
  flex: 1;
  min-width: 0;
}

.premium-nav-menu,
.premium-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.premium-nav-menu {
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.premium-nav-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 1rem;
}

.premium-nav-links a {
  color: #5f4e46;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.premium-nav-links a:hover {
  color: var(--gallery-ink);
}

.premium-nav-links a.active {
  color: var(--gallery-primary);
}

.premium-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  padding: 0.65rem 0.9rem;
  letter-spacing: 0.12em !important;
}

.premium-nav-account {
  text-align: right;
}

.premium-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gallery-ink);
  font-size: 1.05rem;
}

body a,
body a:hover,
body a:focus,
body a:active,
body a:visited {
  color: inherit;
  text-decoration: none !important;
}

.gallery-shell {
  min-height: 100vh;
}

.gallery-hero {
  position: relative;
  isolation: isolate;
  margin-top: 68px;
  min-height: clamp(380px, 52vh, 560px);
  display: flex;
  align-items: flex-end;
  padding: 5.4rem 0 3.2rem;
  background: linear-gradient(120deg, #efe1d2 0%, #f6eee6 100%);
  border-bottom: 1px solid rgba(32, 26, 23, 0.08);
  overflow: hidden;
}

.gallery-hero-with-image {
  background-image: var(--gallery-hero-image);
  background-size: cover;
  background-position: center;
}

.gallery-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 14, 12, 0.84) 0%, rgba(20, 14, 12, 0.58) 46%, rgba(20, 14, 12, 0.18) 100%),
    linear-gradient(180deg, rgba(20, 14, 12, 0.12) 0%, rgba(20, 14, 12, 0.42) 100%);
  opacity: 0;
}

.gallery-hero-with-image .gallery-hero-backdrop {
  opacity: 1;
}

.gallery-hero-content {
  max-width: 44rem;
}

.gallery-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #7c6b62;
}

.gallery-hero-with-image .gallery-kicker {
  color: var(--gallery-primary);
}

.gallery-title {
  margin: 0.5rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
}

.gallery-hero-with-image .gallery-title {
  color: #fff;
}

.gallery-subtitle {
  margin: 0.6rem 0 0;
  color: #5e4f49;
  max-width: 34rem;
}

.gallery-hero-with-image .gallery-subtitle {
  color: rgba(255, 247, 241, 0.9);
}

.gallery-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.gallery-hero-cta,
.gallery-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.05rem;
  border: 1px solid transparent;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gallery-hero-cta {
  background: var(--gallery-primary);
  border-color: var(--gallery-primary);
}

.gallery-hero-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.gallery-hero:not(.gallery-hero-with-image) .gallery-hero-secondary {
  color: var(--gallery-ink);
  border-color: rgba(32, 26, 23, 0.18);
  background: rgba(255, 255, 255, 0.48);
}

.gallery-hero-cta:hover,
.gallery-hero-secondary:hover {
  color: #fff;
}

.gallery-grid-wrap {
  padding: 3.4rem 0 1.6rem;
}

.gallery-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.gallery-section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
}

.gallery-grid.gallery-count-1 {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.gallery-grid.gallery-count-2 {
  grid-template-columns: repeat(2, minmax(0, 520px));
  justify-content: center;
}

.gallery-grid.gallery-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
  position: relative;
  border: 1px solid rgba(32, 26, 23, 0.12);
  background: #fffdfa;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(24, 18, 15, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 0;
}

.gallery-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
}

.gallery-category-filter {
  border: 1px solid rgba(32, 26, 23, 0.2);
  padding: 0.48rem 0.75rem;
  background: transparent;
  color: #3f332e;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-category-filter:hover,
.gallery-category-filter.active {
  border-color: var(--gallery-primary);
  background: var(--gallery-primary);
  color: #fff;
  text-decoration: none;
}

.gallery-card:hover,
.gallery-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(24, 18, 15, 0.09);
}

.gallery-card-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card-link {
  display: block;
  aspect-ratio: 1 / 1;
  position: relative;
}

.gallery-count-1 .gallery-card-link {
  aspect-ratio: 5 / 3;
}

.gallery-count-2 .gallery-card-link {
  aspect-ratio: 4 / 5;
}

.gallery-count-3 .gallery-card-link {
  aspect-ratio: 3 / 4;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.48rem;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 14, 12, 0.7), rgba(20, 14, 12, 0.08));
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

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

.gallery-overlay span {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.42);
  padding: 0.42rem 0.68rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  border-radius: 0;
}

.gallery-overlay strong {
  display: block;
  max-width: 20rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
}

.category-badge-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
}

.category-badge {
  background-color: var(--gallery-primary);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.gallery-pagination-wrap {
  padding: 0.5rem 0 2.4rem;
}

.pagination .page-link {
  border-radius: 0;
  border: 1px solid rgba(32, 26, 23, 0.16);
  margin: 0 0.15rem;
  color: #3f332e;
  background: #fffdfa;
  min-width: 40px;
  min-height: 40px;
  line-height: 1.4;
  text-align: center;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
}

.pagination .page-link:hover {
  background: #f1e5da;
  color: #3f332e;
}

.pagination .page-link.active,
.pagination .active .page-link {
  background: var(--gallery-primary);
  border-color: var(--gallery-primary);
  color: #fff;
}

.gallery-footer {
  background: #2a201b;
  color: #f8f4ee;
  padding: 2rem 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
}

.footer-icons {
  display: flex;
  gap: 0.75rem;
}

.footer-icons i {
  color: rgba(248, 244, 238, 0.88);
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.footer-icons a {
  color: rgba(248, 244, 238, 0.8);
}

.footer-icons a:hover {
  color: #fff;
}

.footer-icons a:hover i.fa-instagram {
  color: #e1306c !important;
}

.footer-icons a:hover i.fa-tiktok {
  color: #010101 !important;
}

.footer-icons a:hover i.fa-yelp {
  color: #d32323 !important;
}

.footer-icons a:hover i.fa-youtube {
  color: #ff0000 !important;
}

.footer-copy {
  margin: 0;
  color: rgba(248, 244, 238, 0.6);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .gallery-hero {
    margin-top: 75px;
    min-height: 420px;
    padding-top: 3.3rem;
  }

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

  .gallery-grid.gallery-count-1 {
    grid-template-columns: minmax(0, 680px);
  }

  .gallery-grid.gallery-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card-featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 767px) {
  .gallery-hero {
    min-height: 360px;
    padding: 4.4rem 0 2.4rem;
  }

  .gallery-hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 20rem;
  }

  .gallery-grid-wrap {
    padding-top: 2.4rem;
  }

  .gallery-section-heading {
    display: block;
  }

  .gallery-section-heading h2 {
    margin-top: 0.35rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .gallery-grid.gallery-count-1,
  .gallery-grid.gallery-count-2,
  .gallery-grid.gallery-count-3 {
    grid-template-columns: 1fr;
  }

  .gallery-count-1 .gallery-card-link,
  .gallery-count-2 .gallery-card-link,
  .gallery-count-3 .gallery-card-link {
    aspect-ratio: 4 / 5;
  }

  .gallery-card-featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-overlay {
    opacity: 1;
    padding: 0.6rem;
  }

  .gallery-overlay span {
    font-size: 0.62rem;
    padding: 0.36rem 0.55rem;
  }

  .category-badge {
    font-size: 0.58rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .premium-nav-toggle {
    display: block;
  }

  .premium-nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #f8f4ee;
    border-bottom: 1px solid rgba(32, 26, 23, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.9rem;
  }

  .premium-nav-menu,
  .premium-nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .premium-nav-links.open {
    display: flex;
  }
}
