/* ===== 全局背景 ===== */
body {
  margin: 0;
  font-family: 'Press Start 2P', monospace; /* 預設字體改成像素字 */
  background: url("/static/assets/background.png") no-repeat center center fixed;
  background-size: cover;
}

/* ===== 頁首樣式 ===== */
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: transparent;      
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== Minecraft 風格下拉選單 ===== */
.mc-dropdown {
  position: relative;
  width: 180px;
  user-select: none;
  box-sizing: border-box; 
}

/* 當前選擇框 */
.mc-dropdown .mc-selected {
  background: #5c5c5c;
  color: #fff;
  padding: 10px 8px;
  border: 4px solid #3b3b3b;
  box-shadow:
    inset -3px -3px 0 #787878,
    inset 3px 3px 0 #2a2a2a;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  width: 100%;   
}

/* 選單清單 */
.mc-dropdown .mc-options {
  list-style: none;
  margin: 0; padding: 0;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: #7a7a7a;
  border: 4px solid #3b3b3b;
  box-shadow:
    inset -3px -3px 0 #969696,
    inset 3px 3px 0 #2a2a2a;
  /* text-align: center; */
  display: none;
  z-index: 100;
  box-sizing: border-box;
  width: 100%;      
}

/* 每一行選項 */
.mc-dropdown .mc-option {
  padding: 8px 8px;
  color: #fff;
  border-top: 2px solid #3b3b3b;
  cursor: pointer;
  text-align: center;
}

/* 滑過變色 */
.mc-dropdown .mc-option:hover {
  background: #5e5e5e;
}

/* 打開狀態 */
.mc-dropdown.open .mc-options {
  display: block;
}

/* ===== 圖庫 Grid ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px;
  justify-items: center;
}

/* ===== 相框容器 ===== */
.gallery .frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* ===== 相框偽元素 ===== */
.gallery .frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/static/assets/photo_frame_11.png") no-repeat center center;
  background-size: 120% 120%;
  pointer-events: none;
  z-index: 2;
}

/* ===== 真正照片 ===== */
.gallery .frame img {
  width: 63%;
  height: 63%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* ===== 手機響應 ===== */
@media (max-width: 600px) {
  .mc-dropdown { width: 140px; }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
}
