/* Scoped to .rf-page to prevent global conflicts */
.rf-page {
    width: 100%;
    background: #ffffff;
}

.rf-page,
.rf-page * {
    box-sizing: border-box;
}

.rf-page .rf-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

.rf-page .rf-page-heading {
    padding-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d9d9d9;
    margin-bottom: 30px;
}

.rf-page .rf-section-label {
    color: #F28C28;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 500;
}

.rf-page .rf-title-cn {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: #333333;
}

.rf-page .rf-title-cn .rf-title-en {
    font-size: 22px;
    color: #777777;
    font-weight: 500;
    margin-left: 8px;
}

.rf-page .rf-facility {
    padding-top: 30px;
    padding-bottom: 40px;
}

.rf-page .rf-facility-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 600;
    color: #005A9C;
}

.rf-page .rf-gallery {
    display: grid;
    grid-template-columns: minmax(0, max-content) 92px;
    justify-content: start;
    gap: 18px;
    align-items: start;
}

.rf-page .rf-facility-reverse .rf-gallery {
    grid-template-columns: 92px minmax(0, max-content);
}

.rf-page .rf-main-image {
    max-width: 100%;
    width: fit-content;
    height: auto;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 4px;
    margin: 0;
}

.rf-page .rf-main-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity .3s ease, transform .4s ease;
}

.rf-page .rf-main-img.rf-image-switching {
    opacity: .35;
}

.rf-page .rf-thumbnails {
    display: grid;
    grid-auto-rows: 70px;
    gap: 10px;
}

.rf-page .rf-thumbnail {
    display: inline-block;
    width: 90px;
    height: 70px;
    aspect-ratio: 9 / 7;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    outline: none;
}

.rf-page .rf-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rf-page .rf-thumbnail.rf-thumbnail-active {
    border: 2px solid #F28C28;
}

.rf-page .rf-description {
    margin-top: 24px;
    padding: 12px 16px;
    border-left: 2px solid #F28C28;
    background: #fafafa;
}

.rf-page .rf-description p {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.9;
    color: #555555;
}

.rf-page .rf-description p:last-child {
    margin-bottom: 0;
}

/* Lazy image fade-in */
.rf-page .rf-lazy-image {
    opacity: 0;
    transition: opacity .45s ease;
}

.rf-page .rf-lazy-image.rf-image-loaded {
    opacity: 1;
}

/* Reveal on scroll */
.rf-page .rf-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

.rf-page .rf-reveal.rf-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .rf-page .rf-gallery,
    .rf-page .rf-facility-reverse .rf-gallery {
        display: block;
    }

    .rf-page .rf-thumbnails {
        display: flex;
        gap: 10px;
        margin-top: 12px;
    }

    .rf-page .rf-thumbnail {
        width: calc((100% - 20px) / 3);
        height: auto;
        aspect-ratio: 4 / 3;
    }
}