@font-face {
  font-family: 'GmarketSansMedium';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* === Global Layout === */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'GmarketSansMedium';
  color: #333;
  background-image: url('img/bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}

body {
  padding: 60px 20px;
}

/* === Container === */
.container {
  text-align: center;
  width: 100%;
  max-width: 550px;
  padding: 40px 30px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* === Profile Section === */
.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  border: 3px solid #fbc2eb;
}

h1 {
  font-size: 30px;
  margin: 10px 0;
  color: #fff;
}

.bio {
  font-size: 15px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: bold;
}

/* === Links Section === */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 22px;
  transition: background-color 0.3s;
}

.link-item:hover {
  background-color: #c678dd;
}

/* === Slick Slider (Album) - 수정된 부분 ★★★ === */
/* 1. 앨범 슬라이더의 '틀' 스타일 지정 */
.autoplay {
    height: 75vh; /* 화면 높이의 75%로 설정 (원하는대로 조절) */
    max-height: 550px; /* PC에서 너무 커지는 것 방지 */
    border-radius: 10px;
    overflow: hidden; /* ★★★ 가장 중요한 부분: 이 틀을 벗어나는 이미지 숨김 */
    background-color: #111; /* 이미지 로딩 전 배경 */
}

/* === Slick 슬라이더 내부 요소 높이 강제 조정 (이미지 잘림 최종 해결) ★★★ === */
.autoplay .slick-list,
.autoplay .slick-track,
.autoplay .slick-slide,
.autoplay .slick-slide > div { /* <- 이 부분을 추가했습니다 */
    height: 100% !important;
}

/* 2. 슬라이더 안의 이미지 스타일 지정 */
.autoplay .slick-slide img {
    width: 100%;
    height: 100%; /* 부모(autoplay)의 높이에 꽉 맞춤 */
    object-fit: contain; /* 비율을 유지한 채로 공간을 채움 */
}
    
/* === Slick Slider Arrow Buttons (수정된 부분) ★★★ === */
.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    /* 기본 텍스트("Previous", "Next") 숨기기 */
    font-size: 0;
    line-height: 0;
    
    /* 버튼 기본 스타일 */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background-color 0.2s;
}

.slick-prev:hover,
.slick-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ::before 가상 요소를 사용해 새로운 화살표 아이콘 만들기 */
.slick-prev::before,
.slick-next::before {
    font-size: 22px;
    line-height: 1;
    color: white;
    font-family: 'slick'; /* slick 기본 폰트 사용 */
}

/* 버튼 위치 지정 */
.slick-prev {
    left: 10px; /* 왼쪽에서 10px */
}

.slick-next {
    right: 10px; /* 오른쪽에서 10px */
}

/* 화살표 아이콘 모양 지정 */
.slick-prev::before {
    content: '←';
}

.slick-next::before {
    content: '→';
}


/* === Instagram Reels 임베드 정렬 및 사이즈 === */
.insta-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.insta-center blockquote.instagram-media {
  max-width: 430px !important;
  width: 100% !important;
  min-width: 300px !important;
}


/* === Responsive (정리된 부분) ★★★ === */
@media only screen and (max-width: 768px) {
  .container {
    /* 모바일에서 검은색 틀 제거 */
    background-color: transparent; /* 배경색 투명하게 */
    box-shadow: none;              /* 그림자 제거 */
    padding: 0;                    /* 내부 여백 제거 */
  }
  .link-item {
    font-size: 18px;
    padding: 12px;
  }
  /* 모바일에서 앨범 슬라이더 높이 조정 */
  .autoplay {
      height: 65vh;
  }
  html, body {
    background-position: -400px top;  /* ← 여기에 추가! */
  }      
}



@media only screen and (max-width: 480px) {
  html, body {
    padding: 10px;
  }
  .link-item {
    font-size: 16px;
    padding: 10px;
  }
  /* 작은 모바일에서 Instagram 릴스 너비 조정 */
  .insta-center blockquote.instagram-media {
    max-width: 100% !important;
    min-width: 280px !important;
  }
  /* 작은 모바일에서 앨범 슬라이더 높이 조정 */
  .autoplay {
      height: 60vh;
  }
}

/* ======= iOS Safari만 배경을 iosbg.jpg로 교체 ======= */
body.ios-safari, html.ios-safari {
  background-image: url('img/iosbg.jpg') !important;
}

/* ======= iOS Safari만 배경을 iosbg.jpg로 교체하고, 확대하지 않음(원본 비율 유지) ======= */
body.ios-safari, html.ios-safari {
  background-image: url('img/iosbg.jpg') !important;
  background-size: contain !important;      /* << 여기만 cover -> contain */
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  background-color: #222; /* 혹시라도 빈 공간이 보일 때 대비 */
}

/* iOS 사파리에서 배경 고정시키기 */
body.ios-safari::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('img/iosbg.jpg') no-repeat center top;
  background-size: cover;
  width: 100vw;
  height: 100vh;
}
