@import url('sub.css'); 

.market {position:relative; }
.market .list {display:grid; gap:30px; grid-template-columns:repeat(3, 1fr); grid-auto-rows:repeat(3, minmax(100px, auto));}
.market .list figure {position:relative; overflow:hidden; }
.market .list figure:before {position:absolute; content:""; width:100%; height:100%; left:0; top:0; display:block; background-color:var(--black); z-index:2;}
.market .list figure h4 {position:absolute; left:0; top:0; display:flex; width:100%; height:100%; align-items:center; justify-content:center; text-align:center; color:var(--white); font-size:1.75rem; font-weight:500; z-index:5;}
.market .list figure img {max-width:100%; transition:all 0.5s ease-out;}
.market .list figure:hover img {transform:scale(1.15);}
.market .list figure img.mobile {display:none;}

.market .list figure:first-child {grid-column: 1 / 2; grid-row: 1 / 2;}
.market .list figure:nth-child(2) {grid-column: 2 / 4; grid-row: 1 / 2;}
.market .list figure:first-child:before {background-color:rgba(11,112,171,0.3);}
.market .list figure:nth-child(2):before {background-color:rgba(38,68,11,0.4);}
.market .list figure:nth-child(3):before {background-color:rgba(215,69,42,0.3);}
.market .list figure:nth-child(4):before {background-color:rgba(3,4,4,0.3);}
.market .list figure:nth-child(5):before {background-color:rgba(2,99,161,0.5);}

.market .listTwo {width:!00%; display:flex; flex-wrap:wrap; justify-content:space-between; margin-top:30px;}
.market .listTwo figure {width:calc((100% - 30px) / 2); position:relative; overflow:hidden;}
.market .listTwo figure:before {position:absolute; content:""; width:100%; height:100%; left:0; top:0; display:block; background-color:var(--black); z-index:2;}
.market .listTwo figure h4 {position:absolute; left:0; top:0; display:flex; width:100%; height:100%; align-items:center; justify-content:center; color:var(--white); font-size:1.875rem; font-weight:500; z-index:5;}
.market .listTwo figure img {max-width:100%; transition:all 0.5s ease-out;}
.market .listTwo figure:hover img {transform:scale(1.15);}
.market .listTwo figure img.mobile {display:none;}

.market .listTwo figure:first-child {margin-right:30px;}
.market .listTwo figure:first-child:before {background-color:rgba(3,100,100,0.4);}
.market .listTwo figure:last-child:before {background-color:rgba(190,41,20,0.3);}


/*******************************************************************************
    @media  ~980px               
*******************************************************************************/
@media all and (max-width:980px){

.market .list {gap:20px;}
.market .list figure h4, .market .listTwo figure h4 {font-size:1.5rem;}
.market .listTwo {margin-top:20px;}
.market .listTwo figure {width:calc((100% - 20px) / 2);}
.market .listTwo figure:first-child{margin-right:20px;}

}

/*******************************************************************************
    @media 481~680px
*******************************************************************************/
@media all and (max-width:680px){

.market .list, .market .listTwo {display:block;}
.market .list figure + figure {margin-top:10px;}
.market .list figure img.pc, .market .listTwo figure img.pc {display:none;}
.market .list figure img.mobile, .market .listTwo figure img.mobile {display:block;}

.market .listTwo {margin-top:10px;}
.market .listTwo figure {width:100%;}
.market .listTwo figure:first-child{margin-bottom:10px;}

}


/*******************************************************************************
    @media ~480px             
*******************************************************************************/
@media all and (max-width:480px){




}