@import url('/fonts/pretendard/pretendard.css');

.section-gallery-collage-01 {
    --template-image-height-desktop: 810;
    --template-image-height-mobile: 222;
    --template-secondary-image-height-desktop: 650;
    --template-secondary-image-height-mobile: 222;
    position: relative;
    height: var(--template-image-height, 810px);
    overflow: hidden;
    background: #fff;
    font-family: var(--font-pretendard);
}

.section-gallery-collage-01 > img:first-of-type {
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    height: var(--template-image-height, 810px);
    object-fit: cover;
}

.section-gallery-collage-01 > img:last-of-type {
    position: absolute;
    top: calc(80 * var(--template-space-unit, 1px));
    right: calc(80 * var(--template-space-unit, 1px));
    width: calc(50% - calc(160 * var(--template-space-unit, 1px)));
    height: var(--template-secondary-image-height, 650px);
    object-fit: cover;
}

@media (max-width: 860px) {
    .section-gallery-collage-01 { height: var(--template-image-height, 62vw); }
    .section-gallery-collage-01 > img:first-of-type { height: var(--template-image-height, 62vw); }
    .section-gallery-collage-01 > img:last-of-type { top: 5.5vw; right: 5.5vw; width: 39%; height: var(--template-secondary-image-height, 51vw); }
}

@media (max-width: 480px) {
    .section-gallery-collage-01 { display: grid; gap: calc(25 * var(--template-space-unit, 1px)); height: auto; padding: 25px; }
    .section-gallery-collage-01 > img:first-of-type,
    .section-gallery-collage-01 > img:last-of-type { position: static; width: 100%; height: var(--template-image-height, 222px); }
}
