/* ---------- GALLERY ---------- */

/* Album card */
.gallery-album {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
   box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, 
                box-shadow 0.25s ease;
    will-change: transform;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-album:hover {
     transform: translateY(-4px) scale(1.01);
   box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* FORCE UNIFIED THUMB HEIGHT */
.gallery-thumb-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3; /* change to 3/2 or 16/9 if preferred */
  overflow: hidden;
  position: relative;
}

/* Remove any orientation-based sizing */
.gallery-thumb-wrapper.landscape,
.gallery-thumb-wrapper.portrait {
  aspect-ratio: 4 / 3 !important;
}

/* Make images fill the box and center nicely */
.gallery-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* fills the box, no distortion */
  object-position: center;     /* crop from the middle */
  display: block;
}

/* Remove underline / hover styling */
.gallery-album a,
.gallery-album a:hover,
.gallery-album a:focus {
  text-decoration: none !important;
  outline: none !important;
  border: none !important;
}
/* Force perfect center crop — no black bars ever */
.gallery-thumb-wrapper img {
    object-fit: cover;
    object-position: center center; /* <-- Forces both axes */
    background-color: #fff; /* fallback if something fails */
}


/* Album meta */
.album-meta {
  padding: 20px 15px 15px;
  font-size: 0.95em;
  text-align: left;
}
.album-title {
  font-size: 1.3em !important;
  margin-bottom: 5px;
  color: #1f3b6e !important;
}
.album-submitted-by,
.album-date {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

/* Honours meta */
.honours-meta {
  padding: 0;
  margin-bottom: 10px;
}
.honours-meta p {
  margin: 2px 0;
  color: #262626;
  font-size: 16px;
}
.honours-meta p:first-of-type {
  margin-top: 0;
}
.honours-meta p:last-of-type {
  margin-bottom: 10px;
}

/* Grid wrapper */
.custom-gallery-album-grid {
  align-items: flex-start;
 gap: 30px !important; 
}

/* FILTER BAR CONTAINER */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 40px;
    margin-bottom: 20px !important;
}

/* GROUP label + select */
.gallery-filters label {
    font-weight: 600;
    margin-right: 8px;
    font-size: 17px;
    color: #1f3b6e;
}

/* Make selects consistent */
.gallery-filters select {
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #d2d6df;
    background: #eee;
    font-size: 17px;
    color: #333;
    min-width: 220px;
    appearance: none;
    cursor: pointer;
}

/* Add dropdown arrow styling (optional but nice) */
.gallery-filters select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 34px;
}

/* Better hover */
.gallery-filters select:hover {
    background-color: #e4e6eb;
}

/* Mobile fix: full-width fields */
@media (max-width: 700px) {
    .gallery-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .gallery-filters select {
        width: 100%;
        max-width: 350px;
    }
}

/* GLightbox tweaks */
.glightbox-clean .gclose {
  display: block !important;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  z-index: 9999;
}
.glightbox-clean .gdesc-inner {
  color: #fff;
  font-size: 16px;
  padding: 10px;
  border-radius: 4px;
}
.glightbox-trigger {
  cursor: pointer;
}
.glightbox-trigger h3,
.glightbox-trigger img {
  text-decoration: none !important;
}
/* Remove underline on hover for gallery cards */
.gallery-album a,
.gallery-album a:visited,
.gallery-album a:hover,
.gallery-album a:focus {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}
.gallery-pagination {
    text-align: center;
    margin: 5px 0;
}

.gallery-pagination a,
.gallery-pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #d0d4dd;
    border-radius: 4px;
    background: #fff;
    color: #1f3b6e;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.gallery-pagination a:hover {
    background: #1f3b6e;
    color: #fff;
}

.gallery-pagination .current {
    background: #1f3b6e;
    color: #fff;
    border-color: #1f3b6e;
}
