.han-rg-wrap,
.han-rg-wrap * {
    box-sizing: border-box;
}

.han-rg-wrap {
    width: 100%;
    font-family: 'Poppins', Arial, sans-serif;
    --han-rg-columns: 4;
}

.han-rg-head {
    max-width: 760px;
    text-align: left;
}

.han-rg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.han-rg-eyebrow:before {
    content: "";
    width: 42px;
    height: 2px;
    display: inline-block;
    background: currentColor;
    border-radius: 99px;
}

.han-rg-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.03em;
}

.han-rg-desc {
    max-width: 680px;
    margin: 16px 0 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

.han-rg-grid {
    display: grid;
    grid-template-columns: repeat(var(--han-rg-columns), minmax(0, 1fr));
}

.han-rg-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 16px 46px rgba(0, 0, 0, .07);
}

.han-rg-card:after {
    content: "";
    position: absolute;
    inset: auto 18px 0 18px;
    height: 3px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .28s ease, transform .28s ease;
    border-radius: 99px 99px 0 0;
    z-index: 2;
}

.han-rg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 58px rgba(0, 0, 0, .12);
}

.han-rg-card:hover:after {
    opacity: 1;
    transform: translateY(0);
}

.han-rg-card-inner {
    display: block;
    width: 100%;
    border: 0 !important;
    outline: none;
    box-shadow: none !important;
    background: transparent !important;
    color: inherit;
    cursor: pointer;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.han-rg-card-inner:focus-visible {
    outline: 2px solid #c4162a;
    outline-offset: 3px;
}

.han-rg-media {
    position: relative;
    display: flex;
    gap: 8px;
    overflow: hidden;
    background: #f4f4f4;
}

.han-rg-main {
    position: relative;
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.han-rg-main:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.2) 100%);
    opacity: .28;
    pointer-events: none;
}

.han-rg-main img,
.han-rg-thumb img,
.han-rg-lb-thumb img,
.han-rg-stage-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.han-rg-main img {
    transition: transform .55s ease;
}

.han-rg-card:hover .han-rg-main img {
    transform: scale(1.055);
}

.han-rg-thumbs {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.han-rg-thumb,
.han-rg-count {
    position: relative;
    display: block;
    min-height: 0;
    flex: 1 1 0;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(255,255,255,.65);
}

.han-rg-thumb.is-active {
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.86);
}

.han-rg-count {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    min-height: 44px;
}

.han-rg-service {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    text-align: center;
}

.han-rg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px 92px;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(10px);
}

.han-rg-lightbox.is-open {
    display: flex;
}

body.han-rg-no-scroll {
    overflow: hidden !important;
}

.han-rg-lightbox-inner {
    width: min(1360px, 100%);
    height: calc(100vh - 56px);
    max-height: 920px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 14px;
}

.han-rg-stage {
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
}

.han-rg-stage-img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent;
    margin: auto;
    flex: 0 0 auto;
}

.han-rg-lb-thumbs {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
}

.han-rg-lb-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / .82;
    border: 2px solid rgba(255,255,255,.22);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    cursor: pointer;
    padding: 0;
    opacity: .72;
    transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.han-rg-lb-thumb:hover,
.han-rg-lb-thumb.is-active {
    opacity: 1;
    transform: translateX(-2px);
}

.han-rg-close,
.han-rg-nav {
    position: absolute;
    border: 0 !important;
    border-radius: 999px;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    transition: background .2s ease, transform .2s ease;
    z-index: 3;
    font-family: Arial, sans-serif;
}

.han-rg-close:hover,
.han-rg-nav:hover {
    background: rgba(255,255,255,.22) !important;
    transform: scale(1.04);
}

.han-rg-close {
    top: 22px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 34px;
    line-height: 1;
}

.han-rg-nav {
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translateY(-50%);
    font-size: 46px;
    line-height: 1;
}

.han-rg-nav:hover {
    transform: translateY(-50%) scale(1.04);
}

.han-rg-prev {
    left: 24px;
}

.han-rg-next {
    right: 24px;
}

@media (max-width: 1024px) {
    .han-rg-lightbox {
        padding: 76px 24px 28px;
    }

    .han-rg-lightbox-inner {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        height: calc(100vh - 104px);
        max-height: none;
    }

    .han-rg-lb-thumbs {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 4px;
    }

    .han-rg-lb-thumb {
        flex: 0 0 86px;
        width: 86px;
        aspect-ratio: 1 / .78;
    }

    .han-rg-lb-thumb:hover,
    .han-rg-lb-thumb.is-active {
        transform: translateY(-2px);
    }

    .han-rg-nav {
        width: 46px;
        height: 46px;
        font-size: 38px;
    }
}

@media (max-width: 767px) {
    .han-rg-wrap {
        overflow: hidden;
    }

    .han-rg-title {
        font-size: 30px;
    }

    .han-rg-desc {
        font-size: 14px;
        line-height: 1.68;
    }

    .han-rg-thumbs {
        width: 58px !important;
    }

    .han-rg-service {
        font-size: 15px;
    }

    .han-rg-lightbox {
        padding: 72px 12px 18px;
    }

    .han-rg-lightbox-inner {
        height: calc(100dvh - 110px);
    }

    .han-rg-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .han-rg-prev {
        left: 12px;
    }

    .han-rg-next {
        right: 12px;
    }

    .han-rg-nav {
        background: rgba(0,0,0,.42) !important;
    }
}
