/* ==========================================================================
   AcademicLab — Home Page Styles
   Covers: hero, PI card, research grid, publications list, news grid.
   Also includes styles for the three alternate home layouts:
     - Editorial  (template-home-editorial.php)
     - Gallery    (template-home-gallery.php)
     - Prestige   (template-home-prestige.php)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.al-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.al-hero__video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.al-hero__video-bg iframe,
.al-hero__video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.al-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.al-hero__content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
    color: #fff;
}

.al-hero__title {
    font-family: var(--font-display) !important;
    font-size: clamp(2.5rem, 6vw, 5rem) !important;
    text-transform: uppercase;
    color: #fff !important;
    margin: 0 0 1.25rem !important;
    line-height: .92;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.al-hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.7;
    margin: 0 0 2.5rem !important;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.al-hero__cta {
    display: inline-block;
    background: var(--uh-red);
    color: #fff !important;
    padding: 15px 40px;
    font-family: var(--font-display);
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: background .2s, transform .2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.al-hero__cta:hover {
    background: var(--uh-gold);
    transform: translateY(-2px);
}

/* Slideshow */
.al-hero--slideshow .al-hero__slide {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
}

.al-hero--slideshow .al-hero__slide.active {
    opacity: 1;
}

@keyframes al-kenburns {
    0%   { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.al-hero--slideshow .al-hero__slide.active {
    animation: al-kenburns 8s ease forwards;
}

/* --------------------------------------------------------------------------
   2. PI card
   -------------------------------------------------------------------------- */

.al-home-pi-section {
    background: var(--uh-slate);
    padding: 0;
}

.al-home-pi-card {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    padding: 3rem 2rem;
    gap: 3rem;
}

.al-home-pi-card__photo { flex-shrink: 0; }

.al-home-pi-card__photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--uh-gold);
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.al-home-pi-card__photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 5px solid var(--uh-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.al-home-pi-card__photo-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, .4);
}

.al-home-pi-card__eyebrow {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--uh-gold);
    font-weight: 700;
    display: block;
    margin-bottom: .35rem;
}

.al-home-pi-card__name {
    font-family: var(--font-display) !important;
    text-transform: uppercase;
    color: #fff !important;
    font-size: 1.8rem !important;
    margin: 0 0 .25rem !important;
}

.al-home-pi-card__title {
    color: rgba(255, 255, 255, .7);
    font-size: .95rem;
    margin: .1rem 0 .75rem !important;
}

.al-home-pi-card__bio {
    color: rgba(255, 255, 255, .8);
    font-size: .92rem;
    line-height: 1.75;
    margin: 0 0 1.25rem !important;
    max-width: 560px;
}

.al-home-pi-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.al-home-pi-card__link--email {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    padding: .4rem 0;
    border: none;
    background: none;
}

.al-home-pi-card__link--email:hover { color: #fff; }

.al-home-pi-card__link--email span {
    border-bottom: 1px solid rgba(255, 255, 255, .3);
}

/* Academic profile buttons */
.al-home-pi-card__profiles {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .75rem;
}

.al-pi-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 1rem;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
    transition: all .2s;
    letter-spacing: .3px;
    white-space: nowrap;
}

.al-pi-profile-btn__icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.al-pi-profile-btn--scholar { background: #4285f4; color: #fff; }
.al-pi-profile-btn--scholar:hover { background: #2b6de0; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(66,133,244,.4); }

.al-pi-profile-btn--orcid { background: #a6ce39; color: #fff; }
.al-pi-profile-btn--orcid:hover { background: #8fb82e; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(166,206,57,.4); }

.al-pi-profile-btn--rg { background: #00ccbb; color: #fff; }
.al-pi-profile-btn--rg:hover { background: #00a899; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,204,187,.4); }

.al-pi-profile-btn--linkedin { background: #0077b5; color: #fff; }
.al-pi-profile-btn--linkedin:hover { background: #005e94; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,119,181,.4); }

.al-pi-profile-btn--team { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.al-pi-profile-btn--team:hover { background: var(--uh-gold); border-color: var(--uh-gold); color: #fff; transform: translateY(-2px); }

.al-pi-profile-btn i { font-size: .95rem; }

/* --------------------------------------------------------------------------
   3. Shared section chrome
   -------------------------------------------------------------------------- */

.al-home-section { padding: 4rem 0 0; }
.al-home-section:last-child { padding-bottom: 5rem; }

.al-home-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.al-home-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--dm-border, #f0f0f0);
}

.al-home-section__eyebrow {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--uh-gold);
    font-weight: 700;
    display: block;
    margin-bottom: .3rem;
}

.al-home-section__title {
    font-family: var(--font-display) !important;
    text-transform: uppercase;
    color: var(--dm-heading, var(--uh-slate)) !important;
    font-size: 1.4rem !important;
    margin: 0 !important;
}

.al-home-section__link {
    color: var(--uh-red);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}

.al-home-section__link:hover { color: var(--uh-gold); }

/* --------------------------------------------------------------------------
   4. Research cards grid
   -------------------------------------------------------------------------- */

.al-home-research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.al-home-rcard {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--dm-card-bg, #fff);
    border: 1px solid var(--dm-border, #e8e8e8);
    border-top: 3px solid var(--uh-red);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.al-home-rcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .09);
}

.al-home-rcard__media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: var(--uh-slate);
}

/* Ensure html/embed content fills the card media area cleanly */
.al-home-rcard__media > *,
.al-home-rcard__media img,
.al-home-rcard__media a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform .5s;
}

/* iframes and embeds need absolute fill, not object-fit */
.al-home-rcard__media iframe,
.al-home-rcard__media .al-video-embed,
.al-home-rcard__media .al-video-embed iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    pointer-events: none;
}

/* Custom html/embed content: constrain and center */
.al-home-rcard__media .al-html-embed-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.al-home-rcard__media .al-html-embed-wrap > * {
    max-width: 100%;
    max-height: 100%;
}

.al-home-rcard:hover .al-home-rcard__media img,
.al-home-rcard:hover .al-home-rcard__media a img {
    transform: scale(1.05);
}

.al-home-rcard__icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.al-home-rcard__icon i {
    font-size: 3rem;
    color: rgba(255, 255, 255, .6);
}

.al-home-rcard__tag {
    position: absolute;
    bottom: .6rem;
    left: .75rem;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    padding: .2rem .6rem;
    font-weight: 700;
    z-index: 2;
}

.al-home-rcard__body {
    padding: 1.25rem;
    flex: 1;
}

.al-home-rcard__body h3 {
    font-family: var(--font-display) !important;
    text-transform: uppercase;
    font-size: .92rem !important;
    color: var(--dm-heading, var(--uh-slate)) !important;
    margin: 0 0 .5rem !important;
}

.al-home-rcard__body p {
    font-size: .84rem;
    color: var(--dm-text, #555);
    line-height: 1.55;
    margin: 0;
}

/* --------------------------------------------------------------------------
   5. Publications list
   -------------------------------------------------------------------------- */

.al-home-pubs {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.al-home-pub {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--dm-card-bg, #fff);
    border: 1px solid var(--dm-border, #e8e8e8);
    border-left: 4px solid var(--uh-gold);
    align-items: flex-start;
}

.al-home-pub__year {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--uh-gold);
    font-weight: 700;
    text-align: center;
    line-height: 1;
    flex: 0 0 56px;
}

.al-home-pub__content { flex: 1; min-width: 0; }

.al-home-pub__authors {
    margin: 0 0 .2rem !important;
    font-size: .82rem;
    color: var(--dm-text-muted, #777);
}

.al-home-pub__title {
    margin: 0 0 .2rem !important;
    font-size: .98rem;
    font-weight: 600;
    color: var(--dm-heading, var(--uh-slate));
}

.al-home-pub__journal {
    margin: 0 0 .25rem !important;
    font-size: .85rem;
    color: var(--uh-red);
    font-style: italic;
}

.al-home-pub__doi {
    font-size: .78rem;
    color: var(--dm-text-muted, var(--uh-slate));
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.al-home-pub__doi:hover { color: var(--uh-red); }

/* --------------------------------------------------------------------------
   6. News cards
   -------------------------------------------------------------------------- */

.al-home-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.al-home-news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--dm-card-bg, #fff);
    border: 1px solid var(--dm-border, #e8e8e8);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.al-home-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .09);
}

.al-home-news-card__img {
    height: 190px;
    overflow: hidden;
    background: var(--dm-surface, #f0f0f0);
    flex-shrink: 0;
}

.al-home-news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.al-home-news-card:hover .al-home-news-card__img img { transform: scale(1.05); }

.al-home-news-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.al-home-news-card__img-placeholder i {
    font-size: 2.5rem;
    color: var(--dm-border, #ccc);
}

.al-home-news-card__body { padding: 1.25rem; flex: 1; }

.al-home-news-card__body time {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--uh-gold);
    font-weight: 700;
    display: block;
    margin-bottom: .4rem;
}

.al-home-news-card__body h3 {
    font-family: var(--font-display) !important;
    text-transform: uppercase;
    font-size: .92rem !important;
    color: var(--dm-heading, var(--uh-slate)) !important;
    margin: 0 0 .5rem !important;
}

.al-home-news-card__body p {
    font-size: .84rem;
    color: var(--dm-text, #555);
    line-height: 1.55;
    margin: 0;
}

/* --------------------------------------------------------------------------
   7. Dark mode overrides for home page
   -------------------------------------------------------------------------- */

[data-theme="dark"] .al-home-pub__journal           { color: #ff6b8b; }
[data-theme="dark"] .al-home-pub__doi:hover          { color: #ff6b8b; }
[data-theme="dark"] .al-home-section__link           { color: #ff6b8b; }
[data-theme="dark"] .al-home-section__link:hover     { color: var(--uh-gold); }
[data-theme="dark"] .al-home-rcard:hover,
[data-theme="dark"] .al-home-news-card:hover         { box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }

/* --------------------------------------------------------------------------
   8. Home page responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .al-home-research-grid,
    .al-home-news             { grid-template-columns: 1fr 1fr; }
    .al-home-pi-card          { grid-template-columns: 140px 1fr; gap: 2rem; }
    .al-home-pi-card__photo img,
    .al-home-pi-card__photo-placeholder { width: 140px; height: 140px; }
}

@media (max-width: 600px) {
    .al-home-research-grid,
    .al-home-news             { grid-template-columns: 1fr; }
    .al-home-pi-card          { grid-template-columns: 1fr; text-align: center; }
    .al-home-pi-card__photo   { margin: 0 auto; }
    .al-home-pi-card__bio     { text-align: left !important; }
    .al-home-pi-card__actions { justify-content: center; }
    .al-hero__sub             { max-width: none; }
}

/* ==========================================================================
   ALTERNATE HOME LAYOUT: Editorial  (template-home-editorial.php)
   A magazine/newspaper aesthetic — large featured story on the left,
   stacked smaller items on the right.
   ========================================================================== */

.al-editorial-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--uh-slate);
}

.al-editorial-hero__bg {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
}

.al-editorial-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}

.al-editorial-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.al-editorial-hero__label {
    display: inline-block;
    background: var(--uh-red);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: .3rem .8rem;
    margin-bottom: .85rem;
}

.al-editorial-hero__title {
    font-family: var(--font-display) !important;
    font-size: clamp(2.2rem, 5vw, 4rem) !important;
    color: #fff !important;
    text-transform: uppercase;
    line-height: .95;
    margin: 0 0 1rem !important;
    max-width: 700px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.al-editorial-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
    max-width: 560px;
    line-height: 1.7;
    margin: 0 0 1.75rem !important;
}

.al-editorial-hero__cta {
    display: inline-block;
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.7);
    padding: .7rem 2rem;
    font-family: var(--font-display);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.al-editorial-hero__cta:hover {
    background: var(--uh-gold);
    border-color: var(--uh-gold);
    color: #fff !important;
}

/* Editorial body layout */
.al-editorial-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

.al-editorial-main { min-width: 0; }
.al-editorial-sidebar {}

.al-editorial-section-label {
    font-family: var(--font-display);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--uh-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--dm-border, #e8e8e8);
}

.al-editorial-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--dm-border, #e8e8e8);
}

/* Research feature card */
.al-editorial-feature {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.al-editorial-feature-card {
    position: relative;
    overflow: hidden;
    background: var(--dm-card-bg, #fff);
    border: 1px solid var(--dm-border, #e8e8e8);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s;
}

.al-editorial-feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }

.al-editorial-feature-card__media {
    height: 200px;
    overflow: hidden;
    background: var(--uh-slate);
    position: relative;
}

.al-editorial-feature-card__media img,
.al-editorial-feature-card__media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.al-editorial-feature-card__media iframe {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 0;
}

/* html embed in editorial feature card */
.al-editorial-feature-card__media .al-html-embed-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.al-editorial-feature-card__badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--uh-red);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: .2rem .55rem;
}

.al-editorial-feature-card__body { padding: 1rem 1.25rem 1.25rem; flex: 1; }

.al-editorial-feature-card__title {
    font-family: var(--font-display) !important;
    text-transform: uppercase;
    font-size: .9rem !important;
    color: var(--dm-heading, var(--uh-slate)) !important;
    margin: 0 0 .4rem !important;
}

.al-editorial-feature-card__desc {
    font-size: .83rem;
    color: var(--dm-text, #666);
    line-height: 1.55;
    margin: 0;
}

/* Sidebar pub list */
.al-editorial-pub-list { list-style: none; margin: 0; padding: 0; }

.al-editorial-pub-list li {
    display: flex;
    gap: .75rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--dm-border, #eee);
}

.al-editorial-pub-list li:last-child { border-bottom: none; }

.al-editorial-pub-list__year {
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--uh-gold);
    font-weight: 700;
    flex-shrink: 0;
    min-width: 44px;
}

.al-editorial-pub-list__title {
    font-size: .83rem;
    font-weight: 600;
    color: var(--dm-heading, var(--uh-slate));
    line-height: 1.4;
}

.al-editorial-pub-list__journal {
    font-size: .75rem;
    color: var(--uh-red);
    font-style: italic;
    display: block;
    margin-top: .2rem;
}

/* News strip */
.al-editorial-news-strip { display: flex; flex-direction: column; gap: .85rem; }

.al-editorial-news-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: .85rem;
    text-decoration: none;
    color: inherit;
    align-items: start;
}

.al-editorial-news-item__thumb {
    height: 60px;
    overflow: hidden;
    background: var(--dm-surface, #f0f0f0);
    flex-shrink: 0;
}

.al-editorial-news-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.al-editorial-news-item:hover .al-editorial-news-item__thumb img { transform: scale(1.06); }

.al-editorial-news-item__date {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--uh-gold);
    font-weight: 700;
    display: block;
    margin-bottom: .2rem;
}

.al-editorial-news-item__title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--dm-heading, var(--uh-slate));
    line-height: 1.4;
}

@media (max-width: 960px) {
    .al-editorial-body { grid-template-columns: 1fr; }
    .al-editorial-feature { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ALTERNATE HOME LAYOUT: Gallery  (template-home-gallery.php)
   Immersive photo/research gallery with a mosaic grid and inline stats.
   ========================================================================== */

.al-gallery-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.al-gallery-hero__mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    opacity: .55;
}

.al-gallery-hero__tile {
    overflow: hidden;
    background: var(--uh-slate);
}

.al-gallery-hero__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.al-gallery-hero__tile:hover img { transform: scale(1.08); }

.al-gallery-hero__tile--span-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.al-gallery-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.al-gallery-hero__title {
    font-family: var(--font-display) !important;
    font-size: clamp(3rem, 7vw, 6rem) !important;
    text-transform: uppercase;
    color: #fff !important;
    line-height: .88;
    letter-spacing: 2px;
    text-shadow: 0 4px 24px rgba(0,0,0,.6);
    margin: 0 0 1.5rem !important;
}

.al-gallery-hero__divider {
    width: 60px;
    height: 3px;
    background: var(--uh-gold);
    margin: 0 auto 1.5rem;
}

.al-gallery-hero__sub {
    font-size: clamp(.95rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.85);
    max-width: 560px;
    margin: 0 auto 2.5rem !important;
    line-height: 1.7;
}

.al-gallery-hero__ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.al-gallery-hero__cta {
    display: inline-block;
    padding: .8rem 2.25rem;
    font-family: var(--font-display);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all .2s;
}

.al-gallery-hero__cta--primary {
    background: var(--uh-red);
    color: #fff !important;
}

.al-gallery-hero__cta--primary:hover {
    background: var(--uh-gold);
    color: #fff !important;
}

.al-gallery-hero__cta--ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.6);
}

.al-gallery-hero__cta--ghost:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
}

/* Stats bar */
.al-gallery-stats {
    background: var(--uh-slate);
    padding: 2rem;
}

.al-gallery-stats__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.al-gallery-stat {
    text-align: center;
    color: #fff;
}

.al-gallery-stat__num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--uh-gold);
    line-height: 1;
    display: block;
    margin-bottom: .3rem;
}

.al-gallery-stat__label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,.65);
}

/* Mosaic research grid */
.al-gallery-research {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.al-gallery-research__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.al-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

.al-gallery-mosaic__item {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: var(--uh-slate);
}

.al-gallery-mosaic__item--wide { grid-column: span 2; }
.al-gallery-mosaic__item--tall { grid-row: span 2; }

.al-gallery-mosaic__media {
    position: absolute;
    inset: 0;
}

.al-gallery-mosaic__media img,
.al-gallery-mosaic__media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.al-gallery-mosaic__media iframe {
    position: absolute;
    inset: 0;
    border: 0;
    pointer-events: none;
}

/* html embed in gallery mosaic */
.al-gallery-mosaic__media .al-html-embed-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.al-gallery-mosaic__item:hover .al-gallery-mosaic__media img { transform: scale(1.06); }

.al-gallery-mosaic__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
    transition: opacity .3s;
}

.al-gallery-mosaic__item:hover .al-gallery-mosaic__overlay { opacity: .9; }

.al-gallery-mosaic__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    color: #fff;
    z-index: 1;
}

.al-gallery-mosaic__tag {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--uh-gold);
    font-weight: 700;
    display: block;
    margin-bottom: .3rem;
}

.al-gallery-mosaic__title {
    font-family: var(--font-display) !important;
    text-transform: uppercase;
    font-size: .88rem !important;
    color: #fff !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .al-gallery-mosaic { grid-template-columns: repeat(2, 1fr); }
    .al-gallery-hero__mosaic { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .al-gallery-mosaic,
    .al-gallery-hero__mosaic { grid-template-columns: 1fr; }
    .al-gallery-mosaic__item--wide,
    .al-gallery-mosaic__item--tall { grid-column: auto; grid-row: auto; }
}

/* ==========================================================================
   ALTERNATE HOME LAYOUT: Prestige  (template-home-prestige.php)
   Clean, typographic, high-end academic aesthetic with generous whitespace.
   ========================================================================== */

.al-prestige-hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.al-prestige-hero__left {
    background: var(--uh-slate);
    padding: 5rem 4rem 5rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.al-prestige-hero__right {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.al-prestige-hero__right-bg {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
    transition: transform 8s ease;
}

.al-prestige-hero:hover .al-prestige-hero__right-bg { transform: scale(1.04); }

.al-prestige-hero__right-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(84,88,90,.3), transparent);
}

.al-prestige-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--uh-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.al-prestige-hero__tag::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--uh-gold);
}

.al-prestige-hero__title {
    font-family: var(--font-display) !important;
    font-size: clamp(2.8rem, 4.5vw, 4.5rem) !important;
    text-transform: uppercase;
    color: #fff !important;
    line-height: .9;
    margin: 0 0 1.5rem !important;
    letter-spacing: 1px;
}

.al-prestige-hero__sub {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.75;
    max-width: 420px;
    margin: 0 0 2.5rem !important;
}

.al-prestige-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background: var(--uh-red);
    color: #fff !important;
    padding: .9rem 2rem;
    font-family: var(--font-display);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: background .2s, gap .2s;
    align-self: flex-start;
}

.al-prestige-hero__cta:hover {
    background: var(--uh-gold);
    gap: 1.1rem;
    color: #fff !important;
}

.al-prestige-hero__cta-arrow { font-size: .8rem; }

/* PI sidebar strip (appears in left column below CTA) */
.al-prestige-pi-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.15);
}

.al-prestige-pi-strip__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--uh-gold);
    flex-shrink: 0;
}

.al-prestige-pi-strip__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.al-prestige-pi-strip__name {
    font-family: var(--font-display);
    font-size: .82rem;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: .5px;
}

.al-prestige-pi-strip__title {
    font-size: .75rem;
    color: rgba(255,255,255,.55);
    margin-top: .1rem;
}

/* Prestige body */
.al-prestige-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.al-prestige-section-title {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.al-prestige-section-title__text {
    font-family: var(--font-display) !important;
    font-size: 1.5rem !important;
    text-transform: uppercase;
    color: var(--dm-heading, var(--uh-slate)) !important;
    margin: 0 !important;
    white-space: nowrap;
}

.al-prestige-section-title__line {
    flex: 1;
    height: 1px;
    background: var(--dm-border, #e0e0e0);
}

.al-prestige-section-title__link {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--uh-red);
    text-decoration: none;
    white-space: nowrap;
}

.al-prestige-section-title__link:hover { color: var(--uh-gold); }

/* Research typographic list */
.al-prestige-research-list { list-style: none; margin: 0 0 4rem; padding: 0; }

.al-prestige-research-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--dm-border, #eee);
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.al-prestige-research-item:hover { background: var(--dm-surface, #f9fafb); }

.al-prestige-research-item__num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--dm-border, #e0e0e0);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: color .2s;
}

.al-prestige-research-item:hover .al-prestige-research-item__num { color: var(--uh-red); }

.al-prestige-research-item__icon {
    display: none;
    font-size: 1.1rem;
    color: var(--uh-red);
}

.al-prestige-research-item:hover .al-prestige-research-item__icon { display: block; }

.al-prestige-research-item__title {
    font-family: var(--font-display) !important;
    text-transform: uppercase;
    font-size: 1rem !important;
    color: var(--dm-heading, var(--uh-slate)) !important;
    margin: 0 0 .35rem !important;
}

.al-prestige-research-item__desc {
    font-size: .85rem;
    color: var(--dm-text-muted, #777);
    line-height: 1.55;
    margin: 0;
}

.al-prestige-research-item__tag {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--uh-gold);
    background: rgba(196,149,59,.1);
    padding: .3rem .7rem;
    white-space: nowrap;
    border-radius: 2px;
}

/* Prestige pubs + news two-col */
.al-prestige-lower {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding-top: 1rem;
}

/* Prestige pub row */
.al-prestige-pub-row {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--dm-border, #eee);
    align-items: flex-start;
}

.al-prestige-pub-row__year {
    font-family: var(--font-display);
    font-size: .9rem;
    color: var(--uh-gold);
    font-weight: 700;
    flex-shrink: 0;
    min-width: 42px;
    padding-top: .1rem;
}

.al-prestige-pub-row__title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--dm-heading, var(--uh-slate));
    line-height: 1.4;
    margin-bottom: .2rem;
}

.al-prestige-pub-row__journal {
    font-size: .78rem;
    color: var(--uh-red);
    font-style: italic;
}

/* Prestige news item */
.al-prestige-news-item {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--dm-border, #eee);
    text-decoration: none;
    color: inherit;
    display: block;
}

.al-prestige-news-item__date {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--uh-gold);
    font-weight: 700;
    display: block;
    margin-bottom: .35rem;
}

.al-prestige-news-item__title {
    font-family: var(--font-display);
    font-size: .9rem;
    text-transform: uppercase;
    color: var(--dm-heading, var(--uh-slate));
    transition: color .2s;
}

.al-prestige-news-item:hover .al-prestige-news-item__title { color: var(--uh-red); }

@media (max-width: 960px) {
    .al-prestige-hero { grid-template-columns: 1fr; min-height: auto; }
    .al-prestige-hero__right { min-height: 320px; }
    .al-prestige-hero__left { padding: 4rem 2rem; }
    .al-prestige-lower { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .al-prestige-research-item { grid-template-columns: 40px 1fr; }
    .al-prestige-research-item__tag { display: none; }
}
