
/* ================================================================
   TMLC 2027 — GALLERY PAGE
   Uses the same visual language as About / Subjects / Home
   ================================================================ */

.tmlc-gallery-hero {
    position: relative;
    overflow: hidden;
}

.tmlc-gallery-hero::after {
    content: "π  ∑  E=mc²";
    position: absolute;
    right: 6%;
    top: 48%;
    transform: translateY(-50%) rotate(-7deg);
    color: rgba(255, 255, 255, .045);
    font-size: clamp(42px, 7vw, 100px);
    font-weight: 900;
    letter-spacing: .08em;
    pointer-events: none;
}

.tmlc-gallery-2027 {
    padding: 95px 0;
    background: #f7f9fc;
}

.tmlc-gallery-2027 .tmlc-section-heading {
    max-width: 760px;
    margin: 0 auto 44px;
}

.tmlc-gallery-subject-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 42px;
}

.tmlc-gallery-subject {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 21px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(7, 26, 54, .08);
}

.tmlc-gallery-subject .icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    border-radius: 17px;
    font-size: 25px;
}

.tmlc-gallery-subject strong,
.tmlc-gallery-subject span {
    display: block;
}

.tmlc-gallery-subject strong {
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 850;
}

.tmlc-gallery-subject span {
    font-size: 11px;
    line-height: 1.55;
}

.tmlc-gallery-subject.maths {
    color: #fff;
    background: linear-gradient(135deg, #0b72c9, #084c8c);
}

.tmlc-gallery-subject.maths .icon {
    color: #071a36;
    background: #ffd338;
}

.tmlc-gallery-subject.maths span {
    color: rgba(255, 255, 255, .72);
}

.tmlc-gallery-subject.physics {
    color: #fff;
    background: linear-gradient(135deg, #6542c5, #3c2b85);
}

.tmlc-gallery-subject.physics .icon {
    color: #6542c5;
    background: #fff;
}

.tmlc-gallery-subject.physics span {
    color: rgba(255, 255, 255, .72);
}

.tmlc-gallery-subject.success {
    color: #071a36;
    background: linear-gradient(135deg, #ffd338, #f0b900);
}

.tmlc-gallery-subject.success .icon {
    color: #071a36;
    background: rgba(255, 255, 255, .52);
}

.tmlc-gallery-subject.success span {
    color: rgba(7, 26, 54, .67);
}

.tmlc-gallery-grid {
    row-gap: 24px;
}

.tmlc-gallery-grid > [class*="col-"] {
    margin-bottom: 0 !important;
}

.tmlc-gallery-grid .photo-gallery {
    height: 100%;
    overflow: hidden;
    padding-bottom: 18px;
    border: 1px solid #dfe7ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 26, 54, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tmlc-gallery-grid .photo-gallery:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(7, 26, 54, .12);
}

.tmlc-gallery-grid .photo-gallery > a {
    display: block;
    overflow: hidden;
}

.tmlc-gallery-grid .image-anime {
    height: 275px;
    margin: 0;
    overflow: hidden;
    background: #edf2f7;
}

.tmlc-gallery-grid .image-anime img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.tmlc-gallery-grid .photo-gallery:hover .image-anime img {
    transform: scale(1.045);
}

.tmlc-gallery-grid .photo-gallery > .pt-2 {
    padding: 17px 18px 0 !important;
}

.tmlc-gallery-grid .photo-gallery strong {
    display: block;
    color: #071a36;
    font-size: 14px;
    font-weight: 850;
}

.tmlc-gallery-grid .photo-gallery p {
    margin-top: 5px;
    color: #6e7b8d !important;
    line-height: 1.55;
}

@media (max-width: 991px) {

    .tmlc-gallery-subject-strip {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 767px) {

    .tmlc-gallery-2027 {
        padding: 65px 0;
    }

    .tmlc-gallery-grid .image-anime {
        height: 200px;
    }

}

@media (max-width: 575px) {

    .tmlc-gallery-grid > .col-6 {
        width: 100%;
    }

    .tmlc-gallery-grid .image-anime {
        height: 245px;
    }

}
