/* R1197 • Photographer gallery creation — exactly four first-row fields.
   This is layered AFTER R1195/R1196 so the fourth secret-code field stays
   in the top row, and the old lower duplicate required/optional hints go. */
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog {
  width:min(850px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
}
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm {
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  column-gap:9px!important;
}
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm > label:first-child {
  grid-column:1!important;
  grid-row:1!important;
}
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm > .grid2:nth-child(2) {
  grid-column:2/4!important;
  grid-row:1!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
}
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm > label:nth-child(3) {
  grid-column:4!important;
  grid-row:1!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:4px!important;
  margin:0!important;
  padding:0!important;
  min-width:0!important;
  min-height:0!important;
  align-self:start!important;
  grid-template-rows:none!important;
}
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm > label:nth-child(3) > input {
  display:block!important;
  position:static!important;
  transform:none!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:42px!important;
  min-height:42px!important;
  padding-inline:7px!important;
  margin:0!important;
  box-sizing:border-box!important;
}
/* Remove the original SECOND, bottom-of-label required/optional notes.
   Keep the sole inline badge inside .pb1196FieldCaption untouched. */
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm > :is(label:first-child,label:nth-child(3)) > :is(small,em,.required,.optional,.fieldRequired,.fieldOptional),
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm > .grid2:nth-child(2) > label > :is(small,em,.required,.optional,.fieldRequired,.fieldOptional) {
  display:none!important;
}
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm > :is(label:first-child,label:nth-child(3))::before,
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm > :is(label:first-child,label:nth-child(3))::after,
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm > .grid2:nth-child(2) > label::before,
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm > .grid2:nth-child(2) > label::after {
  content:none!important;
}
/* Caption and its badge occupy one line; the input immediately follows it. */
html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
.clientGalleryCreateForm .pb1196FieldCaption {
  min-height:19px!important;
  line-height:1.3!important;
  flex-wrap:nowrap!important;
}
@media(max-width:820px) {
  html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog {
    width:calc(100vw - 16px)!important;
    max-width:calc(100vw - 16px)!important;
  }
  html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
  .clientGalleryCreateForm {
    column-gap:4px!important;
    row-gap:8px!important;
  }
  html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
  .clientGalleryCreateForm > .grid2:nth-child(2){gap:4px!important}
  html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
  .clientGalleryCreateForm .pb1196FieldCaption {
    gap:1px!important;
    font-size:8.5px!important;
    letter-spacing:-.18px!important;
    line-height:1.35!important;
    white-space:nowrap!important;
  }
  html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
  .clientGalleryCreateForm .pb1196FieldCaption small {
    font-size:7px!important;
    padding:0 2px!important;
    border:0!important;
    background:none!important;
    color:#64748b!important;
    white-space:nowrap!important;
  }
  html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
  .clientGalleryCreateForm > label:nth-child(3) > input {
    min-height:41px!important;
    height:41px!important;
    font-size:16px!important;
    padding-inline:4px!important;
  }
}
@media(max-width:380px) {
  html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
  .clientGalleryCreateForm .pb1196FieldCaption{
    font-size:7.6px!important;
    letter-spacing:-.3px!important;
  }
  html body > .globalModalLayer.modalBack > .modal.pb1112CreateDialog
  .clientGalleryCreateForm .pb1196FieldCaption small{
    font-size:6.3px!important;
    padding:0 1px!important;
  }
}
/* Existing tariff editor remains the sole location for editing the digital
   download price. Invoice uses the photographer's active print prices. */
