/* Автор Бородин Павел - Первые - firsts.ru */
.firsts-form-status:not(:empty) {margin:.8rem 0; padding:.65rem; background:#fff; color:#252525}
.firsts-honeypot {position:absolute!important;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.firsts-gallery {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;margin:1rem 0}
.firsts-gallery a {display:flex;flex-direction:column;position:relative;background:#eee;min-width:0;color:#222}
.firsts-gallery img {width:100%;aspect-ratio:3 / 2;object-fit:cover}
.firsts-gallery strong {display:block;padding:.6rem .8rem;background:rgba(194,50,160,.85);color:#fff}
.firsts-gallery-header {display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.firsts-gallery-header a {text-decoration:underline}
@media (max-width:767px) {.firsts-gallery {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media (max-width:420px) {.firsts-gallery {grid-template-columns:1fr}}
.firsts-dialog {width:min(410px,calc(100% - 32px));max-height:calc(100% - 32px);overflow:auto;border:0;padding:24px;background:white}
.firsts-dialog::backdrop {background:#0009}
.firsts-dialog .ba-modal-close {position:absolute;right:8px;top:6px;font-size:23px}
.firsts-gallery a {overflow:hidden}
.firsts-gallery img {aspect-ratio:1 / 1}
.firsts-gallery strong {position:absolute;left:0;right:0;bottom:0}
