:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features {
    display: grid;
    gap: var(--pdp-space-24, 24px);
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features > h3 {
    display: flex;
    align-items: center;
    gap: var(--bj-space-1);
    margin: 0;
    font: 600 var(--pdp-type-subsection-size, var(--bj-type-subsection))/1.5 var(--bj-font-family);
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features > h3 > svg {
    flex: none;
    width: var(--pdp-space-24, 24px);
    height: var(--pdp-space-24, 24px);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pdp-space-24, 24px);
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features figure {
    margin: 0;
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-feature-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    background: #ededed;
    cursor: zoom-in;
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-feature-media img {
    display: block;
    width: 100%;
    height: auto;
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-feature-media--colors img {
    mask-image: linear-gradient(transparent, black 18%, black 82%, transparent),
        linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-composite: intersect;
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-feature-media--corner img {
    position: absolute;
    width: 380.95%;
    max-width: none;
    inset: -134.29% auto auto -27.14%;
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-feature-media--corner::after {
    content: '';
    position: absolute;
    inset: 71.8% auto auto 31.4%;
    width: 25%;
    aspect-ratio: 1;
    border: 1px solid var(--bj-muted);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features figcaption {
    display: grid;
    gap: var(--bj-space-1);
    margin-top: var(--bj-space-2);
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features figcaption > :is(h4, p) {
    margin: 0;
    font-size: var(--bjw-t3-size, var(--bj-type-body));
    line-height: var(--bjw-t3-line, 1.6);
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features figcaption > p {
    color: var(--bj-muted);
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-feature-media--corner img {
    width: 380.95% !important;
    max-width: none !important;
    height: auto;
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features__grid figcaption > h4 {
    display: block;
    font-size: var(--bj-type-body) !important;
    font-weight: var(--bj-type-section-weight, 600);
    line-height: var(--pdp-space-24, 24px) !important;
    margin: 0 0 var(--pdp-space-12, 12px);
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features__grid figcaption { gap: 0; }

@media (max-width: 767px) {
    :is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features,
    :is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-features__grid {
        gap: var(--bj-space-2);
    }
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-options:has(+ .pdp-envelope-features) {
    grid-template-rows: auto;
}

:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-options + .pdp-envelope-features {
    margin-top: calc(var(--bj-space-2) * 3);
}

@media (max-width: 767px) {
:is(#product-detail-description, main[data-slf-detail-page][data-ctx="wedding"]) .pdp-envelope-options + .pdp-envelope-features {
        margin-top: calc(var(--bj-space-2) * 2);
    }
}

/* 일반 청첩장 공통 두 컷 소개의 하위 제목. */
html body.pdp-modern-page .pdp-wedding-editorial #product-detail-description .pdp-envelope-features > h3#pdp-envelope-features-heading {
    font-size: 18px !important;
    line-height: 27px !important;
}
