.theme-gallery-section { max-width: 1180px; margin: 0 auto; padding: 80px 24px; }
.theme-gallery-heading > span { color: var(--primary); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.theme-gallery-heading h2 { margin: 12px 0 28px; color: var(--primary); font-family: inherit; font-size: clamp(2rem, 4vw, 3.5rem); }
.theme-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.theme-gallery-grid figure { position: relative; min-height: 180px; margin: 0; overflow: hidden; border-radius: 10px; }
.theme-gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.theme-gallery-section.gallery-count-1 .theme-gallery-grid { display: block; max-width: 520px; }
.theme-gallery-section.gallery-count-1 .theme-gallery-grid figure:first-child { width: 100%; }
.theme-gallery-section.gallery-count-1 .theme-gallery-grid figure { max-height: 350px; }
.theme-gallery-section.gallery-count-1 .theme-gallery-grid img { aspect-ratio: 4 / 3; max-height: 350px; }
.theme-gallery-grid img { display: block; width: 100%; height: 100%; min-height: 180px; object-fit: cover; transition: transform .25s ease; }
.theme-gallery-grid figure:hover img { transform: scale(1.04); }
.theme-gallery-grid figure[role="button"] { cursor: pointer; }
.theme-gallery-grid figure[role="button"]:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.theme-gallery-grid figcaption { position: absolute; right: 10px; bottom: 10px; left: 10px; padding: 8px 10px; color: #fff; background: rgba(15,23,42,.72); border-radius: 5px; font-size: .68rem; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.theme-gallery-grid figure:hover figcaption, .theme-gallery-grid figure:focus-visible figcaption, .theme-gallery-grid figure.is-caption-visible figcaption { opacity: 1; transform: translateY(0); }
@media (max-width: 700px) { .theme-gallery-section { padding: 58px 24px; }.theme-gallery-grid { grid-template-columns: repeat(2, 1fr); }.theme-gallery-grid figure:first-child { grid-column: span 2; } .theme-gallery-section.gallery-count-1 .theme-gallery-grid { max-width: 100%; } .theme-gallery-section.gallery-count-1 .theme-gallery-grid figure, .theme-gallery-section.gallery-count-1 .theme-gallery-grid img { max-height: none; } }
.theme01 .theme-gallery-section { background: #ffedd5; }
.theme01 .theme-gallery-heading > span { color: #ea580c; }
.theme01 .theme-gallery-heading h2 { color: #7c2d12; font-family: 'Fraunces', serif; }
.theme01 .theme-gallery-grid figure { border-radius: 14px; box-shadow: 8px 8px 0 #fed7aa; }
.theme02 .theme-gallery-section { color: #fff; background: #111827; }
.theme02 .theme-gallery-heading h2 { color: #fff; font-family: 'Space Grotesk', sans-serif; }
.theme02 .theme-gallery-grid figure { border-radius: 4px; }
.theme03 .theme-gallery-section { background: #fefce8; }
.theme03 .theme-gallery-heading h2 { color: #254b31; font-family: 'Playfair Display', serif; font-style: italic; }
.theme03 .theme-gallery-grid figure { border-radius: 0 18px 0 18px; }
.theme04 .theme-gallery-section { background: #eff6ff; }
.theme04 .theme-gallery-heading h2 { color: #0f172a; font-family: 'Space Grotesk', sans-serif; }
.theme04 .theme-gallery-grid figure { border-radius: 4px; }
.theme05 .theme-gallery-section { background: #faf5ff; }
.theme05 .theme-gallery-heading h2 { color: #392052; font-family: 'Playfair Display', serif; font-style: italic; }
.theme05 .theme-gallery-grid figure { border-radius: 80px 10px 10px 10px; }
