/* ==========================================================================
   Blogs / Gallery – modern UI + homoeopathy typography
   ========================================================================== */

.gallery-page {
    --gp-font: Roboto, "Helvetica Neue", Arial, sans-serif;
    --gp-text: #333;
    --gp-muted: #666;
    --gp-heading: #222;
    --gp-body: 16px;
    --gp-lh: 1.6;
    --gp-h3: 22px;
    --gp-green: #00ab36;
    --gp-green-dk: #008f2e;
    --gp-blue: #00a6ec;
    --gp-accent: #e99d0f;
    --gp-white: #fff;
    --gp-surface: #f7f9fb;
    --gp-border: #e8ecef;
    --gp-radius: 12px;
    --gp-radius-sm: 8px;
    --gp-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --gp-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --gp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    overflow-x: hidden;
    background: var(--gp-white);
    font-family: var(--gp-font);
    font-size: var(--gp-body);
    line-height: var(--gp-lh);
    color: var(--gp-text);
}

.gallery-page h1, .gallery-page h2, .gallery-page h3,
.gallery-page h4, .gallery-page h5, .gallery-page h6 {
    display: block !important;
    float: none !important;
    font-family: var(--gp-font) !important;
    font-weight: 500 !important;
    color: var(--gp-heading) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.gallery-page p {
    font-size: var(--gp-body);
    line-height: var(--gp-lh);
    color: var(--gp-text);
    margin-bottom: 12px;
}

.gallery-page img {
    max-width: 100% !important;
    border: 0;
}

.gallery-page .about_content {
    font-size: var(--gp-body) !important;
    line-height: var(--gp-lh) !important;
}

.gallery-page .about_content h3 {
    font-size: var(--gp-h3) !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    margin: 0 0 12px !important;
}

/* layout shell */
.gallery-page .gp-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------------------------ header */
.gallery-page .gp-header {
    background: linear-gradient(180deg, var(--gp-surface) 0%, var(--gp-white) 100%);
    padding: 24px 0 28px;
    border-bottom: 1px solid var(--gp-border);
    overflow: visible;
}

/* breadcrumb left | title or button right – same row */
.gallery-page .gp-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    width: 100%;
}

.gallery-page .gp-header-left {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.gallery-page .gp-header-right {
    flex: 0 0 auto;
    align-self: center;
    text-align: right;
}

.gallery-page .gp-header-bar--listing .gp-header-left .gp-breadcrumb {
    margin-bottom: 0;
}

.gallery-page .gp-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gp-muted);
}

.gallery-page .gp-breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.gallery-page .gp-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    color: #bbb;
    font-size: 18px;
    line-height: 1;
}

.gallery-page .gp-breadcrumb a {
    color: var(--gp-green);
    text-decoration: none;
    transition: color var(--gp-transition);
}

.gallery-page .gp-breadcrumb a:hover {
    color: var(--gp-green-dk);
}

.gallery-page .gp-breadcrumb .active {
    color: var(--gp-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .gallery-page .gp-breadcrumb .active {
        max-width: 420px;
    }
}

.gallery-page .gp-page-title {
    font-size: clamp(22px, 3.5vw, 28px) !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
    overflow: visible;
    word-wrap: break-word;
}

.gallery-page .gp-header-right .gp-page-title {
    text-align: right;
    white-space: nowrap;
}

.gallery-page .gp-header-right .gp-btn-outline {
    white-space: nowrap;
    margin: 0;
}

/* ---------------------------------------------------------------- featured */
.gallery-page .gp-featured {
    padding: 36px 0 48px;
    background: var(--gp-white);
}

.gallery-page .gp-featured-box {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--gp-white);
    border-radius: var(--gp-radius);
    overflow: hidden;
    border: 1px solid var(--gp-border);
    box-shadow: var(--gp-shadow-lg);
    transition: box-shadow var(--gp-transition);
}

.gallery-page .gp-featured-box:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
    .gallery-page .gp-featured-box {
        grid-template-columns: 1fr 1fr;
        min-height: 340px;
    }
}

.gallery-page .gp-featured-content {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
}

@media (min-width: 768px) {
    .gallery-page .gp-featured-content {
        order: 1;
        padding: 40px 36px;
    }
}

.gallery-page .gp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gp-green);
    background: rgba(0, 171, 54, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 16px;
    width: fit-content;
}

.gallery-page .gp-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--gp-green);
    border-radius: 50%;
}

.gallery-page .gp-featured-title {
    font-size: clamp(20px, 2.5vw, 26px) !important;
    line-height: 1.35 !important;
    margin: 0 0 14px !important;
}

.gallery-page .gp-featured-text {
    color: var(--gp-muted);
    margin-bottom: 20px;
    font-size: var(--gp-body);
    line-height: var(--gp-lh);
}

.gallery-page .gp-featured-text p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.gallery-page .gp-featured-actions {
    margin-top: auto;
    padding-top: 8px;
}

.gallery-page .gp-featured-actions .gp-btn {
    width: auto;
    min-width: 160px;
}

.gallery-page .gp-featured-visual {
    position: relative;
    min-height: 240px;
    background: #e8edf0;
    order: 1;
    overflow: hidden;
}

@media (min-width: 768px) {
    .gallery-page .gp-featured-visual {
        order: 2;
        min-height: 100%;
    }
}

.gallery-page .gp-featured-visual img {
    width: 100% !important;
    height: 100% !important;
    min-height: 240px;
    object-fit: cover !important;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-page .gp-featured-box:hover .gp-featured-visual img {
    transform: scale(1.04);
}

/* ---------------------------------------------------------------- buttons */
.gallery-page .gp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-family: var(--gp-font);
    font-size: var(--gp-body);
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none !important;
    text-transform: none !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--gp-green) 0%, var(--gp-green-dk) 100%) !important;
    border: none !important;
    border-radius: var(--gp-radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 171, 54, 0.35);
    transition: transform var(--gp-transition), box-shadow var(--gp-transition);
}

.gallery-page .gp-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 171, 54, 0.45);
    text-decoration: none !important;
}

.gallery-page .gp-btn-outline {
    background: var(--gp-white) !important;
    color: var(--gp-text) !important;
    border: 1px solid var(--gp-border) !important;
    box-shadow: none;
    padding: 10px 20px;
    font-size: 15px;
}

.gallery-page .gp-btn-outline:hover {
    color: var(--gp-accent) !important;
    border-color: var(--gp-accent) !important;
    transform: none;
    box-shadow: none;
}

.gallery-page .gp-btn-sm {
    padding: 10px 18px;
    font-size: 15px;
    width: 100%;
}

@media (min-width: 480px) {
    .gallery-page .gp-btn-sm {
        width: auto;
    }
}

/* ------------------------------------------------------------- sections */
.gallery-page .gp-section {
    padding: 48px 0 56px;
    background: var(--gp-surface);
}

.gallery-page .gp-section--white {
    background: var(--gp-white);
}

.gallery-page .gp-section-head {
    margin-bottom: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .gallery-page .gp-section-head {
        text-align: left;
    }
}

.gallery-page .gp-section-title {
    font-size: var(--gp-h3) !important;
    margin: 0 0 8px !important;
    position: relative;
    display: inline-block;
}

.gallery-page .gp-section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--gp-green), var(--gp-blue));
    border-radius: 2px;
    margin-top: 10px;
}

.gallery-page .gp-section-head--center .gp-section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.gallery-page .gp-section-sub {
    font-size: var(--gp-body);
    color: var(--gp-muted);
    margin: 0;
}

/* card grid */
.gallery-page .gp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .gallery-page .gp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-page .gp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.gallery-page .gp-card {
    background: var(--gp-white);
    border-radius: var(--gp-radius);
    overflow: hidden;
    border: 1px solid var(--gp-border);
    box-shadow: var(--gp-shadow);
    transition: transform var(--gp-transition), box-shadow var(--gp-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-page .gp-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--gp-shadow-lg);
}

.gallery-page .gp-card-img {
    position: relative;
    padding-top: 62%;
    overflow: hidden;
    background: #e8edf0;
}

.gallery-page .gp-card-img img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.gallery-page .gp-card:hover .gp-card-img img {
    transform: scale(1.08);
}

.gallery-page .gp-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--gp-transition);
}

.gallery-page .gp-card:hover .gp-card-img::after {
    opacity: 1;
}

.gallery-page .gp-card-body {
    padding: 20px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-page .gp-card-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin: 0 0 10px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-page .gp-card-desc {
    font-size: 15px;
    line-height: var(--gp-lh);
    color: var(--gp-muted);
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-page .gp-card-footer {
    margin-top: auto;
}

/* ---------------------------------------------------------- detail hero */
.gallery-page .gp-detail {
    padding: 36px 0;
    background: var(--gp-white);
}

.gallery-page .gp-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 768px) {
    .gallery-page .gp-detail-grid {
        grid-template-columns: 2fr 3fr;
        gap: 40px;
        align-items: center;
    }
}

.gallery-page .gp-detail-thumb {
    border-radius: var(--gp-radius);
    overflow: hidden;
    box-shadow: var(--gp-shadow-lg);
    border: 1px solid var(--gp-border);
}

.gallery-page .gp-detail-thumb img {
    width: 100% !important;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover !important;
}

.gallery-page .gp-detail-title {
    font-size: clamp(20px, 3vw, 26px) !important;
    line-height: 1.35 !important;
    margin: 0 0 16px !important;
}

.gallery-page .gp-detail-meta {
    color: var(--gp-muted);
    font-size: var(--gp-body);
}

/* prose */
.gallery-page .gp-prose-wrap {
    padding: 40px 0;
    background: var(--gp-white);
    border-top: 1px solid var(--gp-border);
    border-bottom: 1px solid var(--gp-border);
}

.gallery-page .gp-prose {
    /*max-width: 780px;*/
    /*margin: 0 auto;*/
    font-size: var(--gp-body);
    line-height: var(--gp-lh);
    color: var(--gp-text);
    text-align:justify!important;
    word-wrap: break-word;
}

.gallery-page .gp-prose p {
    margin-bottom: 14px;
    text-align: justify!important;
}

.gallery-page .gp-prose img {
    border-radius: var(--gp-radius-sm);
    margin: 16px 0;
    max-width: 100%;
}

.gallery-page .gp-read-more-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--gp-muted);
    font-style: italic;
    display:none!important;
}

/* photo masonry grid */
.gallery-page .gp-photos {
    padding: 48px 0 56px;
    background: var(--gp-surface);
}

.gallery-page .gp-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 576px) {
    .gallery-page .gp-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .gallery-page .gp-photo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

.gallery-page .gp-photo-item {
    position: relative;
    display: block;
    border-radius: var(--gp-radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: #dde4e8;
    box-shadow: var(--gp-shadow);
}

.gallery-page .gp-photo-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.gallery-page .gp-photo-item::before {
    content: "⊕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    color: var(--gp-green);
    font-size: 22px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--gp-transition), transform var(--gp-transition);
    pointer-events: none;
    line-height: 1;
}

.gallery-page .gp-photo-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 171, 54, 0.25);
    opacity: 0;
    transition: opacity var(--gp-transition);
}

.gallery-page .gp-photo-item:hover img {
    transform: scale(1.1);
}

.gallery-page .gp-photo-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-page .gp-photo-item:hover::after {
    opacity: 1;
}

/* category tags (disease) */
.gallery-page .gp-cat-tag {
    display: inline-block;
    font-size: 13px;
    color: var(--gp-blue);
    background: rgba(0, 166, 236, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.gallery-page .gp-cat-tag--sm {
    font-size: 12px;
    margin-bottom: 8px;
}

.gallery-page .gp-categories {
    padding: 0 0 24px;
    background: var(--gp-white);
}

.gallery-page .gp-categories-label {
    font-size: 14px;
    color: var(--gp-muted);
    margin: 0 0 10px;
}

.gallery-page .gp-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-page .gp-cat-pill {
    font-size: 13px;
    padding: 6px 14px;
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: 50px;
    color: var(--gp-text);
}

/* disease content blocks (fassion_contents) */
.gallery-page .gp-disease-contents {
    padding: 40px 0 48px;
    background: var(--gp-surface);
    border-top: 1px solid var(--gp-border);
}

.gallery-page .gp-content-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--gp-white);
    border-radius: var(--gp-radius);
    border: 1px solid var(--gp-border);
    box-shadow: var(--gp-shadow);
}

.gallery-page .gp-content-row:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .gallery-page .gp-content-row {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .gallery-page .gp-content-row--reverse .gp-content-media {
        order: 2;
    }

    .gallery-page .gp-content-row--reverse .gp-content-text {
        order: 1;
    }
}

.gallery-page .gp-content-media {
    border-radius: var(--gp-radius-sm);
    overflow: hidden;
    background: #e8edf0;
}

.gallery-page .gp-content-media img,
.gallery-page .gp-content-media video {
    width: 100% !important;
    display: block;
    max-height: 320px;
    object-fit: cover;
}

.gallery-page .gp-content-text h3 {
    font-size: var(--gp-h3) !important;
    margin: 0 0 12px !important;
}

.gallery-page .gp-content-text p {
    margin: 0;
    color: var(--gp-muted);
}

/* disease YouTube video section */
.gallery-page .gp-yt-section {
    padding: 48px 0 56px;
    background: linear-gradient(180deg, #fff8f0 0%, var(--gp-white) 100%);
    border-top: 1px solid var(--gp-border);
}

.gallery-page .gp-yt-section__head {
    margin-bottom: 28px;
    text-align: center;
}

@media (min-width: 768px) {
    .gallery-page .gp-yt-section__head {
        text-align: left;
    }
}

.gallery-page .gp-yt-section__title {
    margin: 0 0 8px !important;
    font-size: clamp(22px, 3vw, 28px) !important;
    font-weight: 600 !important;
    color: var(--gp-heading) !important;
    position: relative;
    display: inline-block;
}

.gallery-page .gp-yt-section__title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--gp-green), var(--gp-blue));
    border-radius: 2px;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .gallery-page .gp-yt-section__title::after {
        margin-left: 0;
    }
}

.gallery-page .gp-yt-section__sub {
    margin: 10px 0 0;
    font-size: var(--gp-body);
    color: var(--gp-muted);
    line-height: var(--gp-lh);
}

.gallery-page .gp-yt-carousel {
    --gp-yt-gap: 20px;
    position: relative;
}

.gallery-page .gp-yt-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.gallery-page .gp-yt-carousel__track {
    display: flex;
    gap: var(--gp-yt-gap);
    justify-content: flex-start;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-page .gp-yt-slide {
    flex: 0 0 100%;
    min-width: 0;
}

@media (min-width: 576px) {
    .gallery-page .gp-yt-slide {
        flex: 0 0 calc((100% - var(--gp-yt-gap)) / 2);
    }

    .gallery-page .gp-yt-carousel[data-count="1"] .gp-yt-slide {
        flex: 0 0 min(520px, 100%);
        margin: 0;
    }
}

@media (min-width: 992px) {
    .gallery-page .gp-yt-slide {
        flex: 0 0 calc((100% - var(--gp-yt-gap) * 2) / 3);
    }

    .gallery-page .gp-yt-carousel[data-count="1"] .gp-yt-slide {
        flex: 0 0 min(560px, 100%);
        margin: 0;
    }

    .gallery-page .gp-yt-carousel[data-count="2"] .gp-yt-slide {
        flex: 0 0 calc((100% - var(--gp-yt-gap)) / 2);
    }
}

.gallery-page .gp-yt-slide__poster {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.gallery-page .gp-yt-slide__frame {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--gp-radius-sm);
    border: 2px solid #c4a574;
    background: var(--gp-white);
    box-shadow: 0 8px 24px rgba(92, 64, 20, 0.12);
    transition: transform var(--gp-transition), box-shadow var(--gp-transition);
}

.gallery-page .gp-yt-slide__poster:hover .gp-yt-slide__frame {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(92, 64, 20, 0.18);
}

.gallery-page .gp-yt-slide__thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.gallery-page .gp-yt-slide__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
    transition: background var(--gp-transition);
}

.gallery-page .gp-yt-slide__play i {
    font-size: clamp(48px, 8vw, 64px);
    color: #cc181e;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    line-height: 1;
    transition: transform var(--gp-transition);
}

.gallery-page .gp-yt-slide__poster:hover .gp-yt-slide__play {
    background: rgba(0, 0, 0, 0.32);
}

.gallery-page .gp-yt-slide__poster:hover .gp-yt-slide__play i {
    transform: scale(1.08);
}

.gallery-page .gp-yt-slide__label {
    margin: 14px 0 0 !important;
    text-align: left;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1a4d7a !important;
    line-height: 1.35 !important;
}

.gallery-page .gp-yt-carousel__nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-top: 28px;
}

.gallery-page .gp-yt-carousel__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #c4a574;
    background: var(--gp-white);
    color: #6b4f2a;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--gp-transition), color var(--gp-transition), border-color var(--gp-transition);
}

.gallery-page .gp-yt-carousel__btn:hover {
    background: linear-gradient(135deg, var(--gp-green) 0%, var(--gp-green-dk) 100%);
    border-color: var(--gp-green);
    color: var(--gp-white);
}

/* video modal */
html.gp-yt-modal-open,
body.gp-yt-modal-open {
    overflow: hidden !important;
}

.gp-yt-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.gp-yt-modal[hidden] {
    display: none !important;
}

.gp-yt-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 0;
}

.gp-yt-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100dvh - 48px);
    margin: auto;
    background: var(--gp-white);
    border-radius: var(--gp-radius);
    padding: 20px 20px 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    outline: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gp-yt-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--gp-surface);
    font-size: 26px;
    line-height: 1;
    color: var(--gp-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--gp-transition), color var(--gp-transition);
}

.gp-yt-modal__close:hover {
    background: var(--gp-border);
    color: var(--gp-heading);
}

.gp-yt-modal__title {
    margin: 0 48px 14px 0;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 500;
    color: var(--gp-heading);
    line-height: 1.35;
    flex-shrink: 0;
}

.gp-yt-modal__title:empty {
    display: none;
}

.gp-yt-modal__embed {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--gp-radius-sm);
    background: #000;
}

.gp-yt-modal__embed iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

@media (max-width: 575px) {
    .gallery-page .gp-yt-section {
        padding: 36px 0 44px;
    }

    .gallery-page .gp-yt-carousel__btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .gp-yt-modal {
        padding: 12px 10px;
    }

    .gp-yt-modal__dialog {
        padding: 16px 14px 18px;
        border-radius: var(--gp-radius-sm);
    }
}

/* landing page HTML body from editor */
.gallery-page .gp-landing-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--gp-radius-sm);
    margin: 12px 0;
}

.gallery-page .gp-landing-body h1,
.gallery-page .gp-landing-body h2,
.gallery-page .gp-landing-body h3 {
    font-size: var(--gp-h3) !important;
    margin: 1rem 0 0.75rem !important;
}

.gallery-page .gp-landing-body ul,
.gallery-page .gp-landing-body ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

/* empty */
.gallery-page .gp-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--gp-white);
    border: 2px dashed var(--gp-border);
    border-radius: var(--gp-radius);
    color: var(--gp-muted);
    grid-column: 1 / -1;
}

/* fade in */
@keyframes gpFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-page .gp-animate {
    animation: gpFadeUp 0.5s ease forwards;
}

.gallery-page .gp-grid .gp-card:nth-child(1) { animation-delay: 0.05s; }
.gallery-page .gp-grid .gp-card:nth-child(2) { animation-delay: 0.1s; }
.gallery-page .gp-grid .gp-card:nth-child(3) { animation-delay: 0.15s; }
.gallery-page .gp-grid .gp-card:nth-child(4) { animation-delay: 0.2s; }
.gallery-page .gp-grid .gp-card:nth-child(5) { animation-delay: 0.25s; }
.gallery-page .gp-grid .gp-card:nth-child(6) { animation-delay: 0.3s; }

/* tablet */
@media (max-width: 991px) {
    .gallery-page .gp-detail-title,
    .gallery-page .gp-featured-title {
        font-size: 20px !important;
    }
}

/* mobile */
@media (max-width: 767px) {
    .gallery-page .gp-header {
        padding: 18px 0 22px;
    }

    /* listing: keep breadcrumb left + title right on one row */
    .gallery-page .gp-header-bar--listing {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .gallery-page .gp-header-bar--listing .gp-header-right {
        align-self: center;
        order: 0;
    }

    .gallery-page .gp-header-bar--listing .gp-header-left {
        order: 0;
    }

    .gallery-page .gp-header-bar--listing .gp-page-title {
        font-size: 22px !important;
    }

    /* detail page: stack back button below breadcrumb */
    .gallery-page .gp-header-bar:not(.gp-header-bar--listing) {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-page .gp-header-bar:not(.gp-header-bar--listing) .gp-header-right {
        align-self: stretch;
        order: 2;
        text-align: left;
    }

    .gallery-page .gp-header-bar:not(.gp-header-bar--listing) .gp-header-left {
        order: 1;
    }

    .gallery-page .gp-header-right .gp-btn-outline {
        width: 100%;
        text-align: center;
        display: block;
    }

    .gallery-page .gp-breadcrumb .active {
        white-space: normal;
        max-width: 100%;
    }

    .gallery-page .gp-featured {
        padding: 24px 0 32px;
    }

    .gallery-page .gp-featured-content {
        padding: 24px 20px;
    }

    .gallery-page .gp-featured-actions .gp-btn {
        width: 100%;
        min-width: 0;
    }

    .gallery-page .gp-section {
        padding: 32px 0 40px;
    }

    .gallery-page .gp-card-footer .gp-btn-sm {
        width: 100%;
    }
}

/* Landing page */
.gp-landing-banner-wrap .forinnerbanner,
.gp-landing-page .gp-landing-banner-wrap {
    width: 100%;
    overflow: hidden;
}

.gallery-page.gp-landing-page #landingBannerCarousel {
    width: 100%;
    margin: 0;
}

.gallery-page .gp-landing-banner-img,
.gp-landing-banner-wrap .gp-landing-banner-img {
    width: 100%;
    height: clamp(180px, 42vw, 420px);
    min-height: 180px;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-page #landingBannerCarousel .carousel-inner > .item {
    width: 100%;
}

.gallery-page #landingBannerCarousel .carousel-inner > .item > img {
    width: 100%;
}

.gallery-page .gp-detail-grid--solo {
    grid-template-columns: 1fr;
}

.gallery-page .gp-detail-meta--lead p {
    font-size: clamp(15px, 2.5vw, 17px);
    color: var(--gp-text);
}

.gallery-page .gp-landing-actions {
    margin-top: 20px;
}

.gallery-page .gp-landing-actions-mobile .gp-btn {
    display: block;
    width: 100%;
}

.gallery-page .gp-content-row--text-only {
    grid-template-columns: 1fr;
}

.gallery-page .gp-section-text {
    color: var(--gp-muted);
    line-height: var(--gp-lh);
    word-wrap: break-word;
}

.gallery-page .gp-content-media video {
    width: 100%;
    max-height: 320px;
    background: #000;
}

@media (max-width: 767px) {
    .gallery-page.gp-landing-page .gp-landing-banner-img,
    .gp-landing-banner-wrap .gp-landing-banner-img {
        height: clamp(160px, 38vw, 260px);
        min-height: 160px;
    }

    .gallery-page.gp-landing-page .gp-header-bar--listing {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .gallery-page.gp-landing-page .gp-header-bar--listing .gp-header-right {
        width: 100%;
        text-align: left;
    }

    .gallery-page.gp-landing-page .gp-page-title {
        font-size: clamp(18px, 5vw, 22px) !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }

    .gallery-page.gp-landing-page .gp-detail {
        padding: 24px 0;
    }

    .gallery-page.gp-landing-page .gp-detail-grid {
        gap: 20px;
    }

    .gallery-page.gp-landing-page .gp-content-row {
        padding: 16px;
        margin-bottom: 20px;
        gap: 16px;
    }

    .gallery-page.gp-landing-page .gp-content-media img,
    .gallery-page.gp-landing-page .gp-content-media video {
        max-height: 220px;
    }

    .gallery-page.gp-landing-page .gp-prose-wrap {
        padding: 28px 0;
    }

    .gallery-page.gp-landing-page .gp-prose {
        padding: 0 4px;
    }

    .gallery-page.gp-landing-page .gp-disease-contents {
        padding: 28px 0 36px;
    }

    .gallery-page.gp-landing-page .gp-shell {
        padding: 0 16px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .gallery-page .gp-landing-banner-img {
        height: clamp(220px, 35vw, 340px);
    }
}

/* Landing page — seminars */
.gallery-page .gp-seminars {
    padding: 48px 0 56px;
    background: var(--gp-white);
    border-top: 1px solid var(--gp-border);
}

.gallery-page .gp-seminars-title {
    font-size: clamp(22px, 4vw, 28px) !important;
    text-align: center;
    margin: 0 0 32px !important;
    color: var(--gp-heading) !important;
}

.gallery-page .gp-seminar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .gallery-page .gp-seminar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .gallery-page .gp-seminar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.gallery-page .gp-seminar-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    overflow: hidden;
    box-shadow: var(--gp-shadow);
    transition: box-shadow var(--gp-transition), transform var(--gp-transition);
}

.gallery-page .gp-seminar-card:hover {
    box-shadow: var(--gp-shadow-lg);
    transform: translateY(-4px);
}

.gallery-page .gp-seminar-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8edf0;
}

.gallery-page .gp-seminar-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.35s ease;
}

.gallery-page .gp-seminar-card-media:hover img {
    transform: scale(1.05);
}

.gallery-page .gp-seminar-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.gallery-page .gp-seminar-card-title {
    font-size: var(--gp-h3) !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

.gallery-page .gp-seminar-card-title a {
    color: var(--gp-heading) !important;
    text-decoration: none;
}

.gallery-page .gp-seminar-card-title a:hover {
    color: var(--gp-green) !important;
}

.gallery-page .gp-seminar-card-text {
    font-size: 15px;
    color: var(--gp-muted);
    line-height: var(--gp-lh);
    flex: 1;
}

.gallery-page .gp-seminar-card-btn {
    align-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.gallery-page .gp-seminar-arrow {
    font-size: 1.1em;
}

@media (max-width: 767px) {
    .gallery-page .gp-seminars {
        padding: 32px 0 40px;
    }

    .gallery-page .gp-seminars-title {
        margin-bottom: 24px !important;
    }

    .gallery-page .gp-seminar-card-body {
        padding: 16px;
    }

    .gallery-page .gp-seminar-card-btn {
        width: 100%;
        justify-content: center;
    }
}
