/* =========================================================
   Gaselo · Gallery（风格画廊 / 空间明细）
   ========================================================= */

.gallery{background:var(--white);color:var(--ink);padding-top:100px;padding-bottom:80px}
.gallery-head{margin-bottom:32px}
.gallery-head .eyebrow{color:var(--gold)}
.gallery-head h2{font-size:30px;font-weight:700;margin-bottom:10px}
.gallery-head p{color:var(--gray);max-width:620px;font-size:14px}
.gallery-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:24px;font-size:13px;color:var(--gray);background:none;border:none;cursor:pointer;letter-spacing:.04em}
.gallery-back:hover{color:var(--gold)}
.gallery-back svg{width:15px;height:15px}

/* ---------- 拼贴 ---------- */
.collage{display:grid;gap:16px;margin-bottom:44px}
.collage:last-child{margin-bottom:0}
.collage figure{margin:0;overflow:hidden;background:#f0efec}
.collage img{width:100%;height:100%;object-fit:cover;display:block}
/* A 型：左大图 + 右列两小图 */
.c-a{grid-template-columns:1.75fr 1fr}
.c-a .c-main{grid-row:span 2}
.c-a .c-main img{height:540px}
.c-a .c-sub img{height:262px}
/* B 型：三列，左右窄图各跨两行，中列上下两图 */
.c-b{grid-template-columns:1fr 1.45fr 1fr}
.c-b .c-side{grid-row:span 2}
.c-b .c-side img{height:540px}
.c-b .c-mid img{height:262px}
/* C 型：规整两列等高 */
.c-c{grid-template-columns:1fr 1fr}
.c-c img{aspect-ratio:3/2;height:auto}
/* D 型：四列等宽 */
.c-d{grid-template-columns:repeat(4,1fr)}
.c-d img{height:300px}
/* 三列等宽 */
.c-3{grid-template-columns:repeat(3,1fr)}
.c-3 img{height:340px}

/* ---------- 空间明细 ---------- */
.sd-section{margin:44px 0}
.sd-section:first-of-type{margin-top:8px}
.sd-head{margin-bottom:18px}
.sd-title{font-size:19px;font-weight:700;margin-bottom:6px}
.sd-title .en{color:var(--gray);font-weight:400;font-size:15px;margin-left:8px}
.sd-head p{font-size:13.5px;color:var(--gray);max-width:620px}
.sd-grid{display:grid;gap:16px}
.sd-grid.g4{grid-template-columns:repeat(4,1fr)}
.sd-grid.g3{grid-template-columns:repeat(3,1fr)}
.sd-fig{margin:0;overflow:hidden;background:#f0efec}
.sd-fig img{width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;display:block}
.sd-fig .cap{margin-top:10px;font-size:12.5px;color:var(--ink)}
.sd-fig .cap span{display:block;color:var(--gray);font-size:11.5px;margin-top:2px}
.sd-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.sd-tags span{font-size:12px;border:1px solid var(--line);padding:6px 12px;color:var(--gray)}
.sd-notes{border:1px solid var(--line);padding:22px;background:var(--soft)}
.sd-notes h4{font-size:14px;font-weight:600;margin-bottom:12px;line-height:1.7}
.sd-notes .sd-tags{margin-top:0}

/* ---------- 上下页 ---------- */
.gallery-nav{display:flex;justify-content:space-between;gap:16px;margin-top:36px;flex-wrap:wrap}
.gallery-nav a{background:none;border:1px solid var(--line);color:var(--ink);padding:12px 22px;font-size:13px;cursor:pointer;border-radius:5px}
.gallery-nav a:hover{border-color:var(--gold);color:var(--gold)}

@media (max-width:1024px){
  .c-a{grid-template-columns:1.5fr 1fr}
  .c-b{grid-template-columns:1fr 1.3fr}
  .c-b .c-side{grid-row:auto}
  .c-d{grid-template-columns:repeat(2,1fr)}
  .c-3{grid-template-columns:repeat(2,1fr)}
  .sd-grid.g4,.sd-grid.g3{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .gallery{padding-top:72px;padding-bottom:56px}
  .gallery-head h2{font-size:23px}
  .c-a,.c-b,.c-c,.c-d,.c-3,.sd-grid.g4,.sd-grid.g3{grid-template-columns:1fr}
  .c-a .c-main,.c-b .c-side{grid-row:auto}
  .c-a .c-main img,.c-b .c-side img{height:280px}
  .c-a .c-sub img,.c-b .c-mid img{height:220px}
  .c-c img{aspect-ratio:3/2;height:auto}
  .c-d img{height:240px}
  .c-3 img{height:260px}
  .gallery-nav{flex-direction:column}
  .gallery-nav a{width:100%}
}
