.classified-dialog{width:min(920px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:0;border:0;border-radius:22px;background:var(--card);color:var(--ink);box-shadow:var(--shadow);overflow:hidden}
.classified-dialog::backdrop{background:rgba(12,41,40,.58);backdrop-filter:blur(2px)}
.classified-dialog-content{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);max-height:calc(100dvh - 28px);overflow:hidden}
.classified-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr) 96px;gap:4px;min-height:0;max-height:calc(100dvh - 28px);background:#eceae2}
.classified-gallery img{display:block;width:100%;height:96px;object-fit:cover}
.classified-gallery .classified-main-image{grid-column:1/-1;width:100%;height:100%;min-height:0;max-height:calc(100dvh - 128px);object-fit:cover}
.classified-gallery:has(.classified-main-image:only-child){display:block}
.classified-gallery .classified-main-image:only-child{height:100%;max-height:calc(100dvh - 28px);aspect-ratio:4/3}
.classified-dialog-body{align-self:center;max-height:calc(100dvh - 28px);padding:34px 30px;overflow:auto}
.classified-dialog-body h2{font-size:clamp(1.55rem,3vw,2rem);margin-bottom:8px}
.classified-dialog-body .modal-actions{display:flex;flex-direction:column;gap:9px;margin-top:22px}
.classified-dialog-body .modal-actions .button{width:100%}
@media(max-height:720px) and (min-width:701px){.classified-dialog{width:min(840px,calc(100% - 24px));max-height:calc(100dvh - 18px)}.classified-dialog-content{max-height:calc(100dvh - 18px)}.classified-gallery{grid-template-rows:minmax(0,1fr) 76px;max-height:calc(100dvh - 18px)}.classified-gallery img{height:76px}.classified-gallery .classified-main-image{max-height:calc(100dvh - 98px)}.classified-gallery .classified-main-image:only-child{max-height:calc(100dvh - 18px)}.classified-dialog-body{max-height:calc(100dvh - 18px);padding:24px}.classified-dialog-body h2{font-size:1.55rem}.classified-dialog-body p{margin-bottom:12px}.classified-dialog-body .modal-actions{margin-top:14px}}
@media(max-width:700px){.classified-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px)}.classified-dialog-content{display:block;max-height:calc(100dvh - 20px);overflow:auto}.classified-gallery{grid-template-rows:220px 82px;max-height:none}.classified-gallery img{height:82px}.classified-gallery .classified-main-image{height:220px;max-height:220px}.classified-gallery .classified-main-image:only-child{height:220px;max-height:220px;aspect-ratio:auto}.classified-dialog-body{max-height:none;padding:22px;overflow:visible}.classified-dialog-body .modal-actions{flex-direction:column}}
