/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'SUIT-Regular';
    background-color: #0F0F0F; /* 배경색 검정 */
    color: white;
    display: flex;
}

a {
    text-decoration: none; /* 밑줄 제거 */
    color: inherit; /* 기본 색상 그대로 유지 */
}

.back {
    transform: scale(0.3) translate(-100%, 100%); /* 축소와 함께 위치 이동 */
    cursor: pointer;       /* 클릭 가능하도록 마우스 커서를 변경 */
    transition: transform 0.3s ease; /* 부드러운 애니메이션 효과 */
    position: fixed;       /* 화면에 고정 */
    bottom: 0px;          /* 바닥에서 50px 떨어짐 */
    left: 0px;            /* 왼쪽에서 10px 떨어짐 */
    z-index: 900;
    min-width: 350px; /* 최소 너비 설정 */
    width: 350px; /* 너비 설정 */
    height: auto; /* 비율 유지 */
}

.back:hover {
    transform: scale(0.3) translate(-100%, 100%) rotate(-5deg); /* 호버 시 확대 및 회전 */
}

.content {
    left: calc(15%); /* 사이드바 너비(250px) + 추가 여백(10%) */
    width: calc(100% - 15%); /* 나머지 공간을 차지하되, 사이드바와 여백을 제외 */
    padding: 60px 100px 80px 100px; /* 위, 오른쪽, 아래, 왼쪽 순서 */
    position: relative; /* 레이아웃을 위해 상대적 위치 설정 */
}

header {
    margin-bottom: 20px;
}

.header-content {
    display: flex; /* 플렉스 박스 활성화 */
    align-items: center; /* 세로축 정렬 */
}

header img {
    height: 50px;
    margin-right: 30px; /* 이미지와 h1 사이 간격 */
}

header h1 {
    font-family: 'TTLaundryGothicB'; 
    font-size: 22px;
    margin: 0; /* 추가 여백 제거 */
    -webkit-text-stroke: 0.3px #0F0F0F; /* 테두리 두께와 색상 */
    color: white;
}

header p {
    font-size: 15px;
    color: #aaa;
    margin-top: 30px; /* 본문과 위 요소 간격 */
    line-height: 25px;


}

.grid-header {
    margin-top: 60px;
    margin-bottom: 20px;
    text-align: left;
    max-width: 100px;
    font-family: 'TTLaundryGothicB';
    font-size: 20px;
    color: white;
    -webkit-text-stroke: 0.3px #0F0F0F; /* 테두리 두께와 색상 */
    position: relative; /* 부모 요소를 기준으로 가상 요소 배치 */
    z-index: 1; /* 글자를 원 위로 표시 */
}


.grid-header::before {
    content: ""; /* 가상 요소 생성 */
    position: absolute; /* 텍스트를 기준으로 위치 설정 */
    top: 50%; /* 텍스트 기준 수직 */
    left: 50%; /* 텍스트 기준 수평 */
    transform: translate(-160%, -60%); /* 원 중심을 이동 */
    width: 40px; /* 원의 너비 */
    height: 40px; /* 원의 높이 */
    background: radial-gradient(circle, #F1CFFF80, #0F0F0F); /* 그라데이션 색상 */
    border-radius: 50%; /* 원 모양 */
    filter: blur(7px); /* 블러 처리 */
    z-index: -1; /* 텍스트 뒤로 보내기 */
}

/* 그리드 레이아웃 */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    grid-template-columns: repeat(3, 350px);
    grid-template-rows: repeat(auto-fill, auto);
}

.grid-item {
    border: 2px solid white; /* 흰색 테두리 */
    background-color: rgba(255, 255, 255, 0.05); /* 반투명 배경색 */
    padding: 0px; /* 내부 여백 */
    border-radius: 2px;
    display: block; /* 전체 그리드 항목을 차지하도록 */
    color: inherit; /* 텍스트 색상 유지 */
    text-decoration: none; /* 링크 밑줄 제거 */
    cursor: pointer; /* 마우스를 올리면 포인터 표시 */
    z-index: 900;
    transition: transform 0.5s ease, box-shadow 0.3s ease; /* 애니메이션 효과 */
}

.grid-item:hover {
    transform: scale(1.05); /* 살짝 확대 */

    z-index: 10;
}

.image {
    width: 100%; /* 이미지가 그리드 항목을 꽉 채우도록 */
    height: 250px; /* 이미지 높이 */
    background-color: #cccccc00; /* 이미지가 없을 때 기본 배경 */

        aspect-ratio: 3 / 2; /* 16:9 비율 유지 (원하는 비율로 설정) */
        object-fit: cover; /* 이미지가 비율을 유지하며 채우도록 */
    }



/* 작품 썸네일 제목 */
h4 {
    font-weight: 400;
    text-align: left;
    font-size: 16px;
    margin-left: 25px;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #ffffffe0;
    width: 100%; /* 제목이 그리드 항목에 맞게 확장되도록 설정 */
    
}

/* 작품 썸네일 태그*/
h5 {
    margin-left: 25px;
    font-weight: 100;
    text-align: left;
    font-size: 13px;
    color: #ffffff80;
    width: 100%; /* 텍스트가 그리드 항목에 맞게 확장되도록 설정 */
    margin-bottom: 20px;
}

h4, h5 {
    width: calc(100% - 50px); /* 양쪽 여백을 제외한 너비 */
    white-space: normal; /* 텍스트가 길 경우 줄바꿈 허용 */
    word-wrap: break-word; /* 단어가 길 경우 줄바꿈 */
    word-break: break-word; /* 단어가 잘리지 않도록 줄바꿈 */
    margin-right: 25px; /* 오른쪽 여백 */
    overflow-wrap: break-word; /* 텍스트가 넘어가지 않도록 줄바꿈 */
}

/* 작품설명 */
.center {
    position: absolute;
    top: 50%;  /* 화면 세로 가운데 */
    left: 50%; /* 화면 가로 가운데 */
    transform: translate(-50%, -50%); /* 가운데 위치로 정확하게 맞추기 */
    text-align: center; /* 텍스트가 가운데 정렬 */
    width: 100%;
}
/* 작품설명 제목 */
h2 {
    font-size: 35px;
    font-family: 'TTLaundryGothicB';
    opacity: 0; /* 처음에는 보이지 않도록 설정 */
    animation: fadeIn 3s forwards;
    animation-fill-mode: forwards; /* 애니메이션 후 마지막 상태 유지 */
}

/* 작품설명 내용 */
h3 {
    margin-top: 30px;
    font-size: 18px;
    font-weight: 100;
    line-height: 30px;
    color: #ffffffe0;
    width: 100%;
    opacity: 0; /* 처음에는 보이지 않도록 설정 */
    animation: fadeIn 3s forwards;
    animation-fill-mode: forwards; /* 애니메이션 후 마지막 상태 유지 */
}


@keyframes fadeIn {
    0% {
      opacity: 0; /* 처음에는 보이지 않음 */
    }
    100% {
      opacity: 1; /* 마지막에는 완전히 보이게 됨 */
    }
  }

  .bottom {
    font-size: 15px;
    color: #ffffff;
    animation: blink 1.5s ease-in-out infinite;
    position: absolute; /* 요소를 화면에 위치시키기 위해 position 속성 추가 */
    top: 90%;  /* 화면 세로 밑  */
    left: 50%; /* 화면 가로 가운데 */
    transform: translate(-50%, -50%); /* 가운데 위치로 정확하게 맞추기 */
    z-index: 1000; /* 다른 요소들 위로 위치시킴 */
}

/* 깜박이는 애니메이션 */
@keyframes blink {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.9;
    }
}



/* 화면 크기가 768px 이하일 때 .container를 슬라이드하고 사라지게 */
@media (max-width: 768px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        grid-template-columns: repeat(1, auto);
        grid-template-rows: repeat(auto-fill, auto);
    }
    
    
    }

/* 그리드 레이아웃 */



