/*
=============================================================
TRILOGIX INSTITUTE WEBSITE
File: gallery-v2.css
Purpose: Refined gallery components and interaction states.
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.
*/

:root{--gallery-blue:#0754c5;--gallery-navy:#06255f;--gallery-ink:#14233d;--gallery-muted:#68768c;--gallery-line:#dce6f2}
html{scroll-behavior:smooth}.gallery-hero .about-hero-overlay{background:linear-gradient(90deg,rgba(3,24,67,.96),rgba(7,52,129,.84) 49%,rgba(2,29,78,.36))}
.section-heading-row,.campus-selector-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem}.section-heading-row .section-subtitle{max-width:760px}.featured-arrows{display:flex;gap:.55rem}.featured-arrows button{width:44px;height:44px;border:1px solid var(--gallery-line);border-radius:50%;background:#fff;color:var(--gallery-ink);transition:.2s}.featured-arrows button:hover{background:var(--gallery-blue);border-color:var(--gallery-blue);color:#fff;transform:translateY(-2px)}
#0b285f;box-shadow:0 24px 60px rgba(5,40,100,.16)}.featured-main>img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:opacity .35s,transform .8s}.featured-main:hover>img{transform:scale(1.025)}.featured-gradient{position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,20,52,.05),rgba(2,20,52,.82))}.featured-copy{position:absolute;left:0;right:0;bottom:0;padding:2.5rem;color:#fff}.featured-copy>span{font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#9fcbff}.featured-copy h3{max-width:700px;margin:.55rem 0;font-size:clamp(1.8rem,3vw,3rem);font-weight:800}.featured-copy p{max-width:680px;margin:0 0 1rem;color:rgba(255,255,255,.78);line-height:1.7}.featured-link{border:0;background:transparent;padding:0;color:#fff;font-weight:800;font-size:.78rem}.featured-progress{position:absolute;left:2.5rem;right:2.5rem;bottom:1rem;height:2px;background:rgba(255,255,255,.22)}.featured-progress span{display:block;width:0;height:100%;background:#fff}.featured-progress span.running{animation:featureProgress 6s linear forwards}@keyframes featureProgress{to{width:100%}}
.featured-list{display:grid;gap:1rem}.featured-thumb{display:grid;grid-template-columns:96px 1fr auto;gap:1rem;align-items:center;border:1px solid var(--gallery-line);border-radius:18px;background:#fff;padding:.8rem;text-align:left;transition:.22s}.featured-thumb img{width:96px;height:92px;border-radius:12px;object-fit:cover}.featured-thumb span{display:flex;flex-direction:column;gap:.35rem}.featured-thumb small{font-size:.62rem;color:var(--gallery-blue);font-weight:800;text-transform:uppercase}.featured-thumb strong{font-size:.78rem;color:var(--gallery-ink)}.featured-thumb>i{color:#99a8ba}.featured-thumb:hover,.featured-thumb.active{border-color:#8ab3ea;box-shadow:0 16px 35px rgba(7,84,197,.12);transform:translateX(-4px)}.featured-thumb.active{background:#f4f8ff}
.featured-showcase{margin-top:2.2rem}
.featured-stage{position:relative;min-height:620px;overflow:hidden;border-radius:24px;background:#082d6b;box-shadow:0 26px 64px rgba(5,40,100,.16)}
.featured-stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .35s ease,transform 1s ease}
.featured-stage:hover>img{transform:scale(1.035)}
.featured-gradient{position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,18,49,.08),rgba(2,18,49,.18) 35%,rgba(2,18,49,.9))}
.featured-badge-row{position:absolute;top:1.5rem;left:1.5rem;right:1.5rem;display:flex;justify-content:space-between;gap:1rem;align-items:center}
.featured-badge-row span{border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(4,31,77,.55);padding:.5rem .75rem;color:#fff;font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.featured-copy{position:absolute;left:2rem;right:2rem;bottom:2.2rem;color:#fff}
.featured-copy h3{max-width:760px;margin:0 0 .65rem;font-size:clamp(2rem,4vw,4rem);line-height:1.05;font-weight:800}
.featured-copy p{max-width:760px;margin:0 0 1.1rem;color:rgba(255,255,255,.78);line-height:1.7}
.featured-link{border:0;background:transparent;padding:0;color:#fff;font-size:.75rem;font-weight:800}
.featured-progress{position:absolute;left:2rem;right:2rem;bottom:1rem;height:2px;background:rgba(255,255,255,.2)}
.featured-progress span{display:block;width:0;height:100%;background:#fff}
.featured-progress span.running{animation:featureProgress 6s linear forwards}
.featured-navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;margin-top:1rem}
.featured-nav-item{display:flex;align-items:center;gap:.8rem;border:1px solid var(--gallery-line);border-radius:14px;background:#fff;padding:1rem;text-align:left;transition:.22s}
.featured-nav-number{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#eef5ff;color:var(--gallery-blue);font-size:.67rem;font-weight:800}
.featured-nav-item>span:last-child{display:flex;flex-direction:column;gap:.2rem}
.featured-nav-item small{font-size:.58rem;color:var(--gallery-muted);text-transform:uppercase;letter-spacing:.06em}
.featured-nav-item strong{font-size:.72rem;color:var(--gallery-ink)}
.featured-nav-item:hover,.featured-nav-item.active{transform:translateY(-3px);border-color:transparent;background:linear-gradient(135deg,#082e84,#0754c5);box-shadow:0 14px 30px rgba(7,84,197,.16)}
.featured-nav-item:hover .featured-nav-number,.featured-nav-item.active .featured-nav-number{background:rgba(255,255,255,.15);color:#fff}
.featured-nav-item:hover small,.featured-nav-item:hover strong,.featured-nav-item.active small,.featured-nav-item.active strong{color:#fff}
.gallery-campus-switch{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.55rem;
  margin-top:2rem;
}
.gallery-campus-switch button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-height:42px;
  border:1px solid var(--gallery-line);
  border-radius:10px;
  background:#fff;
  padding:.68rem 1rem;
  color:var(--gallery-ink);
  font-size:.72rem;
  font-weight:800;
  transition:.2s ease;
}
.gallery-campus-switch button:hover{
  border-color:#8fb8ee;
  color:var(--gallery-blue);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(7,84,197,.09);
}
.gallery-campus-switch button.active{
  border-color:var(--gallery-blue);
  background:var(--gallery-blue);
  color:#fff;
  box-shadow:0 9px 22px rgba(7,84,197,.2);
}
.photo-result-count{border:1px solid var(--gallery-line);border-radius:999px;background:#f4f8ff;padding:.55rem .9rem;color:var(--gallery-blue);font-size:.74rem;white-space:nowrap}.category-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-top:2rem}.category-filter-card{display:flex;align-items:center;gap:.8rem;border:1px solid var(--gallery-line);border-radius:14px;background:#fff;padding:.9rem;text-align:left;transition:.22s}.category-filter-card>i{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#eef5ff;color:var(--gallery-blue)}.category-filter-card span{display:flex;flex-direction:column;gap:.15rem}.category-filter-card strong{font-size:.72rem;color:var(--gallery-ink)}.category-filter-card small{font-size:.61rem;color:var(--gallery-muted)}.category-filter-card:hover,.category-filter-card.active{transform:translateY(-3px);border-color:transparent;background:linear-gradient(135deg,#082e84,#0754c5);box-shadow:0 14px 30px rgba(7,84,197,.16)}.category-filter-card.active i,.category-filter-card:hover i{background:rgba(255,255,255,.15);color:#fff}.category-filter-card.active strong,.category-filter-card.active small,.category-filter-card:hover strong,.category-filter-card:hover small{color:#fff}
.uniform-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-top:2rem}.photo-card[hidden]{display:none}.photo-card-button{width:100%;border:0;background:transparent;padding:0}.photo-media{position:relative;display:block;overflow:hidden;border-radius:18px;aspect-ratio:4/3;background:#eaf0f7;box-shadow:0 10px 30px rgba(7,43,100,.08)}.photo-media img{width:100%;height:100%;object-fit:cover;transition:transform .55s}.photo-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,23,59,.05),rgba(3,23,59,.88));opacity:.62;transition:.25s}.photo-topline{position:absolute;top:.8rem;left:.8rem;right:.8rem;display:flex;justify-content:space-between}.photo-campus{border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(5,34,82,.55);padding:.35rem .55rem;color:#fff;font-size:.58rem;font-weight:800;}.photo-expand{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(5,34,82,.55);color:#fff;opacity:0;transform:translateY(-5px);transition:.22s}.photo-details{position:absolute;left:1rem;right:1rem;bottom:1rem;display:flex;flex-direction:column;text-align:left;color:#fff;transform:translateY(18px);transition:.25s}.photo-details small{font-size:.58rem;text-transform:uppercase;letter-spacing:.08em;color:#9fcbff;font-weight:800}.photo-details strong{margin:.35rem 0;font-size:.84rem}.photo-details span{font-size:.65rem;font-weight:800;opacity:0;transition:.25s}.photo-card:hover .photo-media img{transform:scale(1.07)}.photo-card:hover .photo-shade{opacity:1}.photo-card:hover .photo-expand{opacity:1;transform:none}.photo-card:hover .photo-details{transform:none}.photo-card:hover .photo-details span{opacity:1}.gallery-empty{text-align:center;padding:4rem 1rem;color:var(--gallery-muted)}.gallery-empty i{font-size:2rem;color:var(--gallery-blue)}
.gallery-final-cta{display:grid;grid-template-columns:1.45fr auto;gap:2rem;align-items:center;border-radius:22px;background:linear-gradient(135deg,#082e84,#0754c5 65%,#0b69d1);padding:3.25rem;color:#fff;box-shadow:0 24px 56px rgba(7,57,143,.22)}.gallery-final-cta h2{color:#fff}.gallery-final-cta p{color:rgba(255,255,255,.78)}.gallery-cta-actions{display:flex;gap:.75rem;flex-wrap:wrap}.gallery-final-cta .btn-primary-premium{background:#fff;color:var(--gallery-blue)}.gallery-final-cta .btn-outline-premium{border-color:rgba(255,255,255,.75);color:#fff}
.lightbox-open{overflow:hidden}.gallery-lightbox,.video-modal{position:fixed;inset:0;z-index:2100;display:grid;place-items:center;background:rgba(2,15,42,.95);padding:2rem}.gallery-lightbox[hidden],.video-modal[hidden]{display:none}.lightbox-content{
  width:max-content;
  max-width:calc(100vw - 8rem);
  max-height:calc(100vh - 3rem);
  overflow:hidden;
  border-radius:18px;
  background:#fff;
}
.lightbox-stage{
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  line-height:0;
}
.lightbox-stage img{
  display:block;
  width:auto;
  height:auto;
  max-width:calc(100vw - 8rem);
  max-height:calc(100vh - 10rem);
  object-fit:contain;
}.lightbox-information{display:flex;justify-content:space-between;gap:2rem;padding:1rem 1.25rem}.lightbox-information span{font-size:.62rem;color:var(--gallery-blue);font-weight:800;text-transform:uppercase}.lightbox-information h3{margin:.3rem 0;font-size:1rem}.lightbox-information p{margin:0;color:var(--gallery-muted);font-size:.72rem}.lightbox-close,.video-modal-close,.lightbox-nav{position:fixed;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.1);color:#fff}.lightbox-close,.video-modal-close{top:1.25rem;right:1.25rem;width:46px;height:46px}.lightbox-nav{top:50%;width:48px;height:48px}.lightbox-prev{left:1.25rem}.lightbox-next{right:1.25rem}@media(max-width:1199.98px){.uniform-gallery-grid{grid-template-columns:repeat(3,1fr)}.category-card-grid{grid-template-columns:repeat(4,1fr)}}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:991.98px){.featured-layout,.gallery-final-cta{grid-template-columns:1fr}.campus-panel-visual{min-height:500px}}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:767.98px){.section-heading-row,.campus-selector-heading{align-items:flex-start;flex-direction:column}.featured-layout{display:block}.featured-main{min-height:520px}.featured-list{display:flex;overflow:auto;margin-top:1rem;padding-bottom:.4rem}.featured-thumb{min-width:260px}.featured-copy{padding:1.4rem 1.4rem 2rem}.featured-progress{left:1.4rem;right:1.4rem}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat-item:nth-child(2){border-right:0}.stat-item:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.15)}.uniform-gallery-grid{grid-template-columns:repeat(2,1fr);gap:.65rem}.photo-details strong{font-size:.72rem}.photo-details span{display:none}.gallery-final-cta{padding:2rem}.gallery-cta-actions{flex-direction:column}.gallery-cta-actions a{width:100%}.lightbox-content{width:calc(100vw - 2rem)}.lightbox-nav{top:auto;bottom:1rem}@media(max-width:479.98px){.uniform-gallery-grid{grid-template-columns:1fr}.category-card-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:1fr}.stat-item{border-right:0!important;border-bottom:1px solid rgba(255,255,255,.15)}}
  /* Clarity fixes */
  body, main, section, .container-page { filter:none !important; backdrop-filter:none !important; }
  .featured-main img,
  .campus-selector-card img,
  .photo-media img,
  .lightbox-stage img { filter:none !important; opacity:1; image-rendering:auto; }
  .featured-main,
  .campus-selector-card,
  .photo-media,
  .category-filter-card,
  .featured-thumb { backdrop-filter:none !important; }

/* Responsive breakpoint: adjusts the related component for this viewport range. */
  @media(max-width:1199.98px){
    .featured-navigation{grid-template-columns:repeat(3,1fr)}
  }

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:767.98px){
  .featured-stage{min-height:560px}
  .featured-copy{left:1.25rem;right:1.25rem;bottom:2rem}
  .featured-progress{left:1.25rem;right:1.25rem}
  .featured-badge-row{left:1rem;right:1rem}
  .featured-navigation{display:flex;overflow-x:auto;padding-bottom:.35rem}
  .featured-nav-item{min-width:220px}
  .gallery-campus-selector{width:100%;overflow-x:auto}
  .gallery-campus-tab{flex:0 0 auto}
}
.lightbox-information p{
  display:flex;
  align-items:center;
  gap:.45rem;
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:767.98px){
  .gallery-campus-switch{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
.gallery-campus-switch button{
  width:100%;
}
.lightbox-content{
  max-width:calc(100vw - 1.5rem);
  max-height:calc(100vh - 5rem);
}
.lightbox-stage img{
  max-width:calc(100vw - 1.5rem);
  max-height:calc(100vh - 12rem);
}
}
/* Unified campus labels matching the Courses design language */
.gallery-campus-switch button i,
.featured-nav-item small i,
#featuredMeta i,
.photo-campus.campus-label i,
#lightboxCampus i{
  font-size:.82rem;
  line-height:1;
}
.gallery-campus-switch button i{
  color:currentColor;
}
.featured-nav-item small{
  display:flex;
  align-items:center;
  gap:.3rem;
}
#featuredMeta{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
}
.photo-campus.campus-label{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  width:auto;
  min-height:30px;
  padding:.42rem .65rem;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(4,31,77,.78);
  color:#fff;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.02em;
  white-space:nowrap;
  backdrop-filter:none;
}
#lightboxCampus{
  display:flex;
  align-items:center;
  gap:.4rem;
}
/* Final hero correction: maintain exactly two lines on desktop */
.about-hero-content h1 .hero-title-line{
  display:block;
  white-space:nowrap;
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media (min-width:992px){
  .about-hero-content h1{
    max-width:none;
    font-size:clamp(3rem,4.35vw,4.9rem);
    letter-spacing:-.045em;
  }
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media (max-width:991.98px){
  .about-hero-content h1 .hero-title-line{
    white-space:normal;
  }
}
/* Campus selector matched to the Courses page */
.gallery-campus-switch{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.65rem;
  margin-top:2rem;
}
.gallery-campus-switch button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-height:44px;
  border:1px solid #dce5f1;
  border-radius:10px;
  background:#fff;
  padding:.72rem 1rem;
  color:#17345f;
  font-size:.72rem;
  font-weight:800;
  box-shadow:none;
  transition:border-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.gallery-campus-switch button img{
  width:22px;
  height:15px;
  object-fit:cover;
  border-radius:2px;
  box-shadow:0 0 0 1px rgba(10,32,72,.08);
}
.gallery-campus-switch button:hover{
  border-color:#9dbce3;
  background:#fff;
  color:#0754c5;
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(7,84,197,.08);
}
.gallery-campus-switch button.active{
  border-color:#82aee2;
  background:#fff;
  color:#0754c5;
  box-shadow:0 8px 20px rgba(7,84,197,.10);
}
/* Gallery image campus labels matched to Courses course-card badges */
.photo-campus.campus-label{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  width:auto;
  min-height:28px;
  padding:.38rem .58rem;
  border:1px solid rgba(7,84,197,.12);
  border-radius:999px;
  background:#fff;
  color:#0754c5;
  font-size:.6rem;
  font-weight:800;
  letter-spacing:.02em;
  white-space:nowrap;
  box-shadow:0 6px 16px rgba(4,31,77,.12);
}
.photo-campus.campus-label i{
  font-size:.72rem;
  color:#0754c5;
}
/* Exact campus selector treatment from courses_dubai.html */
.gallery-campus-switch{
  display:flex;
  gap:.5rem;
  width:max-content;
  max-width:100%;
  margin-top:2rem;
  padding:.42rem;
  border:1px solid #d5e2f2;
  border-radius:16px;
  background:rgba(255,255,255,.8);
  box-shadow:0 14px 34px rgba(10,53,120,.08);
  backdrop-filter:blur(12px);
}
.gallery-campus-switch button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  min-height:auto;
  border:0;
  border-radius:11px;
  background:transparent;
  padding:.76rem 1rem;
  color:#61708a;
  font-size:.8rem;
  font-weight:800;
  white-space:nowrap;
  box-shadow:none;
  transform:none;
  transition:.25s ease;
}
.gallery-campus-switch button img{
  width:22px;
  height:15px;
  object-fit:cover;
  border-radius:2px;
  box-shadow:0 0 0 1px rgba(0,0,0,.08);
}
.gallery-campus-switch button:hover,
.gallery-campus-switch button.active{
  border:0;
  background:#fff;
  color:#0754c5;
  box-shadow:0 8px 20px rgba(7,65,155,.11);
  transform:none;
}
/* Exact course-card style campus badge */
.photo-campus.campus-label{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  width:auto;
  min-height:auto;
  padding:.32rem .62rem;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#0754c5;
  font-size:.66rem;
  font-weight:800;
  letter-spacing:0;
  line-height:1.2;
  white-space:nowrap;
  box-shadow:none;
  backdrop-filter:blur(8px);
}
.photo-campus.campus-label i{
  color:#0754c5;
  font-size:.76rem;
}
/* Zoom preview control positioned like the blue Foundation badge */
.photo-expand{
  display:grid;
  place-items:center;
  width:42px;
  height:34px;
  border-radius:999px;
  background:#0754c5;
  color:#fff;
  opacity:1;
  transform:none;
  box-shadow:0 8px 20px rgba(7,84,197,.28);
  transition:.22s ease;
}
.photo-expand i{
  font-size:.88rem;
}
.photo-card:hover .photo-expand{
  opacity:1;
  transform:translateY(-2px);
  background:#0649ad;
}
/* Keep both top badges aligned exactly like course cards */
.photo-topline{
  top:.8rem;
  left:.8rem;
  right:.8rem;
  align-items:center;
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:767.98px){
  .gallery-campus-switch{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:.35rem;
  }
.gallery-campus-switch button{
  justify-content:flex-start;
  width:100%;
}
}
/* Browse Gallery campus selector — exact Courses Dubai layout */
.gallery-page-heading{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:2rem;
  margin-bottom:2.5rem;
}
.gallery-page-heading .section-subtitle{
  max-width:760px;
}
.gallery-page-heading .gallery-campus-switch{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:.5rem !important;
  width:max-content !important;
  max-width:100% !important;
  margin:0 !important;
  padding:.42rem !important;
  border:1px solid #d5e2f2 !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.8) !important;
  box-shadow:0 14px 34px rgba(10,53,120,.08) !important;
  backdrop-filter:blur(12px) !important;
}
.gallery-page-heading .gallery-campus-switch button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.55rem !important;
  min-width:0 !important;
  min-height:auto !important;
  width:auto !important;
  border:0 !important;
  border-radius:11px !important;
  background:transparent !important;
  padding:.76rem 1rem !important;
  color:#61708a !important;
  font-size:.8rem !important;
  font-weight:800 !important;
  white-space:nowrap !important;
  box-shadow:none !important;
  transform:none !important;
  transition:.25s ease !important;
}
.gallery-page-heading .gallery-campus-switch button:first-child{
  min-width:118px !important;
}
.gallery-page-heading .gallery-campus-switch button img{
  width:22px !important;
  height:15px !important;
  object-fit:cover !important;
  border-radius:2px !important;
  box-shadow:0 0 0 1px rgba(0,0,0,.08) !important;
}
.gallery-page-heading .gallery-campus-switch button:hover,
.gallery-page-heading .gallery-campus-switch button.active{
  border:0 !important;
  background:#fff !important;
  color:#0754c5 !important;
  box-shadow:0 8px 20px rgba(7,65,155,.11) !important;
  transform:none !important;
}

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

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:767.98px){
  .gallery-page-heading .gallery-campus-switch{
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:.35rem !important;
  }
.gallery-page-heading .gallery-campus-switch button{
  width:100% !important;
  justify-content:flex-start !important;
}
}
/* Responsive lightbox / larger-view refinements */
.lightbox{
  padding:1rem;
  overflow:auto;
}
.lightbox-content{
  width:auto !important;
  max-width:min(1100px, calc(100vw - 2rem)) !important;
  max-height:none !important;
  margin:auto;
  overflow:visible !important;
  border-radius:18px;
}
.lightbox-stage{
  width:auto !important;
  max-width:100% !important;
  background:transparent !important;
}
.lightbox-stage img{
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:calc(100vh - 10rem) !important;
  object-fit:contain !important;
  border-radius:14px 14px 0 0;
}
.lightbox-information{
  width:100%;
  box-sizing:border-box;
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:767.98px){
  .lightbox{
    align-items:flex-start !important;
    padding:.65rem !important;
  }
.lightbox-content{
  width:100% !important;
  max-width:100% !important;
  margin:auto 0 !important;
  border-radius:14px !important;
}
.lightbox-stage img{
  width:100% !important;
  height:auto !important;
  max-height:calc(100vh - 13rem) !important;
  object-fit:contain !important;
  border-radius:14px 14px 0 0 !important;
}
.lightbox-information{
  padding:1rem !important;
}
.lightbox-close{
  position:fixed !important;
  top:.75rem !important;
  right:.75rem !important;
  z-index:1002 !important;
}
.lightbox-prev,
.lightbox-next{
  width:38px !important;
  height:38px !important;
}
.lightbox-prev{
  left:.85rem !important;
}
.lightbox-next{
  right:.85rem !important;
}
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:479.98px){
  .lightbox-stage img{
    max-height:calc(100vh - 15rem) !important;
  }
.lightbox-information h3{
  font-size:1.15rem !important;
}
}
/* Featured Experience: responsive navigation and spacing */
.featured-navigation{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.75rem;
  width:100%;
}
.featured-nav-item{
  min-width:0;
  width:100%;
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:1199.98px){
  .featured-navigation{
    display:flex !important;
    gap:.75rem !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:.1rem 0 .55rem !important;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
.featured-navigation::-webkit-scrollbar{
  display:none;
}
.featured-nav-item{
  flex:0 0 230px !important;
  min-width:230px !important;
  scroll-snap-align:start;
}
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:767.98px){
  .featured-showcase{
    margin-top:1.5rem !important;
  }
.featured-stage{
  min-height:500px !important;
  border-radius:18px !important;
}
.featured-copy h3{
  font-size:clamp(1.8rem,8vw,2.7rem) !important;
}
.featured-copy p{
  font-size:.92rem !important;
  line-height:1.6 !important;
}
.featured-nav-item{
  flex-basis:205px !important;
  min-width:205px !important;
  padding:.9rem !important;
}
.featured-nav-number{
  width:34px !important;
  height:34px !important;
}
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:479.98px){
  .featured-stage{
    min-height:460px !important;
  }
.featured-badge-row{
  gap:.5rem !important;
}
.featured-badge-row span{
  font-size:.55rem !important;
  padding:.42rem .58rem !important;
}
.featured-nav-item{
  flex-basis:185px !important;
  min-width:185px !important;
}
}
/* Gallery card top controls: prevent campus badge and zoom button overlap */
.photo-card{
  position:relative;
}
.photo-topline{
  position:absolute;
  top:.8rem;
  left:.8rem;
  right:.8rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  z-index:3;
  pointer-events:none;
}
.photo-campus.campus-label{
  flex:0 1 auto;
  max-width:calc(100% - 54px);
  overflow:hidden;
  text-overflow:ellipsis;
  pointer-events:auto;
}
.photo-expand{
  position:relative !important;
  top:auto !important;
  right:auto !important;
  left:auto !important;
  bottom:auto !important;
  flex:0 0 auto !important;
  margin-left:auto !important;
  pointer-events:auto !important;
  z-index:4 !important;
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:767.98px){
  .photo-topline{
    top:.65rem !important;
    left:.65rem !important;
    right:.65rem !important;
    gap:.5rem !important;
  }
.photo-campus.campus-label{
  max-width:calc(100% - 46px) !important;
  padding:.3rem .5rem !important;
  font-size:.58rem !important;
}
.photo-expand{
  width:36px !important;
  height:30px !important;
}
}
/* FINAL RESPONSIVE FIXES */
/* Featured Experience navigation:
large = 5 in one row
medium/small = stacked rows, no horizontal overflow */
.featured-navigation{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:.75rem !important;
  width:100% !important;
  overflow:visible !important;
}
.featured-nav-item{
  width:100% !important;
  min-width:0 !important;
  flex:none !important;
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:1199.98px){
  .featured-navigation{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    overflow:visible !important;
    padding:0 !important;
  }
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:767.98px){
  .featured-navigation{
    grid-template-columns:1fr !important;
    gap:.65rem !important;
  }
.featured-nav-item{
  min-width:0 !important;
  flex:none !important;
}
}
/* Force white Featured Experience navigation on every screen size */
.featured-nav-item,
.featured-nav-item:hover,
.featured-nav-item.active{
  background:#fff !important;
  color:var(--gallery-ink) !important;
  border-color:var(--gallery-line) !important;
  box-shadow:0 10px 24px rgba(8,46,100,.08) !important;
}
.featured-nav-item:hover,
.featured-nav-item.active{
  border-color:#8db5e8 !important;
  transform:translateY(-2px) !important;
}
.featured-nav-item .featured-nav-number{
  background:#eef5ff !important;
  color:var(--gallery-blue) !important;
}
.featured-nav-item small,
.featured-nav-item strong,
.featured-nav-item:hover small,
.featured-nav-item:hover strong,
.featured-nav-item.active small,
.featured-nav-item.active strong{
  color:var(--gallery-ink) !important;
}
.featured-nav-item small{
  color:var(--gallery-muted) !important;
}
/* Gallery photo top labels: exact equal height and no overlap */
.photo-topline{
  position:absolute !important;
  top:.8rem !important;
  left:.8rem !important;
  right:.8rem !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:.7rem !important;
  z-index:5 !important;
  pointer-events:none !important;
}
.photo-campus.campus-label,
.photo-expand{
  min-height:34px !important;
  height:34px !important;
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
}
.photo-campus.campus-label{
  justify-self:start !important;
  width:auto !important;
  max-width:100% !important;
  padding:.4rem .68rem !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  background:#fff !important;
  color:#0754c5 !important;
  border:1px solid rgba(7,84,197,.12) !important;
  box-shadow:0 8px 18px rgba(4,31,77,.12) !important;
  pointer-events:auto !important;
}
.photo-expand{
  position:static !important;
  justify-self:end !important;
  width:42px !important;
  min-width:42px !important;
  padding:0 !important;
  margin:0 !important;
  background:#fff !important;
  color:#0754c5 !important;
  border:1px solid rgba(7,84,197,.12) !important;
  box-shadow:0 8px 18px rgba(4,31,77,.12) !important;
  opacity:1 !important;
  transform:none !important;
  pointer-events:auto !important;
}
.photo-card:hover .photo-expand{
  background:#fff !important;
  color:#0754c5 !important;
  transform:translateY(-2px) !important;
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:767.98px){
  .photo-topline{
    top:.65rem !important;
    left:.65rem !important;
    right:.65rem !important;
    gap:.5rem !important;
  }
.photo-campus.campus-label,
.photo-expand{
  min-height:32px !important;
  height:32px !important;
}
.photo-expand{
  width:38px !important;
  min-width:38px !important;
}
}
/* iPhone-like blurred glass lightbox background */
.lightbox{
  background:rgba(14,24,42,.28) !important;
  backdrop-filter:blur(22px) saturate(140%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(140%) !important;
}
.lightbox::before{
  content:"";
  position:fixed;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
  pointer-events:none;
}
.lightbox-content{
  position:relative;
  z-index:1;
  background:rgba(255,255,255,.88) !important;
  border:1px solid rgba(255,255,255,.55) !important;
  box-shadow:0 24px 80px rgba(7,24,51,.28) !important;
  backdrop-filter:blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(135%) !important;
}
/* Final gallery card cleanup: zoom control removed */
.photo-topline{
  position:absolute !important;
  top:.8rem !important;
  left:.8rem !important;
  right:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:auto !important;
  z-index:5 !important;
  pointer-events:none !important;
}
.photo-campus.campus-label{
  max-width:none !important;
  pointer-events:auto !important;
}
.photo-expand,
.photo-view{
  display:none !important;
}
.photo-card{
  cursor:pointer;
}
/* Final gallery card presentation */
/* Campus label stays white with blue text on all screen sizes */
.photo-campus.campus-label,
.photo-card:hover .photo-campus.campus-label{
  display:inline-flex !important;
  align-items:center !important;
  gap:.35rem !important;
  min-height:34px !important;
  padding:.4rem .7rem !important;
  border:1px solid rgba(7,84,197,.14) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#0754c5 !important;
  box-shadow:0 8px 18px rgba(4,31,77,.12) !important;
  opacity:1 !important;
  transform:none !important;
}
.photo-campus.campus-label i{
  color:#0754c5 !important;
}
/* Gallery cards are display-only; no click/lightbox behavior */
.photo-card{
  cursor:default !important;
}
.photo-card::after{
  display:none !important;
}
/* Keep desktop grid spacious, then switch to one image per row on small screens */

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:767.98px){
  .photo-grid{
    grid-template-columns:1fr !important;
  }
.photo-card{
  width:100% !important;
}
.photo-media{
  aspect-ratio:16/10 !important;
}
}
/* Remove any remaining lightbox visual remnants */
.lightbox,
.lightbox-content,
.lightbox-stage,
.lightbox-information,
.lightbox-close,
.lightbox-prev,
.lightbox-next{
  display:none !important;
}
/* Final gallery fixes */
.photo-topline{
  position:absolute !important;
  top:.8rem !important;
  left:.8rem !important;
  right:auto !important;
  display:flex !important;
  align-items:center !important;
  z-index:5 !important;
}
.photo-campus.campus-label,
.photo-card:hover .photo-campus.campus-label{
  display:inline-flex !important;
  align-items:center !important;
  gap:.38rem !important;
  min-height:34px !important;
  padding:.42rem .72rem !important;
  border:1px solid rgba(7,84,197,.14) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#0754c5 !important;
  font-size:.66rem !important;
  font-weight:800 !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  box-shadow:0 8px 18px rgba(4,31,77,.12) !important;
}
.photo-campus.campus-label i{
  color:#0754c5 !important;
  font-size:.76rem !important;
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:991.98px){
  .photo-grid{
    grid-template-columns:1fr !important;
  }
.photo-card{
  width:100% !important;
}
.photo-media{
  aspect-ratio:16/9 !important;
}
}

/* Responsive breakpoint: adjusts the related component for this viewport range. */
@media(max-width:575.98px){
  .photo-media{
    aspect-ratio:4/3 !important;
  }
}
