/* company-gallery-static.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: #334155;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Page Content Body */
.detail-body {
  max-width: var(--content-width);
  margin: 4rem auto;
  padding: 0 1.5rem;
  min-height: 50vh;
}

/* Category Tab controls */
.sv-cat-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.sv-cat-tab {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.sv-cat-tab:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.sv-cat-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: none;
}

/* Masonry Layout (full-height images, no white gaps) */
.gl-grid {
  columns: 3;
  column-gap: 1.5rem;
}

.gl-grid.cols-2 {
  columns: 2;
  max-width: 860px;
  margin: 0 auto;
}

.gl-grid.cols-4 {
  columns: 4;
}

.gl-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  box-shadow: none;
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
}

.gl-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s;
}

.gl-item:hover img {
  transform: scale(1.05);
}

.gl-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
}

.gl-no-img .material-icons {
  font-size: 3rem;
  color: #94a3b8;
}

/* Card Overlay and Badges */
.gl-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.1) 70%);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
  z-index: 2;
}

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

.gl-overlay .material-icons {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.35rem;
  opacity: 0.8;
}

.gl-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gl-photo-count {
  font-size: 0.82rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.gl-photo-count .material-icons {
  position: static;
  font-size: 0.95rem;
}

.gl-view-detail {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 0;
  width: fit-content;
  letter-spacing: 0.02em;
}

.gl-view-detail .material-icons {
  position: static;
  font-size: 0.9rem;
}

.gl-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
}

.gl-date-badge .material-icons {
  font-size: 0.85rem;
}

.gl-title-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
  z-index: 1;
}

.gl-item:hover .gl-title-bar {
  transform: translateY(100%);
}

.gl-title-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0;
}

/* Lightbox Modal Window */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  font-family: var(--font);
}

.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lb-close:hover {
  opacity: 1;
}

.lb-close .material-icons {
  font-size: 2.2rem;
}

.lb-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.lb-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.lb-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60vh;
}

.lb-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lb-nav.prev {
  left: 1rem;
}

.lb-nav.next {
  right: 1rem;
}

.lb-nav .material-icons {
  font-size: 2rem;
}

.lb-counter {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
}

.lb-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 0.5rem;
}

.lb-thumbs img {
  width: 60px;
  height: 45px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.lb-thumbs img:hover,
.lb-thumbs img.active {
  opacity: 1;
  border-color: var(--primary);
}

/* Scroll top button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0;
  pointer-events: none;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}

/* Empty state card */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: #f8fafc;
  border-radius: 0;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.empty-state .material-icons {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.empty-state p {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Responsive Grid layout */
@media (max-width: 900px) {
  .gl-grid {
    columns: 2;
  }

  .gl-grid.cols-4 {
    columns: 2;
  }
}


@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .navbar-hamburger {
    display: block;
  }

  .lb-img-wrap {
    height: 50vh;
  }

  .lb-nav {
    width: 40px;
    height: 40px;
  }

  .lb-nav .material-icons {
    font-size: 1.5rem;
  }
}

@media (max-width: 550px) {
  .gl-grid,
  .gl-grid.cols-4,
  .gl-grid.cols-2 {
    columns: 1;
  }
}