@charset "utf-8";

/***** 공통 css *****/
/*
* {
    outline: red;
}
*/
.nav {
    margin-bottom: 0;
    padding-bottom: 0;
    background-color: #000;
    /* 확인용 */
}

body {
    background-color: #222;
}

h3 a {
    color: #fff;
    font-weight: bold;
    float: right;
}

img {
    width: 100%;
    display: block;
    vertical-align: top;
}

article {
    margin-bottom: 68px;
}

.FTM {
    width: calc((100% - 16px * 5) / 4 *3 + 32px);
    margin: 0 auto;
    position: relative;
}

h2 {
    font-weight: bold;
    background: linear-gradient(to bottom, #ffffff, #999999);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(1rem, 1.5rem, 2rem);
    margin-bottom: 16px;
    text-shadow: 2px 6px 20px rgba(0, 0, 0, 0.3);
}

h3 {
    position: absolute;
    color: #fff;
    right: 0;
    top: 5px;
}

/**/

/*
.video-container {
  position: relative;
  width: 100%;
  height: calc(56.25vw); 
  overflow: hidden;
  display: flex;
  align-items: center; 
  justify-content: center; 
}

.video video {
  width: 100%;        
  height: auto;     
  display: none;
  object-fit: contain; 
}


.video-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 8;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 6px;
}

.nav-dot {
    position: relative;
    width: 40px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.nav-dot .progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: #fff;
    transition: width 0.2s linear;
}
*/

/***** 유튜브 슬라이더 CSS *****/

.video_container {
    position: relative;
    width: 100%;
    height: calc(100vw * 9 / 16);
    background-color: #000;
    overflow: hidden;
}

.yt_slider {
    display: flex;
    transition: all 0.5s ease-in-out;
    height: 100%;
    /* ✅ 부모 높이 따라가게 */
}

.yt_slide {
    width: 100%;
    height: 100%;
    /* ✅ 부모 높이 채움 */
    flex-shrink: 0;
    position: relative;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

.yt_slide iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    /* ✅ 잘림 없이 꽉 채움, 필요시 contain으로 변경 */
}

.video_nav {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0);
    padding: 6px 10px;
    border-radius: 8px;
    z-index: 2;
}

.nav_dot {
    position: relative;
    width: 40px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.nav_dot .progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #fff8;
    transition: width 0.2s linear;
}

/***************************************************/

#contents {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}

.img>img:nth-child(n+2):nth-child(-n+8) {
    display: none;
}

@media (min-width: 768px) {
    article {
        margin: 0;
    }

    .FTM {
        width: calc(100% - 84px);
    }

    h2 {
        margin-top: 100px;
    }

    h3 a {
        display: none;
    }

    .img>img:nth-child(1) {
        display: none;
    }

    #AA {
        background: url(../img/index4_background.png) no-repeat center;
        background-size: cover;
    }

    #AA .img {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        column-gap: 20px
    }

    /**/

    .video_container {
        height: calc(100vh - 53px);
        order: -1;
        background-color: #000;
    }

    .video_nav {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        background: rgba(0, 0, 0, 0.4);
        padding: 6px 10px;
        border-radius: 8px;
        z-index: 2;
    }

    .nav_dot {
        position: relative;
        width: 40px;
        height: 6px;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
        overflow: hidden;
        cursor: pointer;
    }

    .nav_dot .progress {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 0%;
        background-color: #fff;
        transition: width 0.2s linear;
    }

    /**/

    #AA .img>img:nth-child(n+4):nth-child(-n+5) {
        display: block;
        grid-column: span 6;
    }

    .img>p {
        display: block;
        grid-column: span 2;
    }

    #AA .img>img:nth-child(4) {
        order: -1;
    }

    #AA .img>img:nth-child(5) {
        order: 1;
        margin-bottom: 100px;
    }

    #MH {
        background: url(../img/index3_background.png) no-repeat center;
        background-size: cover;
    }

    #MH .img,
    #BH .img {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px
    }

    #MH .img>img:nth-child(n+2):nth-child(-n+3) {
        display: block;
        margin-bottom: 100px;
    }

    #SF {
        background: url(../img/index2_background.png) no-repeat center;
        background-size: cover;
    }

    #SF .img {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 20px
    }

    #SF .img>img:nth-child(n+1):nth-child(-n+3) {
        display: block;
        margin-bottom: 100px;
    }

    #SF .img>img:nth-child(2) {
        order: -1;
    }

    #SF .img>img:nth-child(1) {
        grid-column: span 2
    }

    #BH {
        background: url(../img/index1_background.png) no-repeat center;
        background-size: cover;
    }

    #BH .img>img:nth-child(n+1):nth-child(-n+2) {
        display: block;
        margin-bottom: 100px;
    }
}

@media (min-width: 1024px) {

    .FTM {
        width: calc(100vw - 240px);

    }

    h2 {
        display: none;
    }

    /**/

    .video_container {
        height: calc(100vh - 100px);
        background-color: #000;
        order: -1;
    }

    #AA {}

    #AA .img {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 24px;
        margin: 76px 0;
    }

    #AA .img>img:nth-child(n+4):nth-child(-n+5),
    #AA .img p {
        display: none;
    }

    #AA .img>img:nth-child(n+6):nth-child(-n+8) {
        display: block;
    }


    #MH .img {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 24px;
        margin: 76px 0;
    }

    #MH .img>img:nth-child(n+2):nth-child(-n+3) {
        display: none;
    }

    #MH .img>img:nth-child(n+4):nth-child(-n+8) {
        display: block;
    }

    #MH .img>img:nth-child(4) {
        grid-row: span 2;
    }

    #MH .img>img:nth-child(5) {
        grid-column: span 2;
    }

    #MH .img>img:nth-child(6) {
        grid-row: span 2;
    }

    #SF .img {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 24px;
        margin: 76px 0;
    }

    #SF .img>img {
        margin-bottom: 0;
    }

    #SF .img>img:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    #SF .img>img:nth-child(2) {
        grid-row: span 2;
    }

    #SF .img>img:nth-child(3) {
        grid-row: span 2;
    }

    #BH .img {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 24px;
        margin: 76px 0;
    }

    #BH .img>img:nth-child(n+1):nth-child(-n+4) {
        display: block;
        margin-bottom: 0;
    }

    #BH .img>img:nth-child(1) {
        height: 100%;
        grid-column: span 2;
        grid-row: span 2;
    }

    #BH .img>img:nth-child(2) {
        width: 100%;
        height: 100%;
    }

    #BH .img>img:nth-child(3) {
        width: 100%;
        height: 100%;
    }

    #BH .img>img:nth-child(4) {
        grid-column: span 2;
    }
}