html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 防止橫向捲動 */
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #111;
    color: white;
}
.site-brand {
  position: absolute;
  top: 48px;
  left: 20px;

  font-size: 25px;
  font-weight: 350;
  letter-spacing: 1px;
  text-transform: uppercase;

  text-align: left;
  line-height: 1.3;

  z-index: 1000;
}
.site-header {
  width: 100%;
  margin: 0;
  padding: 0;
}

.banner-image {
  width: 100vw;      /* 整個視窗寬度 */
  height: 190px;
  object-fit: cover;
  display: block;
  object-position: 50% 40%;
}

.site-title {
  font-size: 32px;
  margin: 20px 0;
  letter-spacing: 3px;
  text-align: center;
}
.navbar {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px 0;

  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;

  background-color: white;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  letter-spacing: 1px;
}

.navbar a:hover {
  color: #888;
}

/* Header */

header {
    text-align: center;
    padding: 60px 20px;
}

h1 {
    font-size: 42px;
    letter-spacing: 3px;
}

p {
    color: #aaa;
}

/* ===== About Page ===== */
/* 1. 關於頁面主要容器：控制整體寬度與置中 */
.about-page-main {
    max-width: 1100px; 
    margin: 80px auto;      /* 增加上下垂直間距，減少擁擠感 */
    padding: 0 50px;        /* 確保手機版左右有留白 */
    background-color: #0d0d0d; /* 確保背景為深色 */
    color: white;
}

/* 2. 核心佈局：左文右圖的並排控制 */
.about-main-flex {
    display: flex !important;
    justify-content: space-between; /* 將文字推向左，圖片推向右 */
    align-items: flex-start;        /* 關鍵：確保標題與圖片頂部切齊 */
    gap: 30px;                      /* 文字與圖片之間的緩衝空間 */
}

/* 3. 左側內容區塊 */
.about-content-left {
    flex: 1;                        /* 自動分配剩餘寬度 */
    text-align: 55%;
}

/* 修正大標題：移除頂部外距以達成對齊 */
.hero-title {
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 3px;
    margin: 0 0 10px 0;            /* 頂部設為 0 是對齊圖片的關鍵 */
}

.hero-subtitle {
    font-size: 1rem;
    color: #999;
    margin-bottom: 45px;           /* 與下方第一段內文拉開距離 */
}

/* 4. 文字段落細節：控制呼吸感與行距 */
.about-text p {
    line-height: 1.7 !important;   /* 舒適的閱讀行距 */
    margin-bottom: 35px;           /* 段落與段落之間的間隙 */
    color: #ccc;                   /* 柔和的文字顏色 */
    font-size: 1.1rem;
}

/* 移除最後一段的下間距，避免撐開底部 */
.about-text p:last-child {
    margin-bottom: 0;
}

/* 同一段落內使用 <br> 換行時的小間距 */
.about-text br {
    display: block;
    content: "";
    margin-top: 10px;
}

/* 5. 右側圖片容器 */
.about-content-right {
    width: 40%;                    /* 圖片佔比 */
    max-width: 400px;              /* 限制圖片最大寬度 */
    flex-shrink: 0;                /* 防止圖片在窄螢幕被壓縮 */
    margin-top: 10px; /* 微調讓圖片頂端更精準對齊大標 */
}

.about-img {
    width: 100%;
    height: auto;                  /* 保持海浪照片的原始比例 */
    min-height: 400px;             /* 設定最小高度確保視覺張力 */
    object-fit: cover;
    border-radius: 4px;            /* 輕微圓角增加質感 */
}

/* 6. 響應式設計：針對平板與手機調整 */
@media (max-width: 900px) {
    .about-main-flex {
        flex-direction: column;    /* 螢幕太小時，圖片會自動掉到文字下方 */
        gap: 40px;
    }
    .about-content-right {
        width: 100%;               /* 手機版圖片滿版 */
        max-width: none;
    }
    .about-page-main {
        margin: 40px auto;
        padding: 0 25px;
    }
}

/* 主題卡片 */

.gallery {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(250px, 1fr)
    );

    gap: 20px;
    padding: 40px;
}

.card {
  position: relative;
  height: 260px;
  width: 100%;
  overflow: hidden;

  display: flex;              /* 關鍵：不要拿掉 */
  justify-content: center;
  align-items: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  text-decoration: none;
  color: white;

  transition: transform 0.3s ease;
}

/* 每張卡片單獨背景 */
.card-between-frames {
  background-image: url('images/between-frames.jpg');
}

.card-every-moment {
  background-image: url('images/every-moment.jpg');
}

.card-style-session {
  background-image: url('images/style-session.jpg');
}

.card-emotional-space {
  background-image: url('images/emotional-space.jpg');
}

.card-monochrome {
  background-image: url('images/monochrome.jpg');
}

.card-by-the-sea {
  background-image: url('images/by-the-sea.jpg');
}

img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.masonry img {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.masonry img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.card:hover {
    transform: scale(1.05);
}
.site-footer {
    margin-top: 80px;
    padding: 40px 20px;

    text-align: center;

    font-size: 14px;
    font-weight: 300;

    color: rgba(255, 255, 255, 0.7);

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer {
  border-top: 1px solid #444;
  margin-top: 80px;
  padding: 40px 20px;
  text-align: center;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: white;
  letter-spacing: 1px;
}

footer p {
  margin: 8px 0;
}

.footer-quote {
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.copyright {
  margin-top: 30px;
  font-size: 12px;
  color: #888;
}

.about-photo img {
  width: 60%;
  height: auto;
}

.page-title {
  padding: 5px 5px 5px;
}

.page-title h1 {
  margin: 0;
}

/* 副標與內文之間的分隔線 */
.content-divider {
    width: 450px;            /* 分隔線的長度 */
    height: 1px;            /* 分隔線的粗細 */
    background-color: #555; /* 深灰色，維持低調質感 */
    margin: 40px 0;         /* 上下留白，讓呼吸感更一致 */
    border: none;
}