.smda-gallery-page {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #334155;
  overflow-x: hidden;
}

/* HERO */
.smda-gallery-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  padding: 20px 20px 80px 20px;
  text-align: center;
  position: relative;
}

.smda-gallery-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
  z-index: 1;
}

.smda-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.smda-hero-subtitle {
  color: #f59e0b;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.smda-hero-title {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0 0 15px 0;
  line-height: 1.1;
  letter-spacing: -1px;
}

.smda-hero-desc {
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 800px;
}

/* SECTION */
.smda-gallery-section {
  padding: 80px 20px 100px 20px;
  max-width: 1250px;
  margin: 0 auto;
}

/* TABS */
.smda-galp-tabs {
  display: inline-flex;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 4px;
  margin: 0 0 30px 0;
}

.smda-galp-tab {
  border: none;
  background: transparent;
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.smda-galp-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(148,163,184,0.5);
}

/* Grid */
.smda-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}

.smda-img-box {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  cursor: pointer;
  background: #e2e8f0;
}

.smda-img-box.tall {
  grid-row: span 2;
}

.smda-img-box.wide {
  grid-column: span 2;
}

.smda-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.smda-img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 50%, rgba(15, 23, 42, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
}

.smda-img-box:hover img {
  transform: scale(1.08);
}

.smda-img-box:hover .smda-img-overlay {
  opacity: 1;
}

.smda-zoom-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
}

.smda-zoom-icon svg {
  width: 24px;
  height: 24px;
}

.smda-img-box:hover .smda-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.smda-caption {
  color: #ffffff;
  transform: translateY(15px);
  transition: all 0.3s ease;
}

.smda-caption h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.smda-cat-tag {
  display: inline-block;
  background: #f59e0b;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.smda-img-box:hover .smda-caption {
  transform: translateY(0);
}

/* Videos */
.smda-video-grid .smda-video-box {
  text-decoration: none;
}

/* pagination */
.smda-galp-pagination {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  font-size: 0.95rem;
}

.smda-galp-page-link {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.smda-galp-page-link:hover {
  background: #e5e7eb;
}

.smda-galp-page-current {
  color: #64748b;
}

.smda-galp-empty {
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  margin-top: 15px;
}

/* Panels */
.smda-galp-tab-panel {
  display: none;
}

.smda-galp-tab-panel.active {
  display: block;
}

@media (max-width: 992px) {
  .smda-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .smda-img-box.wide {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .smda-hero-title {
    font-size: 2.8rem;
  }
  .smda-image-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .smda-img-box.tall {
    grid-row: span 1;
  }
}
