/* JOHN INTERIORS — Gallery page */
.gl-hero { height: 38vh; min-height: 280px; max-height: 400px; }
.gl-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, oklch(15.5% .007 261.7 / 88%), oklch(15.5% .007 261.7 / 35%) 60%, oklch(15.5% .007 261.7 / 25%)); }
.gl-hero__inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem 1.25rem; }
@media (min-width: 640px) { .gl-hero__inner { padding: 3rem 2.5rem; } }
.gl-crumb { display: flex; gap: .5rem; font-size: .75rem; color: rgba(255,255,255,.7); margin-bottom: .75rem; }
.gl-crumb a { color: inherit; text-decoration: none; } .gl-crumb a:hover { color: #fff; }
.gl-crumb span:last-child { color: #fff; font-weight: 600; }
.gl-hero__title { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.08; }
@media (min-width: 640px) { .gl-hero__title { font-size: 3rem; } }
.gl-hero__sub { margin-top: .7rem; max-width: 34rem; color: rgba(255,255,255,.8); font-size: .95rem; }

.gl-section { padding: 2.5rem 1.25rem 4.5rem; background: #fff; }
@media (min-width: 640px) { .gl-section { padding: 3.5rem 2.5rem 6rem; } }
.gl-wrap { max-width: 80rem; margin: 0 auto; }
.gl-bar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
@media (min-width: 900px) { .gl-bar { flex-direction: row; align-items: center; justify-content: space-between; } }
.gl-chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.gl-chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .gl-chips { flex-wrap: wrap; overflow: visible; } }
.gl-chip { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid #e6dfd2; background: #fff; color: #2a2d36; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gl-chip span { font-size: .72rem; opacity: .6; }
.gl-chip:hover { border-color: #10131c; }
.gl-chip.is-active { background: #10131c; border-color: #10131c; color: #fff; }
.gl-count { font-size: .85rem; color: #6b6f7a; white-space: nowrap; }

.gl-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gl-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
.gl-card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 1rem; overflow: hidden; background: #f6f1e9; cursor: pointer; aspect-ratio: 4 / 3; text-align: left; animation: gl-in .4s ease both; }
.gl-card[hidden] { display: none; }
.gl-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.gl-card:hover img, .gl-card:focus-visible img { transform: scale(1.05); }
.gl-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,19,28,.78), rgba(16,19,28,0) 55%); opacity: .9; transition: opacity .3s; }
.gl-card:focus-visible { outline: 3px solid #b98543; outline-offset: 2px; }
.gl-card__tag { position: absolute; z-index: 1; top: .75rem; left: .75rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(255,255,255,.92); color: #10131c; font-size: .7rem; font-weight: 700; }
.gl-card__cap { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: #fff; }
.gl-card__cap b { font-size: .95rem; font-weight: 700; line-height: 1.25; }
.gl-card__cap i { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); font-style: normal; font-size: 1.1rem; transition: background .25s, color .25s; }
.gl-card:hover .gl-card__cap i { background: #fff; color: #10131c; }
.gl-empty { text-align: center; color: #6b6f7a; padding: 3rem 0; }
@keyframes gl-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* pop-up */
body.gl-lock { overflow: hidden; }
.gl-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(16,19,28,.72); backdrop-filter: blur(4px); opacity: 0; transition: opacity .22s; }
.gl-modal[hidden] { display: none; }
.gl-modal.is-open { opacity: 1; }
.gl-modal__box { position: relative; display: grid; grid-template-columns: 1fr; width: 100%; max-width: 62rem; max-height: calc(100vh - 2rem); overflow: auto; background: #fff; border-radius: 1.25rem; transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.22,1,.36,1); }
.gl-modal.is-open .gl-modal__box { transform: none; }
@media (min-width: 820px) { .gl-modal__box { grid-template-columns: 1.35fr 1fr; overflow: hidden; } }
.gl-modal__media { position: relative; background: #f6f1e9; }
.gl-modal__img { width: 100%; height: 100%; max-height: 70vh; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
@media (min-width: 820px) { .gl-modal__img { max-height: none; aspect-ratio: auto; min-height: 100%; } }
.gl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #10131c; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.gl-nav:hover { background: #fff; }
.gl-nav--prev { left: .75rem; } .gl-nav--next { right: .75rem; }
.gl-modal__count { position: absolute; left: .75rem; bottom: .75rem; padding: .2rem .65rem; border-radius: 999px; background: rgba(16,19,28,.7); color: #fff; font-size: .72rem; font-weight: 600; }
.gl-modal__body { padding: 1.75rem 1.5rem 1.5rem; display: flex; flex-direction: column; overflow: auto; }
@media (min-width: 820px) { .gl-modal__body { padding: 2.25rem 2rem 1.75rem; max-height: calc(100vh - 2rem); } }
.gl-modal__cat { align-self: flex-start; padding: .25rem .75rem; border-radius: 999px; background: #f6f1e9; color: #8a5a2b; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gl-modal__body h2 { margin: .9rem 0 .6rem; font-size: 1.5rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #10131c; }
.gl-modal__desc { color: #4a4e59; font-size: .95rem; line-height: 1.6; }
.gl-modal__meta { margin: 1.25rem 0 1.5rem; border-top: 1px solid #e6dfd2; }
.gl-modal__meta div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid #e6dfd2; font-size: .85rem; }
.gl-modal__meta dt { color: #6b6f7a; } .gl-modal__meta dd { margin: 0; color: #10131c; font-weight: 600; text-align: right; }
.gl-modal__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
.gl-btn { display: inline-flex; justify-content: center; align-items: center; padding: .75rem 1.3rem; border-radius: 999px; font-size: .88rem; font-weight: 700; text-decoration: none; border: 1px solid #10131c; transition: background .2s, color .2s; }
.gl-btn--solid { background: #10131c; color: #fff; } .gl-btn--solid:hover { background: #262b3a; }
.gl-btn--line { background: #fff; color: #10131c; } .gl-btn--line:hover { background: #f6f1e9; }
.gl-modal__close { position: absolute; z-index: 2; top: .75rem; right: .75rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: #10131c; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
@media (prefers-reduced-motion: reduce) { .gl-card, .gl-modal, .gl-modal__box, .gl-card img { animation: none; transition: none; } }
