Fix : 영상 비율 조정
This commit is contained in:
parent
d695a630ea
commit
a7ee8ad624
15
css/main.css
15
css/main.css
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
/* Hero 섹션 */
|
/* Hero 섹션 */
|
||||||
.hero-section {
|
.hero-section {
|
||||||
min-height: calc(100vh - var(--navbar-height));
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -38,14 +38,13 @@
|
|||||||
|
|
||||||
.video-bg iframe {
|
.video-bg iframe {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 0;
|
||||||
left: 50%;
|
left: 0;
|
||||||
width: 100vw;
|
width: 100%;
|
||||||
height: 56.25vw; /* 16:9 비율 */
|
height: 100%;
|
||||||
min-width: 100%;
|
transform: none;
|
||||||
min-height: 100%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 영상 위에 오버레이 */
|
/* 영상 위에 오버레이 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user