.elementor-widget-gsod-gallery,
.elementor-widget-gsod-gallery > .elementor-widget-container { margin: 0; padding: 0; }

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}
.filter-btn {
  background: #ffffff;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 9999px;
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light, #666);
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s ease);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-navy, #002855);
  color: #ffffff;
  border-color: var(--color-navy, #002855);
}

.gallery-grid {
  column-count: 3;
  column-gap: 30px;
}
@media (max-width: 992px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 20px;
  }
}
@media (max-width: 768px) {
  .gallery-grid {
    column-count: 1;
  }
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 30px;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
  cursor: pointer;
  background: #f1f5f9;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition: transform var(--transition-fast, 0.2s ease), box-shadow 0.2s ease;
}
.gallery-item:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--shadow-md, 0 8px 16px rgba(0,0,0,0.15));
}
.gallery-item.hidden {
  display: none !important;
}
.gallery-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,40,85,0.9), transparent);
  padding: 40px 20px 20px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-title {
  font-family: var(--font-headers, inherit);
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: #ffffff;
}
.gallery-event {
  font-size: 0.85rem;
  color: var(--color-gold, #cfa861);
  margin: 0;
}

/* Lightbox Dialog */
dialog#lightbox-dialog {
  max-width: 800px;
  width: 90vw;
  padding: 0;
  border: none;
  border-radius: var(--radius-md, 8px);
  background: #ffffff;
  box-shadow: var(--shadow-lg, 0 10px 15px rgba(0,0,0,0.3));
}
dialog#lightbox-dialog::backdrop {
  background: rgba(0,0,0,0.8);
}
.gsod-modal-header {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}
.gsod-modal-close {
  background: rgba(0,0,0,0.5);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.gsod-modal-close:hover {
  background: rgba(0,0,0,0.8);
}
.lightbox-content {
  display: flex;
  flex-direction: column;
}
.lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
  display: block;
}
.lightbox-caption {
  padding: 16px 20px;
  text-align: center;
  font-weight: 500;
  color: var(--color-navy, #002855);
  margin: 0;
  border-top: 1px solid var(--color-border, #e0e0e0);
}

/* Drive Folders */
.gdrive-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.gdrive-card {
  background: #ffffff;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: var(--radius-md, 8px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
  transition: all 0.2s;
}
.gdrive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
}
.gdrive-title {
  font-family: var(--font-headers, inherit);
  font-size: 1.2rem;
  color: var(--color-navy, #002855);
  margin: 0;
}
