body{ padding-top: 4rem; } .Media-Details{ padding: 3rem 4rem; display: flex; gap: 3rem; .article{ flex: 1; .title{ h1{ font-family: Gilroy-Bold; font-size: 1.923rem; font-weight: normal; font-stretch: normal; line-height: 2.692rem; letter-spacing: 0rem; color: #313131; } .iconfont{ display: inline-block; margin: 1.5rem 0; font-family: OPPOSans-R; font-size: 0.692rem; font-weight: normal; font-stretch: normal; letter-spacing: 0rem; color: #313131; } } p{ font-family: Gilroy-Regular; font-size: 0.846rem; font-weight: normal; font-stretch: normal; line-height: 1.154rem; letter-spacing: 0rem; color: #313131; white-space: pre-line; padding: 2rem 0; border-bottom: 1px solid #dcdbdb; border-top: 1px solid #dcdbdb; } .btns{ display: flex; align-items: center; justify-content: center; gap: 2rem; padding: 2rem 0; .iconfont{ width: 2.231rem; text-align: center; height: 2.231rem; line-height: 2.231rem; font-size: 1rem; border-radius: 50%; background-color: #f7f7f7; border: solid 0.077rem #b7b7b7; &:hover{ border-color: #f08200; } } } } .Medias{ width: 18.462rem; display: grid; grid-template-columns: repeat(1,1fr); gap: 3rem; li{ background-color: #ffffff; box-shadow: 0rem 0.769rem 3.077rem 0rem rgba(0, 0, 0, 0.05); border-radius: 1.538rem; overflow: hidden; position: relative; img{ width: 100%; height: 11.538rem; object-fit: cover; } .time{ background-color: #f08200; color: #ffffff; padding: 10px; border-radius: 15px; position: absolute; top: 10rem; right: 1rem; h4{ font-family: Gilroy-Bold; font-size: 1.154rem; font-weight: normal; font-stretch: normal; line-height: 1.2rem; letter-spacing: 0rem; color: #ffffff; } h3{ font-family: Gilroy-Bold; font-size: 1.385rem; line-height: 1.4rem; color: #ffffff; } } .info{ padding: 1rem; padding-top: 2rem; h3{ padding: 1rem 0; font-family: Gilroy-Bold; font-size: 1.154rem; font-weight: normal; font-stretch: normal; line-height: 1.385rem; letter-spacing: 0rem; color: #313131; } p{ font-family: Gilroy-Regular; font-size: 0.692rem; font-weight: normal; font-stretch: normal; line-height: 0.923rem; letter-spacing: 0rem; color: #7d7d7d; padding-bottom: 1rem; } .iconfont{ display: inline-block; font-size: 1rem; color: #313131; transform: rotate(135deg); } } &:hover{ .info .iconfont{ color: #f08200; } } } } } @media (max-width: 1024px) { .Media-Details{ flex-direction: column; .Medias{ width: 100%; gap: 2rem; grid-template-columns: repeat(2, 1fr); } } } @media (max-width: 640px) { body{ padding-top: 2rem; } .Media-Details{ padding: 0; padding-top: 1rem; gap: 0; .Medias{ gap: 2rem; grid-template-columns: repeat(1, 1fr); } } }