Keep museum path side-by-side on iPad portrait.
Use a compact two-column layout up to 50rem and only stack on narrow phones.
This commit is contained in:
+119
-8
@@ -456,10 +456,128 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 52rem) {
|
/* iPad portrait and narrow tablets — stay side-by-side, compact */
|
||||||
|
@media (max-width: 50rem) {
|
||||||
|
.museum-path-scene {
|
||||||
|
padding: 0 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.museum-path-panel {
|
||||||
|
padding: 1.25rem 0.75rem 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.museum-path__layout {
|
||||||
|
gap: 0.65rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.museum-path__header h1 {
|
||||||
|
font-size: clamp(1.25rem, 4vw, 1.5rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.lock-subtitle {
|
||||||
|
white-space: normal;
|
||||||
|
font-size: 0.82rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.museum-path__section-title {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.artifact-bank {
|
||||||
|
padding: 0.55rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.artifact-bank__grid {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.artifact-card {
|
||||||
|
padding: 0.3rem;
|
||||||
|
gap: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.artifact-card__image {
|
||||||
|
width: 3.5rem;
|
||||||
|
height: 3.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.artifact-card__name {
|
||||||
|
font-size: 0.68rem;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.artifact-card--overlay {
|
||||||
|
width: 6.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.artifact-card--overlay .artifact-card__image {
|
||||||
|
width: 3.5rem;
|
||||||
|
height: 3.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-slots {
|
||||||
|
gap: 0.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-slot {
|
||||||
|
min-height: 4.25rem;
|
||||||
|
padding: 0.4rem 0.45rem;
|
||||||
|
gap: 0.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-slot__number {
|
||||||
|
width: 1.25rem;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-slot__placeholder {
|
||||||
|
font-size: 0.72rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-slot .artifact-card {
|
||||||
|
gap: 0.4rem;
|
||||||
|
padding: 0.25rem 0.35rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-slot .artifact-card__image {
|
||||||
|
width: 2.75rem;
|
||||||
|
height: 2.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-slot .artifact-card__name {
|
||||||
|
font-size: 0.72rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Phones only — stack vertically */
|
||||||
|
@media (max-width: 30rem) {
|
||||||
.museum-path__layout {
|
.museum-path__layout {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.artifact-bank__grid {
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.artifact-card__image {
|
||||||
|
width: 4.5rem;
|
||||||
|
height: 4.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.artifact-card__name {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-slot {
|
||||||
|
min-height: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-slot .artifact-card__image {
|
||||||
|
width: 3.5rem;
|
||||||
|
height: 3.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.museum-path__section-title {
|
.museum-path__section-title {
|
||||||
@@ -491,13 +609,6 @@
|
|||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 52rem) {
|
|
||||||
.artifact-bank__grid {
|
|
||||||
/* More columns in portrait — shorter bank, no inner scroll trap on iPad */
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.path-slots {
|
.path-slots {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
Reference in New Issue
Block a user