/* ==========================================================
   TUW Media Organizer - Basic Gallery Styles
   ========================================================== */

.tuw-gallery {
  display: grid;
  gap: 15px;
  margin: 20px 0;
}

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

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

.tuw-gallery.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.tuw-gallery.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* Gallery Items */
.tuw-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.tuw-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.tuw-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Pagination */
.tuw-pagination {
  text-align: center;
  margin-top: 25px;
}

.tuw-pagination a,
.tuw-pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #555;
  transition: all 0.2s ease;
}

.tuw-pagination a:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

.tuw-pagination .current {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tuw-gallery.columns-3,
  .tuw-gallery.columns-4,
  .tuw-gallery.columns-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tuw-gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}




/* ================================================
   TUW Media Organizer - Lightbox Styling Overrides
   ================================================ */


.tuw-gallery .glightbox {
  display: block;
}


/* 70% opacity black overlay so you can still see the page */
.glightbox-container .goverlay {
  background: rgba(0, 0, 0, 0.7) !important;
}

/* Limit lightbox content to 80% of viewport (non-mobile) */
.glightbox-container .ginner-container {
  max-width: 80vw !important;
  max-height: 80vh !important;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Make sure images fit inside the 80% box */
.glightbox-container .gslide-media img {
  width: auto;
  max-width: 100%;
  max-height: 80vh !important;
  border-radius: 6px;
  object-fit: contain;
}

/* Style the description (categories text) */
.glightbox-container .gslide-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fff;
  background: rgba(0, 0, 0, 0.7) !important;
  text-align: center;
  margin-top: 10px;
  opacity: 0.9;
}

/* Title styling */
.glightbox-container .gslide-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  .glightbox-container .ginner-container {
    max-width: 95vw !important;
    max-height: 90vh !important;
  }
}




