/* Dream Painters — Tiles on Display */
.dpdt-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.dpdt-intro { margin: 0 auto; font-size: 18px; color: var(--body, #4d423a); }
.dpdt-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 24px); }
.dpdt-grid-store { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dpdt-grid-home { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dpdt-card { margin: 0; }
.dpdt-js .dpdt-card { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 60ms); }
.dpdt-js .dpdt-card.dpdt-in { opacity: 1; transform: none; }
.dpdt-open { display: block; text-decoration: none; color: var(--ink, #2b2420) !important; }
.dpdt-pic { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #c9a37a; box-shadow: 0 1px 0 rgba(43,36,32,.06), 0 14px 32px rgba(43,36,32,.12); transition: transform .35s ease, box-shadow .35s ease; }
.dpdt-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.dpdt-open:hover .dpdt-pic, .dpdt-open:focus-visible .dpdt-pic { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(43,36,32,.06), 0 24px 46px rgba(43,36,32,.18); }
.dpdt-open:hover .dpdt-pic img { transform: scale(1.04); }
.dpdt-name { display: block; margin-top: 12px; text-align: center; font-family: var(--serif, Georgia, serif); font-size: 19px; line-height: 1.25; }
.dpdt-after { text-align: center; margin: 36px 0 0; }
@media (max-width: 1000px) { .dpdt-grid-store { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dpdt-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
	.dpdt-grid-store { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dpdt-name { font-size: 16px; margin-top: 8px; }
	/* home: a sideways swipe row instead of a tall stack */
	.dpdt-grid-home { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * clamp(18px, 4vw, 32px)); padding: 0 clamp(18px, 4vw, 32px) 8px; scrollbar-width: none; }
	.dpdt-grid-home::-webkit-scrollbar { display: none; }
	.dpdt-grid-home .dpdt-card { flex: 0 0 62%; scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) { .dpdt-js .dpdt-card, .dpdt-pic, .dpdt-pic img { transition: none; opacity: 1; transform: none; } }

/* large view */
.dpdt-box { border: 0; padding: 0; margin: auto; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(28,22,18,.94); color: #fff; }
.dpdt-box::backdrop { background: rgba(28,22,18,.94); }
.dpdt-box[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; animation: dpdt-fade .25s ease; }
@keyframes dpdt-fade { from { opacity: 0; } to { opacity: 1; } }
.dpdt-box figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 72px 24px; max-width: 100%; }
.dpdt-box img { max-height: calc(100vh - 190px); max-width: min(92vw, 900px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.dpdt-box figcaption { font-family: Fraunces, Georgia, serif; font-size: 24px; text-align: center; }
.dpdt-box .dpdt-sub { display: block; margin-top: 2px; font-family: Mulish, "Trebuchet MS", sans-serif; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #e9dccb; }
.dpdt-box .dpdt-design { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border-radius: 999px; background: #fff; color: #4a3424 !important; font-family: Mulish, "Trebuchet MS", sans-serif; font-weight: 700; text-decoration: none; }
.dpdt-box button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 999px; font-size: 26px; line-height: 1; cursor: pointer; }
.dpdt-box button:hover, .dpdt-box button:focus-visible { background: rgba(255,255,255,.26); }
.dpdt-x { top: 16px; right: 16px; }
.dpdt-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.dpdt-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
	.dpdt-box figure { padding: 64px 12px 20px; }
	.dpdt-prev, .dpdt-next { top: auto; bottom: 18px; transform: none; }
}
