@import "https://hangeul.pstatic.net/hangeul_static/css/nanum-square-neo.css";
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

#bf_photo {
    font-family: 'NanumSquareNeo', sans-serif;
}

#bf_photo section {
    /*height: 100lvh;*/
    overflow-y: hidden;
}

#photo-changed-background {
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: -1;
    transition: 0.5s all;
}

.photo-show-mobile {
    display: none;
}

#photo-btn-donate-fix-mobile {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    gap: 12px;
}

.photo-btn-donate-mobile-leaf{
    width: 16px;
    height: 20px;
    border-radius: 999px 0 999px 0;
    background-color: #FFA400;
    transform: rotate(14deg);
}

#photo-btn-donate-fix {
    width: 144px;
    height: auto;
    display: block;
    position: fixed;
    right: 2%;
    top: 10%;
    z-index: 50;
    transition: 0.3s all;
    border: 1px solid #000;
}

#photo-btn-donate-fix:hover {
    box-shadow: 8px 8px 0 0 #FFA400;
}


/* === Radio + Label voting structure === */
.photo-option {
    position: relative;
    display: inline-block;
}

.photo-radio {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
}

.photo-option-label {
    display: block;
    cursor: pointer;
}

/* Focus ring for keyboard users */
.photo-radio:focus + .photo-option-label .photo-vote-img {
    outline: 3px solid #004DFF;
    outline-offset: 4px;
}

/* Selected state via :checked */
.photo-radio:checked + .photo-option-label .photo-vote-img {
    outline: 4px solid #FFA400;
    outline-offset: 4px;
}

.poll .photo-vote-card {
    position: relative;
    display: inline-block
}

.poll .photo-vote-img {
    cursor: pointer;
    display: block;

}

.poll .photo-vote-img.is-selected {
    outline: 4px solid #FFA400;
    outline-offset: 4px
}

.poll .vote-badge {
    position: absolute;
    inset: 0;
    font-size: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    color: #ffa400;
    /*border-radius: 12px;*/
    pointer-events: none;
    /*font-family: 'NanumSquareNeoExtraBold', sans-serif;*/
    font-family: "Bebas Neue", sans-serif;

}

.photo-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: 0.35s all;
}

.photo-logos {
    position: relative;
}

#photo-logo-black {
    display: none;
}

#photo-logo-mobile {
    width: 32px;
    height: 32px;
    display: none;
}


.photo-frame-title {
    color: #000;
    font-size: 56px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.photo-text-default {
    color: #000;
    font-size: 40px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.6;
    text-align: center;
    z-index: 5;
}

.photo-text-default-white {
    color: #fff;
}

.photo-text-highlight {
    background-color: #FFA400;
    display: inline-block;
    padding: 2px 12px;
    border-radius: 2px;
    font-family: 'NanumSquareNeoExtraBold', sans-serif;
}

.photo-text-body {
    font-size: 20px;
    text-align: center;
    line-height: 180%;
    font-family: 'NanumSquareNeoBold', sans-serif;
}

.photo-text-body-caption {
    font-size: 16px;
}

.photo-container {
    width: 100%;
    max-width: 1280px;
    height: 100%;
    margin: auto;
    /*padding: 120px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 64px;
}

.photo-vote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    row-gap: 32px;
}

.photo-vote-child {
    border-radius: 8px;
    object-fit: cover;
}


/* vote -button*/
.photo-vote-btn {
    background-color: #FFA400;
    font-size: 20px;
    font-weight: 900;
    padding: 14px 24px;
    border-radius: 999px;
    font-family: 'NanumSquareNeoExtraBold', sans-serif;
    color: #000;
    grid-column: 1 / 3;
    width: fit-content;
    margin: auto;
}

/** frame title style **/

.photo-frame {
    border: 3px solid #000;
    position: relative;
    width: fit-content;
    padding: 16px 24px;
    display: block;
    background-color: #fff;
}

.frame-point {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 3px solid #000;
    background-color: #fff;
}

.frame-point-1 {
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

.frame-point-2 {
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
}

.frame-point-3 {
    bottom: 0;
    left: 0;
    transform: translate(-50%, 50%);
}

.frame-point-4 {
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%);
}

/* section - 0*/

#photo-section-0 {
    background-color: #000;
    position: relative;
}

.ai-caption{
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 14px;
}
/* section - 1*/
#photo-section-1 {
    position: relative;
    /*background: linear-gradient(to bottom, #000000 50%, #004DFF 100%);}*/
}

.photo-parallex {
    position: absolute;
    bottom: 0;
    width: 100%;
    transition: 0.2s linear;
}

/* section - 2*/

#photo-section-2 {
    /*background-color: #000;*/
}

#photo-section-6{
    position: relative;
}


/* section - 8*/
#photo-section-8 {
    position: relative;
    padding: 64px 0;
}

#photo-bg-item-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 320px;
}

#photo-bg-item-2 {
    position: absolute;
    top: 0;
    left: 0;
    height: 64px;
}

#photo-bg-item-3 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 320px;
}

#photo-section-4{
    position: relative;
}
#photo-section-4 .photo-vote-grid img {
    border: 2px solid #000;
}

/* section - 5*/

#photo-section-5 {
    padding: 128px 0;
}

.photo-interview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 48px;
    /*overflow-y: hidden;*/
}

.photo-interview-mobile-grid {
    display: none;
}

.photo-interview-frame {
    position: relative;
}

.photo-interview-item {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    transition: 1s ease;
}

.photo-interview-answer {
    color: #fff;
    font-family: 'NanumSquareNeoBold', sans-serif;
    font-size: 16px;
    background-color: #FFA400;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    z-index: 90;
    border-radius: 16px;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: 1s all;
    position: relative;
    text-align: center;
}

.photo-interview-answer:after {
    content: "";
    width: 16px;
    height: 28px;
    transform: rotate(45deg) translate(-100%, -50%);
    position: absolute;
    left: 50%;
    top: 100%;
    z-index: 99;
    background-color: inherit;
}

.photo-interview-answer-orange {
    background-color: darkorange;
}


#photo-interview-item-1 {
    transform: translateY(50%);
}

#photo-interview-item-2 {
    transform: translateY(55%);
}

#photo-interview-item-3 {
    transform: translateY(58%);
}

#photo-interview-item-4 {
    transform: translateY(52%);
}


/* ==== Auto flip (image1 ↔ image2) ==== */
.photo-flip-child {
    display: inline-block;
    perspective: 1000px;
    /*transform: scale(0.9);*/
}

.photo-flip-child .flip-inner {
    position: relative;
    transform-style: preserve-3d;
    animation: flipCycle 6s infinite ease-in-out;
}

.photo-flip-child img {
    width: 400px;
    height: auto;
    border: 24px solid #ffffff;
    border-radius: 48px;
    aspect-ratio: 3 / 4;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}


.photo-flip-child .flip-face {
    backface-visibility: hidden;
    border: 2px solid #000;
}

.photo-flip-child .flip-front {
    display: block; /* keeps natural size of the container */
}

.photo-flip-child .flip-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
}

@keyframes flipCycle {
    0% {
        transform: rotateY(0deg);
    }
    /* 0~20% 사이에 빠르게 뒤집힘 */
    20% {
        transform: rotateY(180deg);
    }

    /* 20~50% 동안 그대로 멈춤 */
    50% {
        transform: rotateY(180deg);
    }

    /* 50~70% 사이에 다시 뒤집힘 */
    70% {
        transform: rotateY(360deg);
    }

    /* 70~100% 동안 그대로 멈춤 */
    100% {
        transform: rotateY(360deg);
    }
}


/* Accessibility: reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
    .photo-flip-child .flip-inner {
        animation: none;
    }
}

/* section - 7*/

/* section 7용 캔버스 레이어 */
.leaves-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* 섹션이 캔버스를 품도록 (이미 있다면 생략 가능) */
#photo-section-7 {
    position: relative;
    overflow: hidden;
}

#photo-section-7 h3 {
    font-size: 56px;
    line-height: 1.4;
}

/* section - 9*/

#photo-section-9{
    padding: 128px 0;
}

#photo-section-9 h3 {
    font-size: 56px;
    line-height: 1.4;
}

#photo-section-9 .photo-frame{
    transition: 0.3s all;
}

#photo-section-9 .photo-container .photo-frame:hover {
    background-color: #FFA400;
}

/* section - 8*/
.photo-video-title img {
    margin-bottom: 24px;
}

.photo-video-title h3 {
    text-align: center;
    font-size: 24px;
    color: #000;
}

.photo-video-example {
    width: 1280px;
    height: auto;
}

.photo-video-example iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* section - 10*/

.photo-outlinks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.photo-outlinks-item {
    display: block;
}

.photo-outlinks a {
    transition: 0.3s all;
}

.photo-outlinks a:hover {
    transform: translateY(-8px);
}

/* media query*/
@media only screen and (max-width: 1920px) {
    .photo-video-example {
        width: 1080px;
        height: auto;
    }
}

@media only screen and (max-width: 1680px) {

    .photo-video-example {
        width: 854px;
        height: auto;
    }

    #photo-section-9 h3 {
        font-size: 48px;
        line-height: 1.4;
    }
}

@media only screen and (max-width: 1536px) {
    .photo-container {
        max-width: 1080px;
        gap: 48px;
    }

    #photo-btn-donate-fix {
        width: 128px;
        top: 12%;
    }

    .photo-frame-title {
        font-size: 32px;
    }

    .photo-text-default {
        font-size: 28px;
    }

    .photo-flip-child img {
        width: 320px;
        height: auto;
        border: 16px solid #ffffff;
        border-radius: 32px;
    }

    #photo-section-7 h3 {
        font-size: 40px;
        line-height: 1.4;
    }

    .photo-video-title img {
        width: 320px;
    }

    .photo-video-title h3 {
        font-size: 18px;
    }

    .photo-video-example {
        width: 640px;
    }

    #photo-bg-item-1 {
        width: 200px;
    }

    #photo-bg-item-3 {
        width: 200px;
    }

    #photo-section-9 h3 {
        font-size: 32px;
        line-height: 1.4;
    }

    #photo-section-9 .photo-container {
        gap: 24px;
    }

    .photo-text-body {
        font-size: 14px;
    }

    .photo-frame h4 {
        font-size: 24px;
    }

    .photo-vote-grid {
        gap: 32px;
    }

    .photo-vote-child {
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .photo-interview-answer {
        font-size: 14px;
    }

}

@media only screen and (max-width: 1024px) {
    .photo-container {
        max-width: 860px;
        gap: 32px;
    }

    .photo-outlinks {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-vote-child {
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }

    .photo-interview-grid {
        display: none;
    }

    .photo-interview-mobile-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        padding: 24px;
        background-color: #fff;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
        border-radius: 4px;
        width: 90%;
        transform: rotate(1deg);
    }

    .photo-interview-mobile-frame {
        display: flex;
        gap: 8px;
    }

    .photo-interview-mobile-answer {
        flex: 1;
    }

    .photo-interview-mobile-frame-reverse {
        flex-direction: row-reverse;
    }

    .photo-interview-mobile-answer {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .photo-interview-mobile-item {
        width: 400px;
    }

    .photo-interview-mobile-answer p {
        text-align: center;
        background-color: #ffa400;
        padding: 16px;
        border-radius: 8px;
        font-size: 16px;
        color: #fff;
        font-family: 'NanumSquareNeoExtraBold', sans-serif;
    }

    .photo-interview-mobile-answer-orange p {
        background-color: orangered;
    }
}

@media only screen and (max-width: 820px) {
    .photo-container {
        max-width: 720px;
        gap: 32px;
    }

    #photo-btn-donate-fix {
        display: none;
    }

    .photo-interview-mobile-item {
        width: 320px;
    }

    .photo-interview-mobile-answer p {
        font-size: 14px;
    }

    #photo-btn-donate-fix-mobile {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 55;
        padding: 16px 0;
        justify-content: center;
        align-items: center;
        background-color: #f1f1f1;
        font-family: 'NanumSquareNeoExtraBold', sans-serif;
        font-size: 16px;
        pointer-events: visible;
        transition: 0.3s all;
    }
}

@media only screen and (max-width: 430px) {
    .photo-header p{
        font-size: 12px;
    }
    .photo-show-mobile {
        display: block;
    }

    #photo-logo-white {
        display: none;
    }

    #photo-logo-black {
        display: none;
    }

    #photo-logo-mobile {
        display: block;
    }

    .photo-container {
        max-width: 400px;
        gap: 16px;
    }


    .photo-frame-title {
        font-size: 20px;
    }

    .photo-text-default {
        font-size: 20px;
    }

    #photo-section-7 h3 {
        font-size: 24px;
        line-height: 1.4;
    }

    #photo-section-9 h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    .photo-text-body {
        font-size: 14px;
    }

    .photo-vote-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .photo-vote-child {
        aspect-ratio: 2 / 3;
        object-fit: cover;
    }

    .photo-interview-mobile-grid {
        transform: rotate(0);
    }

    .photo-interview-mobile-frame {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .photo-interview-mobile-frame-reverse, .photo-interview-mobile-frame {
        flex-direction: column-reverse;
    }

    .photo-vote-btn {
        font-size: 16px;
        padding: 12px 24px;
    }

    .photo-flip-child {
        margin-top: 24px;
    }

    .photo-flip-child img {
        width: 264px;
    }

    .photo-video-title img {
        margin-bottom: 0;
    }

    .photo-video-example {
        width: 320px;
    }

    #photo-bg-item-1, #photo-bg-item-2, #photo-bg-item-3 {
        display: none;
    }

    .photo-outlinks {
        gap: 8px;
    }

}

@media only screen and (max-width: 390px) {
    .photo-container {
        max-width: 320px;
        gap: 16px;
    }


    .photo-frame-title {
        font-size: 16px;
    }

    .photo-text-default {
        font-size: 16px;
    }

    #photo-section-7 h3 {
        font-size: 24px;
        line-height: 1.6;
    }

    #photo-section-9 h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    .photo-text-body {
        font-size: 14px;
    }

    .photo-interview-mobile-answer p {
        font-size: 13px;
        padding: 8px 12px;
    }

    .photo-interview-mobile-grid {
        width: 100%;
        gap: 24px;
    }

}