/*
=============================================================
TRILOGIX INSTITUTE WEBSITE
File: gallery-campus-selector-final.css
Purpose: Final campus selector styling for the gallery.
Maintenance note: Related rules and logic are grouped and documented by feature.
=============================================================
*/

/*
STYLE ORGANIZATION
- Base/component rules define the default desktop presentation.
- State classes such as .active, .show, and :hover control interactions.
- Media queries near the relevant rules adapt the layout for tablet and mobile screens.
*/

/* Final Browse the Gallery campus selector.
Mirrors the Courses campus switch and intentionally overrides older gallery styles. */
.gallery-catalog .gallery-page-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: end !important;
  column-gap: 3rem !important;
  row-gap: 1.5rem !important;
  width: 100% !important;
  margin: 0 0 2.6rem !important;
}
.gallery-catalog .gallery-page-heading > div:first-child {
  min-width: 0 !important;
}
.gallery-catalog .gallery-campus-switch {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: .45rem !important;
  width: max-content !important;
  margin: 0 0 .15rem !important;
  padding: .46rem !important;
  border: 1px solid #cfdef1 !important;
  border-radius: 17px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 15px 36px rgba(14,56,120,.10) !important;
  backdrop-filter: blur(12px) !important;
}
.gallery-catalog .gallery-campus-switch button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .58rem !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: .82rem 1.1rem !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #60708b !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: .83rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transform: none !important;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease !important;
}
.gallery-catalog .gallery-campus-switch button:first-child {
  min-width: 126px !important;
}
.gallery-catalog .gallery-campus-switch button img {
  display: block !important;
  width: 25px !important;
  height: 17px !important;
  flex: 0 0 auto !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px rgba(8,31,72,.08) !important;
}
.gallery-catalog .gallery-campus-switch button:hover,
.gallery-catalog .gallery-campus-switch button.active {
  border: 0 !important;
  background: #fff !important;
  color: #0754c5 !important;
  box-shadow: 0 9px 22px rgba(7,65,155,.12) !important;
  transform: none !important;
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media (max-width: 1199.98px) {
  .gallery-catalog .gallery-page-heading {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
.gallery-catalog .gallery-campus-switch {
  margin-top: .25rem !important;
}
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media (max-width: 767.98px) {
  .gallery-catalog .gallery-campus-switch {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
.gallery-catalog .gallery-campus-switch button {
  justify-content: flex-start !important;
  width: 100% !important;
}
}
/* Responsive refinements for Browse the Gallery */

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media (max-width: 1199.98px) {
  .gallery-catalog .gallery-page-heading {
    grid-template-columns: 1fr !important;
    gap: 1.4rem !important;
    margin-bottom: 2rem !important;
  }
.gallery-catalog .gallery-campus-switch {
  width: fit-content !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}
.gallery-catalog .gallery-campus-switch::-webkit-scrollbar {
  display: none !important;
}
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media (max-width: 767.98px) {
  .gallery-catalog .gallery-page-heading {
    gap: 1.15rem !important;
    margin-bottom: 1.65rem !important;
  }
.gallery-catalog .gallery-page-heading .section-title {
  font-size: clamp(2rem, 9vw, 2.8rem) !important;
  line-height: 1.04 !important;
}
.gallery-catalog .gallery-page-heading .section-subtitle {
  font-size: .95rem !important;
  line-height: 1.65 !important;
}
.gallery-catalog .gallery-campus-switch {
  display: flex !important;
  width: 100% !important;
  padding: .35rem !important;
  border-radius: 14px !important;
}
.gallery-catalog .gallery-campus-switch button {
  flex: 0 0 auto !important;
  width: auto !important;
  justify-content: center !important;
  padding: .72rem .88rem !important;
  font-size: .75rem !important;
}
.gallery-catalog .gallery-campus-switch button:first-child {
  min-width: auto !important;
}
.gallery-catalog .gallery-campus-switch button img {
  width: 22px !important;
  height: 15px !important;
}
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media (max-width: 479.98px) {
  .gallery-catalog .gallery-campus-switch button {
    padding: .68rem .78rem !important;
    font-size: .7rem !important;
  }
}
