.stat-box.v2 {
    width: 65vw;
    margin: 0 auto;
    transform: translateY(-50%);
    background-color: #fff;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
}

.stat-box.v2 .col-md-4:not(:last-child) {
    border-right: 1px solid #ff7900;
}

.stat-box.v2 h4,
.stat-box.v2 p {
    color: rgba(0, 0, 0, 0.7);
}

@media screen and (max-width: 540px) {
    .stat-box.v2 {
        width: 85vw;
        margin: 2rem auto;
        transform: translateY(0);
    }

    .stat-box.v2 .col-md-4:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #ff7900;
        width: 80%;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .principal-info23::before {
        display: none;
    }
}

/* ==========================================================================
   TMU PREMIUM GUEST HOUSE REDESIGN SYSTEM
   ========================================================================== */

/* 1. Hero & Viewport Layout */
.gh-hero {
    position: relative;
    height: 87vh;
    min-height: 550px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gh-hero:hover .gh-hero-img {
    transform: scale(1);
}

.gh-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 16, 85, 0.703) 0%,
        rgba(0, 16, 85, 0.693) 5%,
        rgba(0, 16, 85, 0.35) 25%,
        rgba(0, 16, 85, 0) 100%
    ) !important;
    z-index: 1;
}

.gh-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto 0 0;
    padding: 0 1.5rem;
    text-align: left;
}

.gh-hero-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.8s ease-out;
}

.gh-hero-title {
    font-family: "Kanit", sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
    animation: fadeInUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.gh-hero-title span {
    color: #ff7900 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
    position: relative;
}

.gh-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400 !important;
    line-height: 1.6;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

/* 2. Glassmorphic USP Card (Intersection Overlap, Animated & Reduced Height) */
.gh-usp-container {
    position: relative;
    z-index: 15;
    margin-top: -55px; /* Overlap bottom of hero section */
    width: 85%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gh-usp-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.gh-glass-card {
    background: linear-gradient(
        135deg,
        rgba(0, 16, 85, 0.95) 0%,
        rgba(0, 24, 120, 0.88) 100%
    );
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0.95rem 1.5rem;
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.12);
}

.gh-usp-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.25rem 0.5rem;
    transition: transform 0.3s ease;
}

.gh-usp-item:hover {
    transform: translateY(-2px);
}

.gh-usp-icon-wrap {
    font-size: 2.2rem;
    color: #ff7900 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 121, 0, 0.2);
}

.gh-usp-item:hover .gh-usp-icon-wrap {
    transform: scale(1.1) rotate(3deg);
}

.gh-usp-info h4 {
    font-family: "Kanit", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gh-usp-info p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72) !important;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.gh-usp-col {
    position: relative;
}

@media screen and (min-width: 992px) {
    .gh-usp-col:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 38px;
        width: 1px;
        background: rgba(255, 255, 255, 0.15);
    }
}

/* 3. Section Styling & Grid Components */
.gh-section-padding {
    padding: 1rem 0 4rem 0;
}

.gh-text-primary {
    font-family: "Kanit", sans-serif;
    color: #001055;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.gh-text-primary span {
    color: #ff7900;
}

.gh-section-desc {
    font-size: 1.05rem;
    color: #666666;
    max-width: 750px;
    line-height: 1.7;
}

/* 4. Premium Cards (Below Hero) */
.gh-premium-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 16, 85, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gh-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 16, 85, 0.08);
    border-color: rgba(255, 121, 0, 0.2);
}

.gh-card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.gh-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gh-premium-card:hover .gh-card-img-wrap img {
    transform: scale(1.08);
}

.gh-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 10, 55, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.gh-card-body {
    padding: 2rem;
}

.gh-card-title {
    font-family: "Kanit", sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #001055;
    margin-bottom: 0.75rem;
}

.gh-card-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

/* 5. Amenities Grid & Icons */
.gh-amenities-section {
    background: #f7f9fc;
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 3rem 0;
}

.gh-amenities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

@media screen and (max-width: 1200px) {
    .gh-amenities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 991px) {
    .gh-amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 575px) {
    .gh-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gh-amenity-card {
    background: #ffffff;
    border: 1px solid rgba(0, 16, 85, 0.04);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.gh-amenity-card:hover {
    border-color: rgba(255, 121, 0, 0.3);
    background: #001055;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 16, 85, 0.1);
}

.gh-amenity-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 121, 0, 0.08);
    color: #ff7900;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
}

.gh-amenity-card:hover .gh-amenity-icon-circle {
    background: rgba(255, 255, 255, 0.15);
    color: #ff7900;
    transform: scale(1.1);
}

.gh-amenity-card span {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-top: 0.25rem;
}

/* 6. Tariff Table Section */
.gh-table-container {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 16, 85, 0.08);
    box-shadow: 0 10px 30px rgba(0, 16, 85, 0.04);
    overflow: hidden;
    margin-bottom: 2rem;
}

.gh-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.gh-table th {
    background: #001055;
    color: #ffffff;
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 1px;
    padding: 1.15rem 1.5rem;
    border: none;
}

.gh-table td {
    padding: 1.15rem 1.5rem;
    vertical-align: middle;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(0, 16, 85, 0.06);
    color: #444444;
}

.gh-table tr:last-child td {
    border-bottom: none;
}

.gh-table tr:nth-child(even) td {
    background: rgba(247, 249, 252, 0.5);
}

.gh-price-badge {
    display: inline-block;
    background: rgba(255, 121, 0, 0.1);
    color: #ff7900;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 1rem;
}

.gh-tariff-note {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 4px solid #f87171;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    color: #991b1b;
    font-size: 0.88rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.02);
}

.gh-tariff-note i {
    color: #ef4444;
    font-size: 1.1rem;
    margin-top: 0.15rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* 7. Gallery Filter System */
.gh-gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.gh-tab-btn {
    border: 1px solid rgba(0, 16, 85, 0.12);
    background: #ffffff;
    color: #001055;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gh-tab-btn:hover {
    border-color: #ff7900;
    color: #ff7900;
    transform: translateY(-2px);
}

.gh-tab-btn.active {
    background: #ff7900;
    border-color: #ff7900;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(255, 121, 0, 0.25);
}

.gh-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.gh-gallery-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background: #000000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gh-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gh-gallery-card:hover img {
    transform: scale(1.08) rotate(1deg);
    opacity: 0.75;
}

.gh-gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
    );
    color: #ffffff;
    z-index: 2;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gh-gallery-card:hover .gh-gallery-info {
    transform: translateY(0);
}

.gh-gallery-info h4 {
    font-family: "Kanit", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.35rem 0;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.gh-gallery-info span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ff7900 !important;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gh-gallery-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 121, 0, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    opacity: 0;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gh-gallery-card:hover .gh-gallery-zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 8px 20px rgba(255, 121, 0, 0.45);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 8. Responsiveness Overrides */
@media screen and (max-width: 991px) {
    .gh-hero {
        height: 70vh;
        min-height: 500px;
    }

    .gh-hero-title {
        font-size: 2.8rem;
    }

    .gh-usp-container {
        width: 92%;
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: -3rem auto 2rem auto;
    }

    .gh-glass-card {
        padding: 1.5rem;
    }

    .gh-usp-divider {
        display: none;
    }
}

@media screen and (max-width: 575px) {
    .gh-hero {
        height: 60vh;
        min-height: 400px;
    }

    .gh-hero-title {
        font-size: 2.5rem;
    }

    .gh-hero-subtitle {
        font-size: 0.95rem;
    }

    /* Premium Mobile Glassmorphic USP Card Optimizations (Horizontal Stats Widget) */
    .gh-usp-container {
        margin: -2.5rem auto 1.5rem auto !important;
        width: 94% !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .gh-glass-card {
        padding: 0.35rem 0.25rem !important;
        border-radius: 12px !important;
    }

    .gh-glass-card .row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .gh-usp-col {
        flex: 1 1 0% !important;
        width: 33.333% !important;
        max-width: 33.333% !important;
        padding: 0 4px !important;
    }

    .gh-usp-col:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .gh-usp-item {
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 0.1rem !important;
        padding: 0 !important;
    }

    .gh-usp-item:hover {
        transform: none !important;
    }

    .gh-usp-icon-wrap {
        font-size: 1.15rem !important;
        text-shadow: 0 0 6px rgba(255, 121, 0, 0.2);
    }

    .gh-usp-info {
        text-align: center !important;
    }

    .gh-usp-info h4 {
        font-size: 0.85rem !important;
        margin: 0 0 0.1rem 0 !important;
        font-weight: 600 !important;
        letter-spacing: 0.2px !important;
    }

    .gh-usp-info p {
        font-size: 0.58rem !important;
        line-height: 1.25 !important;
        color: rgba(255, 255, 255, 0.65) !important;
        font-weight: 300 !important;
        letter-spacing: 0.1px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0 !important;
    }

    .gh-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   9. Lightbox Premium Transitions & Animations
   ========================================================================== */
#ghLightbox {
    display: flex !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#ghLightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* Smooth zoom-in when lightbox is opened */
#ghLightbox img {
    transition:
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
    opacity: 0;
}

#ghLightbox.active img {
    transform: scale(1);
    opacity: 1;
}

/* Smooth slide-up when lightbox is opened */
#ghLightbox .lightbox-caption {
    transition:
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
}

#ghLightbox.active .lightbox-caption {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Fade-out state during navigation / image switching */
#ghLightbox.changing img {
    opacity: 0;
    transform: scale(0.95);
}

#ghLightbox.changing .lightbox-caption {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

/* Hover effects for controls */
#ghLightbox .lightbox-prev,
#ghLightbox .lightbox-next,
#ghLightbox .lightbox-close {
    transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Show More Button Container & Button Styling */
.gh-show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.gh-show-more-btn {
    background: #001055;
    color: #ffffff;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 16, 85, 0.15);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gh-show-more-btn:hover {
    background: #ff7900;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 121, 0, 0.25);
}

.gh-show-more-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.gh-show-more-btn:hover i {
    transform: translateY(2px);
}

.gh-show-more-btn.expanded:hover i {
    transform: translateY(-2px);
}

/* ==========================================================================
   10. Mobile View Adjustments & Spatial Optimization (Desktop Untouched)
   ========================================================================== */

/* Section Headings Sizing Uniformity */
.gh-text-primary {
    font-size: 2.25rem;
}

@media screen and (max-width: 768px) {
    .gh-text-primary {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
}

/* Amenities Section Padding & Card Spacing (Mobile) */
@media screen and (max-width: 575px) {
    .gh-amenities-section {
        padding: 2.5rem 1rem !important;
        margin: 1.5rem 0 !important;
        border-radius: 20px !important;
    }

    .gh-amenity-card {
        padding: 1rem 0.5rem !important;
        border-radius: 12px !important;
    }

    .gh-amenity-icon-circle {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .gh-amenity-card span {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
}

/* Responsive Tariffs Table & Prevent Horizontal Scroll Overflow (Mobile) */
@media screen and (max-width: 768px) {
    .gh-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px !important;
    }
}

@media screen and (max-width: 575px) {
    .gh-table th {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.72rem !important;
        letter-spacing: 0.5px !important;
    }

    .gh-table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.78rem !important;
    }

    .gh-price-badge {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.85rem !important;
    }

    .gh-table td small {
        font-size: 0.65rem !important;
        display: block !important; /* Stacks '/ Day' text underneath the price for width compliance */
        margin-top: 2px !important;
    }
}

/* Lightbox Higher Z-index Fix */
#ghLightbox {
    z-index: 100000 !important; /* Forces lightbox above TMU main navigation header */
}

/* Lightbox Controls & Caption Mobile Optimization */
@media screen and (max-width: 575px) {
    #ghLightbox .lightbox-next,
    #ghLightbox .lightbox-prev {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.25rem !important;
        padding: 0 !important;
        top: calc(
            50% + 195px
        ) !important; /* Position arrows below the title/caption */
        bottom: auto !important; /* Reset vertical alignment */
        z-index: 100010 !important; /* Boost stacking index to render above absolute image element */
        transform: none !important;
    }

    #ghLightbox .lightbox-prev {
        left: calc(
            50% - 50px
        ) !important; /* Center symmetric thumb-friendly pairing */
    }

    #ghLightbox .lightbox-next {
        left: calc(50% + 8px) !important;
        right: auto !important;
    }

    #ghLightbox .lightbox-caption {
        top: calc(
            50% + 145px
        ) !important; /* Position title just below the centered image */
        bottom: auto !important; /* Override absolute bottom placement */
        transform: translateX(
            -50%
        ) !important; /* Standard horizontal centering */
        transition:
            opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    #ghLightbox.changing .lightbox-caption {
        opacity: 0 !important;
        transform: translateX(-50%) translateY(8px) !important; /* Clean slide-down fade on change */
    }

    #ghLightbox .lightbox-close {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.15rem !important;
        top: 15px !important;
        left: 15px !important;
        z-index: 100010 !important;
    }
}

/* Mobile-Only Gallery Layout: 2x2 Grid, Scrollable Filter Tabs, & High-End Card Styling */
@media screen and (max-width: 575px) {
    /* 2x2 Grid Layout for mobile (screen <= 575px) */
    .gh-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Scrollable single-line category filter tabs */
    .gh-gallery-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: center !important; /* Center tabs perfectly within mobile screens */
        -webkit-overflow-scrolling: touch !important;
        gap: 0.35rem !important;
        padding: 0.25rem 0.25rem 0.65rem 0.25rem !important;
        margin-bottom: 1.5rem !important;
        scrollbar-width: none !important; /* Firefox */
    }

    .gh-gallery-tabs::-webkit-scrollbar {
        display: none !important; /* Safari & Chrome */
    }

    .gh-tab-btn {
        flex: 0 0 auto !important;
        padding: 0.35rem 0.65rem !important; /* Compact padding to fit all tabs on one line */
        font-size: 0.72rem !important; /* Highly legible micro font size */
    }

    /* Elegant scaled-down grid cards and direct visible info panels */
    .gh-gallery-card {
        border-radius: 12px !important;
    }

    .gh-gallery-info {
        padding: 1rem 0.65rem 0.65rem 0.65rem !important;
        transform: translateY(
            0
        ) !important; /* Always show visual info on mobile (best touch practice) */
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.5) 70%,
            transparent 100%
        ) !important;
    }

    .gh-gallery-info h4 {
        font-size: 0.78rem !important;
        margin-bottom: 0.15rem !important;
        line-height: 1.25 !important;
    }

    .gh-gallery-info span {
        font-size: 0.6rem !important;
        letter-spacing: 0.5px !important;
    }

    .gh-gallery-zoom {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
}
